/* UI Improvements - Design Polish & Enhancements */

/* ============================================
   1. COLOR CONTRAST FIX (Accessibility)
   Original orange #FFA500 fails WCAG AA on white
   New orange #D97706 achieves 4.5:1+ contrast
   ============================================ */
:root {
    --light-color: 217, 119, 6; /* Darker orange for accessibility */
    --light-hover-color: 180, 83, 9; /* Even darker for hover states */
}

/* ============================================
   2. CARD SHADOWS & DEPTH (property cards only)
   ============================================ */
.grid-listing .grid-listing-wrapper {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.grid-listing .grid-listing-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* ============================================
   3. ROUNDED CORNERS (Conditional via body class)
   Add class="rounded-corners" to body to enable
   ============================================ */
/* Property cards */
body.rounded-corners .grid-listing-wrapper,
body.rounded-corners .grid-listing-container {
    border-radius: 8px;
    overflow: hidden;
}

body.rounded-corners .image-container {
    border-radius: 8px 8px 0 0;
}

body.rounded-corners .details-container {
    border-radius: 0 0 8px 8px;
}

body.rounded-corners .statusoverlay {
    border-radius: 8px 0 0 0;
}

/* Buttons */
body.rounded-corners .btn-search,
body.rounded-corners .btn-search-home,
body.rounded-corners .btn-contact,
body.rounded-corners .btn-image {
    border-radius: 6px !important;
}

body.rounded-corners .beds-btn,
body.rounded-corners .baths-btn {
    border-radius: 4px;
}

body.rounded-corners .sales-btn,
body.rounded-corners .lettings-btn {
    border-radius: 4px 4px 0 0;
}

/* Search inputs */
body.rounded-corners .selectize-input {
    border-radius: 4px !important;
}

/* Nav button */
body.rounded-corners .nav-btn {
    border-radius: 4px;
}

/* Testimonials box */
body.rounded-corners .testimonials-clean .item .box {
    border-radius: 8px;
}

/* Skeleton cards */
body.rounded-corners .skeleton-card {
    border-radius: 8px;
}

/* Action buttons on property page */
body.rounded-corners .favorite-btn-inline,
body.rounded-corners .share-btn,
body.rounded-corners .print-btn {
    border-radius: 6px;
}

/* Share modal */
body.rounded-corners .share-option {
    border-radius: 8px;
}

body.rounded-corners .modal-content {
    border-radius: 12px;
}

/* ============================================
   4. IMAGE HOVER ZOOM EFFECT
   ============================================ */
.image-container {
    overflow: hidden;
}

.image-container img {
    transition: transform 0.4s ease;
    width: 100%;
    height: auto;
}

.grid-listing:hover .image-container img {
    transform: scale(1.05);
}

/* ============================================
   5. CONSISTENT IMAGE ASPECT RATIOS
   Default is 4:3, configurable via body class
   Set design.image_aspect_ratio in config.php
   ============================================ */
.image-container {
    position: relative;
    padding-top: 75%; /* Default 4:3 aspect ratio */
    background-color: #f0f0f0;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Configurable aspect ratios via body class */
body.aspect-4-3 .image-container,
body.aspect-4-3 .skeleton-image {
    padding-top: 75%; /* 4:3 */
}

body.aspect-16-9 .image-container,
body.aspect-16-9 .skeleton-image {
    padding-top: 56.25%; /* 16:9 */
}

body.aspect-3-2 .image-container,
body.aspect-3-2 .skeleton-image {
    padding-top: 66.67%; /* 3:2 */
}

body.aspect-1-1 .image-container,
body.aspect-1-1 .skeleton-image {
    padding-top: 100%; /* 1:1 Square */
}

/* ============================================
   6. IMPROVED PRICE STYLING
   ============================================ */
.price-wrapper h4,
.priceListing {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(var(--brand-color));
}

.details-container .second-line {
    align-items: center;
}

/* ============================================
   7. MICRO-INTERACTIONS
   ============================================ */
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Button press feedback */
.btn-search,
.btn-search-home,
.btn-contact,
.btn-image,
.beds-btn,
.baths-btn,
.sales-btn,
.lettings-btn {
    transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-search:active,
.btn-search-home:active,
.btn-contact:active,
.btn-image:active {
    transform: scale(0.97);
}

.beds-btn:active,
.baths-btn:active {
    transform: scale(0.95);
}

/* Link hover transitions */
a {
    transition: color 0.2s ease;
}

/* Form focus states */
input:focus,
select:focus,
.selectize-input.focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--brand-color), 0.2);
}

/* ============================================
   8. SKELETON LOADING SCREENS
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton card structure */
.skeleton-card {
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-image {
    padding-top: 75%; /* 4:3 aspect ratio */
    background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-content {
    padding: 12px;
    background: white;
}

.skeleton-title {
    height: 20px;
    margin-bottom: 12px;
    width: 80%;
}

.skeleton-price {
    height: 24px;
    width: 40%;
    margin-bottom: 8px;
}

.skeleton-details {
    height: 16px;
    width: 30%;
}

/* ============================================
   9. EMPTY STATE STYLING
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: rgb(var(--brand-color));
    margin-bottom: 16px;
}

.empty-state p {
    color: #666;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.empty-state-suggestions a {
    display: inline-block;
    padding: 8px 16px;
    background: rgb(var(--brand-color));
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.empty-state-suggestions a:hover {
    background: rgb(var(--hover-color));
    color: white !important;
    transform: translateY(-2px);
}

/* ============================================
   10. FAVORITE/SAVE BUTTON
   ============================================ */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.favorite-btn i {
    font-size: 18px;
    color: #ccc;
    transition: color 0.2s ease;
}

.favorite-btn.active i,
.favorite-btn:hover i {
    color: #e74c3c;
}

.favorite-btn.active i {
    font-weight: 900; /* Solid heart when active */
}

/* Inline favorite button (on property detail page) */
.favorite-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgb(var(--brand-color));
    color: rgb(var(--brand-color));
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.favorite-btn-inline:hover {
    background: rgba(var(--brand-color), 0.1);
}

.favorite-btn-inline.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.favorite-btn-inline.active:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.favorite-btn-inline i {
    font-size: 16px;
}

/* ============================================
   PROPERTY PAGE LAYOUT IMPROVEMENTS
   ============================================ */
/* Move action buttons below price/beds row */
.single-listing .basic-details .first-line {
    flex-direction: column;
    align-items: flex-start;
}

.single-listing .basic-details .first-line .addressListing {
    margin-bottom: 8px;
}

.property-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
}

/* Price and beds/bath row */
.single-listing .basic-details .second-line {
    flex-wrap: wrap;
    gap: 16px;
}

/* EPC/Floorplan buttons - match new action button style */
.btn-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    height: auto;
    width: auto;
    min-width: 85px;
    font-weight: 500;
    font-size: 14px;
}

/* Other images row (EPC, Floorplan) */
.other-images {
    margin-top: 16px;
    gap: 8px;
}

@media (max-width: 768px) {
    .property-actions {
        width: 100%;
    }

    .property-actions button {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   11. SHARE BUTTON STYLING
   ============================================ */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgb(var(--brand-color));
    color: rgb(var(--brand-color));
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: rgb(var(--brand-color));
    color: white;
}

/* Share modal */
.share-modal-content {
    padding: 24px;
}

.share-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-decoration: none;
    color: inherit;
}

.share-option:hover {
    background: #f5f5f5;
    border-color: rgb(var(--brand-color));
}

.share-option i {
    font-size: 24px;
}

.share-option.whatsapp i { color: #25D366; }
.share-option.facebook i { color: #1877F2; }
.share-option.email i { color: rgb(var(--brand-color)); }
.share-option.copy i { color: #666; }

.share-option span {
    font-size: 12px;
    color: #666;
}

/* Copy link input */
.copy-link-container {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.copy-link-container input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.copy-link-container button {
    padding: 10px 16px;
    background: rgb(var(--brand-color));
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-link-container button:hover {
    background: rgb(var(--hover-color));
}

/* ============================================
   12. PRINT STYLES
   ============================================ */
@media print {
    /* Hide non-essential elements */
    nav,
    .navbar,
    .navbar-mobile,
    .navigation-clean,
    footer,
    .cd-top,
    .share-btn,
    .favorite-btn,
    .btn-image,
    .carousel-control-prev,
    .carousel-control-next,
    .cookie-bar,
    #loadingMessage {
        display: none !important;
    }

    /* Reset margins for print */
    body {
        margin: 0;
        padding: 20px;
    }

    .single-listing {
        margin-top: 0 !important;
        max-width: 100%;
    }

    /* Ensure images print */
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    /* Print-friendly colors */
    .text-main,
    h1, h2, h3, h4 {
        color: #000 !important;
    }

    /* Show only first carousel image */
    .carousel-item:not(.active) {
        display: none !important;
    }

    /* Page breaks */
    .listing-description {
        page-break-before: auto;
    }

    .property-map {
        display: none; /* Maps don't print well */
    }
}

/* Print button */
.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgb(var(--brand-color));
    color: rgb(var(--brand-color));
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.print-btn:hover {
    background: rgb(var(--brand-color));
    color: white;
}

@media print {
    .print-btn {
        display: none !important;
    }
}

/* ============================================
   13. SLIDE-IN MOBILE NAVIGATION DRAWER
   ============================================ */
/* Overlay backdrop */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99998;
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Slide-in drawer - override existing full-screen-menu */
.full-screen-menu {
    /* Override positioning for slide-in from right instead of full-screen */
    left: auto;
    right: -320px; /* Start off-screen to the right */
    width: 300px;
    max-width: 85vw;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px 30px;
    transition: right 0.3s ease, max-height 0s; /* Override the max-height transition */
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.full-screen-menu.show {
    right: 0;
}

.full-screen-menu .nav-link {
    color: #fff !important;
    font-size: 18px;
    margin: 8px 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-decoration: none;
    transition: padding-left 0.2s ease;
}

.full-screen-menu .nav-link:hover {
    padding-left: 10px;
    color: rgba(255, 255, 255, 0.8) !important;
}

.full-screen-menu .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 36px;
    background: none;
    border: none;
    line-height: 1;
    cursor: pointer;
    padding: 10px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.full-screen-menu .close-btn:hover {
    opacity: 1;
}

/* Swipe indicator */
.swipe-indicator {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Saved properties badge in mobile nav */
.mobile-nav-saved-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgb(var(--light-color));
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

/* Mobile nav social links */
.mobile-nav-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.mobile-nav-social {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.mobile-nav-social a {
    color: white;
    font-size: 20px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.mobile-nav-social a:hover {
    opacity: 1;
    color: white !important;
}

.mobile-nav-contact {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-nav-contact a {
    color: white;
    text-decoration: none;
}

/* Adjust content when drawer is open */
body.mobile-nav-open {
    overflow: hidden;
}

/* ============================================
   14. STICKY SEARCH FILTERS (disabled - was causing layout issues)
   Uncomment to re-enable sticky behavior
   ============================================ */
/*
.sticky-filters {
    position: sticky;
    top: 130px;
    z-index: 100;
    background: white;
    transition: box-shadow 0.3s ease;
}

.sticky-filters.is-stuck {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1199px) {
    .sticky-filters {
        top: 70px;
    }
}
*/

/* ============================================
   15. RESPONSIVE HERO WELCOME TEXT
   ============================================ */
.hero-welcome {
    font-size: clamp(2rem, 8vw, 79px);
}

/* ============================================
   16. BACK TO TOP BUTTON ROUNDED CORNERS
   ============================================ */
.cd-top {
    border-radius: 8px;
    background-size: 50%;
}

/* ============================================
   18. CAROUSEL ARROW STYLING
   ============================================ */
/* Default: white arrows with subtle shadow for visibility */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Brand color arrows - enabled via body.carousel-arrows-brand class */
body.carousel-arrows-brand .carousel-control-prev,
body.carousel-arrows-brand .carousel-control-next {
    background-color: rgba(var(--brand-color), 0.8);
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 1;
}

body.carousel-arrows-brand .carousel-control-prev {
    left: 10px;
}

body.carousel-arrows-brand .carousel-control-next {
    right: 10px;
}

body.carousel-arrows-brand .carousel-control-prev:hover,
body.carousel-arrows-brand .carousel-control-next:hover {
    background-color: rgb(var(--brand-color));
}

body.carousel-arrows-brand .carousel-control-prev-icon,
body.carousel-arrows-brand .carousel-control-next-icon {
    filter: none;
    width: 20px;
    height: 20px;
}

/* ============================================
   19. PROPERTY PAGE CAROUSEL ROUNDED CORNERS
   ============================================ */
.single-listing #propCarousel {
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================
   20. PROPERTY PAGE REWORK - BEDS/BATHS BADGES
   ============================================ */
/* Container for the prominent beds/baths badges */
.bedbath-prominent {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Individual badge styling - compact */
.bedbath-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgb(var(--brand-color));
    border-radius: 8px;
}

/* Icon - rounded square */
.bedbath-badge .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgb(var(--brand-color));
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

/* Number display - smaller */
.bedbath-badge .badge-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(var(--brand-color));
    line-height: 1;
}

/* Label text - smaller */
.bedbath-badge .badge-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Responsive: Compact on mobile */
@media (max-width: 576px) {
    .bedbath-prominent {
        gap: 8px;
        width: 100%;
    }

    .bedbath-badge {
        flex: 1;
        padding: 8px 12px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .bedbath-badge .badge-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .bedbath-badge .badge-value {
        font-size: 1.25rem;
    }

    .bedbath-badge .badge-label {
        font-size: 0.7rem;
    }
}

/* Address styling - subdued */
.single-listing .addressListing {
    font-weight: 500;
    color: #4E5663;
    font-size: 1.1rem;
}

/* Price styling - prominent */
.single-listing .price-wrapper h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: rgb(var(--brand-color));
}

/* ============================================
   20. PROPERTY PAGE REWORK - SUBDUED ACTION BUTTONS
   ============================================ */
.property-actions-secondary {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.property-actions-secondary .favorite-btn-inline,
.property-actions-secondary .share-btn,
.property-actions-secondary .print-btn {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    color: #666;
    background: transparent;
}

.property-actions-secondary .favorite-btn-inline:hover,
.property-actions-secondary .share-btn:hover,
.property-actions-secondary .print-btn:hover {
    border-color: rgb(var(--brand-color));
    color: rgb(var(--brand-color));
    background: rgba(var(--brand-color), 0.05);
}

/* Keep active favorite button visible */
.property-actions-secondary .favorite-btn-inline.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.property-actions-secondary .favorite-btn-inline.active:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* ============================================
   21. PROPERTY PAGE REWORK - COMBINED BUTTON ROW
   ============================================ */
.property-button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.property-button-row .document-buttons {
    display: flex;
    gap: 8px;
}

@media (max-width: 576px) {
    .property-button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .property-button-row .document-buttons,
    .property-button-row .property-actions-secondary {
        width: 100%;
        justify-content: center;
    }

    .property-button-row .property-actions-secondary {
        margin-left: 0;
    }
}

/* ============================================
   22. PROPERTY PAGE REWORK - ENHANCED FEATURES
   ============================================ */
.listing-bullets h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(var(--brand-color));
    margin-bottom: 20px;
}

.listing-bullets ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 40px;
}

.listing-bullets ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 8px 0;
    padding-left: 32px;
    position: relative;
    break-inside: avoid;
}

/* Default bullet icon - plus sign */
.listing-bullets ul li::before {
    content: '\f067'; /* fa-plus */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: rgb(var(--brand-color));
    font-size: 0.9rem;
}

/* Feature-specific icons via data attribute */
.listing-bullets ul li[data-feature="property-type"]::before {
    content: '\f015'; /* fa-home */
}

.listing-bullets ul li[data-feature="furnished"]::before,
.listing-bullets ul li[data-feature="reception"]::before {
    content: '\f4b8'; /* fa-couch */
}

.listing-bullets ul li[data-feature="available"]::before {
    content: '\f274'; /* fa-calendar-check */
}

.listing-bullets ul li[data-feature="beds"]::before {
    content: '\f236'; /* fa-bed */
}

.listing-bullets ul li[data-feature="bathroom"]::before {
    content: '\f2cd'; /* fa-bath */
}

.listing-bullets ul li[data-feature="shower"]::before {
    content: '\f2cc'; /* fa-shower */
}

.listing-bullets ul li[data-feature="energy"]::before {
    content: '\f0e7'; /* fa-bolt */
}

.listing-bullets ul li[data-feature="council-tax"]::before {
    content: '\f570'; /* fa-file-invoice */
}

.listing-bullets ul li[data-feature="accessibility"]::before {
    content: '\f193'; /* fa-wheelchair */
}

.listing-bullets ul li[data-feature="parking"]::before {
    content: '\f1b9'; /* fa-car */
}

.listing-bullets ul li[data-feature="garage"]::before {
    content: '\f494'; /* fa-warehouse */
}

.listing-bullets ul li[data-feature="no-parking"]::before {
    content: '\f05e'; /* fa-ban */
}

.listing-bullets ul li[data-feature="garden"]::before {
    content: '\f06c'; /* fa-leaf */
}

.listing-bullets ul li[data-feature="balcony"]::before {
    content: '\f52b'; /* fa-door-open */
}

.listing-bullets ul li[data-feature="porter"]::before {
    content: '\f562'; /* fa-concierge-bell */
}

.listing-bullets ul li[data-feature="lift"]::before {
    content: '\f0dc'; /* fa-sort */
}

.listing-bullets ul li[data-feature="appliances"]::before {
    content: '\f085'; /* fa-cogs */
}

.listing-bullets ul li[data-feature="pets"]::before {
    content: '\f1b0'; /* fa-paw */
}

.listing-bullets ul li[data-feature="smoking"]::before {
    content: '\f48d'; /* fa-smoking */
}

.listing-bullets ul li[data-feature="bills-included"]::before {
    content: '\f543'; /* fa-receipt */
}

.listing-bullets ul li[data-feature="gas-heating"]::before {
    content: '\f06d'; /* fa-fire */
}

.listing-bullets ul li[data-feature="electric-heating"]::before {
    content: '\f769'; /* fa-temperature-high */
}

.listing-bullets ul li[data-feature="alarm"]::before {
    content: '\f3ed'; /* fa-shield-alt */
}

.listing-bullets ul li[data-feature="kitchen"]::before {
    content: '\f2e7'; /* fa-utensils */
}

.listing-bullets ul li[data-feature="internet"]::before {
    content: '\f1eb'; /* fa-wifi */
}

.listing-bullets ul li[data-feature="flood"]::before {
    content: '\f773'; /* fa-water */
}

.listing-bullets ul li[data-feature="occupants"]::before {
    content: '\f0c0'; /* fa-users */
}

.listing-bullets ul li[data-feature="vat"]::before {
    content: '\f295'; /* fa-percent */
}

.listing-bullets ul li[data-feature="wc"]::before {
    content: '\f7d8'; /* fa-toilet */
}

.listing-bullets ul li[data-feature="double-glazing"]::before {
    content: '\f2dc'; /* fa-snowflake */
}

.listing-bullets ul li[data-feature="conservatory"]::before {
    content: '\f185'; /* fa-sun */
}

.listing-bullets ul li[data-feature="fireplace"]::before {
    content: '\f7e4'; /* fa-fire-alt */
}

.listing-bullets ul li[data-feature="storage"]::before {
    content: '\f466'; /* fa-box */
}

.listing-bullets ul li[data-feature="commercial"]::before {
    content: '\f1ad'; /* fa-building */
}

/* Responsive: Single column on mobile */
@media (max-width: 768px) {
    .listing-bullets ul {
        columns: 1;
    }

    .listing-bullets ul li {
        font-size: 1rem;
    }
}

/* ============================================
   23. PROPERTY PAGE REWORK - DESCRIPTION SECTION
   ============================================ */
.listing-description {
    padding: 20px 0;
    text-align: left;
}

.listing-description .description-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(var(--brand-color));
    margin-bottom: 16px;
}

.listing-description p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #4E5663;
    white-space: pre-wrap;
}

/* ============================================
   24. PROPERTY PAGE REWORK - MAP SECTION
   ============================================ */
.property-map {
    margin: 30px 0;
}

.property-map iframe {
    width: 100%;
    height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .property-map iframe {
        height: 300px;
    }
}

/* ============================================
   25. NAVIGATION CONFIGURATION OPTIONS
   ============================================ */

/* Transparent nav border toggle - hide border when disabled */
body.nav-no-border .navigation-clean {
    border-bottom: none;
}

/* Solid nav with brand color background */
body.nav-solid-brand .navigation-clean {
    background-color: rgb(var(--brand-color));
}

body.nav-solid-brand .navigation-clean .navbar-nav .nav-link {
    color: #fff;
}

body.nav-solid-brand .navigation-clean.scrolled {
    background-color: rgb(var(--brand-color));
}

body.nav-solid-brand .navigation-clean.scrolled .navbar-nav .nav-link {
    color: #fff;
}

body.nav-solid-brand .navigation-clean .navbar-nav .nav-btn {
    background-color: #fff;
    color: rgb(var(--brand-color));
}

body.nav-solid-brand .navigation-clean .navbar-nav .nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Mobile nav background options */
body.nav-mobile-brand .navbar-mobile {
    background-color: rgb(var(--brand-color));
}

body.nav-mobile-brand .navbar-mobile .navbar-toggler {
    filter: invert(1);
}

body.nav-mobile-transparent .navbar-mobile {
    background-color: transparent;
}

/* On non-hero pages (solid nav), transparent mobile bg falls back to white */
body.nav-mobile-transparent:not(.has-hero) .navbar-mobile {
    background-color: #fff;
}

/* ============================================
   26. SAVED BADGE STYLING FOR DESKTOP NAV
   ============================================ */
.nav-saved-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgb(var(--light-color));
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

/* ============================================
   27. MODAL SCROLL/SHIFT BUG FIX
   Prevents layout shift when Bootstrap modals open
   ============================================ */

/* Prevent body padding shift when modal opens */
body.modal-open {
    padding-right: 0 !important;
    overflow: hidden;
}

/* Ensure modal backdrop doesn't cause shift */
.modal-backdrop {
    width: 100%;
}

/* Fixed nav should not shift when modal opens */
body.modal-open .navigation-clean,
body.modal-open .navbar-mobile {
    padding-right: 0 !important;
}

/* BaguetteBox lightbox - prevent scroll */
.baguetteBox-button {
    z-index: 99999;
}

#baguetteBox-overlay {
    z-index: 99998;
}

/* Ensure body doesn't scroll behind modal */
body.modal-open,
body.baguetteBox-open {
    position: fixed;
    width: 100%;
}

/* Reset position when modal closes (handled by JS, but backup) */
body:not(.modal-open):not(.baguetteBox-open) {
    position: static;
}
