/* ==========================================================================
   La Casita Luna - LinkStack Theme: skeleton-auto.css
   Warm terracotta & earthy aesthetic for rustic Belgian Airbnb cottage
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --c-terracotta: #C86D46;
  --c-terracotta-dark: #A8532E;
  --c-terracotta-light: #E08761;
  --c-moon-glow: #F2B99E;
  
  --c-earth-dark: #381A0F;
  --c-earth-mid: #683824;
  --c-cream-bg: #FAF4ED;
  --c-cream-surface: #FFFDF9;
  --c-cream-border: #ECDAC9;

  --c-night-bg: #1A1513;
  --c-night-surface: #261F1B;
  --c-night-border: #3D322B;
  --c-night-text: #F7EFE6;
  --c-text-accent: #A8532E;
  --c-text-accent-hover: #80391F;
  --c-focus-ring: #A8532E;
}

html {
  font-size: 100%;
}

/* Light Mode Styles */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    font-family: var(--font-body);
    background-color: var(--c-cream-bg);
    background-image: 
      radial-gradient(circle at 15% 15%, rgba(200, 109, 70, 0.08) 0%, transparent 40%),
      radial-gradient(circle at 85% 85%, rgba(242, 185, 158, 0.12) 0%, transparent 45%);
    color: var(--c-earth-dark);
  }

  .container {
    /* High opacity surface keeps text readable over custom background images */
    background: rgba(255, 253, 249, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--c-cream-border);
    box-shadow: 0 12px 36px rgba(56, 26, 15, 0.06);
  }

  .social-icon {
    color: var(--c-terracotta) !important;
  }
  .social-icon:hover {
    color: var(--c-terracotta-dark) !important;
  }
}

/* Dark Mode (Cozy Twilight) Styles */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --c-text-accent: #F2B99E;
    --c-text-accent-hover: #FFFFFF;
    --c-focus-ring: #F2B99E;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    font-family: var(--font-body);
    background-color: var(--c-night-bg);
    background-image: 
      radial-gradient(circle at 20% 10%, rgba(200, 109, 70, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 90%, rgba(232, 156, 120, 0.08) 0%, transparent 50%);
    color: var(--c-night-text);
  }

  .container {
    /* High opacity surface keeps text readable over custom background images */
    background: rgba(38, 31, 27, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--c-night-border);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  }

  .social-icon {
    color: var(--c-moon-glow) !important;
  }
  .social-icon:hover {
    color: #FFFFFF !important;
  }
}

/* Grid & Main Container */
.container {
  position: relative;
  width: 92%;
  max-width: 580px;
  margin: 32px auto 40px auto;
  padding: 36px 24px 32px 24px;
  border-radius: 24px;
  text-align: center;
  box-sizing: border-box;
}

.column {
  width: 100%;
  box-sizing: border-box;
}

/* Headings & Text */
h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--c-text-accent);
  overflow-wrap: break-word;
  word-break: normal;
}

@media (min-width: 550px) {
  h1 {
    font-size: 38px;
  }
}

p {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 15px;
  opacity: 0.92;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Links */
a {
  color: var(--c-text-accent);
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  overflow-wrap: break-word;
  word-break: normal;
}

a:hover {
  color: var(--c-text-accent-hover);
}

a:focus-visible,
.button:focus-visible,
button:focus-visible,
.sharebutton:focus-visible,
.social-icon:focus-visible {
  outline: 3px solid var(--c-focus-ring);
  outline-offset: 3px;
}

/* Profile context injected through the optional custom body template. */
.description-parent {
  padding-bottom: 14px !important;
}

.casita-profile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}

.location-badge-wrap {
  margin: 0;
}

.location-badge {
  display: inline-block;
  max-width: 100%;
  padding: 5px 14px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow-wrap: break-word;
  word-break: normal;
  border-radius: 20px;
  background-color: rgba(200, 109, 70, 0.10);
  border: 1px solid rgba(200, 109, 70, 0.20);
  color: var(--c-terracotta-dark);
}

.casita-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-earth-mid);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.casita-highlights li {
  display: inline-flex;
  align-items: center;
}

.casita-highlights li:not(:last-child)::after {
  width: 3px;
  height: 3px;
  margin-left: 8px;
  border-radius: 50%;
  background: currentColor;
  content: '';
  opacity: 0.55;
}

@media (prefers-color-scheme: dark) {
  .location-badge {
    background-color: rgba(242, 185, 158, 0.12);
    border: 1px solid rgba(242, 185, 158, 0.22);
    color: var(--c-moon-glow);
  }

  .casita-highlights {
    color: var(--c-moon-glow);
  }
}

.footer-greeting {
  margin: 12px 0 14px;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--c-terracotta-dark);
  overflow-wrap: break-word;
  word-break: normal;
}

@media (prefers-color-scheme: dark) {
  .footer-greeting {
    color: var(--c-moon-glow);
  }
}

/* LinkStack renders its footer as a nested .container. Keep it visually
   integrated with the main card instead of creating a second, tall card. */
body > .container > .row > .column > .container {
  width: 100%;
  max-width: none;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body > .container .footer {
  margin: 18px 0 10px !important;
}

body > .container .credit-hover {
  padding-bottom: 12px !important;
}

body > .container .credit-hover img {
  width: 150px !important;
  max-width: 100%;
  height: auto;
}

/* The native share block is rendered before the main container. The custom
   head script moves it here so it can be anchored to the card. */
body > .container > .sharediv {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  margin: 0;
  padding: 0;
  text-align: initial;
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 20px);
    margin-top: 16px;
    padding: 24px 14px 20px;
    border-radius: 18px;
  }

  h1 {
    font-size: 26px;
  }

  p {
    font-size: 14px;
  }

  .location-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .casita-highlights {
    font-size: 11px;
  }

  .footer-greeting {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body > .container > .sharediv {
    top: 14px;
    right: 14px;
  }
}

.spacing {
  padding: 0 10px;
}

/* Custom Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--c-terracotta) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--c-terracotta);
  border-radius: 10px;
}

/* Footer / Credits */
.credit-txt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.credit-txt-clr {
  color: var(--c-terracotta) !important;
}
