/* ==========================================================================
   HotelStay Miami Beach — base styles
   ========================================================================== */

:root {
  --navy-900: #0a1c30;
  --navy-800: #0f2a44;
  --navy-700: #16385a;
  --gold-500: #c9a24b;
  --gold-400: #d9b96a;
  --sand-100: #faf6ee;
  --sand-200: #f3ead9;
  --sand-300: #e9dcc3;
  --white: #ffffff;
  --ink-900: #1c2a36;
  --ink-600: #4a5a68;
  --ink-400: #7c8a97;
  --line: #e4dfd3;
  --shadow: 0 20px 45px -20px rgba(10, 28, 48, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy-900);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--ink-600); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }

.section { padding: 84px 0; }
.section--sand { background: var(--sand-100); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: all 0.3s ease;
  background: transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(10, 28, 48, 0.96);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
}

.brand { display: flex; align-items: center; gap: 10px; font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.35rem; color: var(--white); }
.brand .brand-icon { font-size: 1.5rem; line-height: 1; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand span.dot { color: var(--gold-500); }
.brand small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: rgba(255,255,255,0.86);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  padding-bottom: 90px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,28,48,0.35) 0%, rgba(10,28,48,0.35) 40%, rgba(10,28,48,0.92) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lead { color: rgba(255,255,255,0.88); max-width: 560px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: "Playfair Display", serif; font-size: 1.8rem; color: var(--gold-400); }
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

.page-hero {
  min-height: 52vh;
  padding-bottom: 60px;
}

/* Booking widget overlapping hero */
.booking-widget {
  position: relative;
  z-index: 5;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: -64px;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
}
.booking-widget .field { display: flex; flex-direction: column; gap: 6px; }
.booking-widget label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--sand-100);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; }

/* ==========================================================================
   Cards: rooms, amenities, values
   ========================================================================== */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--sand-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px -18px rgba(10,28,48,0.35);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.room-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.room-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.room-card:hover .thumb img { transform: scale(1.06); }
.room-card .thumb .price-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--navy-900); color: var(--white);
  padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
.room-card .thumb .price-tag small { font-weight: 400; opacity: 0.7; }
.room-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-400); }
.room-amenities { display: flex; flex-wrap: wrap; gap: 8px; }
.room-amenities li {
  font-size: 0.76rem; background: var(--sand-200); color: var(--ink-600);
  padding: 5px 10px; border-radius: 999px;
}
.room-card .footer-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }

.badge {
  display: inline-block;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-media { position: relative; }
.split-media .float-card {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--white); border-radius: var(--radius-md);
  padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.split-media .float-card strong { display: block; font-family: "Playfair Display", serif; font-size: 1.4rem; color: var(--navy-900); }
.split-media .float-card span { font-size: 0.78rem; color: var(--ink-400); }

.check-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-600); }
.check-list li .tick {
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold-500);
  color: var(--navy-900); flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900; margin-top: 2px;
}

/* Testimonials */
.testimonial-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.testimonial-card .stars { color: var(--gold-500); letter-spacing: 3px; margin-bottom: 14px; }
.testimonial-card p { color: rgba(255,255,255,0.88); font-size: 1.02rem; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-card .who .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.testimonial-card .who strong { display: block; font-size: 0.92rem; }
.testimonial-card .who span { font-size: 0.78rem; color: var(--gold-400); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; text-align: left;
  font-family: "Playfair Display", serif; font-size: 1.08rem; color: var(--navy-900);
  padding: 0;
}
.faq-item .plus { font-size: 1.3rem; color: var(--gold-500); transition: transform 0.25s ease; }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.is-open .faq-answer { max-height: 240px; }
.faq-answer p { padding-top: 12px; margin: 0; }

/* Info strip */
.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
}
.info-strip .cell {
  padding: 26px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.info-strip .cell:last-child { border-right: none; }
.info-strip .cell .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-400); margin-bottom: 8px; }
.info-strip .cell strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.info-strip .cell span.sub { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-grid figure {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-md);
  cursor: pointer;
}
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px; font-size: 0.8rem; color: var(--white);
  background: linear-gradient(0deg, rgba(10,28,48,0.85), transparent);
}
.gallery-grid figure.tall { grid-row: span 2; }
.gallery-grid figure.wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,28,48,0.92);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 10px; }
.lightbox .close-lb {
  position: absolute; top: 26px; right: 34px; background: none; border: none;
  color: var(--white); font-size: 2rem; line-height: 1;
}

/* Filter pills (gallery / rooms) */
.pill-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.pill-filter button {
  background: var(--sand-200); border: 1px solid transparent; color: var(--ink-600);
  padding: 9px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.pill-filter button.is-active { background: var(--navy-900); color: var(--white); }

/* Forms */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 0.82rem; color: var(--ink-400); margin-top: 10px; }

.availability-result {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--sand-200); display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.availability-result.is-visible { display: flex; }
.availability-result.is-full { background: #fdecec; }
.availability-result strong { color: var(--navy-900); }
.availability-result .save-tag { color: #1a7a4c; font-weight: 700; font-size: 0.85rem; }

.summary-card {
  background: var(--navy-900); color: var(--white); border-radius: var(--radius-lg); padding: 30px;
}
.summary-card .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.92rem; }
.summary-card .row.total { border-bottom: none; font-size: 1.15rem; font-weight: 700; padding-top: 16px; color: var(--gold-400); }

/* Map + contact */
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 0; width: 100%; height: 420px; }
.contact-detail { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-detail .icon { font-size: 1.3rem; }
.contact-detail strong { display: block; color: var(--navy-900); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h4 { color: var(--white); font-family: "Inter", sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-grid ul a:hover { color: var(--gold-400); }
.footer-brand p { color: rgba(255,255,255,0.65); max-width: 280px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.social-row a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.newsletter-form { display: flex; gap: 8px; margin-top: 6px; }
.newsletter-form input {
  flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06); color: var(--white); font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }

/* Toast (mock success message) */
.toast {
  position: fixed; bottom: 26px; right: 26px; z-index: 1200;
  background: var(--navy-900); color: var(--white); padding: 16px 22px; border-radius: var(--radius-md);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  transform: translateY(120%); opacity: 0; transition: all 0.35s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); }

/* Breadcrumb-ish subtitle on page heroes */
.crumb { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 10px; }
.crumb a:hover { color: var(--gold-400); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-widget { grid-template-columns: 1fr 1fr; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .brand small { font-size: 0.52rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .booking-widget { grid-template-columns: 1fr; margin-top: -40px; }
  .hero { padding-bottom: 60px; padding-top: 110px; min-height: 86vh; }
  .hero-stats { gap: 24px; }
  .info-strip { grid-template-columns: 1fr; }
  .info-strip .cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid figure.wide { grid-column: span 2; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .split-media .float-card { position: static; margin-top: 16px; }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
  background: var(--navy-900); z-index: 600; padding: 100px 30px 30px;
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; gap: 22px;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { color: var(--white); font-size: 1.1rem; font-family: "Playfair Display", serif; }
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 550; display: none;
}
.mobile-nav-overlay.is-open { display: block; }
