/* Camerstay — design system (HTML5/CSS3) */
:root {
  --white: #ffffff;
  --navy: #14243f;
  --navy-deep: #0d1930;
  --orange: #f28123;
  --orange-dark: #d96a12;
  --gray-50: #f5f6f8;
  --gray-100: #eceef1;
  --gray-200: #e0e3e8;
  --gray-500: #6b7280;
  --black: #0b0f16;
  --radius: 14px;
  --shadow-card: 0 4px 24px -8px rgba(20, 36, 63, 0.28);
  --shadow-float: 0 12px 40px -12px rgba(20, 36, 63, 0.4);
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head h2 { font-size: 1.6rem; color: var(--navy); }
@media (min-width: 640px) { .section-head h2 { font-size: 1.9rem; } }
.section-head p { margin-top: 4px; font-size: 0.9rem; color: var(--gray-500); }
.link-all { color: var(--orange); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; max-width: var(--max); margin: 0 auto; }
@media (min-width: 640px) { .header-inner { padding: 12px 24px; } }
.logo img { height: 38px; width: auto; object-fit: contain; }
.nav { display: none; gap: 28px; align-items: center; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a { font-size: 0.9rem; font-weight: 600; color: var(--gray-500); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); cursor: pointer; }
@media (min-width: 900px) { .burger { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--gray-200); background: var(--white); padding: 8px 16px 12px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 8px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; }
.mobile-nav a:hover { background: var(--gray-50); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 700; font-size: 0.9rem;
  padding: 12px 22px; border-radius: 999px; transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: scale(1.03); }
.btn-accent { background: var(--orange); color: var(--white); box-shadow: var(--shadow-card); }
.btn-accent:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--navy); border: 1px solid var(--gray-200); }
.btn-block { width: 100%; border-radius: var(--radius); padding: 14px; }
.btn-wa { background: #25d366; color: #fff; }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 25, 48, 0.25) 0%, rgba(13, 25, 48, 0.82) 100%);
}
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 96px 16px 40px; }
@media (min-width: 640px) { .hero-inner { padding: 140px 24px 40px; } }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); }
.hero h1 { margin-top: 16px; max-width: 46rem; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; color: var(--white); }
.hero p.lead { margin-top: 16px; max-width: 34rem; color: rgba(255, 255, 255, 0.86); font-size: 1rem; }
@media (min-width: 640px) { .hero p.lead { font-size: 1.1rem; } }

/* Search bar */
.searchbar {
  margin-top: 36px; display: grid; gap: 12px; padding: 16px;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--gray-200);
  border-radius: 24px; box-shadow: var(--shadow-float);
}
@media (min-width: 860px) { .searchbar { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; } }
.field { display: block; }
.field span { display: block; margin-bottom: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); }
.field input, .field select {
  width: 100%; padding: 10px 12px; font-size: 0.9rem; color: var(--black);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 129, 35, 0.25); }
.col-2 { grid-column: span 2; }
.searchbar .btn-submit { grid-column: 1 / -1; }

/* Cards grid */
.grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: block; overflow: hidden; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 18px; box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-media img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-cat { left: 12px; background: rgba(255, 255, 255, 0.92); color: var(--navy); }
.badge-status { right: 12px; background: var(--orange); color: var(--white); }
.badge-status.busy { background: rgba(11, 15, 22, 0.8); color: var(--white); }
.card-body { padding: 16px; display: grid; gap: 8px; }
.card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title h3 { font-size: 1rem; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.85rem; color: var(--gray-500); }
.price { padding-top: 4px; font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.price small { font-size: 0.82rem; font-weight: 500; color: var(--gray-500); }
.star { color: var(--orange); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: var(--gray-50);
  border: 1px solid var(--gray-200); font-size: 0.85rem; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all 0.2s;
}
.chip:hover, .chip.active { border-color: var(--orange); color: var(--orange); }

/* Feature / review blocks */
.band { background: var(--gray-50); padding: 64px 0; }
.tile { background: var(--white); border: 1px solid var(--gray-200); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-card); }
.tile .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(242, 129, 35, 0.12); color: var(--orange); font-size: 1.2rem; }
.tile h3 { margin-top: 16px; font-size: 1rem; color: var(--navy); }
.tile p { margin-top: 8px; font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }
blockquote { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; color: var(--black); }
figcaption { margin-top: 16px; font-size: 0.85rem; font-weight: 700; color: var(--gray-500); }

/* Footer */
.footer { margin-top: 96px; background: var(--navy); color: var(--white); }
.footer-grid { display: grid; gap: 40px; padding: 56px 16px; max-width: var(--max); margin: 0 auto; }
@media (min-width: 640px) { .footer-grid { padding: 56px 24px; } }
@media (min-width: 860px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-logo { display: inline-flex; background: var(--white); padding: 8px 12px; border-radius: 12px; }
.footer-logo img { height: 32px; width: auto; }
.footer p, .footer li { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); line-height: 1.7; }
.footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); font-family: var(--font-display); }
.footer ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 20px; text-align: center; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }

/* Listing page */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.page-head p { margin-top: 8px; max-width: 46rem; font-size: 0.9rem; color: var(--gray-500); }
.layout { display: grid; gap: 28px; padding-bottom: 24px; }
@media (min-width: 1024px) { .layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; } }
.panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-card); display: grid; gap: 16px; }
.panel h2 { font-size: 1rem; color: var(--navy); }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--gray-500); }
.result-count { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 16px; }
.empty { padding: 48px; text-align: center; color: var(--gray-500); border: 1px dashed var(--gray-200); border-radius: 18px; }

/* Detail page */
.detail-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.gallery-main { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 10; background: var(--gray-100); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.9); color: var(--navy);
  font-size: 1.2rem; cursor: pointer; display: grid; place-items: center;
}
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.thumbs img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; cursor: pointer; opacity: 0.65; transition: opacity 0.2s, outline-color 0.2s; outline: 2px solid transparent; }
.thumbs img.active, .thumbs img:hover { opacity: 1; outline-color: var(--orange); }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { padding: 6px 14px; border-radius: 999px; background: var(--gray-50); border: 1px solid var(--gray-200); font-size: 0.82rem; color: var(--navy); }
.booking { position: sticky; top: 88px; }
.total-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--gray-500); }
.total-row strong { color: var(--navy); font-size: 1.05rem; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.spec { border: 1px solid var(--gray-200); border-radius: 12px; padding: 12px; font-size: 0.85rem; color: var(--gray-500); }
.spec b { display: block; color: var(--navy); font-size: 1rem; }
.map { margin-top: 12px; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(11, 15, 22, 0.92); padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 84vh; max-width: 92vw; border-radius: 12px; }
.lightbox .close { position: absolute; top: 18px; right: 20px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
.lightbox .gallery-nav { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* Floating WhatsApp */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px;
  border-radius: 999px; background: #25d366; color: #fff; font-weight: 700;
  box-shadow: var(--shadow-float);
}

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form textarea { width: 100%; min-height: 130px; padding: 12px; border: 1px solid var(--gray-200); border-radius: 12px; outline: none; font: inherit; }
.form textarea:focus { border-color: var(--orange); }
.info-list { display: grid; gap: 12px; margin-top: 16px; list-style: none; font-size: 0.9rem; color: var(--gray-500); }
.neigh-card { display: flex; align-items: center; justify-content: space-between; padding: 20px; border: 1px solid var(--gray-200); border-radius: 18px; box-shadow: var(--shadow-card); transition: border-color 0.2s; }
.neigh-card:hover { border-color: var(--orange); }
.neigh-card span:first-child { font-weight: 700; color: var(--navy); }
.neigh-card span:last-child { font-size: 0.85rem; color: var(--gray-500); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }