/**
 * Star Inn Suites & Retreat - Properties Page Complete Styles
 * Extracted from properties.html inline styles
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Montserrat', sans-serif; background: #070d15; color: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

:root {
    --gold-300: #f5dfa0; --gold-400: #e8c55a; --gold-500: #d4a932; --gold-600: #b8922d;
    --brand-blue: #1e4b8e; --brand-blue-light: #2a5fa8; --brand-coral: #e05a6d; --brand-teal: #2ec4b6;
    --navy-800: #1a2a42; --navy-900: #0d1929; --navy-950: #070d15;
    --gradient-gold: linear-gradient(135deg, #d4a932 0%, #f5dfa0 50%, #d4a932 100%);
    --gradient-brand: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-coral) 100%);
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    overflow-x: hidden; /* Only hide horizontal overflow to prevent horizontal scroll */
}

/* Allow navbar dropdowns to overflow vertically */
#navbar .container {
    overflow: visible;
}
.text-gold { color: var(--gold-500); }
.text-gradient-gold { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

[data-aos] { opacity: 0; transition: all 0.8s ease; }
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* Page Hero */
.page-hero { position: relative; height: 50vh; min-height: 400px; display: flex; align-items: center; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,13,21,0.85) 0%, rgba(7,13,21,0.7) 50%, rgba(7,13,21,0.85) 100%); }
.page-hero-content { position: relative; z-index: 10; text-align: center; width: 100%; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1.25rem; margin-bottom: 1.25rem; background: rgba(212, 169, 50, 0.15); border: 1px solid rgba(212, 169, 50, 0.4); border-radius: 3rem; animation: slideUp 0.8s ease 0.2s both; }
.page-hero-badge i { color: var(--gold-500); font-size: 0.8rem; }
.page-hero-badge span { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold-300); text-transform: uppercase; }
.page-hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 400; line-height: 1.2; margin-bottom: 1rem; animation: slideUp 0.8s ease 0.4s both; }
.page-hero-title span { font-weight: 600; font-style: italic; }
.page-hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; animation: slideUp 0.8s ease 0.6s both; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 2rem; animation: slideUp 0.8s ease 0.8s both; }
.breadcrumb a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.breadcrumb span { color: var(--gold-500); font-size: 0.9rem; }
.breadcrumb i { color: rgba(255,255,255,0.4); font-size: 0.7rem; }

/* Filter Bar */
.filter-bar { background: var(--navy-900); padding: 1.25rem 0; border-bottom: 1px solid rgba(212, 169, 50, 0.1); position: sticky; top: 0; z-index: 40; }
.filter-bar-inner { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .filter-bar-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.filter-left { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; flex: 1; }
.filter-search { position: relative; flex: 1; min-width: 180px; max-width: 280px; }
.filter-search input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem; background: rgba(212, 169, 50, 0.08); border: 1px solid rgba(212, 169, 50, 0.2); border-radius: 0.5rem; color: #fff; font-size: 0.85rem; }
.filter-search input:focus { outline: none; border-color: var(--gold-500); }
.filter-search input::placeholder { color: rgba(255,255,255,0.5); }
.filter-search > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gold-500); font-size: 0.85rem; pointer-events: none; z-index: 1; }
.filter-select { padding: 0.75rem 2.25rem 0.75rem 0.875rem; background: rgba(212, 169, 50, 0.08); border: 1px solid rgba(212, 169, 50, 0.2); border-radius: 0.5rem; color: #fff; font-size: 0.85rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a932' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; cursor: pointer; min-width: 130px; }
.filter-select:focus { outline: none; border-color: var(--gold-500); }
.filter-select option { background: var(--navy-900); color: #fff; }
.filter-right { display: flex; align-items: center; gap: 1rem; }
.results-count { color: rgba(255,255,255,0.6); font-size: 0.85rem; white-space: nowrap; }
.results-count strong { color: var(--gold-500); }
.view-toggle { display: flex; gap: 0.4rem; }
.view-btn { width: 38px; height: 38px; border-radius: 0.5rem; background: rgba(212, 169, 50, 0.08); border: 1px solid rgba(212, 169, 50, 0.2); color: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.view-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }
.view-btn.active { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.layout-toggle { display: flex; gap: 0.4rem; margin-left: 0.5rem; padding-left: 0.75rem; border-left: 1px solid rgba(212, 169, 50, 0.2); }
.layout-btn { width: 38px; height: 38px; border-radius: 0.5rem; background: rgba(212, 169, 50, 0.08); border: 1px solid rgba(212, 169, 50, 0.2); color: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; transition: all 0.3s; font-size: 0.9rem; }
.layout-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }
.layout-btn.active { background: rgba(212, 169, 50, 0.2); border-color: var(--gold-500); color: var(--gold-500); }

/* Section */
.section {
    position: relative;
    padding: 3rem 0 5rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.section-dark {
    background: var(--navy-950);
}
.section-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a932' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

/* Content Layout */
.content-wrapper {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 5;
    width: 100%;
    box-sizing: border-box;
}

.content-wrapper.horizontal-layout {
    flex-direction: column;
}

.content-wrapper.vertical-layout {
    flex-direction: row;
    align-items: flex-start;
}

/* Sidebar placeholder — reserves flex space in the desktop layout.
   The real sidebar lives at body level to avoid stacking-context trapping. */
.sidebar-placeholder {
    display: none;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

/* Sidebar Filter — body-level element, always position:fixed */
.sidebar-filter {
    font-family: 'Montserrat', sans-serif;
    display: none;
    box-sizing: border-box;
}
.sidebar-filter-card { background: linear-gradient(135deg, rgba(212, 169, 50, 0.05), rgba(26, 42, 66, 0.5)); border: 1px solid rgba(212, 169, 50, 0.15); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-filter-title { font-family: 'Cormorant Garamond', serif !important; font-size: 1.25rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-filter-title i { color: var(--gold-500); font-size: 1rem; }
.sidebar-search {
    position: relative;
}

.sidebar-search input {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(7, 13, 21, 0.5);
    border: 1px solid rgba(212, 169, 50, 0.2);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--gold-500);
}

.sidebar-search > i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-500);
    font-size: 0.8rem;
    pointer-events: none;
}
.filter-group { margin-bottom: 1.25rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; cursor: pointer; transition: color 0.3s; font-family: 'Montserrat', sans-serif; }
.filter-option:hover { color: var(--gold-400); }
.filter-checkbox { width: 18px; height: 18px; border: 2px solid rgba(212, 169, 50, 0.4); border-radius: 0.25rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s; flex-shrink: 0; }
.filter-option.active .filter-checkbox { background: var(--gold-500); border-color: var(--gold-500); }
.filter-option.active .filter-checkbox::after { content: '✓'; color: var(--navy-950); font-size: 0.7rem; font-weight: 700; }
.filter-option-label { font-size: 0.9rem; color: rgba(255,255,255,0.8); font-family: 'Montserrat', sans-serif; }
.filter-option-count { margin-left: auto; font-size: 0.75rem; color: rgba(255,255,255,0.4); font-family: 'Montserrat', sans-serif; }
.filter-select-sidebar { width: 100%; padding: 0.75rem 1rem; background: rgba(7, 13, 21, 0.5); border: 1px solid rgba(212, 169, 50, 0.2); border-radius: 0.5rem; color: #fff; font-size: 0.9rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a932' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; cursor: pointer; font-family: 'Montserrat', sans-serif; }
.filter-select-sidebar:focus { outline: none; border-color: var(--gold-500); }
.sidebar-reset { width: 100%; padding: 0.75rem; background: transparent; border: 1px solid rgba(212, 169, 50, 0.3); border-radius: 0.5rem; color: var(--gold-500); font-size: 0.85rem; font-weight: 500; transition: all 0.3s; margin-top: 1rem; font-family: 'Montserrat', sans-serif; }
.sidebar-reset:hover { background: rgba(212, 169, 50, 0.1); }

/* Location Accordion */
.location-accordion { max-height: 300px; overflow-y: auto; font-family: 'Montserrat', sans-serif; }
.location-accordion::-webkit-scrollbar { width: 4px; }
.location-accordion::-webkit-scrollbar-thumb { background: var(--gold-500); border-radius: 2px; }
.location-option { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.25rem; cursor: pointer; transition: all 0.2s; border-radius: 0.35rem; font-size: 0.9rem; color: rgba(255,255,255,0.8); font-family: 'Montserrat', sans-serif; }
.location-option:hover { background: rgba(212, 169, 50, 0.1); color: var(--gold-400); }
.location-option.active { color: var(--gold-400); }
.location-option .location-checkbox { width: 16px; height: 16px; border: 2px solid rgba(212, 169, 50, 0.4); border-radius: 0.2rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.location-option.active .location-checkbox { background: var(--gold-500); border-color: var(--gold-500); }
.location-option.active .location-checkbox::after { content: '✓'; color: var(--navy-950); font-size: 0.6rem; font-weight: 700; }
.location-option .location-count { margin-left: auto; font-size: 0.75rem; color: rgba(255,255,255,0.4); background: rgba(255, 255, 255, 0.1); padding: 0.15rem 0.5rem; border-radius: 1rem; font-family: 'Montserrat', sans-serif; }
.location-group { margin-top: 0.5rem; border-left: 2px solid rgba(212, 169, 50, 0.15); padding-left: 0.5rem; }
.location-parent { display: flex; align-items: center; gap: 0.25rem; }
.location-toggle { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--gold-500); font-size: 0.65rem; transition: transform 0.3s; flex-shrink: 0; }
.location-group.expanded .location-toggle { transform: rotate(90deg); }
.location-parent .location-option { flex: 1; font-weight: 500; }
.location-children { display: none; padding-left: 1.5rem; margin-top: 0.25rem; }
.location-group.expanded .location-children { display: block; }
.location-option.child { font-size: 0.9rem; padding: 0.4rem 0.25rem; color: rgba(255,255,255,0.7); font-family: 'Montserrat', sans-serif; }
.location-option.child .location-checkbox { width: 14px; height: 14px; }

/* Content Area */
.content-area {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Horizontal Filters */
.horizontal-filters { margin-bottom: 1.5rem; }
.vertical-layout .horizontal-filters { display: none; }
.category-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.category-tag { padding: 0.5rem 1.25rem; background: rgba(212, 169, 50, 0.08); border: 1px solid rgba(212, 169, 50, 0.2); border-radius: 2rem; color: rgba(255,255,255,0.8); font-size: 0.85rem; transition: all 0.3s; cursor: pointer; }
.category-tag:hover { border-color: var(--gold-500); color: var(--gold-400); }
.category-tag.active { background: var(--gradient-gold); border-color: var(--gold-500); color: var(--navy-950); font-weight: 600; }

/* Active Filters */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.active-filters:empty { display: none; }
.active-filter-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-right: 0.5rem; }
.active-filter-tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.75rem; background: rgba(212, 169, 50, 0.15); border: 1px solid rgba(212, 169, 50, 0.3); border-radius: 2rem; font-size: 0.8rem; color: var(--gold-400); }
.active-filter-tag button { color: var(--gold-500); font-size: 0.75rem; padding: 0; line-height: 1; }
.active-filter-tag button:hover { color: var(--brand-coral); }
.clear-all-filters { color: var(--brand-coral); font-size: 0.85rem; font-weight: 500; margin-left: 0.5rem; }
.clear-all-filters:hover { text-decoration: underline; }

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem 1.5rem;
    padding: 0.5rem 0;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

@media (min-width: 640px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .horizontal-layout .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1.5rem;
    }

    .vertical-layout .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
        max-width: 100%;
    }
}

@media (min-width: 1280px) {
    .horizontal-layout .properties-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }

    .vertical-layout .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }
}

@media (min-width: 1400px) {
    .horizontal-layout .properties-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }

    .vertical-layout .properties-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }
}

.property-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.property-card {
    background: linear-gradient(135deg, rgba(212, 169, 50, 0.06), rgba(26, 42, 66, 0.6));
    border: 1px solid rgba(212, 169, 50, 0.15);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.property-card:hover,
.property-card-link:hover .property-card {
    border-color: rgba(212, 169, 50, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 169, 50, 0.2);
}

.property-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(7, 13, 21, 0.5);
}

.property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.property-card:hover .property-image img,
.property-card-link:hover .property-image img {
    transform: scale(1.1);
}
.property-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 42, 66, 0.8) 0%, rgba(7, 13, 21, 0.9) 100%);
    z-index: 0;
}

.property-image img {
    z-index: 1;
}

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.property-badge {
    padding: 0.35rem 0.8rem;
    background: var(--gradient-gold);
    color: var(--navy-950);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.property-badge.new {
    background: linear-gradient(135deg, #2ec4b6 0%, #1aa699 100%);
    color: #fff;
}

.property-badge.premium {
    background: linear-gradient(135deg, #e05a6d 0%, #c74656 100%);
    color: #fff;
}

.property-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(7, 13, 21, 0.75);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.property-favorite:hover {
    background: rgba(224, 90, 109, 0.9);
    border-color: var(--brand-coral);
    transform: scale(1.1);
}

.property-favorite.active {
    background: var(--brand-coral);
    border-color: var(--brand-coral);
    color: #fff;
}
.property-gallery-count { position: absolute; bottom: 0.875rem; right: 0.875rem; padding: 0.35rem 0.65rem; background: rgba(7,13,21,0.7); backdrop-filter: blur(8px); border-radius: 2rem; font-size: 0.7rem; color: #fff; display: flex; align-items: center; gap: 0.35rem; }
.property-gallery-count i { color: var(--gold-500); }
.property-content {
    padding: 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.property-category {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: rgba(212, 169, 50, 0.18);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--gold-400);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(212, 169, 50, 0.25);
}

.property-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.78rem;
}

.property-card:hover .property-title,
.property-card-link:hover .property-title {
    color: var(--gold-300);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.property-location i {
    color: var(--gold-500);
    font-size: 0.8rem;
}

.property-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(212, 169, 50, 0.15);
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-rating-stars {
    display: flex;
    gap: 2px;
    color: var(--gold-500);
    font-size: 0.75rem;
}

.property-rating-score {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gold-400);
}

.property-rating-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.property-amenities {
    display: flex;
    gap: 0.85rem;
}

.property-amenity i {
    color: var(--gold-500);
    font-size: 0.8rem;
}

/* List View */
.properties-list { display: none; flex-direction: column; gap: 1.25rem; }
.properties-list.active { display: flex; }
.properties-grid.hidden { display: none; }
.property-list-card { display: flex; background: linear-gradient(135deg, rgba(212, 169, 50, 0.05), rgba(26, 42, 66, 0.5)); border: 1px solid rgba(212, 169, 50, 0.15); border-radius: 1rem; overflow: hidden; transition: all 0.4s; }
.property-list-card:hover { border-color: rgba(212, 169, 50, 0.3); transform: translateX(10px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.property-list-image { width: 300px; height: 220px; flex-shrink: 0; position: relative; overflow: hidden; }
.property-list-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.property-list-card:hover .property-list-image img { transform: scale(1.08); }
.property-list-badges { position: absolute; top: 0.875rem; left: 0.875rem; display: flex; gap: 0.4rem; }
.property-list-favorite { position: absolute; top: 0.875rem; right: 0.875rem; width: 34px; height: 34px; border-radius: 50%; background: rgba(7,13,21,0.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.property-list-content { flex: 1; padding: 1.25rem; display: flex; flex-direction: column; }
.property-list-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.5rem; }
.property-list-category { display: inline-block; padding: 0.2rem 0.5rem; background: rgba(212, 169, 50, 0.15); border-radius: 0.25rem; font-size: 0.65rem; color: var(--gold-500); text-transform: uppercase; }
.property-list-rating { display: flex; align-items: center; gap: 0.35rem; }
.property-list-rating i { color: var(--gold-500); font-size: 0.8rem; }
.property-list-rating span { font-weight: 600; font-size: 0.9rem; }
.property-list-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; margin-bottom: 0.35rem; }
.property-list-location { display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-bottom: 0.75rem; }
.property-list-location i { color: var(--gold-500); }
.property-list-desc { color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.7; margin-bottom: 0.875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.property-list-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.875rem; border-top: 1px solid rgba(212, 169, 50, 0.1); margin-top: auto; }
.property-list-amenities { display: flex; gap: 1rem; }
.property-list-amenity { display: flex; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.property-list-amenity i { color: var(--gold-500); }
@media (max-width: 768px) { .property-list-card { flex-direction: column; } .property-list-image { width: 100%; height: 180px; } }

/* Infinite Scroll Indicators */
.infinite-scroll-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 0; gap: 1rem; }
.infinite-scroll-loader .spinner { width: 40px; height: 40px; border: 3px solid rgba(212, 169, 50, 0.2); border-top-color: var(--gold-500); border-radius: 50%; animation: spin 1s linear infinite; }
.infinite-scroll-loader p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.infinite-scroll-end { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 3rem 0; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.infinite-scroll-end i { font-size: 2rem; color: var(--gold-500); }

/* Loading & Empty */
.loading { display: flex; align-items: center; justify-content: center; padding: 4rem 0; }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(212, 169, 50, 0.2); border-top-color: var(--gold-500); border-radius: 50%; animation: spin 1s linear infinite; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { width: 100px; height: 100px; margin: 0 auto 1.5rem; background: rgba(212, 169, 50, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--gold-500); }
.empty-state h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; margin-bottom: 0.5rem; }
.empty-state p { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }

.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }
/* Mobile Sidebar & Toggle */
.hide-desktop { display: none; }
@media (max-width: 1023px) { 
    .hide-desktop { display: block; } 
    .hide-mobile { display: none !important; }
    
    /* Remove overflow:hidden from section so it doesn't interfere with fixed children */
    .section {
        overflow: visible;
    }

    .sidebar-filter {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        /* Use dvh with vh fallback so it fills the real visible viewport on mobile */
        height: 100vh;
        height: 100dvh;
        width: 85%;
        max-width: 320px;
        /* High z-index — unambiguously above overlay and all page content */
        z-index: 100000;
        background: var(--navy-900);
        overflow-y: auto;
        /* iOS Safari smooth momentum scrolling */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 1.5rem;
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }

    .sidebar-filter.active {
        display: block;
        animation: slideInLeft 0.3s ease;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(3px);
        /* Always below sidebar, always above everything else */
        z-index: 99999;
    }

    .sidebar-overlay.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

.mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-gold);
    border-radius: 0.5rem;
    color: var(--navy-950);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 169, 50, 0.3);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 169, 50, 0.2);
}

.sidebar-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--gold-500);
}

.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: all 0.3s;
}

.sidebar-close:hover {
    background: var(--brand-coral);
    color: white;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Enhanced Responsive Styles */
@media (max-width: 1023px) {
    /* Force horizontal layout on mobile */
    .content-wrapper.vertical-layout {
        flex-direction: column !important;
    }

    /* Show horizontal filters on mobile */
    .vertical-layout .horizontal-filters {
        display: block !important;
    }

    /* Adjust filter bar for mobile */
    .filter-left {
        width: 100%;
    }

    .filter-search {
        max-width: none;
        width: 100%;
    }

    .filter-select {
        min-width: 100px;
        flex: 1;
    }

    /* Stack layout toggles vertically on mobile */
    .layout-toggle {
        display: none !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Desktop - Sidebar & layout */
@media (min-width: 1024px) {
    .content-wrapper {
        align-items: flex-start;
    }

    /* Show placeholder only when sidebar is active (vertical layout) */
    html.layout-vertical .sidebar-placeholder {
        display: block;
    }

    /* Sidebar: fixed, aligned to container left edge.
       top / visibility / opacity are controlled dynamically by JS (positionDesktopSidebar). */
    html.layout-vertical .sidebar-filter {
        display: block;
        position: fixed;
        /* Align with container: centered max-1400px + 1.5rem padding */
        left: max(calc((100vw - 1400px) / 2 + 1.5rem), 1.5rem);
        top: 80px; /* JS overrides this on scroll */
        width: 280px;
        max-height: calc(100vh - 100px);
        overflow-y: hidden;
        visibility: hidden; /* JS reveals once content section is in view */
        opacity: 0;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 50;
        background: transparent;
    }

    .content-area {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }
}

/* Ensure container doesn't overflow */
.container {
    width: 100%;
    max-width: 1400px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.content-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar header — only visible on mobile */
.sidebar-header {
    display: none;
}

@media (max-width: 1023px) {
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(212, 169, 50, 0.2);
    }
}

/* Mobile Filter FAB */
.mobile-filter-fab {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    align-items: center;
    gap: 0.55rem;
    padding: 0.875rem 1.875rem;
    background: var(--gradient-gold);
    border-radius: 3rem;
    color: var(--navy-950);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 32px rgba(212, 169, 50, 0.45), 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s ease,
                opacity 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.03em;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.mobile-filter-fab:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 14px 44px rgba(212, 169, 50, 0.55), 0 6px 18px rgba(0, 0, 0, 0.4);
}

.mobile-filter-fab:active {
    transform: translateX(-50%) scale(0.96);
}

/* Hide FAB when sidebar is open */
.mobile-filter-fab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
}

/* Active filter badge on FAB */
.fab-filter-count {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy-950);
    color: var(--gold-400);
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1;
}

.fab-filter-count.visible {
    display: flex;
}

@media (max-width: 1023px) {
    .mobile-filter-fab {
        display: flex;
    }
}

/* ── Sidebar Apply bar (mobile only) ──────────────────────────────────────── */
.sidebar-apply-bar {
    /* Hidden on desktop */
    display: none;
}

@media (max-width: 1023px) {
    .sidebar-apply-bar {
        display: block;
        /* Stick to the bottom of the sidebar drawer */
        position: sticky;
        bottom: 0;
        /* Pull back the sidebar padding so bar spans full width */
        margin: 1.25rem -1.5rem -1.5rem;
        padding: 1rem 1.5rem;
        background: linear-gradient(to top, var(--navy-900) 85%, transparent);
        border-top: 1px solid rgba(212, 169, 50, 0.15);
    }

    .sidebar-apply-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        width: 100%;
        padding: 0.875rem 1.5rem;
        background: var(--gradient-gold);
        border: none;
        border-radius: 0.625rem;
        color: var(--navy-950);
        font-family: 'Montserrat', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(212, 169, 50, 0.35);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .sidebar-apply-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(212, 169, 50, 0.45);
    }

    .sidebar-apply-btn:active {
        transform: scale(0.98);
    }
}
