/**
 * Main Stylesheet
 * Branson Lakes Lodging - Customer Website
 *
 * Colors are defined in :root via PHP in header.php
 */

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-secondary);
}

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

/* ============================================
   LAYOUT
   ============================================ */

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

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

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.85rem;
    margin-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--color-gray);
    font-size: 1.125rem;
    margin: 0;
}

.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.bg-light {
    background-color: var(--color-light);
}

.text-center { text-align: center; }
.text-muted { color: var(--color-gray); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: white;
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    filter: brightness(1.1);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--color-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Non-hero pages: push content below fixed header */
body.has-fixed-nav {
    padding-top: 80px;
}

/* Transparent navbar when overlaid on hero */
.site-header--hero {
    background: transparent;
    box-shadow: none;
}

.site-header--hero .navbar-brand .site-name {
    color: white;
}

.site-header--hero .nav-link {
    color: rgba(255,255,255,0.9);
}

.site-header--hero .nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.15);
}

.site-header--hero .hamburger,
.site-header--hero .hamburger::before,
.site-header--hero .hamburger::after {
    background: white;
}

/* Scrolled state: solid white regardless of page type */
.site-header--scrolled {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.site-header--scrolled .navbar-brand .site-name {
    color: var(--color-primary);
}

.site-header--scrolled .nav-link {
    color: var(--color-text);
}

.site-header--scrolled .nav-link:hover {
    color: var(--color-primary);
    background-color: var(--color-light);
}

.site-header--scrolled .hamburger,
.site-header--scrolled .hamburger::before,
.site-header--scrolled .hamburger::after {
    background: var(--color-text);
}

.navbar {
    padding: 1rem 0;
    transition: padding 0.4s ease;
}

/* Generous padding on hero so the large logo breathes */
.site-header--hero .navbar {
    padding: 1.5rem 0;
}

/* Compact on scroll */
.site-header--scrolled .navbar {
    padding: 0.5rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* Default logo — solid white nav on interior pages */
.navbar-brand .logo {
    height: 64px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    transition: height 0.4s ease, max-width 0.4s ease, filter 0.4s ease;
}

/* PROMINENT: large logo floating over the hero image */
.site-header--hero .navbar-brand .logo {
    height: 130px;
    max-width: 300px;
    filter: drop-shadow(0 3px 14px rgba(0,0,0,0.55));
}

/* Shrink + lose shadow once scrolled */
.site-header--scrolled .navbar-brand .logo {
    height: 52px;
    max-width: 180px;
    filter: none;
}

/* Text-only fallback (no logo image) */
.navbar-brand .site-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: font-size 0.4s ease;
}

.site-header--hero .navbar-brand .site-name {
    font-size: 2.25rem;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.site-header--scrolled .navbar-brand .site-name {
    font-size: 1.4rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: var(--color-light);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ── Desktop CTA cluster (phone + buttons) ────────────────────────────────── */
.navbar-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Mobile logo sizing */
@media (max-width: 991px) {
    .navbar-brand .logo {
        height: 44px;
        max-width: 160px;
    }

    .site-header--hero .navbar-brand .logo {
        height: 56px;
        max-width: 200px;
    }

    .site-header--scrolled .navbar-brand .logo {
        height: 40px;
        max-width: 140px;
    }
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    .navbar-cta {
        width: 100%;
        margin-top: 1rem;
    }

    .navbar-cta .btn {
        width: 100%;
    }

    .navbar-phone {
        display: block;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* ── Navbar phone number ──────────────────────────────────────────────────── */
.navbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-primary);
    transition: opacity 0.2s;
}

.navbar-phone:hover { opacity: 0.75; }

.site-header--hero:not(.site-header--scrolled) .navbar-phone {
    color: white;
}

/* ── Contact Us outline button ────────────────────────────────────────────── */
.btn-outline-nav {
    background: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-outline-nav:hover {
    background: var(--color-primary);
    color: white;
}

.site-header--hero:not(.site-header--scrolled) .btn-outline-nav {
    border-color: rgba(255,255,255,0.75);
    color: white;
}

.site-header--hero:not(.site-header--scrolled) .btn-outline-nav:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

.site-header--scrolled .btn-outline-nav {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.site-header--scrolled .btn-outline-nav:hover {
    background: var(--color-primary);
    color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.50) 0%,
        rgba(0,0,0,0.22) 45%,
        rgba(0,0,0,0.50) 100%
    );
}

/* ── Hero Media Layer ─────────────────────────────────────── */
.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Carousel slides — crossfade */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

/* Video backgrounds */
.hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
}

/* YouTube / Vimeo iframes and <video> — fill the hero while preserving
   aspect ratio by using the larger of 100% width or 177.78vh height */
.hero-video-iframe,
.hero-video-elem {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.78vh);
    height: max(100%, 56.25vw);
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

/* Carousel navigation dots */
.hero-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.hero-dot.active,
.hero-dot:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.25);
}

/* Title / subtitle zone — centered vertically in remaining space */
.hero-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.45);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0;
    opacity: 0.92;
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* Search bar zone — pinned to bottom of hero */
.hero-search-wrap {
    position: relative;
    z-index: 2;
    padding: 0 0 2.5rem;
}

/* Hero Search — dark frosted glass */
.hero-search {
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Override search field labels + inputs for dark glass */
.hero-search .search-field label {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search .search-field label i {
    color: var(--color-accent);
}

.hero-search .search-field select,
.hero-search .search-field input[type="text"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: white;
}

.hero-search .search-field select:focus,
.hero-search .search-field input[type="text"]:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.hero-search .search-field select option {
    background: #1a202c;
    color: white;
}

.hero-search .search-field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search .daterange-sep {
    color: rgba(255, 255, 255, 0.6);
}

.search-fields {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Row 2: budget + keyword + search button all inline */
.search-bottom {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.search-bottom .search-field {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.search-bottom .search-keyword {
    flex: 2;
}

.search-bottom .btn-search {
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-end;
    margin: 0;
    width: auto;
}

/* Keyword field spans full width when inside the grid */
.search-fields .search-keyword {
    grid-column: 1 / -1;
}

.search-field label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    margin-bottom: 0.3rem;
}

.search-field label i {
    margin-right: 0.2rem;
    color: var(--color-primary);
    font-size: 0.75rem;
}

.search-field select,
.search-field input[type="date"],
.search-field input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 6px;
    font-size: 0.9375rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.2s;
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Date range picker wrapper (used in both hero search and smart search) */
.daterange-inputs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.daterange-inputs input {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.daterange-sep {
    color: var(--color-gray);
    font-size: 0.75rem;
    flex-shrink: 0;
}
/* Smart search variant */
.smart-field .daterange-inputs input {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    font-size: 0.9375rem;
    color: var(--color-text);
    width: 100%;
    cursor: pointer;
}
.smart-field .daterange-inputs input::placeholder {
    color: #9ca3af;
}

/* Litepicker theme overrides */
.litepicker {
    font-family: inherit;
    z-index: 9999;
}
.litepicker .container__days .day.is-start-date,
.litepicker .container__days .day.is-end-date {
    background-color: var(--color-primary);
    color: #fff;
}
.litepicker .container__days .day.is-in-range {
    background-color: rgba(59, 130, 246, 0.12);
}
.litepicker .container__days .day:hover {
    background-color: var(--color-primary);
    color: #fff;
}
.litepicker .container__tooltip {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-search {
    width: 100%;
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .search-fields {
        grid-template-columns: 1fr 1fr;
    }
    .search-fields .search-keyword {
        grid-column: 1 / -1;
    }
    .search-field--daterange {
        grid-column: 1 / -1;
    }
    .search-bottom {
        flex-wrap: wrap;
    }
    .search-bottom .search-keyword {
        flex: 1 1 60%;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 560px;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: 0.04em;
    }

    .hero-body {
        padding: 5.5rem 0 1.5rem;
    }

    .hero-search-wrap {
        padding: 0 0 1.5rem;
    }

    .search-fields {
        grid-template-columns: 1fr;
    }

    .search-bottom {
        flex-direction: column;
    }

    .search-bottom .search-field,
    .search-bottom .search-keyword {
        flex: 1 1 100%;
        width: 100%;
    }

    .search-bottom .btn-search {
        width: 100%;
    }
}

@media (max-width: 991px) {
    /* Mobile nav open on hero — ensure solid background */
    .site-header--hero .navbar-menu.active {
        background: rgba(20, 20, 30, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-nav {
    background: var(--color-light);
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--color-gray);
}

.breadcrumb a {
    color: var(--color-gray);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb li[aria-current="page"] {
    color: var(--color-text);
}

/* ============================================
   PROPERTY GRID & CARDS
   ============================================ */

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.property-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.property-card.featured {
    border: 2px solid var(--color-accent);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.property-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.property-card:hover .property-image-overlay {
    background: rgba(0,0,0,0.4);
}

.view-property {
    color: white;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.property-card:hover .view-property {
    opacity: 1;
    transform: translateY(0);
}

.property-content {
    padding: 1.25rem;
}

.property-location {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.property-location i {
    margin-right: 0.25rem;
    color: var(--color-accent);
}

.property-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.property-title a {
    color: var(--color-primary);
}

.property-title a:hover {
    color: var(--color-secondary);
}

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-gray);
}

.property-specs .spec {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-specs .spec i {
    color: var(--color-primary);
}

.property-excerpt {
    font-size: 0.9375rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.property-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.property-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1;
}

.property-price > div {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.property-price-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.property-price-label {
    font-size: 0.8125rem;
    color: var(--color-gray);
}

/* ============================================
   PROPERTY LISTINGS PAGE
   ============================================ */

.listings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

@media (max-width: 991px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filters-form {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 6px;
    font-size: 1rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-weight: 500;
    color: var(--color-gray);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background: var(--color-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-light);
    border-radius: 12px;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 6px;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-link.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--color-gray);
}

/* ============================================
   SINGLE PROPERTY PAGE
   ============================================ */

.property-header {
    background: var(--color-light);
    padding: 2rem 0;
}

.property-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.property-location-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.property-name {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.property-quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1rem;
    color: var(--color-gray);
}

.property-quick-specs span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-quick-specs i {
    color: var(--color-primary);
}

/* Gallery */
.property-gallery {
    padding: 2rem 0;
}

/* ── Multi-photo gallery grid (Airbnb-style) ──────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    max-height: 500px;
}

.gallery-main-cell {
    grid-row: span 2;
    overflow: hidden;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
}

.gallery-thumb-cell {
    position: relative;
    overflow: hidden;
}

.gallery-main-cell a,
.gallery-thumb-cell a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-main-cell a:hover .gallery-img,
.gallery-thumb-cell a:hover .gallery-img {
    transform: scale(1.04);
}

.gallery-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-hidden {
    display: none;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .gallery-main-cell {
        grid-row: span 1;
        height: 260px;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 120px;
    }
    .gallery-thumb-cell:nth-child(n+4) {
        display: none;
    }
}

/* Single-image legacy fallback */
.gallery-main {
    border-radius: 12px;
    overflow: hidden;
}

.gallery-featured {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-placeholder {
    width: 100%;
    height: 400px;
    background: var(--color-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Property Details Layout */
.property-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

@media (max-width: 991px) {
    .property-layout {
        grid-template-columns: 1fr;
    }

    .property-sidebar {
        order: -1;
    }

    .booking-card {
        position: static;
    }

    #booking-iframe {
        height: 600px !important;
    }
}

.property-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.property-section:last-child {
    border-bottom: none;
}

.property-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.property-description {
    line-height: 1.8;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spec-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
    border-radius: 8px;
    color: var(--color-primary);
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-gray);
}

.spec-value {
    font-weight: 600;
}

/* Amenities */
.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.amenities-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.amenities-list li i {
    width: 24px;
    color: var(--color-accent);
}

/* Sidebar Cards */
.property-sidebar > * {
    margin-bottom: 1.5rem;
}

/* ── Pricing Card (direct booking estimate) ── */
.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-top: 3px solid var(--color-primary);
}

.pricing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-nightly {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.pricing-per-night {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-gray);
}

.pricing-nights {
    font-size: 0.875rem;
    color: var(--color-gray);
    font-weight: 500;
}

.pricing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.pricing-total {
    font-weight: 700;
    font-size: 1rem;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid #e5e7eb;
    color: var(--color-primary);
}

.pricing-disclaimer {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.4;
}

.rate-footnote {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin: 0.75rem 0 0;
    line-height: 1.4;
}

/* Property card — estimated total display (when dates selected) */
.property-price-nights {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-top: 0.1rem;
}

.booking-card,
.share-card,
.contact-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.booking-card {
    position: sticky;
    top: 100px;
}

.booking-card h3 {
    margin-bottom: 1rem;
}

.widget-note {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.or-call {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--color-gray);
}

/* Share Buttons */
.share-card h4,
.contact-card h4 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    color: white;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-email { background: var(--color-gray); }
.share-copy { background: var(--color-primary); }

/* Contact Card */
.contact-card p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--color-text);
}

.contact-link i {
    color: var(--color-primary);
}

/* ============================================
   ABOUT / FEATURES SECTION
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-gray);
    margin: 0;
}

/* ============================================
   AREAS SECTION
   ============================================ */

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }
}

.area-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease;
}

.area-card:hover {
    transform: translateY(-4px);
    color: white;
}

.area-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.area-card .property-count {
    opacity: 0.9;
    font-size: 0.9375rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonial-prop-image {
    display: block;
    height: 170px;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-prop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.testimonial-prop-image:hover img {
    transform: scale(1.04);
}

.testimonial-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-prop-link {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 0.25rem;
}

.testimonial-prop-link:hover {
    text-decoration: underline;
}

.testimonial-prop-specs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-top: 0.375rem;
}

.testimonial-prop-specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.author-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
    color: var(--color-gray);
}

.author-info strong {
    display: block;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.testimonial-property {
    display: block;
    font-size: 0.8125rem !important;
    color: var(--color-primary) !important;
}

/* ============================================
   BLOG
   ============================================ */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.blog-category {
    color: var(--color-accent);
    font-weight: 600;
}

.blog-date {
    color: var(--color-gray);
}

.blog-content h2,
.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-content h2 a,
.blog-content h3 a {
    color: var(--color-primary);
}

.blog-content p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.read-more:hover {
    gap: 0.75rem;
}

/* Single Post */
.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-meta {
    margin-bottom: 1rem;
}

.post-category {
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-date {
    color: var(--color-gray);
    margin-left: 1rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-author {
    color: var(--color-gray);
}

.post-featured-image {
    margin: 0 0 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content h2,
.post-content h3 {
    margin-top: 2rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.related-property-box {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.post-tags {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-light);
}

.tags-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    background: var(--color-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-light);
    border-radius: 12px;
}

.share-label {
    font-weight: 600;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-detail h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-detail a,
.contact-detail p {
    color: var(--color-gray);
    margin: 0;
}

.contact-social h3 {
    margin-bottom: 1rem;
}

.contact-social .social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: background 0.2s ease;
}

.contact-social .social-links a:hover {
    background: var(--color-secondary);
    color: white;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recaptcha-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Social links on contact page */
.contact-social {
    margin-top: 1.5rem;
}

.contact-social p {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.contact-social .social-links {
    display: flex;
    gap: 0.75rem;
}

.contact-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--color-primary);
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.contact-social .social-links a:hover {
    background: var(--color-primary);
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 575px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.required {
    color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--color-error);
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-note {
    background: var(--color-light);
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-note i {
    color: var(--color-primary);
}

/* Alerts */
.alert {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.alert p {
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.section-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

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

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--color-primary);
    color: white;
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 1rem;
}

.footer-brand {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-about .social-links {
    display: flex;
    gap: 0.75rem;
}

.footer-about .social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: background 0.2s ease;
}

.footer-about .social-links a:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact .contact-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

.footer-contact .contact-list i {
    margin-top: 0.25rem;
    opacity: 0.8;
}

.footer-contact .contact-list a {
    color: rgba(255,255,255,0.8);
}

.footer-contact .contact-list a:hover {
    color: white;
}

.footer-bottom {
    background: rgba(0,0,0,0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9375rem;
}

.footer-bottom .owner-link {
    margin-top: 0.5rem;
}

.footer-bottom .owner-link a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom .owner-link a:hover {
    color: white;
}

/* ─── Booking Widget (sidebar placement) ─── */
.booking-widget-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.booking-widget-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

#booking-iframe {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 8px;
}

/* ============================================
   SMART SEARCH BAR (Properties Page)
   ============================================ */

.smart-search-section {
    background: var(--color-light);
    padding: 1.75rem 0 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.smart-search-form {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
    padding: 1.25rem 1.5rem 0;
}

.smart-search-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 0;
    align-items: end;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.smart-field {
    padding: 0 0.875rem;
    border-right: 1px solid #e5e7eb;
}

.smart-field:first-child {
    padding-left: 0;
}

.smart-field:last-of-type {
    border-right: none;
}

.smart-field label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #374151;
    margin-bottom: 0.35rem;
}

.smart-field label i {
    margin-right: 0.25rem;
    color: var(--color-primary);
}

.smart-field input,
.smart-field select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    color: #111827;
    background: transparent;
    padding: 0.25rem 0;
    cursor: pointer;
    appearance: auto;
}

.smart-field input[type="date"] {
    cursor: pointer;
}

.smart-field input::placeholder {
    color: #9ca3af;
}

.smart-search-actions {
    padding-left: 1rem;
}

.smart-search-btn {
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
}

/* More Filters */
.more-filters {
    display: none;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.more-filters.open {
    display: block;
}

.more-filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

/* Price range filter inputs */
.smart-field--price .price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.smart-field--price .price-range-inputs input {
    flex: 1;
    min-width: 0;
}

.price-range-sep {
    color: var(--color-gray);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.price-range-note {
    display: block;
    color: var(--color-gray);
    font-size: 0.75rem;
    margin-top: 0.3rem;
    line-height: 1.3;
}

.more-filters .smart-field {
    border-right: none;
    padding: 0;
}

.more-filters .smart-field input,
.more-filters .smart-field select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9375rem;
}

.smart-search-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.6rem 0;
    font-size: 0.875rem;
}

.more-filters-toggle {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    transition: color 0.2s;
}

.more-filters-toggle:hover {
    color: var(--color-secondary);
}

.more-filters-chevron {
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}

.clear-filters-link {
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.clear-filters-link:hover {
    color: #ef4444;
}

.availability-note {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-style: italic;
}
.availability-note i {
    color: var(--color-primary);
    font-style: normal;
}

/* Results Toolbar */
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.results-count {
    font-size: 0.9375rem;
    color: #374151;
}

.results-count strong {
    font-size: 1.125rem;
    color: #111827;
}

.results-filtered {
    color: #6b7280;
    font-size: 0.875rem;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.sort-control label {
    white-space: nowrap;
    font-weight: 600;
}

.sort-control select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    background: white;
}

/* Responsive: Smart Search */
@media (max-width: 991px) {
    .smart-search-grid {
        grid-template-columns: 1fr 1fr auto;
    }

    .smart-field {
        border-right: none;
    }

    .smart-search-actions {
        padding-left: 0.75rem;
    }
}

@media (max-width: 575px) {
    .smart-search-grid {
        grid-template-columns: 1fr;
    }

    .smart-field {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 0.5rem 0;
    }

    .smart-search-actions {
        padding-top: 0.5rem;
        padding-left: 0;
    }

    .smart-search-btn {
        width: 100%;
    }

    .results-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-listings {
        padding-top: 1.5rem;
    }
}

/* ============================================
   FILTERS MODAL BUTTON (in smart-search-footer)
   ============================================ */

.filters-modal-btn {
    background: white;
    border: 1.5px solid #374151;
    border-radius: 22px;
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.filters-modal-btn:hover {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17,24,39,0.08);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    line-height: 1;
}

/* ============================================
   PROPERTY FILTER MODAL (pfm-*)
   ============================================ */

/* Overlay */
.pfm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1050;
}

.pfm-overlay--open {
    display: block;
    animation: pfmFadeIn 0.2s ease forwards;
}

@keyframes pfmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal — centered on desktop */
.pfm-modal {
    position: fixed;
    z-index: 1051;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    outline: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.97);
    width: min(600px, 92vw);
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.pfm-modal--open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile: bottom sheet */
@media (max-width: 575px) {
    .pfm-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(24px);
    }
    .pfm-modal--open {
        transform: translateY(0);
    }
}

/* Lock body scroll when modal open */
body.pfm-body-locked {
    overflow: hidden;
}

/* Header */
.pfm-header {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.pfm-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 0.9rem;
    transition: background 0.15s;
    padding: 0;
}

.pfm-close:hover {
    background: #f3f4f6;
}

.pfm-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.pfm-clear-all {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    text-decoration: underline;
    padding: 0;
    text-align: right;
    white-space: nowrap;
    font-family: inherit;
}

.pfm-clear-all:hover { color: #111827; }

/* Scrollable body */
.pfm-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Sections */
.pfm-section {
    padding: 1.25rem 1.5rem;
}

.pfm-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
}

.pfm-section-sub {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.875rem;
}

/* Price header row (title + night/stay toggle) */
.pfm-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.pfm-price-header .pfm-section-title { margin: 0; }
.pfm-price-mode-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}
.pfm-mode-btn {
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: none;
    border-radius: 18px;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s, color 0.15s;
}
.pfm-mode-btn--active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* Histogram count header */
.pfm-hist-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.2rem;
}
.pfm-hist-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.pfm-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

/* Footer */
.pfm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: white;
}

.pfm-btn-clear {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    text-decoration: underline;
    padding: 0.5rem;
    font-family: inherit;
}

.pfm-btn-apply {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.pfm-btn-apply:hover {
    background: var(--color-secondary);
}

/* ── Amenity Pills ────────────────────────────────── */

.pfm-amenity-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.75rem;
}

.pfm-amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: 1.5px solid #d1d5db;
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background 0.15s;
    font-size: 0.875rem;
    color: #374151;
    white-space: nowrap;
}

.pfm-amenity-pill input[type="checkbox"] {
    display: none;
}

.pfm-amenity-pill:hover {
    border-color: #374151;
}

.pfm-amenity-pill--active {
    border-color: #111827;
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.pfm-pill-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ── Type Toggle Buttons ────────────────────────────── */

.pfm-type-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pfm-type-btn {
    padding: 0.5rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pfm-type-btn:hover {
    border-color: #374151;
}

.pfm-type-btn--active {
    border-color: #111827;
    background: #111827;
    color: white;
    font-weight: 600;
}

/* ── Histogram ─────────────────────────────────────── */

.pfm-histogram {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 64px;
    margin-bottom: 0.375rem;
    padding: 0 1px;
}

.pfm-hist-bar {
    flex: 1;
    height: var(--bar-h, 4px);
    background: #d1d5db;
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    transition: background 0.15s;
    cursor: default;
}

.pfm-hist-bar--active {
    background: #374151;
}

/* ── Dual-Handle Range Slider ───────────────────────── */

.pfm-slider-wrap {
    padding: 0 0 1.25rem;
}

.pfm-slider-track {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 14px 0;
}

.pfm-slider-range {
    position: absolute;
    top: 0;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    pointer-events: none;
}

/* Both range inputs stacked on the track */
.pfm-range {
    position: absolute;
    top: -10px;
    width: 100%;
    height: 24px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    margin: 0;
}

.pfm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #111827;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    pointer-events: all;
    cursor: grab;
    transition: box-shadow 0.15s;
}

.pfm-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    box-shadow: 0 0 0 6px rgba(17,24,39,0.1);
}

.pfm-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #111827;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    pointer-events: all;
    cursor: grab;
}

.pfm-range::-moz-range-track {
    background: transparent;
}

.pfm-range--min { z-index: 3; }
.pfm-range--max { z-index: 4; }

/* ── Min/Max Price Inputs ───────────────────────────── */

.pfm-price-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pfm-price-field {
    flex: 1;
}

.pfm-price-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.pfm-price-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s;
}

.pfm-price-input-wrap:focus-within {
    border-color: #111827;
}

.pfm-price-prefix {
    color: #374151;
    font-size: 0.9375rem;
    margin-right: 0.25rem;
}

.pfm-price-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9375rem;
    color: #111827;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pfm-price-input::-webkit-outer-spin-button,
.pfm-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.pfm-price-plus {
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 600;
    min-width: 0.6rem;
}

.pfm-price-dash {
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Area Select & Keyword Input ────────────────────── */

.pfm-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #374151;
    background: white;
    appearance: auto;
    cursor: pointer;
    transition: border-color 0.15s;
    margin-top: 0.75rem;
    font-family: inherit;
}

.pfm-select:focus {
    outline: none;
    border-color: #111827;
}

.pfm-text-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #374151;
    background: white;
    transition: border-color 0.15s;
    margin-top: 0.75rem;
    font-family: inherit;
    box-sizing: border-box;
}

.pfm-text-input:focus {
    outline: none;
    border-color: #111827;
}

/* ── Rooms & Beds Steppers ──────────────────────────── */

.pfm-steppers {
    margin-top: 0.5rem;
}

.pfm-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.pfm-stepper-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pfm-stepper-label strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}

.pfm-stepper-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pfm-stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: white;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
    padding: 0;
}

.pfm-stepper-btn:hover:not(:disabled) {
    border-color: #374151;
    color: #111827;
}

.pfm-stepper-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pfm-stepper-val {
    min-width: 40px;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}
