/* ===========================================
   TOP TEN MARBELLA — Hub: guide.top10marbella.com
   Samlingssida med alla områdesguider
   =========================================== */

:root {
  --orange: #CB8338;
  --orange-dark: #b9722c;
  --blue: #3F7E76;
  --gold: #CB8338;
  --gold-soft: #E2A85C;
  --charcoal: #16302E;
  --ink: #07262A;

  --cream: #F6F1E7;
  --cream-soft: #EFE8DA;
  --paper: #FFFFFF;

  --text: #16302E;
  --text-soft: #5C6E6A;
  --text-faint: #8B9794;

  --line: #E7DDCB;
  --line-soft: #F0EAE0;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --pad: 1.25rem;
  --pad-lg: 2rem;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(45, 42, 38, 0.04), 0 1px 3px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 42, 38, 0.06), 0 2px 6px rgba(45, 42, 38, 0.04);
  --shadow-lg: 0 10px 30px rgba(45, 42, 38, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ===========================================
   HEADER
   =========================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #0e3b3a;
  border-bottom: none;
}
.brand { display: flex; align-items: center; gap: 11px; color: #F4F1EA; text-decoration: none; }
.brand .emblem { height: 34px; width: auto; display: block; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-family: var(--font-sans); font-weight: 700; font-size: 1.06rem; letter-spacing: .06em; }
.brand .wm i { font-style: normal; font-size: .54rem; letter-spacing: .4em; opacity: .85; margin-top: 4px; }
.back-site {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: .8rem;
  color: rgba(244,241,234,.9); text-decoration: none; white-space: nowrap;
  transition: color .18s ease, gap .18s ease;
}
.back-site:hover { color: #F4F1EA; gap: 10px; }
@media (max-width: 560px) { .back-site { background: rgba(244,241,234,.12); border: 1px solid rgba(244,241,234,.42); border-radius: 20px; padding: 5px 12px; color: #F4F1EA; } }

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  height: 38px;
  width: auto;
}

/* ===========================================
   HERO
   =========================================== */

.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
  padding: 4rem var(--pad) 3rem;
  text-align: center;
}

.hero::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.75rem auto 0;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* ===========================================
   AREAS GRID
   =========================================== */

.areas-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem var(--pad) 1rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .areas-grid { grid-template-columns: 1fr 1fr; padding-top: 3rem; }
}

@media (min-width: 900px) {
  .areas-grid { padding: 3rem var(--pad-lg) 1rem; }
}

.area-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.area-card:hover {
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.area-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.area-card-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.area-card-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.area-card-description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
  flex: 1;
}

.area-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--orange);
  margin-top: 0.5rem;
  align-self: flex-start;
}

.area-card-cta::after {
  content: "→";
  transition: transform 0.18s ease;
}

.area-card:hover .area-card-cta::after {
  transform: translateX(3px);
}

/* ===========================================
   COMING SOON
   =========================================== */

.coming-soon {
  max-width: 960px;
  margin: 2rem auto 0;
  padding: 2.5rem var(--pad);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.coming-soon-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coming-soon-item {
  padding: 0.45rem 1rem;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ===========================================
   CONTACT CTA
   =========================================== */

.contact-cta {
  max-width: 640px;
  margin: 3rem auto;
  padding: 2.5rem var(--pad);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.cta-body {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

/* ===========================================
   FOOTER
   =========================================== */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem var(--pad) 2.5rem;
  text-align: center;
  margin-top: auto;
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
}

.footer-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
}

.footer-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-link {
  color: var(--gold-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-link:hover { border-color: var(--gold-soft); }

.footer-sep { color: var(--gold); }

.footer-meta {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-meta-link {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-meta-link:hover {
  color: var(--gold);
}

@supports (padding: max(0px)) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); }
}

/* ===========================================
   COAST MAP
   =========================================== */

.coast-map {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem var(--pad) 1rem;
  text-align: center;
}

.coast-svg {
  width: 100%;
  height: auto;
  max-height: 360px;
}

.coast-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.area-dot.current circle {
  r: 9;
  stroke: #07262A;
  stroke-width: 2;
}

.area-dot.current text {
  font-weight: 600;
}

/* ===========================================
   PRINT
   =========================================== */

@media print {
  :root {
    --pad: 1.25rem;
  }

  html, body {
    background: white;
    color: #07262A;
    font-size: 11pt;
  }

  .site-header,
  .contact-cta {
    display: none !important;
  }

  .site-footer {
    background: white !important;
    color: #07262A !important;
    padding: 1.5rem var(--pad) !important;
    border-top: 1px solid #E2A85C;
    page-break-inside: avoid;
  }

  .footer-line,
  .footer-mark { color: #07262A !important; }

  .footer-link {
    color: #07262A !important;
    border-bottom: none !important;
  }

  .footer-sep,
  .footer-meta { color: #5C6E6A !important; }

  .hero {
    background: white !important;
    padding: 1rem var(--pad) 1.5rem !important;
    page-break-after: avoid;
  }

  .hero::after { display: none; }

  .hero-title {
    font-size: 24pt;
    margin-bottom: 0.5rem;
  }

  .hero-intro { font-size: 11pt; }

  .coast-map {
    padding: 0.5rem var(--pad);
    page-break-inside: avoid;
  }

  .coast-svg { max-height: none; }

  .areas-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    padding-top: 1rem !important;
  }

  .area-card {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #E2A85C !important;
    padding: 0.75rem 1rem !important;
  }

  .area-card-cta { display: none; }

  .coming-soon {
    margin-top: 1rem;
    padding: 1rem var(--pad);
    page-break-inside: avoid;
  }

  a[href]::after {
    content: none !important;
  }
}

/* ===========================================
   HEADER WITH PRINT ACTION
   =========================================== */

.header-inner--with-action {
  position: static;
  justify-content: center;
}

.print-btn {
  position: fixed;
  right: 1rem;
  top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid rgba(244,241,234,.3);
  border-radius: 999px;
  color: rgba(244,241,234,.85);
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  z-index: 200;
}

.print-btn:hover {
  border-color: var(--gold-soft);
  color: var(--ink);
  background: var(--cream-soft);
}

.print-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
}

@supports (padding: max(0px)) {
  .print-btn {
    top: max(0.75rem, env(safe-area-inset-top));
  }
}

@media (max-width: 480px) {
  .print-btn span { display: none; }
  .print-btn { padding: 0.45rem 0.55rem; }
}

/* ===========================================
   QR SECTION
   =========================================== */

.qr-section {
  max-width: 560px;
  margin: 2rem auto 1.5rem;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.qr-image {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.qr-text { flex: 1; }

.qr-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.qr-sub {
  font-size: 0.825rem;
  color: var(--text-soft);
  word-break: break-all;
}

@media print {
  .print-btn, .back-site { display: none !important; }

  .qr-section {
    page-break-inside: avoid;
    margin: 0.5rem auto !important;
    padding: 0.75rem var(--pad) !important;
    border: 1px solid #E2A85C !important;
    background: white !important;
  }

  .qr-image { width: 110px !important; height: 110px !important; }
  .qr-label { font-size: 13pt !important; }
  .qr-sub { font-size: 9pt !important; }
}
