/* ============================================================
   TRINETRA HABITAT — styles.css
   Warm & cozy aesthetic
   Palette:
     --cream:      #FAF7F2  (page background)
     --sand:       #E8DECE  (tinted sections, dividers)
     --espresso:   #2C1A0E  (headings, dark text)
     --terracotta: #C4714A  (accent / CTA)
     --sage:       #8A9E7E  (secondary accents)
     --warm-gray:  #7A6A5A  (body text)
   Fonts: Playfair Display (headings) + Lato (body)
============================================================ */


/* ============================================================
   1. CSS VARIABLES & RESET
============================================================ */
:root {
  --cream:       #FAF7F2;
  --sand:        #E8DECE;
  --espresso:    #2C1A0E;
  --terracotta:  #C4714A;
  --terracotta-dark: #A85A35;
  --sage:        #8A9E7E;
  --warm-gray:   #7A6A5A;
  --white:       #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', Arial, sans-serif;

  --radius:       8px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(44, 26, 14, 0.08);
  --shadow-lg:    0 8px 48px rgba(44, 26, 14, 0.14);

  --transition:   0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--warm-gray);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ============================================================
   2. TYPOGRAPHY HELPERS
============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--espresso);
  line-height: 1.2;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--warm-gray);
  max-width: 560px;
  margin: 0 auto 3rem;
}


/* ============================================================
   3. LAYOUT UTILITIES
============================================================ */
.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 720px;
}

.section {
  padding: 90px 0;
  text-align: center;
}

.section-tinted {
  background-color: var(--sand);
}


/* ============================================================
   4. BUTTONS
============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-primary {
  background-color: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background-color: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  text-align: center;
}


/* ============================================================
   5. NAVIGATION
============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5%;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--terracotta);
}

.nav-cta {
  background-color: var(--terracotta);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
}
.nav-cta:hover {
  background-color: var(--terracotta-dark) !important;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--espresso);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--cream);
  border-bottom: 2px solid var(--sand);
  padding: 1.5rem 5%;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.mobile-menu a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ============================================================
   6. HERO SECTION
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Replace this element's src in index.html with your hero photo */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Warm dark gradient overlay for readability */
  background: linear-gradient(
    to bottom,
    rgba(44, 26, 14, 0.45) 0%,
    rgba(44, 26, 14, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 1.5rem;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(44,26,14,0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin: 0 auto 1.8rem;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   7. VIDEO TOUR
============================================================ */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 9 / 16;
  height: auto;
  background: transparent;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-fullscreen-trigger {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: block;
  z-index: 1;
}

.video-fullscreen-trigger:focus {
  outline: none;
}

.video-wrapper.fullscreen-active .video-fullscreen-trigger {
  display: none;
}


/* ============================================================
   8. PHOTO GALLERY
============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--sand);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item--large {
  grid-column: span 1;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 26, 14, 0.72);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem;
  opacity: 1;
  transition: none;
}
.gallery-item:hover figcaption {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 10, 5, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  touch-action: pan-y;
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  margin-top: 1rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(250,247,242,0.12);
  border: 1px solid rgba(250,247,242,0.25);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(196, 113, 74, 0.6);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }


/* ============================================================
   9. AMENITIES
============================================================ */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  text-align: left;
}

.amenity-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.amenity-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.amenity-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.amenity-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 0.4rem;
}

.amenity-card p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* Property Details Table */
.details-table-wrapper {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.details-table-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--espresso);
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--sand);
  background: var(--cream);
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table td {
  padding: 0.9rem 1.5rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--sand);
}

.details-table tr:last-child td {
  border-bottom: none;
}

.details-table td:first-child {
  font-weight: 700;
  color: var(--espresso);
  width: 40%;
}

.details-table td:last-child {
  color: var(--warm-gray);
}

.details-table tr:nth-child(even) {
  background-color: rgba(232, 222, 206, 0.25);
}


/* ============================================================
   10. LOCATION SECTION
============================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
  text-align: left;
}

.map-frame-wrapper {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}

.map-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.location-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--espresso);
}

.location-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-top: 1rem;
}

.location-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.location-list li {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

.location-list strong {
  display: block;
  color: var(--espresso);
  margin-bottom: 0.25rem;
}


/* ============================================================
   11. ENQUIRY FORM
============================================================ */
.enquiry-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--espresso);
  background: var(--cream);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
  margin-top: 0.25rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 113, 74, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0a090;
}

.form-success {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(138, 158, 126, 0.15);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius);
  color: #4a6640;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}
.form-success.visible {
  display: block;
}


/* ============================================================
   11. FOOTER
============================================================ */
.footer {
  background-color: var(--espresso);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 3rem 0 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-contact a:hover {
  color: var(--terracotta);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}


/* ============================================================
   12. ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal (applied via JS) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   13. RESPONSIVE — TABLET (max 900px)
============================================================ */
@media (max-width: 900px) {

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item--large {
    grid-column: span 2;
  }

  .video-wrapper {
    max-width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   14. RESPONSIVE — MOBILE (max 600px)
============================================================ */
@media (max-width: 600px) {

  .section { padding: 60px 0; }

  #video-tour {
    padding: 80px 0;
  }

  .video-wrapper {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item--large {
    grid-column: span 1;
  }

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

  .enquiry-form {
    padding: 1.75rem 1.25rem;
  }

  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
}

.host-note-section {
  padding: 80px 0;
  background: var(--cream);
}

.host-note-section .section-title {
  margin-bottom: 0.75rem;
}

.host-note-section .section-subtitle {
  max-width: 660px;
  margin: 0 auto 2rem;
  color: var(--warm-gray);
}

.host-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--sand);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.host-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(44, 26, 14, 0.12);
}

.host-card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--sand);
}

.host-card-content {
  display: grid;
  gap: 0.35rem;
}

.host-card-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--espresso);
  margin: 0;
}

.host-card-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0;
}

.host-card-stats {
  margin: 0;
  color: var(--warm-gray);
  line-height: 1.5;
}
