/* SurfInTamarindo.com — Ocean/Beach Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --ocean-deep: #0c3547;
  --ocean-mid: #1a6985;
  --ocean-light: #2a9bc0;
  --sky: #87ceeb;
  --sky-light: #e8f4f8;
  --sand: #f5e6d3;
  --sand-light: #faf6f1;
  --sand-dark: #d4a574;
  --sunset: #f4845f;
  --sunset-gold: #f7c948;
  --coral: #ff6b6b;
  --foam: #ffffff;
  --text-dark: #1a2a32;
  --text-body: #2d4a56;
  --text-muted: #6b8a99;
  --card-bg: rgba(255,255,255,0.95);
  --card-border: rgba(26,105,133,0.12);
  --shadow-sm: 0 2px 8px rgba(12,53,71,0.08);
  --shadow-md: 0 4px 20px rgba(12,53,71,0.12);
  --shadow-lg: 0 8px 40px rgba(12,53,71,0.16);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--sand-light);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, nav, .eyebrow, .footer, .badge, .btn {
  font-family: 'Montserrat', system-ui, sans-serif;
}

a { color: var(--ocean-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sunset); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 40px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12,53,71,0.85) 0%,
    rgba(12,53,71,0.5) 40%,
    rgba(12,53,71,0.15) 70%,
    transparent 100%
  );
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sunset-gold);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  margin-bottom: 24px;
  line-height: 1.6;
  font-family: 'Lora', serif;
}

.hero nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero nav a {
  display: inline-block;
  padding: 10px 22px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s;
}

.hero nav a:hover {
  background: var(--sunset-gold);
  color: var(--ocean-deep);
  border-color: var(--sunset-gold);
}

/* ===== SECTIONS ===== */
section {
  padding: 60px 0;
}

section + section {
  border-top: 1px solid rgba(26,105,133,0.08);
}

.wrap > section {
  padding: 60px 0;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ocean-deep);
  margin-bottom: 8px;
  line-height: 1.15;
}

h2 + p, h2 + .lead {
  margin-top: 8px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin-bottom: 8px;
  line-height: 1.25;
}

p { margin-bottom: 16px; }

section > p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 780px;
}

/* ===== GRID & CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card h3 a {
  color: var(--ocean-deep);
}

.card h3 a:hover {
  color: var(--sunset);
}

/* ===== IMAGE CARDS ===== */
.card-img {
  overflow: hidden;
  padding: 0;
}

.card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-img .card-body {
  padding: 24px 28px;
}

/* ===== PHOTO BANNER ===== */
.photo-banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

/* ===== FULL-WIDTH PHOTO SECTION ===== */
.photo-section {
  position: relative;
  padding: 100px 40px;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,53,71,0.88), rgba(26,105,133,0.82));
  z-index: 1;
}

.photo-section > * { position: relative; z-index: 2; }

.photo-section h2 { color: #fff; }
.photo-section p, .photo-section .lead { color: rgba(255,255,255,0.9); }

/* ===== FEATURE ROW ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--sky-light);
  color: var(--ocean-mid);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-green { background: #e6f7e9; color: #2d8a4e; }
.badge-yellow { background: #fff8e1; color: #b8860b; }
.badge-red { background: #ffeaea; color: #c0392b; }

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  gap: 0;
  background: var(--ocean-deep);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

.stat {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat:last-child { border-right: none; }

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--sunset-gold);
  line-height: 1;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ===== LISTS ===== */
ul { padding-left: 20px; margin-bottom: 16px; }
li { margin-bottom: 8px; }

/* ===== DETAILS/FAQ ===== */
details.card {
  cursor: pointer;
}

details.card summary {
  list-style: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--ocean-deep);
}

details.card summary::-webkit-details-marker { display: none; }

details.card summary::before {
  content: '＋';
  display: inline-block;
  margin-right: 10px;
  color: var(--ocean-light);
  font-weight: 700;
  transition: transform 0.2s;
}

details[open].card summary::before {
  content: '−';
}

details.card p {
  margin-top: 12px;
  color: var(--text-body);
}

/* ===== PROPERTY CARDS (Where to Stay) ===== */
.stay-section {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  padding: 60px 40px;
  margin: 40px -24px;
  color: #fff;
}

.stay-section h2 { color: #fff; }
.stay-section .lead { color: rgba(255,255,255,0.8); }

.stay-section .card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.stay-section .card h3 { color: var(--sunset-gold); }
.stay-section .card p { color: rgba(255,255,255,0.85); }

/* ===== FOOTER ===== */
.footer {
  border-top: 2px solid var(--card-border);
  margin-top: 48px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
}

/* ===== VIDEO EMBED ===== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 32px 0;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: 40px 24px;
  }

  section { padding: 40px 0; }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-row.reverse { direction: ltr; }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .stay-section {
    padding: 40px 24px;
    margin: 24px -24px;
  }

  .photo-section {
    padding: 60px 24px;
    border-radius: 0;
    margin: 24px -24px;
  }

  .photo-banner {
    height: 250px;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }

  .hero { min-height: 60vh; padding: 32px 20px; }

  .card { padding: 20px; }

  .stat { flex: 1 1 100%; }
}


/* Sister site cross-links */
.sister-sites {
  text-align: center;
  padding: 28px 16px;
  margin-top: 48px;
  border-top: 2px solid rgba(0,0,0,0.08);
  font-size: 0.85rem;
  color: rgba(0,0,0,0.45);
  font-family: 'Montserrat', system-ui, sans-serif;
}
.sister-sites a {
  color: rgba(0,0,0,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.sister-sites a:hover {
  color: rgba(0,0,0,0.8);
}
.sister-sites .current {
  color: rgba(0,0,0,0.7);
  font-weight: 700;
}
