/*=======================================================================
 Custom BnB — Public Website Styles
 Inspired by Acalion Real Estate design patterns
=========================================================================*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-default: 'Roboto', system-ui, sans-serif;
  --font-heading: 'Work Sans', sans-serif;
  --color-primary: #00c194;
  --color-primary-dark: #00a376;
  --color-secondary: #364d59;
  --color-accent: #f5a623;
  --color-text: #70778b;
  --color-heading: #212121;
  --color-bg: #f5f6f7;
  --color-white: #ffffff;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-default);
  color: var(--color-secondary);
  background: #fff;
  overflow-x: hidden;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 600;
}

img { max-width: 100%; }

/* The header is fixed, so non-hero pages need top padding.
   Hero pages handle this via height:100vh.
   We add a CSS custom-prop so it's easy to override per-page. */
body {
  --header-height: 90px; /* approx: topbar 37px + nav row 53px */
  padding-top: var(--header-height);
}

/* Hero and inner pages with .page-header: transparent nav overlays the section */
body:has(#hero),
body:has(.page-header) { padding-top: 0; }

section { padding: 80px 0; overflow: hidden; }
.section-bg { background-color: var(--color-bg); }

/*=== Scroll Top Button ===*/
.scroll-top {
  position: fixed; visibility: hidden; opacity: 0;
  right: 20px; bottom: 20px; z-index: 9999;
  background: var(--color-primary); width: 44px; height: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all 0.4s; color: white; font-size: 22px;
}
.scroll-top.active { visibility: visible; opacity: 1; }
.scroll-top:hover { background: var(--color-primary-dark); color: white; }

/*=== Preloader ===*/
#preloader {
  position: fixed; inset: 0; z-index: 999999; background: #fff;
  transition: all 0.6s ease-out; display: flex; align-items: center; justify-content: center;
}
#preloader::before {
  content: ""; width: 50px; height: 50px; border: 5px solid #eee;
  border-top-color: var(--color-primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/*=======================================================================
 HEADER
=========================================================================*/
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 997;
  background: transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Scrolled state — solid white, deeper shadow */
#header.sticked {
  background: #ffffff;
  box-shadow: 0 2px 28px rgba(0,0,0,0.13);
}

/* Non-hero pages — transparent dark (readable over .page-header dark bg) */
#header.header-solid {
  background: transparent;
}

/* Topbar */
.header-topbar {
  background: rgba(0,0,0,0.2); padding: 8px 0;
  font-size: 13px; color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden; max-height: 60px;
}
#header.sticked .header-topbar {
  max-height: 0; opacity: 0; padding: 0;
  pointer-events: none;
}
.topbar-info { display: flex; gap: 24px; align-items: center; }
.topbar-info span { display: flex; align-items: center; gap: 6px; }
.topbar-social a { color: rgba(255,255,255,0.7); margin-left: 12px; transition: color 0.3s; }
.topbar-social a:hover { color: var(--color-primary); }

/* Navbar row — taller height */
.header-nav-row {
  padding: 20px 0;  /* increased from 14px */
  transition: padding 0.3s ease;
}
#header.sticked .header-nav-row { padding: 14px 0; }

/* Logo — white by default, dark when scrolled */
.header-logo {
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  color: white; display: flex; align-items: center; gap: 8px; line-height: 1;
  transition: color 0.3s;
}
.header-logo span { color: var(--color-primary); }
.header-logo:hover { color: white; }
#header.sticked .header-logo,
#header.header-on-light .header-logo { color: var(--color-heading); }
#header.sticked .header-logo:hover,
#header.header-on-light .header-logo:hover { color: var(--color-primary); }

/* Mobile toggle — white by default, dark when scrolled or on light bg */
.header-menu-toggle { color: white !important; transition: color 0.3s; }
#header.sticked .header-menu-toggle,
#header.header-on-light .header-menu-toggle { color: var(--color-heading) !important; }

/* Navbar links — white by default, dark when scrolled or on light bg */
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav .nav-link {
  color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 14px;
  border-radius: 6px; transition: all 0.3s;
}
.header-nav .nav-link:hover { color: var(--color-primary); background: rgba(0,193,148,0.1); }
.header-nav .nav-link.active { color: var(--color-primary); }

/* Scrolled OR on-light → dark text */
#header.sticked .header-nav .nav-link,
#header.header-on-light .header-nav .nav-link { color: var(--color-heading); }
#header.sticked .header-nav .nav-link:hover,
#header.sticked .header-nav .nav-link.active,
#header.header-on-light .header-nav .nav-link:hover,
#header.header-on-light .header-nav .nav-link.active { color: var(--color-primary); background: rgba(0,193,148,0.08); }

/* Book Now button */
.btn-book-now {
  background: var(--color-primary); color: white !important;
  padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: all 0.3s; border: 2px solid var(--color-primary);
}
.btn-book-now:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: white; }

/*=======================================================================
 HERO SECTION
=========================================================================*/
#hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; overflow: hidden;
}

.hero-carousel {
  position: absolute; inset: 0; z-index: 0;
}
.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }

.hero-carousel .carousel-item {
  background-size: cover; background-position: center;
}
.hero-carousel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2; color: white; text-align: center;
}
.hero-pretitle {
  font-size: 14px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 3px; color: var(--color-primary); margin-bottom: 16px;
  display: block;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px); font-weight: 700; color: white;
  line-height: 1.15; margin-bottom: 20px;
}
.hero-title span { color: var(--color-primary); }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }

/* Hero Search Box */
.hero-search-box {
  background: white; border-radius: 12px; padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-width: 860px; margin: 0 auto;
}
.hero-search-box label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text); }
.hero-search-box .form-control, .hero-search-box .form-select {
  border: 1px solid #e8ecf0; border-radius: 8px; padding: 10px 14px;
  font-size: 15px; color: var(--color-heading);
}
.hero-search-box .form-control:focus, .hero-search-box .form-select:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,193,148,0.1);
}
.btn-search {
  background: var(--color-primary); color: white; border: none;
  padding: 11px 28px; border-radius: 8px; font-size: 15px; font-weight: 600;
  width: 100%; transition: all 0.3s; cursor: pointer;
}
.btn-search:hover { background: var(--color-primary-dark); }

/*=======================================================================
 SECTION TITLE (acalion style)
=========================================================================*/
.section-title-wrapper { position: relative; margin-bottom: 40px; }
.section-title-wrapper .title-inner { position: relative; z-index: 2; }
.section-title-wrapper .bg-watermark {
  position: absolute; top: -15px; left: 0; right: 0;
  font-size: 90px; font-weight: 900; line-height: 1; color: rgba(0,193,148,0.06);
  pointer-events: none; white-space: nowrap; overflow: hidden; z-index: 1;
  text-transform: uppercase; letter-spacing: -2px;
}
.section-pretitle {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: var(--color-primary); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.section-pretitle::before {
  content: ''; width: 20px; height: 2px; background: var(--color-primary); display: block;
}
.section-title-wrapper .main-title {
  font-size: clamp(24px, 4vw, 36px); font-weight: 700; color: var(--color-heading);
  line-height: 1.2; margin-bottom: 12px;
}

/*=======================================================================
 UNIT / PROPERTY CARDS
=========================================================================*/
.unit-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s;
  height: 100%; display: flex; flex-direction: column;
}
.unit-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.unit-card-image { position: relative; overflow: hidden; height: 220px; }
.unit-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.unit-card:hover .unit-card-image img { transform: scale(1.06); }
.unit-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--color-primary); color: white;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.unit-card-price {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,0.75); color: white; border-radius: 8px;
  padding: 6px 14px; font-size: 16px; font-weight: 700; backdrop-filter: blur(4px);
}
.unit-card-price span { font-size: 12px; font-weight: 400; opacity: 0.8; }
.unit-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.unit-card-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.unit-card-title a { color: var(--color-heading); }
.unit-card-title a:hover { color: var(--color-primary); }
.unit-card-location { font-size: 13px; color: var(--color-text); margin-bottom: 14px; }
.unit-card-location i { color: var(--color-primary); }
.unit-card-features {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid #f0f0f0; margin-top: auto;
}
.unit-card-feature { font-size: 13px; color: var(--color-text); display: flex; align-items: center; gap: 5px; }
.unit-card-feature i { color: var(--color-primary); }
.unit-card-footer { padding: 16px 20px 20px; }

/*=======================================================================
 FILTER BAR
=========================================================================*/
.filter-bar {
  background: white; border-radius: 12px; padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 32px;
}
.filter-bar .form-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text); margin-bottom: 6px; }
.filter-bar .form-control, .filter-bar .form-select {
  border: 1px solid #e8ecf0; border-radius: 8px; font-size: 14px;
}
.filter-bar .form-control:focus, .filter-bar .form-select:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,193,148,0.1);
}
.btn-filter {
  background: var(--color-primary); color: white; border: none;
  padding: 10px 24px; border-radius: 8px; font-weight: 600; transition: all 0.3s;
}
.btn-filter:hover { background: var(--color-primary-dark); }

/*=======================================================================
 UNIT DETAIL PAGE
=========================================================================*/
.gallery-main img { width: 100%; border-radius: 12px; height: 420px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 90px; height: 70px; object-fit: cover; border-radius: 8px;
  cursor: pointer; opacity: 0.7; transition: all 0.3s; border: 2px solid transparent;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; border-color: var(--color-primary); }

.unit-specs { display: flex; gap: 24px; flex-wrap: wrap; margin: 20px 0; }
.spec-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-bg); border-radius: 10px; padding: 12px 18px;
}
.spec-item i { font-size: 22px; color: var(--color-primary); }
.spec-item strong { display: block; font-size: 16px; font-weight: 700; color: var(--color-heading); }
.spec-item small { font-size: 12px; color: var(--color-text); }

.amenity-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-bg); border-radius: 20px; padding: 6px 14px;
  font-size: 13px; color: var(--color-heading); margin: 4px;
  border: 1px solid #e8ecf0;
}

/* Pricing Widget */
.price-widget {
  background: white; border-radius: 16px; padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12); position: sticky; top: 90px;
}
.price-widget .price-main { font-size: 32px; font-weight: 700; color: var(--color-heading); }
.price-widget .price-main span { font-size: 16px; font-weight: 400; color: var(--color-text); }
.price-widget .form-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text); }
.price-widget .form-control {
  border: 1.5px solid #e8ecf0; border-radius: 8px; padding: 10px 14px;
  font-size: 15px;
}
.price-widget .form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,193,148,0.1); }
.price-breakdown { border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
.price-breakdown .row { font-size: 14px; padding: 4px 0; color: var(--color-text); }
.price-breakdown .total-row { font-size: 16px; font-weight: 700; color: var(--color-heading); border-top: 2px solid #e8ecf0; padding-top: 10px; margin-top: 6px; }
.btn-book {
  background: var(--color-primary); color: white; border: none;
  padding: 14px; border-radius: 10px; font-size: 16px; font-weight: 700;
  width: 100%; transition: all 0.3s; margin-top: 16px; cursor: pointer;
}
.btn-book:hover { background: var(--color-primary-dark); }

/*=======================================================================
 PAGE HEADER (inner pages: listings, unit detail, etc.)
=========================================================================*/
.page-header {
  background: #ffffff;
  border-bottom: 2px solid #e8ecf0;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}

/* Subtle accent line on the left of the page-header */
.page-header::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--color-primary);
}

.page-header-breadcrumb {
  margin-bottom: 12px;
}
.page-header-breadcrumb .breadcrumb-item a {
  color: var(--color-primary);
  font-size: 13px;
}
.page-header-breadcrumb .breadcrumb-item.active,
.page-header-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--color-secondary);
  font-size: 13px;
}

.page-header-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 6px;
  line-height: 1.2;
}
.page-header-title span { color: var(--color-primary); }

.page-header-sub {
  color: var(--color-secondary);
  font-size: 14px;
  margin: 0;
}

.page-header-count {
  background: rgba(0,193,148,0.1);
  border: 1px solid rgba(0,193,148,0.25);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  white-space: nowrap;
  align-self: flex-end;
}

/*=======================================================================
 BOOKING CONFIRMATION
=========================================================================*/
.booking-ref-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white; padding: 30px 40px; border-radius: 16px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,193,148,0.3);
}
.booking-ref-badge .ref-number {
  font-size: 36px; font-weight: 800; letter-spacing: 4px; font-family: monospace;
}
.booking-ref-badge p { font-size: 14px; opacity: 0.85; margin: 0; }

/*=======================================================================
 WHY CHOOSE US
=========================================================================*/
.why-card {
  background: white; border-radius: 14px; padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07); height: 100%; transition: all 0.3s;
  border-top: 3px solid transparent;
}
.why-card:hover { border-top-color: var(--color-primary); transform: translateY(-4px); }
.why-icon {
  width: 60px; height: 60px; background: rgba(0,193,148,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--color-primary); margin-bottom: 18px;
}

/*=======================================================================
 CALLOUT BANNER
=========================================================================*/
.callout-section {
  background: linear-gradient(135deg, #00443a 0%, #006b58 100%);
  padding: 80px 0; color: white; position: relative; overflow: hidden;
}
.callout-section::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; background: rgba(0,193,148,0.12);
  border-radius: 50%; transform: scale(2);
}

/*=======================================================================
 FOOTER
=========================================================================*/
.site-footer { background: #0b2a22; color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-brand { color: white; font-size: 22px; font-weight: 700; font-family: var(--font-heading); }
.footer-brand span { color: var(--color-primary); }
.site-footer p { font-size: 14px; line-height: 1.8; margin-top: 14px; }
.site-footer h5 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--color-primary); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%;
  color: rgba(255,255,255,0.7); margin-right: 8px; transition: all 0.3s;
}
.footer-social a:hover { background: var(--color-primary); color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0; margin-top: 40px; font-size: 13px; color: rgba(255,255,255,0.5);
}

/*=======================================================================
 RESPONSIVE
=========================================================================*/
@media (max-width: 768px) {
  #hero { height: 100svh; }
  .hero-search-box { padding: 20px; border-radius: 10px; }
  .gallery-main img { height: 250px; }
  section { padding: 50px 0; }
  .unit-specs { gap: 12px; }
  .spec-item { padding: 10px 14px; }
}
