/* ==========================================================================
   1. FONTS & ROOT CONFIGURATION
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Allura&display=swap");

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Playfair Display", serif;
  background-color: #d0ccc4;
  color: #8d6d26;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. DYNAMIC HEADER SYSTEM
   ========================================================================== */
header {
  background-color: #dcdbdb;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2000;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
}

/* STATE A: Full Screen Landing (Header Large) */
.header-large {
  height: 100vh;
  justify-content: center;
}

/* Logo container for Large State */
.header-large .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header-large .logo img {
  width: 500px; /* Increased from 300px to 500px for a bold presence */
  max-width: 90vw; /* Ensures it doesn't overflow on smaller laptops */
  height: auto;
  margin: 30px 0;
  display: block;
}
/* STATE B: Compact Sticky Header (Header Small) */
.header-small {
  height: 90px;
  padding: 0 5% !important;
  justify-content: space-between !important;
}

/* Logo container for Small State */
.header-small .logo {
  display: block;
  margin: 0;
}

.header-small .logo img {
  width: 150px !important;
  margin: 0 !important;
}

/* ==========================================================================
     3. VISIBILITY & NAVIGATION (The Logic Fix)
     ========================================================================== */

/* HIDE THESE ONLY ON LANDING */
.header-large #navbar,
.header-large .hero-tagline-sub {
  display: none !important;
}

/* SHOW THESE ONLY ON LANDING */
.header-large .hero-tagline-main,
.header-large .subtitle {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

/* HIDE THESE ONLY ON SCROLL */
.header-small .hero-tagline-main,
.header-small .hero-tagline-sub,
.header-small .subtitle {
  display: none !important;
}

/* SHOW THESE ONLY ON SCROLL */
.header-small #navbar {
  display: flex !important;
}

/* --- Typography & Elements --- */
.header-large .hero-tagline-main h1 {
  font-family: "Allura", cursive;
  font-size: 4.5rem !important;
  font-weight: 400;
  color: #8d6d26;
  margin-bottom: 5px !important;
}

.header-large .hero-tagline-main p {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8d6d26;
}

.header-large .subtitle {
  position: absolute;
  bottom: 30px;
  opacity: 0.8;
  cursor: pointer;
}

#navbar {
  gap: 30px;
}

.navbar a {
  font-family: "Playfair Display", serif;
  color: #8d6d26;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: -3px;
  left: 0;
  background-color: #8d6d26;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}
/* ==========================================================================
      4. CONTENT LAYOUT CONTAINER
      ========================================================================== */

/* This ensures all your main sections land below the 90px sticky header */
section,
[id] {
  scroll-margin-top: 100px;
}

/* Specifically for your Welcome Title to ensure it has breathing room */
.welcome-title {
  padding-top: 2rem; /* Adds a bit of visual separation from the top */
}
.content {
  width: 100%;
  position: relative;
  z-index: 10;
  background-color: #d0ccc4;
  margin-top: 0;
  padding-top: 150px; /* INCREASED: Added extra luxury breathing space below the sticky bar */
  padding-bottom: 4rem;
}

/* This targets your page sections when navigating from menu links */
section,
[id] {
  scroll-margin-top: 150px; /* INCREASED: Forces the scroll anchors to stop 150px away, protecting titles from crop */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Typography styles - SEGMENT TITLES ONLY ARE CENTERED */
h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: #8d6d26;
  text-align: center !important;
  margin-top: 10px;
  margin-bottom: 1.5rem; /* Increased slightly for a clean look */
  font-weight: 700;
  width: 100%;
}

.welcome-title {
  margin-top: 0;
  text-align: center !important;
}

/* Body content text descriptions - ALIGN NATURALLY LEFT */
.catchphrase {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 400;
  color: #8d6d26;
  text-align: left;
  margin: 20px 0 2rem 0;
}

.about-section {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 400;
  color: #8d6d26;
  text-align: left;
  line-height: 1.8;
  margin: 20px 0 3rem 0;
}

.about-content {
  max-width: 650px; /* Tightening this slightly will improve readability */
  margin: 0 auto;
  text-align: center;
}
.subtitle {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #8d6d26;
  margin-top: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.subtitle:hover {
  text-decoration: underline;
}

.header-small .subtitle {
  opacity: 0;
}

/* ==========================================================================
      5. LUXURY CAROUSEL COMPONENT
      ========================================================================== */
.carousel {
  position: relative;
  width: 100%;
  margin: 0 auto 4rem auto;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #baae92;
  z-index: 5;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
}

/* FIXED CAROUSEL HEIGHT: Constrained so title + full image fit on screen together without scrolling */
.carousel-item img {
  width: 100%;
  height: auto;
  max-height: 52vh; /* Perfectly scaled to fit inside the remaining screen view block */
  min-height: 320px; /* Prevents image from looking too flat on wide desktop monitors */
  object-fit: cover;
  display: block;
}

/* ==========================================================================
      6. LUXURY APARTMENT ROW DISPLAY CARDS & THEME BUTTONS
      ========================================================================== */
.apartment-card {
  display: flex;
  flex-direction: row;
  margin: 20px 0 4rem 0;
  border: 1px solid #baae92;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
}

.apartment-image {
  flex: 1.2;
  max-width: 55%;
  position: relative;
  background-color: #baae92;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.apartment-img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

/* Image Navigation Slider Arrows */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 10px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 50%;
  background-color: rgba(204, 204, 188, 0.5);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(204, 204, 188, 0.9);
}

.image-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 10;
}

/* Info Details Block */
.apartment-info {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apartment-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #8d6d26;
  margin-bottom: 12px;
  text-align: left;
}

.apartment-info p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: left;
}

/* Feature Icons Grid */
.apartment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.apartment-icons i {
  font-size: 18px;
  color: #8d6d26;
  margin-right: 5px;
}

/* --- THE MASTER BUTTON OVERHAUL --- */

/* Parent layout containers wrap cleanly */
.apartment-links,
.apartment-location,
.apartment-airbnb,
.booking-link,
.apartment-info div {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

/* Targets clean classes AND fallbacks for Booking strings simultaneously */
.apartment-links a,
.apartment-info .btn-map,
.apartment-info .btn-airbnb,
.apartment-info .btn-phone,
.apartment-info .btn-booking,
.apartment-info a[href*="booking"],
.apartment-info a[href*="airbnb"],
.apartment-info a[href*="google"] {
  font-family: "Playfair Display", serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #8d6d26 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 24px !important;
  border: 1px solid #8d6d26 !important;
  border-radius: 3px !important;
  background-color: transparent !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  cursor: pointer !important;
}

/* Universal Hover State Engines */
.apartment-links a:hover,
.apartment-info .btn-map:hover,
.apartment-info .btn-airbnb:hover,
.apartment-info .btn-phone:hover,
.apartment-info .btn-booking:hover,
.apartment-info a[href*="booking"]:hover,
.apartment-info a[href*="airbnb"]:hover,
.apartment-info a[href*="google"]:hover {
  background-color: rgba(141, 109, 38, 0.1) !important;
  box-shadow: 0 4px 15px rgba(141, 109, 38, 0.15) !important;
  transform: translateY(-1px) !important;
}

/* Alignment fixes for embedded FontAwesome glyph icons inside structural buttons */
.apartment-links a i,
.apartment-info a i {
  font-size: 16px !important;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* ==========================================================================
      7. PREMIUM FOOTER
      ========================================================================== */
.footer {
  text-align: center;
  background-color: #dcdbdb;
  padding: 20px;
  color: #8d6d26;
  border-top: 1px solid #baae92;
}

.footer a {
  color: #8d6d26;
  text-decoration: none;
  margin: 0 10px;
  font-size: 24px;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer a:hover {
  font-size: 28px;
}

.footer .phone {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.footer .phone i {
  margin-right: 10px;
  font-size: 24px;
}

.footer .phone p {
  font-size: 14px;
  margin: 0;
}

.footer p {
  font-size: 16px;
  margin-top: 10px;
}

/* ==========================================================================
   8. StAR System
   ========================================================================== */
.rating-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 10px 0;
}

.stars {
  display: inline-block;
  position: relative;
  font-size: 16px;
  letter-spacing: 1px;
}

.stars::before {
  content: "â˜…â˜…â˜…â˜…â˜…";
  color: #a3a19d;
}

.stars::after {
  position: absolute;
  top: 0;
  left: 0;
  content: "â˜…â˜…â˜…â˜…â˜…";
  color: #8d6d26;
  overflow: hidden;
  height: 100%;
}

/* DYNAMIC FILLER: This calculates the width based on your data-star attribute */
.stars[data-star="5"]::after {
  width: 100%;
}
.stars[data-star="4.92"]::after {
  width: 90%;
}
.stars[data-star="4.93"]::after {
  width: 93%;
}

/* Target the calendar container using the new custom class */
.my-custom-calendar .ui-datepicker {
  background-color: #f2efe9 !important;
  border: 2px solid #8d6d26 !important;
}

/* Style the available dates */
.my-custom-calendar .mphb-available-date a {
  background-color: #ffffff !important;
  color: #554d3d !important;
}

/* Style the unavailable dates */
.my-custom-calendar .mphb-unavailable-date,
.my-custom-calendar .mphb-unavailable-date a {
  background-color: #dcd8d0 !important;
  color: #a09d97 !important;
  text-decoration: line-through !important;
}

/* Highlight today's date */
.my-custom-calendar .mphb-selectable-date.datepick-today a {
  border: 2px solid #8d6d26 !important;
  background-color: #eaddc0 !important;
  font-weight: bold !important;
}

/* Header background */
.my-custom-calendar .ui-datepicker-header {
  background-color: #8d6d26 !important;
  color: #ffffff !important;
  border: none !important;
}

/* Update the modal content positioning */
.calendar-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Positioning logic */
.modal-content {
  background-color: #f2efe9;
  /* Use flexbox to center content perfectly */
  margin: 10% auto;
  padding: 20px;
  width: fit-content; /* Shrinks box to match calendar size */
  min-width: 400px; /* Ensures it doesn't get too small */
  position: relative;
  border: 2px solid #8d6d26;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mobile-specific adjustment for iPhone */
@media (max-width: 600px) {
  .modal-content {
    /* Move it further down on small screens */
    margin-top: 50% !important;
  }
}
/* ==========================================================================
      8. MEDIA ENGINE (PC, TABLETS & PORTRAIT PHONES)
      ========================================================================== */
@media (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }

  .apartment-card {
    flex-direction: column;
  }

  .apartment-image {
    max-width: 100%;
  }

  .apartment-img {
    min-height: 380px;
  }

  .apartment-info {
    padding: 2rem;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  html {
    font-size: 14px;
  }

  .header-large .logo img {
    max-width: 95vw;
    max-height: 90%;
    height: auto;
  }

  .header-large .subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: #8d6d26;
    text-align: center !important;
  }

  .header-small {
    height: auto !important;
    padding: 15px 10px !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .header-small .logo img {
    max-width: 140px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
  }

  .header-small .navbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
  }

  .navbar a {
    font-size: 1rem !important;
    margin: 5px 0;
  }

  .apartment-card {
    flex-direction: column;
  }

  .apartment-image {
    max-width: 100%;
  }

  .apartment-info {
    padding: 20px 15px;
  }

  /* Optimized full-width flex layout for phone click fields */
  .apartment-links {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .apartment-links a,
  .apartment-info .btn-map,
  .apartment-info .btn-airbnb,
  .apartment-info .btn-phone,
  .apartment-info .btn-booking,
  .apartment-info a[href*="booking"],
  .apartment-info a[href*="airbnb"],
  .apartment-info a[href*="google"] {
    display: flex !important;
    width: 100% !important;
  }

  .content {
    margin-top: 0 !important;
    padding-top: 180px !important; /* INCREASED FOR MOBILE: Prevents mobile header stacking from clipping content */
    padding-left: 10px;
    padding-right: 10px;
  }

  .carousel-item img {
    max-height: 45vh !important;
    min-height: 220px !important;
  }

  section,
  [id] {
    scroll-margin-top: 190px; /* INCREASED FOR MOBILE: Gives anchors extra breathing space */
  }

  h1 {
    font-size: 2rem !important;
    text-align: center !important;
  }

  .catchphrase,
  .about-section {
    text-align: left !important;
  }
}

.modal-content {
  /* Move it further down on small screens */
  margin-top: 30% !important;

  hero-tagline-main h1 {
    font-size: 3rem !important;
  }
  .hero-tagline-sub {
    font-size: 0.85rem;
    padding: 0 20px;
  }
}
/* 1. Force the dropdown to appear below (downwards) */
.gtranslate_wrapper .gt_selector {
  display: block !important;
}

/* 2. Shrink the widget size */
.gtranslate_wrapper {
  transform: scale(0.85); /* Scales the whole widget down by 15% */
  transform-origin: top right; /* Keeps it aligned correctly */
  margin: 0;
  padding: 0;
}

/* 3. Style the dropdown box to look compact and premium */
.gtranslate_wrapper select {
  font-size: 12px !important; /* Smaller text */
  padding: 2px 5px !important;
  background-color: #dcdbdb !important; /* Matches your header color */
  border: 1px solid #8d6d26 !important;
  color: #8d6d26 !important;
  border-radius: 3px !important;
  cursor: pointer;
}