/* ==========================================================================
   CSS Reset & Variables
   ========================================================================== */
   
:root {
  /* Colors */
  --bg-cream: #F5EFEB;
  --bg-white: #FFFFFF;
  --text-dark: #1F2933;
  --text-muted: #5E6D7B;
  
  --tl-light: #51C5D4;
  --tl-main: #3CBCCB;
  --tl-dark: #1E6B7A;
  
  --coral-accent: #ECA38A; 

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

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

html {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

input, select, textarea, button {
  font-family: inherit;
  outline: none;
}

img {
  max-width: 100%;
  border-radius: var(--border-radius);
  display: block;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-book {
  background-color: var(--tl-dark);
  color: var(--bg-white);
  position: relative;
  overflow: visible;
  padding: 10px 20px;
  border-radius: 20px;
}

.btn-book:hover {
  background-color: #154D59;
}

.btn-book .badge {
  position: absolute;
  top: -12px;
  right: -15px;
  background-color: var(--tl-light);
  color: var(--bg-white);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.btn-search {
  background-color: #EFDBC3; /* Sand color */
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 30px;
  padding: 12px 30px;
}

.btn-search:hover {
  background-color: #E6CFA9;
}

.btn-whatsapp {
  background-color: var(--tl-dark);
  color: var(--bg-white);
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  gap: 8px;
}

.btn-whatsapp:hover {
  background-color: #154D59;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-white);
  padding: 15px 0;
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.main-nav a.active {
  color: var(--tl-main);
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section & Booking Widget
   ========================================================================== */

.hero-section {
  padding-top: 70px; /* Offset for header */
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-image-wrapper {
  position: relative;
  height: 500px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-top: 20px;
}

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

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.2);
  color: var(--bg-white);
  text-align: center;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.booking-widget-wrapper {
  position: relative;
  margin-top: -40px;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.booking-widget {
  background: var(--bg-white);
  padding: 12px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  border: 4px solid #DFCEB7;
  gap: 15px;
}

.widget-field {
  padding: 0 15px;
  display: flex;
  flex-direction: column;
}

.widget-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.widget-field input, .widget-field select {
  border: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  width: 110px;
}

.widget-divider {
  width: 1px;
  height: 40px;
  background-color: #E2E8F0;
}

/* ==========================================================================
   Amenities Section
   ========================================================================== */

.amenities-section {
  position: relative;
  padding: 60px 0;
  margin-top: 20px;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden; /* Added to prevent wave overflow */
}

.amenities-bg-graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  border-radius: 40px;
}

/* Abstract waves mimicking the design */
.wave-sand {
  position: absolute;
  top: 0; left: -10%;
  width: 120%; height: 100%;
  background-color: #EEDEC8;
  border-radius: 40px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 75% 100%, 25% 60%, 0 90%);
}

.wave-teal {
  position: absolute;
  bottom: 0; right: 0;
  width: 60%; height: 80%;
  background-color: var(--tl-main);
  border-radius: 0 0 40px 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 20% 40%);
}

.wave-dark-teal {
  position: absolute;
  bottom: 0; right: 0;
  width: 30%; height: 80%;
  background-color: #2F9FB3;
  border-radius: 0 0 40px 0;
}

.amenities-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 40px 24px;
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}

.amenity-icon-wrapper {
  width: 60px;
  height: 60px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: var(--tl-dark);
  position: relative;
}

.amenity-item:nth-child(n+3) .amenity-icon-wrapper,
.amenity-item:nth-child(n+3) span {
  color: var(--bg-white);
}

.ac-lines {
  position: absolute;
  bottom: 5px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.amenity-item span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ==========================================================================
   Numbers Section
   ========================================================================== */

.numbers-section {
  padding: 80px 24px;
  text-align: center;
}

.numbers-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 40px;
}

.number-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.num-val {
  font-family: var(--font-sans);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--tl-dark);
  line-height: 1;
  margin-bottom: 5px;
}

.num-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ==========================================================================
   Gallery Carousel
   ========================================================================== */

.gallery-carousel-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
}

.gallery-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
}

.gallery-card {
  flex: 1;
}

.gallery-card .img-wrapper {
  height: 350px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 15px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-caption {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.nav-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.nav-arrow.left { left: 5px; }
.nav-arrow.right { right: 5px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #D1D5DB;
  transition: all 0.3s;
}

.dot.active {
  background-color: var(--tl-dark);
}

/* ==========================================================================
   Split Details Section
   ========================================================================== */

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

.details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.section-title {
  text-align: left;
  font-size: 1.8rem;
}

/* Left components */
.attractions-block {
  margin-bottom: 40px;
}

.map-container {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  height: 300px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--tl-dark);
  font-weight: 600;
  font-size: 0.8rem;
}

.map-pin i {
  background: var(--tl-main);
  color: var(--bg-white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.accordions-block {
  margin-top: 30px;
}

.accordion-item {
  border-bottom: 1px solid #E2E8F0;
  padding: 20px 0;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

/* Calendar Block */
.pricing-calendar-block, .pricing-multi-block {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.pricing-tabs {
  display: flex;
  background: #F1F5F9;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  width: fit-content;
}

.pricing-tabs button {
  padding: 8px 24px;
  border: none;
  background: transparent;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.pricing-tabs button.active {
  background: var(--tl-main);
  color: var(--bg-white);
  border-radius: 20px;
}

.calendar-wrapper {
  font-size: 0.85rem;
}

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  width: 100%;
}

.cal-cell {
  background: #F8FAFC;
  padding: 8px 2px;
  border-radius: 8px;
  min-height: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
}

.cal-cell.empty { background: transparent; }

.cal-cell.booked {
  color: var(--bg-white);
}

.cal-cell.booked.low {
  background-color: var(--tl-light);
}

.cal-cell.booked.high {
  background-color: var(--tl-dark);
}

.cal-cell small {
  font-size: 0.6rem;
  opacity: 0.9;
}

.cal-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.cal-legend .dot {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.dot.low { background-color: var(--tl-light); }
.dot.high { background-color: var(--tl-dark); }

/* Multi-month Block */
.pricing-multi-block {
  margin-top: 20px;
}

.month-selection {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.85rem;
}

.m-select {
  background: #F8FAFC;
  padding: 8px 2px;
  border-radius: 6px;
  font-weight: 500;
}

.m-select.booked.low {
  background-color: var(--tl-light);
  color: var(--bg-white);
}
.m-select.booked.high {
  background-color: var(--tl-dark);
  color: var(--bg-white);
}

.m-select small { font-size: 0.6rem; display: block; }

/* Reviews */
.reviews-list {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.review-item {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.reviewer-header {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.r-img {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.r-stars {
  color: #FBBF24;
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.review-item p {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.r-author {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

/* Contact Form */
.contact-widget {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}

.contact-box .form-group {
  margin-bottom: 15px;
}

.contact-box input, .contact-box select, .contact-box textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.row-group {
  display: flex;
  gap: 15px;
}

.input-with-icon {
  position: relative;
  flex: 1;
}

.input-with-icon i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.select-wrapper {
  flex: 1;
}

.urgency-text {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-white);
  padding: 60px 24px 40px;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 1.8rem;
}

.footer-links {
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

.social-icons-only {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
  margin-left: 20px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .details-container {
    grid-template-columns: 1fr;
  }
  
  .hide-mobile, .hidden-mobile {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .booking-widget {
    flex-direction: column;
    border-radius: 24px;
    padding: 20px;
    width: 100%;
    margin: 0 auto;
    gap: 10px;
  }
  
  .numbers-grid {
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .amenities-container {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .amenity-item {
    width: 45%;
  }
  
  .amenities-bg-graphic {
    display: none; /* Fallback for mobile */
  }
  .amenities-section {
    background-color: var(--tl-main);
    color: var(--bg-white);
    border-radius: var(--border-radius-lg);
  }
  
  .amenity-item span {
    color: var(--bg-white) !important;
  }
  
  .amenity-icon-wrapper {
    color: var(--bg-white) !important;
  }
  
  .reviews-list {
    flex-direction: column;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow-sm);
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .widget-field {
    width: 100%;
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .widget-field:last-of-type {
    border-bottom: none;
  }
  
  .widget-field input, .widget-field select {
    width: 100%;
    text-align: center;
  }
  
  .widget-divider {
    display: none;
  }

  .main-nav {
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Subpages Global Additions
   ========================================================================== */

.row-group {
  display: flex;
  gap: 15px;
}

@media (max-width: 576px) {
  .row-group {
    flex-direction: column;
    gap: 0;
  }
  
  .details-container {
    grid-template-columns: 1fr !important;
  }
}

.accordions-block .accordion-item h4 {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordions-block .accordion-item h4::after {
  content: '\f107'; /* FontAwesome down arrow */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--tl-main);
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
}

.cookie-banner-overlay.show {
  transform: translateY(0);
}

.cookie-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text {
  flex: 1 1 500px;
}

.cookie-text h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--tl-main);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-cookie-accept {
  background: var(--tl-main);
  color: var(--bg-white);
}

.btn-cookie-accept:hover, .btn-cookie-accept:focus-visible {
  background: var(--tl-dark);
}

.btn-cookie-deny {
  background: transparent;
  color: var(--text-dark);
  border-color: #E2E8F0;
}

.btn-cookie-deny:hover, .btn-cookie-deny:focus-visible {
  background: #f8f9fa;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem !important;
    padding: 0 15px;
  }
  
  .booking-widget-wrapper {
    padding: 0 15px;
    margin-top: -60px;
    width: 100%;
  }

  .booking-widget {
    padding: 15px;
    gap: 8px;
    width: 100%;
  }
  
  .num-val {
    font-size: 2.8rem;
  }

  .numbers-grid {
    gap: 15px;
    padding: 0 10px;
  }
  
  .section-title {
    font-size: 1.4rem;
    padding: 0 10px;
  }
  
  .amenity-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .details-section, .amenities-section, .gallery-carousel-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Calendar Mobile Optimization */
  .cal-cell {
    min-height: 40px;
    font-size: 0.7rem;
    padding: 5px 2px;
  }
  
  .cal-cell small {
    font-size: 0.5rem;
  }
  
  .cal-cell.booked b {
    font-size: 0.65rem;
  }

  .cal-days-header {
    font-size: 0.7rem;
    gap: 2px;
  }

  .pricing-multi-block {
     padding: 15px;
  }
}