/* ============================================
   Bahía Serena — Tropical Editorial Luxury
   ============================================ */

:root {
  --bg: #FAF6F1;
  --bg-alt: #F2EDE6;
  --teal: #1B4D4A;
  --teal-light: #26706B;
  --gold: #C8984E;
  --gold-light: #D9AD6A;
  --terracotta: #C17B5A;
  --text-dark: #2C2C2C;
  --text-muted: #8A8275;
  --light-border: rgb(27, 77, 74, 0.08);
  --medium-border: rgb(27, 77, 74, 0.15);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* Portfolio Bar */
.portfolio-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--teal);
  color: rgb(255,255,255,0.6);
  padding: 10px 5%;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 200;
}

.portfolio-bar a {
  color: var(--gold);
  font-weight: 600;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.4rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  top: 0;
  background: rgb(250, 246, 241, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--light-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  transition: color 0.4s ease;
}

.nav-logo span {
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

.navbar.scrolled .nav-logo {
  color: var(--teal);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: rgb(255,255,255,0.8);
  position: relative;
  transition: color 0.4s ease;
}

.navbar.scrolled .nav-links a {
  color: var(--text-muted);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
  background: var(--teal);
}

.hamburger.active span {
  background: var(--teal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(27, 77, 74, 0.25);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 5% 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(27,77,74,0.85) 0%, rgb(27,77,74,0.5) 40%, rgb(27,77,74,0.25) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-label::before {
  content: '';
  width: 40px;
  height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  color: rgb(255,255,255,0.9);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--gold);
  transition: all 0.4s ease;
}

.btn-gold:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgb(255,255,255,0.15);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1.5px solid rgb(255,255,255,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.4s ease;
}

.btn-ghost:hover {
  background: rgb(255,255,255,0.25);
  border-color: var(--gold);
  color: var(--gold);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(255,255,255,0.15);
}

.hero-stat h3 {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}

.hero-stat p {
  font-size: 0.75rem;
  color: rgb(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.2rem;
}

/* ── Section Shared ── */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  text-align: center;
  letter-spacing: -0.5px;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 4rem;
  font-size: 0.95rem;
  font-weight: 300;
}

/* ── Rooms ── */
.rooms-section {
  padding: 7rem 5%;
}

.rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.room-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--light-border);
  overflow: hidden;
  transition: all 0.4s ease;
}

.room-card:hover {
  box-shadow: 0 20px 60px rgb(27,77,74,0.08);
  transform: translateY(-4px);
}

.room-card:nth-child(even) {
  direction: rtl;
}

.room-card:nth-child(even) > * {
  direction: ltr;
}

.room-img {
  height: 100%;
  min-height: 350px;
  overflow: hidden;
}

.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.room-card:hover .room-img img {
  transform: scale(1.05);
}

.room-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.room-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.room-info h3 {
  font-size: 1.8rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.room-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.room-amenities {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.room-amenity {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.room-amenity i {
  color: var(--teal);
  font-size: 0.85rem;
}

.room-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.room-price strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal);
}

.room-price span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Amenities ── */
.amenities-section {
  padding: 6rem 5%;
  background: var(--teal);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.amenities-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgb(200,152,78,0.08), transparent 70%);
  pointer-events: none;
}

.amenities-section .section-label::before,
.amenities-section .section-label::after {
  background: var(--gold);
}

.amenities-section .section-title {
  color: #fff;
}

.amenities-section .section-subtitle {
  color: rgb(255,255,255,0.6);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.amenity-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgb(255,255,255,0.08);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.amenity-card:hover {
  background: rgb(255,255,255,0.05);
  border-color: rgb(200,152,78,0.3);
  transform: translateY(-4px);
}

.amenity-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.3rem;
  color: var(--gold);
}

.amenity-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.amenity-card p {
  color: rgb(255,255,255,0.55);
  font-size: 0.83rem;
  line-height: 1.6;
  font-weight: 300;
}

/* ── Gallery ── */
.gallery-section {
  padding: 7rem 5%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(27,77,74,0.25), transparent 50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 0;
}

/* ── Testimonials ── */
.testimonials-section {
  padding: 7rem 5%;
  background: var(--bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--light-border);
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgb(27,77,74,0.06);
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  color: var(--text-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.testimonial-info span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-info small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.7rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

/* ── Location / Map ── */
.location-section {
  padding: 6rem 5%;
}

.location-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.location-info h2 {
  font-size: 2.2rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.location-info > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.location-details p {
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.location-details i {
  color: var(--gold);
  margin-right: 10px;
  width: 18px;
  text-align: center;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
  padding: 12px 28px;
  background: var(--teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.btn-directions:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.map-embed {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border: 1px solid var(--light-border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── CTA Booking ── */
.cta-section {
  padding: 6rem 5%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgb(200,152,78,0.1), transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}

.cta-section h2 em {
  font-style: italic;
  color: var(--gold-light);
}

.cta-section p {
  color: rgb(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  font-weight: 300;
  position: relative;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--gold);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--gold);
  transition: all 0.4s ease;
  position: relative;
}

.btn-cta:hover {
  background: transparent;
  transform: translateY(-3px);
}

/* ── Footer ── */
.site-footer {
  background: var(--teal);
  color: #fff;
  padding: 5rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.footer-col p {
  color: rgb(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.8;
  font-weight: 300;
}

.footer-col a {
  display: block;
  color: rgb(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 2.2;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand span {
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgb(255,255,255,0.5);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgb(255,255,255,0.08);
  color: rgb(255,255,255,0.4);
  font-size: 0.8rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom a {
  color: var(--gold);
  display: inline;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* ── Chatbot ── */
#chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  font-family: var(--font-body);
}

#chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgb(200,152,78,0.35);
  transition: all 0.3s ease;
}

#chat-btn:hover {
  background: var(--teal);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgb(27,77,74,0.35);
}

#chat-btn.hidden {
  display: none;
}

#chat-window {
  display: none;
  flex-direction: column;
  width: 360px;
  height: 530px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgb(27,77,74,0.15);
  overflow: hidden;
  position: absolute;
  bottom: 0;
  right: 0;
  border: 1px solid var(--light-border);
}
#chat-window.open { display: flex; }

.chat-header {
  background: var(--teal);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.chat-header button {
  background: none;
  border: none;
  color: rgb(255,255,255,0.5);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.3s;
}

.chat-header button:hover {
  color: #fff;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.5;
  animation: chatIn 0.3s ease;
  white-space: pre-line;
}

@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.bot {
  background: #fff;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--light-border);
}

.chat-msg.user {
  background: var(--teal);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.system {
  background: #E8F5E9;
  color: #2E7D32;
  align-self: center;
  text-align: center;
  font-size: 0.8rem;
  border-radius: 10px;
}

#chat-options {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--light-border);
}

.chat-opt {
  padding: 7px 14px;
  border: 1px solid var(--medium-border);
  border-radius: 20px;
  background: #fff;
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-opt:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.chat-input-wrap {
  padding: 10px 12px;
  border-top: 1px solid var(--light-border);
  display: flex;
  gap: 8px;
}

.chat-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--medium-border);
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.83rem;
  outline: none;
  background: transparent;
}

.chat-input-wrap input:focus {
  border-color: var(--teal);
}

.chat-input-wrap button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input-wrap button:hover {
  background: var(--gold);
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: dotB 1.2s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotB {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.date-slot {
  padding: 8px 4px;
  border: 1px solid var(--medium-border);
  border-radius: 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: var(--text-dark);
}

.date-slot:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ── Responsive 1024px ── */
@media (width <= 1024px) {
  .room-card {
    grid-template-columns: 1fr;
  }

  .room-card:nth-child(even) {
    direction: ltr;
  }

  .room-img {
    min-height: 280px;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
  }

  .gallery-grid .gallery-item:first-child {
    grid-row: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ── Responsive 768px ── */
@media (width <= 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    z-index: 99;
    border-left: 1px solid var(--light-border);
  }

  .nav-links.mobile-open a {
    font-size: 1rem;
    color: var(--teal);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-border);
  }

  .nav-cta.mobile-open {
    display: inline-block;
    text-align: center;
    margin-top: 1rem;
  }

  .hero {
    min-height: 90vh;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.2rem;
  }

  .rooms-grid {
    gap: 2rem;
  }

  .room-info {
    padding: 2rem;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item {
    height: 240px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .location-container {
    grid-template-columns: 1fr;
  }

  .map-embed {
    height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (width <= 400px) {
  #chat-window {
    width: calc(100vw - 32px);
    height: 75vh;
    right: -8px;
  }
}
