/* ===================================================
   CABANA.CSS — Eco-Luxury Minimalist Cabins Page
   Cabaña Amulek · Grupo Amulek
   =================================================== */

/* --- Design Tokens --- */
:root {
  --cab-cream: #fafaf9;
  --cab-white: #ffffff;
  --cab-forest: #022c22;
  --cab-stone-100: #f5f5f4;
  --cab-stone-200: #e7e5e4;
  --cab-stone-300: #d6d3d1;
  --cab-stone-400: #a8a29e;
  --cab-stone-500: #78716c;
  --cab-stone-600: #57534e;
  --cab-amber: #b45309;
  --cab-amber-dark: #92400e;
  --cab-serif: 'Playfair Display', Georgia, serif;
  --cab-sans: 'DM Sans', 'Segoe UI', sans-serif;
}

/* --- Page-Level Overrides --- */
body {
  background: var(--cab-cream);
}

.navbar {
  background: rgba(12, 30, 22, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.navbar.scrolled {
  background: rgba(2, 44, 34, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.nav-logo-img {
  height: 56px;
  width: auto;
}

/* Center Nav Links Perfectly */
@media (min-width: 992px) {
  .navbar .container {
    position: relative;
  }
  .navbar .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- Group Pills (Page Switcher) Override --- */
.group-pills {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.group-pill {
  color: rgba(255, 255, 255, 0.7);
}

.group-pill:hover {
  color: #fff;
}

.group-pill.active {
  background: #166534;
  color: #fff;
}

.navbar.scrolled .group-pills {
  background: rgba(0, 0, 0, 0.3);
}

/* --- Mobile Drawer Override --- */
.nav-drawer {
  background: #fcfaf8 !important; /* Force solid cream background */
  color: var(--cab-forest);
  z-index: 9999 !important; /* Overlap navbar */
}

.nav-hamburger {
  color: #fff !important; /* White icon for dark hero */
  z-index: 10000 !important; /* Overlap drawer to allow closing */
}

.nav-drawer-links a {
  color: var(--cab-forest);
  border-bottom-color: rgba(2, 44, 34, 0.1);
}

.nav-drawer .group-pills {
  background: rgba(2, 44, 34, 0.05);
}

.nav-drawer .group-pill {
  color: rgba(2, 44, 34, 0.6);
}

.nav-drawer .group-pill.active {
  background: #166534;
  color: #fff;
}

/* ===================================================
   HERO
   =================================================== */
.cab-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cab-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cab-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cab-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(2, 44, 34, 0.55) 40%,
      rgba(2, 44, 34, 0.5) 65%,
      rgba(0, 0, 0, 0.3) 100%
    );
}

.cab-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 52rem;
  margin-top: 4rem;
}

.cab-hero__eyebrow {
  font-family: var(--cab-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.cab-hero__title {
  font-family: var(--cab-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 2.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.cab-hero__title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.cab-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--cab-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--cab-amber);
  border-radius: 100px;
  box-shadow: 0 8px 30px rgba(180, 83, 9, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.cab-hero__cta:hover {
  background: var(--cab-amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(180, 83, 9, 0.45);
}

/* ===================================================
   CABIN SHOWCASE — Zig-Zag Sections
   =================================================== */
.cab-section {
  padding: 6rem 0;
}

.cab-section--cream {
  background: var(--cab-cream);
}

.cab-section--white {
  background: var(--cab-white);
}

.cab-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Zig-zag: reverse the order for cabin 2 */
.cab-layout--reverse {
  direction: rtl;
}

.cab-layout--reverse > * {
  direction: ltr;
}

/* --- Image Half --- */
.cab-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  aspect-ratio: 4 / 3;
}

.cab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Gallery Badge Overlay --- */
.cab-image--gallery {
  cursor: pointer;
}

.cab-image__badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  color: #fff;
  font-family: var(--cab-sans);
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
  transition: background 0.3s ease;
  z-index: 2;
}

.cab-image--gallery:hover .cab-image__badge {
  background: rgba(180, 83, 9, 0.85);
}

.cab-image__badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Gallery Lightbox --- */
.cab-gallery {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.cab-gallery.open {
  display: flex;
}

.cab-gallery__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.25rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: opacity 0.2s;
}

.cab-gallery__close:hover {
  opacity: 0.7;
}

.cab-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.cab-gallery__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cab-gallery__arrow svg {
  width: 24px;
  height: 24px;
}

.cab-gallery__arrow--prev {
  left: 1.5rem;
}

.cab-gallery__arrow--next {
  right: 1.5rem;
}

.cab-gallery__img-wrap {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cab-gallery__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.cab-gallery__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--cab-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  .cab-gallery__arrow {
    width: 40px;
    height: 40px;
  }

  .cab-gallery__arrow--prev {
    left: 0.75rem;
  }

  .cab-gallery__arrow--next {
    right: 0.75rem;
  }

  .cab-gallery__img-wrap {
    max-width: 94vw;
  }
}

/* --- Info Half --- */
.cab-info {
  display: flex;
  flex-direction: column;
}

.cab-info__name {
  font-family: var(--cab-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cab-forest);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cab-info__desc {
  font-family: var(--cab-sans);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cab-stone-600);
  margin-bottom: 2rem;
}

/* --- Pricing Block --- */
.cab-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--cab-white);
  border-radius: 14px;
  border: 1px solid var(--cab-stone-200);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.cab-section--white .cab-pricing {
  background: var(--cab-cream);
}

.cab-pricing__label {
  font-family: var(--cab-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cab-stone-500);
  margin-bottom: 0.35rem;
}

.cab-pricing__amount {
  font-family: var(--cab-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cab-forest);
}

.cab-pricing__unit {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--cab-stone-400);
}

/* --- Amenities Grid --- */
.cab-amenities-title {
  font-family: var(--cab-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cab-forest);
  margin-bottom: 1.25rem;
}

.cab-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.cab-amenity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--cab-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cab-stone-600);
}

.cab-amenity__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--cab-amber);
}

.cab-amenity__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* --- Location Map (Premium) --- */
.cab-location-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--cab-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cab-stone-500);
  margin-bottom: 1rem;
}

.cab-location-title svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.cab-map {
  position: relative;
  width: 100%;
  min-height: 250px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--cab-stone-200);
  box-shadow: 0 8px 30px rgba(120, 113, 108, 0.15);
  background: var(--cab-stone-100);
  padding: 6px;
  margin-bottom: 2rem;
}

.cab-map iframe {
  width: 100%;
  height: 100%;
  min-height: 238px;
  border: 0;
  border-radius: 12px;
  display: block;
  filter: grayscale(50%) contrast(1.1) sepia(20%) opacity(0.9);
  transition: filter 0.5s ease;
}

.cab-map:hover iframe {
  filter: grayscale(0%) contrast(1) sepia(0%) opacity(1);
}

/* --- Map Open Link --- */
.cab-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--cab-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cab-stone-500);
  text-decoration: none;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.cab-map-link:hover {
  color: var(--cab-amber);
}

.cab-map-link svg {
  flex-shrink: 0;
}

/* --- WhatsApp CTA Button --- */
.cab-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 2rem;
  font-family: var(--cab-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--cab-amber);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}

.cab-cta:hover {
  background: var(--cab-amber-dark);
  box-shadow: 0 6px 24px rgba(180, 83, 9, 0.35);
  transform: translateY(-2px);
}

.cab-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===================================================
   MINIMALIST CONTACT
   =================================================== */
.cab-contact {
  padding: 5rem 0;
  background: var(--cab-cream);
  border-top: 1px solid var(--cab-stone-200);
  text-align: center;
}

.cab-contact__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cab-contact__title {
  font-family: var(--cab-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--cab-forest);
  margin-bottom: 0.75rem;
}

.cab-contact__text {
  font-family: var(--cab-sans);
  font-size: 1rem;
  color: var(--cab-stone-500);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* --- WhatsApp Contact Button --- */
.cab-contact__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  background: var(--cab-amber);
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(180, 83, 9, 0.3);
  transition: all 0.3s ease;
}

.cab-contact__wa:hover {
  background: var(--cab-amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(180, 83, 9, 0.4);
}

.cab-contact__wa-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.cab-contact__wa-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}

.cab-contact__wa-text strong {
  font-family: var(--cab-sans);
  font-size: 1.05rem;
  font-weight: 700;
}

.cab-contact__wa-text span {
  font-family: var(--cab-sans);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.8;
}

/* ===================================================
   MINIMALIST FOOTER
   =================================================== */
.cab-footer {
  background: var(--cab-white);
  padding: 2.5rem 0;
  border-top: 1px solid var(--cab-stone-200);
}

.cab-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cab-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cab-footer__brand img {
  height: 28px;
  width: auto;
}

.cab-footer__copy {
  font-family: var(--cab-sans);
  font-size: 0.8rem;
  color: var(--cab-stone-400);
  font-weight: 500;
}

.cab-footer__links {
  display: flex;
  gap: 2rem;
}

.cab-footer__links a {
  font-family: var(--cab-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cab-stone-500);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cab-footer__links a:hover {
  color: var(--cab-amber);
}

/* ===================================================
   RESPONSIVE — MOBILE (< 768px)
   =================================================== */
@media (max-width: 767px) {
  .cab-section {
    padding: 3.5rem 0;
  }

  .cab-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem;
  }

  .cab-layout--reverse {
    direction: ltr;
  }

  .cab-image {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .cab-info__name {
    font-size: 1.75rem;
  }

  .cab-info__desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .cab-pricing {
    padding: 1.25rem;
  }

  .cab-amenities {
    gap: 0.75rem 1rem;
  }

  .cab-amenity {
    font-size: 0.82rem;
  }

  .cab-contact {
    padding: 3rem 0;
  }

  .cab-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .cab-footer__links {
    justify-content: center;
  }
}

/* ===================================================
   RESPONSIVE — TABLET (768px – 1023px)
   =================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .cab-layout {
    gap: 2.5rem;
  }
}

/* ===================================================
   RESPONSIVE — LARGE DESKTOP (1440px+)
   =================================================== */
@media (min-width: 1440px) {
  .cab-section {
    padding: 8rem 0;
  }

  .cab-layout {
    max-width: 1400px;
    gap: 5rem;
  }
}
