@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Color Palette - Aligned with homepage */
    --color-primary: #1b1c1c;        /* Charcoal Black */
    --color-secondary: #242525;      /* Dark Grey */
    --color-accent: #f27321;         /* One Agency Orange */
    --color-accent-hover: #d96216;   /* Darker Orange */
    --color-text-dark: #1b1c1c;      /* Primary text color */
    --color-text-muted: #5d5f5b;     /* Muted secondary text */
    --color-light-bg: #fbf9f8;       /* Luxury Cream BG */
    --color-border: #e4e2e2;         /* Border Grey */
    --color-white: #ffffff;
    --color-shadow: rgba(27, 28, 28, 0.06);
    
    /* Layout Variables */
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-light-bg);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common Layout Containers */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(207, 168, 107, 0.2);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #232c45;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 22, 37, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 28, 28, 0.08);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--color-accent);
    margin-left: 2px;
}

header:not(.scrolled) .logo {
    color: var(--color-primary);
}

header.scrolled .logo {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 12px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000000;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

@media (max-width: 1300px) {
    .nav-item {
        margin-left: 8px;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

header.scrolled .nav-link {
    color: #000000;
}

header.scrolled .nav-link:hover {
    color: var(--color-accent);
}

/* Mobile Menu Toggle */
.menu-toggle { z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

/* Dynamic Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
}

/* Dark Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 22, 37, 0.9) 0%, rgba(26, 34, 56, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    width: 100%;
    margin-top: 50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Dynamic Search Bar */
.search-container {
    background-color: rgba(26, 34, 56, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    max-width: 850px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.search-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 24px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.search-tab:hover {
    color: var(--color-white);
}

.search-tab.active {
    color: var(--color-accent);
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
}

.search-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
}

.search-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.search-field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    font-weight: 600;
}

.search-field input, .search-field select {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.search-field input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-field input:focus, .search-field select:focus {
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.12);
}

.search-field select option {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.search-btn-container {
    display: flex;
    align-items: flex-end;
}

.search-btn-container .btn {
    width: 100%;
    padding: 14px;
}

/* Featured Listings Section */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.listing-card {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--color-shadow);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.listing-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}


.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(17, 22, 37, 0.12);
}

.listing-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.listing-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.listing-card:hover .listing-image-container img {
    transform: scale(1.08);
}

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-sm);
    z-index: 5;
}

.listing-badge.rent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.listing-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(17, 22, 37, 0.85);
    backdrop-filter: blur(5px);
    color: var(--color-white);
    padding: 8px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
}

.listing-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.listing-type {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 5px;
}

.listing-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.listing-address {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.listing-address i {
    margin-right: 6px;
    color: var(--color-accent);
}

.listing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    margin-top: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 700;
    margin-right: 4px;
}

.feature-item i {
    color: var(--color-text-muted);
    margin-right: 5px;
}

/* About Us Banner Section */
.about-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 300;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    margin: 15px;
    border-radius: var(--border-radius-sm);
    pointer-events: none;
    z-index: 2;
}

/* Dynamic Testimonials Section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 40px;
}

.testimonial-slide {
    text-align: center;
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-text {
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.testimonial-property {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-top: 4px;
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-border);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

/* Footer Section */
footer {
    position: relative;
    background: radial-gradient(circle at 50% -20%, rgba(242, 115, 33, 0.28) 0%, rgba(26, 24, 22, 0.95) 40%, rgba(10, 10, 14, 0.99) 75%, #08080a 100%), #08080a !important;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, rgba(242, 115, 33, 0.7) 50%, transparent 100%) 1;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

footer > .container, footer > div {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    display: none;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.footer-contact-info i {
    color: var(--color-accent);
    margin-right: 12px;
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search Filters & Listings Page CSS */
.filter-bar {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 25px;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
    box-shadow: 0 4px 15px var(--color-shadow);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) 150px;
    gap: 20px;
    align-items: flex-end;
}

.filter-field {
    display: flex;
    flex-direction: column;
}

.filter-field label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.filter-field select, .filter-field input {
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    background-color: var(--color-light-bg);
}

.filter-field select:focus, .filter-field input:focus {
    border-color: var(--color-accent);
    background-color: var(--color-white);
}

/* Property Detail Page Styling */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.detail-gallery {
    margin-bottom: 30px;
}

.main-image {
    height: 500px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumb-img {
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.thumb-img.active, .thumb-img:hover {
    border-color: var(--color-accent);
}

.thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px var(--color-shadow);
    margin-bottom: 30px;
}

.detail-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
}

.detail-features {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-feature {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.detail-feature span {
    font-weight: 700;
    margin-right: 6px;
    font-size: 1.2rem;
}

.detail-feature i {
    color: var(--color-accent);
    margin-right: 8px;
    font-size: 1.2rem;
}

.detail-description h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 1.3rem;
}

.detail-description p {
    color: var(--color-text-dark);
    margin-bottom: 15px;
    font-weight: 300;
}

.sidebar-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px var(--color-shadow);
    position: sticky;
    top: 100px;
    margin-bottom: 30px;
}

.sidebar-card h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    outline: none;
    font-size: 0.95rem;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-accent);
}

.sidebar-card .btn {
    width: 100%;
    margin-top: 10px;
}

/* Response Message alerts */
.alert-box {
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-box-success {
    background-color: #e6fffa;
    border: 1px solid #319795;
    color: #234e52;
}

.alert-box-error {
    background-color: #fff5f5;
    border: 1px solid #e53e3e;
    color: #742a2a;
}

/* Responsive Styles */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .search-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    :root {
        --header-height: 70px;
    }
    .menu-toggle {
        z-index: 1000;
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-white);
        border-top: 1px solid var(--color-border);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
        overflow-y: auto;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 12px 0;
        width: 100%;
    }
    .nav-link {
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        box-shadow: none !important;
        border: none !important;
        padding-left: 15px !important;
        width: 100% !important;
        transform: none !important;
        background: transparent !important;
    }
    .dropdown-menu.mobile-open {
        display: block !important;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .search-form-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .detail-title {
        font-size: 1.8rem;
    }
}

/* Directory Page Custom Premium Styles */
.directory-banner {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
    border-bottom: 4px solid var(--color-accent);
    position: relative;
    overflow: hidden;
}

.directory-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(207, 168, 107, 0.08) 0%, transparent 80%);
    pointer-events: none;
}

.directory-banner h1 {
    font-size: 2.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.directory-banner p {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Calculator Banner Background & Watermark */
.calc-banner {
    background: linear-gradient(135deg, rgba(36, 37, 37, 0.88) 0%, rgba(27, 28, 28, 0.92) 100%), 
                url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat !important;
    position: relative;
    overflow: hidden;
}

.calc-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 14h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2zm4 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2zM7 7h4v2H7V7zm0 4h4v2H7v-2zm0 4h4v2H7v-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

/* About Page Banner Background & Watermark */
.about-banner {
    background: linear-gradient(135deg, rgba(36, 37, 37, 0.88) 0%, rgba(27, 28, 28, 0.92) 100%), 
                url('../images/luxury_home_exterior_1782375342541.png') center/cover no-repeat !important;
    position: relative;
    overflow: hidden;
}

.about-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

/* Services Page Banner Background & Watermark */
.services-banner {
    background: linear-gradient(135deg, rgba(36, 37, 37, 0.88) 0%, rgba(27, 28, 28, 0.92) 100%), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat !important;
    position: relative;
    overflow: hidden;
}

.services-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

/* Resources Page Banner Background & Watermark */
.resources-banner {
    background: linear-gradient(135deg, rgba(36, 37, 37, 0.88) 0%, rgba(27, 28, 28, 0.92) 100%), 
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat !important;
    position: relative;
    overflow: hidden;
}

.resources-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

/* Contact Page Banner Background & Watermark */
.contact-banner {
    background: linear-gradient(135deg, rgba(36, 37, 37, 0.88) 0%, rgba(27, 28, 28, 0.92) 100%), 
                url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat !important;
    position: relative;
    overflow: hidden;
}

.contact-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

/* Agents Page Banner Background & Watermark */
.agents-banner {
    background: linear-gradient(135deg, rgba(36, 37, 37, 0.88) 0%, rgba(27, 28, 28, 0.92) 100%), 
                url('../images/suburb_sunset_1782375328214.png') center/cover no-repeat !important;
    position: relative;
    overflow: hidden;
}

.agents-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.directory-grid-agents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Orange 3D Galaxy Effect with Stars Zooming Forward & 4-Point Flares */
.galaxy-orange-card {
    background: radial-gradient(circle at 50% 30%, rgba(242, 115, 33, 0.35) 0%, rgba(217, 98, 22, 0.15) 45%, transparent 70%),
                radial-gradient(circle at 80% 85%, rgba(242, 115, 33, 0.22) 0%, transparent 55%),
                radial-gradient(circle at 15% 75%, rgba(217, 98, 22, 0.18) 0%, transparent 50%),
                #171818 !important;
    position: relative;
    overflow: hidden;
    perspective: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 0 60px rgba(242, 115, 33, 0.15);
}

/* Ensure inner contents float above galaxy animation */
.galaxy-orange-card > * {
    position: relative;
    z-index: 2;
}

/* Starfield Layer 1: 3D Forward Zooming Stars & Lens Flares */
.galaxy-orange-card::before {
    content: '';
    position: absolute;
    inset: -30%;
    z-index: 1;
    background-image: 
        /* 4-Point Lens Flare Star 1 */
        radial-gradient(2px 14px at 110px 70px, rgba(242, 115, 33, 0.95), transparent),
        radial-gradient(14px 2px at 110px 70px, rgba(242, 115, 33, 0.95), transparent),
        /* 4-Point Lens Flare Star 2 */
        radial-gradient(2px 16px at 280px 180px, rgba(255, 183, 3, 0.9), transparent),
        radial-gradient(16px 2px at 280px 180px, rgba(255, 183, 3, 0.9), transparent),
        /* 4-Point Lens Flare Star 3 */
        radial-gradient(2px 12px at 60px 240px, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(12px 2px at 60px 240px, rgba(255, 255, 255, 0.95), transparent),
        /* Twinkling Dot Stars */
        radial-gradient(2px 2px at 30px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 70px 120px, #f27321, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 150px 50px, #ffb703, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 220px 140px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 290px 90px, #f27321, rgba(0,0,0,0)),
        radial-gradient(3.5px 3.5px at 340px 220px, #ff9800, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 190px 260px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 100px 310px, #f27321, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 240px 330px, #ffb703, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 380px 380px;
    opacity: 0.85;
    animation: starZoomForward 6s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
}

/* Starfield Layer 2: Twinkling & Rotating Nebula Stardust */
.galaxy-orange-card::after {
    content: '';
    position: absolute;
    inset: -60%;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(242, 115, 33, 0.22) 0%, rgba(242, 115, 33, 0.06) 40%, rgba(0, 0, 0, 0) 70%),
                radial-gradient(2px 2px at 45px 95px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(2.5px 2.5px at 135px 215px, #f27321, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 265px 145px, #ffb703, rgba(0,0,0,0));
    background-size: 100% 100%, 300px 300px, 300px 300px, 300px 300px;
    background-repeat: no-repeat, repeat, repeat, repeat;
    animation: galaxyRotate 20s linear infinite, galaxyPulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}

/* 3D Forward Zooming Stars Animation */
@keyframes starZoomForward {
    0% {
        transform: scale(0.6) translateZ(0);
        opacity: 0.2;
        filter: drop-shadow(0 0 2px #f27321);
    }
    50% {
        opacity: 0.95;
        filter: drop-shadow(0 0 10px #f27321);
    }
    100% {
        transform: scale(1.55) translateZ(120px);
        opacity: 0.1;
        filter: drop-shadow(0 0 16px #f27321);
    }
}

/* Cosmic Nebula Rotation Animation */
@keyframes galaxyRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Starfield Pulse & Twinkle Animation */
@keyframes galaxyPulse {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.95;
    }
}    gap: 35px;
    margin-top: 30px;
}

.directory-grid-offices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Agent Card Styles */
.agent-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--color-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.agent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(17, 22, 37, 0.12);
}

.agent-card-img-container {
    height: 320px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-light-bg);
}

.agent-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition-smooth);
}

.agent-card:hover .agent-card-img-container img {
    transform: scale(1.04);
}

.agent-card-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.agent-card-name {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.agent-card-title {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.agent-card-office {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.agent-card-office i {
    color: var(--color-accent);
}

.agent-card-bio {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-card-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 18px;
    margin-top: auto;
}

.agent-card-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.agent-card-contact a {
    color: var(--color-primary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.agent-card-contact a:hover {
    color: var(--color-accent);
    transform: scale(1.15);
}

.agent-card-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.agent-card-socials a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.agent-card-socials a:hover {
    color: var(--color-accent);
    transform: scale(1.15);
}

/* Office Card Styles */
.office-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--color-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.office-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(17, 22, 37, 0.12);
}

.office-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

.office-card-name {
    color: var(--color-primary);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.office-card-section {
    margin-bottom: 20px;
}

.office-card-section-title {
    font-size: 0.80rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.office-card-locality {
    display: flex;
    gap: 25px;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.office-card-address {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.office-card-address i, .office-card-contact i {
    color: var(--color-accent);
    margin-top: 4px;
}

.office-card-contact {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-card-contact a {
    transition: var(--transition-smooth);
}

.office-card-contact a:hover {
    color: var(--color-accent);
}

.office-card-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
}

.office-card-footer .btn {
    flex: 1;
    padding: 11px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Navigation Dropdowns & Mobile Accordions */
@media (min-width: 993px) {
    .nav-menu {
        position: relative;
    }
}
.nav-item {
    position: relative;
}
.nav-item.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-item.has-dropdown > a i {
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-white);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1100;
    border-top: 3px solid var(--color-accent);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.dropdown-menu li {
    margin: 0 !important;
    width: 100%;
}
.dropdown-menu li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--color-text-muted) !important;
    font-size: 0.85rem !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth);
    text-align: left;
    width: 100%;
}
.dropdown-menu li a i {
    font-size: 0.85rem;
    color: var(--color-accent);
    width: 16px;
    text-align: center;
}
.dropdown-menu li a:hover {
    color: var(--color-accent) !important;
    background-color: rgba(242, 115, 33, 0.05);
    padding-left: 24px;
}
.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Scrolled navigation link color overrides for dropdown */
header.scrolled .dropdown-menu li a {
    color: var(--color-text-muted) !important;
}
header.scrolled .dropdown-menu li a:hover {
    color: var(--color-accent) !important;
}

/* Hide desktop menu items on mobile & vice versa */
@media (min-width: 993px) {
    .hide-desktop { display: none !important; }
}
@media (max-width: 992px) {
    .hide-mobile { display: none !important; }
}

/* Mobile responsive menu overrides for accordion submenus */
@media (max-width: 992px) {
    .nav-menu {
        overflow-y: auto !important;
        padding-bottom: 50px;
    }
    .nav-item.has-dropdown {
        width: 100%;
        text-align: center;
    }
    .nav-item.has-dropdown > a {
        justify-content: center;
        width: 100%;
    }
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        background-color: rgba(0, 0, 0, 0.02) !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-left: 2px solid var(--color-accent) !important;
        margin: 10px auto 0 auto !important;
        width: 90% !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 !important;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
        display: block !important;
    }
    .dropdown-menu.show-mobile-submenu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 10px 0 !important;
    }
    .dropdown-menu li a {
        padding: 8px 20px !important;
        justify-content: center;
    }
    .dropdown-menu li a:hover {
        padding-left: 20px;
    }
}

/* General Styles for the Calculator, Service, and Resource sections */
.calc-card, .service-card, .faq-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: var(--transition-smooth);
}
.calc-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(17, 22, 37, 0.08);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}
.faq-question {
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 15px;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Premium Header CTA Button */
.header-cta-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.header-cta-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-1px);
}
@media (max-width: 992px) {
    .header-cta {
        display: none !important;
    }
}



 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       R e s p o n s i v e   G r i d   U t i l i t i e s 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 . g r i d - l a y o u t - s i d e b a r   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   2 f r   1 f r ; 
         g a p :   4 0 p x ; 
         a l i g n - i t e m s :   s t a r t ; 
 } 
 
 . g r i d - l a y o u t - s i d e b a r - r e v e r s e   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   1 f r   2 f r ; 
         g a p :   4 0 p x ; 
         a l i g n - i t e m s :   s t a r t ; 
 } 
 
 . g r i d - l a y o u t - s i d e b a r - s m a l l   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   1 . 3 f r   1 f r ; 
         g a p :   4 0 p x ; 
         a l i g n - i t e m s :   s t a r t ; 
 } 
 
 . g r i d - l a y o u t - h a l v e s   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   1 f r   1 f r ; 
         g a p :   4 0 p x ; 
 } 
 
 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       M o b i l e   R e s p o n s i v e n e s s   ( <   7 6 8 p x ) 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
         / *   C o l l a p s e   a l l   m a i n   g r i d   l a y o u t s   t o   1   c o l u m n   * / 
         . g r i d - l a y o u t - s i d e b a r , 
         . g r i d - l a y o u t - s i d e b a r - r e v e r s e , 
         . g r i d - l a y o u t - s i d e b a r - s m a l l , 
         . g r i d - l a y o u t - h a l v e s , 
         . d e t a i l - l a y o u t , 
         . f i l t e r - g r i d , 
         . d i r e c t o r y - g r i d - a g e n t s , 
         . c o n t a c t - l a y o u t , 
         . f o o t e r - t o p   { 
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r   ! i m p o r t a n t ; 
                 d i s p l a y :   f l e x   ! i m p o r t a n t ; 
                 f l e x - d i r e c t i o n :   c o l u m n   ! i m p o r t a n t ; 
                 g a p :   2 0 p x   ! i m p o r t a n t ; 
         } 
 
         / *   A d j u s t   p a d d i n g   a n d   f o n t   s i z e s   f o r   s m a l l e r   s c r e e n s   * / 
         . s e c t i o n   { 
                 p a d d i n g :   4 0 p x   0 ; 
         } 
         
         . s e c t i o n - t i t l e   { 
                 f o n t - s i z e :   1 . 6 r e m ; 
         } 
         
         . h e r o - b a n n e r   h 1   { 
                 f o n t - s i z e :   2 . 2 r e m ; 
         } 
         
         . h e a d e r - c o n t a i n e r   { 
                 f l e x - w r a p :   w r a p ; 
                 p a d d i n g :   1 0 p x   0 ; 
         } 
         
         . n a v - m e n u   { 
                 f l e x - w r a p :   w r a p ; 
                 g a p :   1 0 p x ; 
                 j u s t i f y - c o n t e n t :   c e n t e r ; 
                 m a r g i n - t o p :   1 5 p x ; 
         } 
         
         . l o g o - c o n t a i n e r   { 
                 m a r g i n - r i g h t :   0   ! i m p o r t a n t ; 
                 m a r g i n - b o t t o m :   1 0 p x ; 
         } 
 
         . h i d e - m o b i l e   { 
                 d i s p l a y :   n o n e   ! i m p o r t a n t ; 
         } 
 } 
 
 
 

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-contact-info li {
        justify-content: center;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .listing-image-container {
        height: 200px;
    }
    .property-detail-banner {
        padding: 40px 0;
    }
    .detail-title {
        font-size: 1.6rem;
    }
    .office-card-footer {
        flex-direction: column;
    }
}


/* --- CALCULATOR PAGE FIXES --- */

.grid-layout-halves {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

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

.calc-tabs-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 40px;
    gap: 15px;
    padding-bottom: 5px;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.calc-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    opacity: 0.7;
}

.tab-btn:hover {
    color: var(--color-primary);
    opacity: 1;
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    opacity: 1;
}

.galaxy-orange-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, #303332 100%);
    border-top: 5px solid var(--color-accent) !important;
    box-shadow: 0 15px 35px rgba(27, 28, 28, 0.2);
    padding: 40px 30px !important;
    border-radius: var(--border-radius-md);
}

.calc-card .form-group input,
.calc-card .form-group select {
    transition: border-color 0.3s;
}
.calc-card .form-group input:focus,
.calc-card .form-group select:focus {
    border-color: var(--color-accent) !important;
}


/* ======================================================
   COMPREHENSIVE MOBILE FIXES - ALL PAGES
   Covers: calculators.php, resources.php, services.php,
           about.php, agents.php, contact.php, why-choose-us.php
   ====================================================== */

/* === SHARED: Sidebar Layout (detail-info + sidebar) === */
.grid-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* === SHARED: Banner responsive text === */
.directory-banner h1 {
    word-break: break-word;
}

/* === SHARED: Service cards inside grids === */
.service-card {
    padding: 20px;
    border-radius: var(--border-radius-sm);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* -------------------------------------------------------
   TABLET (max 1024px)
   ------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-layout-sidebar {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
}

/* -------------------------------------------------------
   MOBILE (max 768px) - PRIMARY FIX
   ------------------------------------------------------- */
@media (max-width: 768px) {

    /* --- Tab Wrappers (calc, resources, services) --- */
    .calc-tabs-wrapper,
    div[style*="display: flex"][style*="flex-wrap: wrap"][style*="border-bottom"] {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }
    .calc-tabs-wrapper::-webkit-scrollbar { display: none; }

    /* --- Sidebar Layout: single column on mobile --- */
    .grid-layout-sidebar {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Sidebar comes after content on mobile */
    .grid-layout-sidebar .sidebar {
        order: 2;
    }
    .grid-layout-sidebar .detail-info {
        order: 1;
    }

    /* --- Inline grids inside resources/services pages --- */
    /* 2-col grids inside detail sections → single column */
    .detail-info > div[style*="grid-template-columns: 1fr 1fr"],
    .detail-info > div[style*="grid-template-columns: 1.5fr"],
    .detail-info div[style*="grid-template-columns: 1fr 1fr"],
    .detail-info div[style*="grid-template-columns: 1.5fr"] {
        display: block !important;
    }
    .detail-info > div[style*="grid-template-columns: 1fr 1fr"] > *,
    .detail-info > div[style*="grid-template-columns: 1.5fr"] > *,
    .detail-info div[style*="grid-template-columns: 1fr 1fr"] > *,
    .detail-info div[style*="grid-template-columns: 1.5fr"] > * {
        margin-bottom: 16px;
        width: 100% !important;
    }

    /* --- Service cards grid fix --- */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns: 1.5fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns: 50px 1fr"] {
        grid-template-columns: 44px 1fr !important;
        gap: 12px !important;
    }

    /* --- Loan Comparison table fix (comp-table) --- */
    .comp-table {
        font-size: 0.78rem;
    }
    .comp-table th, .comp-table td {
        padding: 8px 6px !important;
    }

    /* --- Calculators result card --- */
    .galaxy-orange-card {
        text-align: center !important;
    }
    #mortgage-result, #borrow-result, #stamp-result, #yield-result-value, #est-result {
        font-size: 2.5rem !important;
    }

    /* --- Loan comparison grid (two loan cards side-by-side) --- */
    div[style*="grid-template-columns: 1fr 40px 1fr"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns: 1fr 40px 1fr"] > div[style*="text-align: center"] {
        display: none !important;
    }

    /* --- About page: team flex --- */
    div[style*="display: flex"][style*="justify-content: center"] {
        flex-wrap: wrap !important;
        gap: 24px !important;
    }

    /* --- About page: video section --- */
    .about-video-wrapper {
        height: 240px !important;
    }

    /* --- Why-choose-us: stat grid --- */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* --- Contact page form layout --- */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Agents page grid --- */
    .agents-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* --- Properties page: detail layout --- */
    .detail-layout {
        grid-template-columns: 1fr !important;
    }

    /* --- Banner spacer reduction on mobile --- */
    .directory-banner {
        padding: 30px 0 !important;
    }
    .directory-banner h1 {
        font-size: 1.6rem !important;
    }
    .directory-banner p {
        font-size: 0.9rem !important;
    }

    /* --- Section padding reduction --- */
    .section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* --- Tab button sizing on mobile --- */
    .tab-btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }

    /* --- Sidebar card padding --- */
    .sidebar-card {
        padding: 20px !important;
    }

    /* --- Table: allow horizontal scroll --- */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    /* --- FAQ accordion fix --- */
    .faq-item {
        padding: 16px !important;
    }

    /* --- Calc card --- */
    .calc-card {
        padding: 20px !important;
    }
    .calc-card .galaxy-orange-card {
        padding: 24px 16px !important;
    }
}

/* -------------------------------------------------------
   VERY SMALL MOBILE (max 480px)
   ------------------------------------------------------- */
@media (max-width: 480px) {
    .grid-layout-halves {
        grid-template-columns: 1fr !important;
    }
    .agents-grid {
        grid-template-columns: 1fr !important;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .directory-banner h1 {
        font-size: 1.3rem !important;
    }
    #mortgage-result, #borrow-result, #stamp-result, #yield-result-value, #est-result {
        font-size: 2rem !important;
    }
}


/* ======================================================
   TARGETED PAGE-SPECIFIC MOBILE FIXES (Round 2)
   ====================================================== */

/* --- Contact page sidebar layout --- */
.grid-layout-sidebar-small {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Why Choose Us: wider sidebar split --- */
.why-choose-us-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    /* --- Contact page: stack layout --- */
    .grid-layout-sidebar-small {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* --- Why choose us grid --- */
    .why-choose-us-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* --- General: any 2-column inline grid inside a container → stack --- */
    .container > div > div[style*="grid-template-columns: 1.2fr"],
    .container > div > div[style*="grid-template-columns: 1.5fr"],
    .container > div div[style*="grid-template-columns: 1.2fr"],
    .container > div div[style*="grid-template-columns: 1.5fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Contact form name/email side by side → stack */
    form > div[style*="grid-template-columns: 1fr 1fr"],
    .form-group-row {
        grid-template-columns: 1fr !important;
    }

    /* --- Agents page: stack to 1 column --- */
    .agents-grid {
        grid-template-columns: 1fr !important;
    }

    /* Padding fixes for panels and cards */
    div[style*="padding: 40px 30px"],
    div[style*="padding: 45px"] {
        padding: 20px !important;
    }
    div[style*="padding: 40px"] {
        padding: 20px !important;
    }

    /* Fix calc-banner padding */
    .calc-banner, .resources-banner, .services-banner, .about-banner {
        min-height: 120px !important;
        padding: 24px 0 !important;
    }

    /* --- FAQ accordion question text --- */
    .faq-question {
        font-size: 0.95rem !important;
        padding-right: 10px !important;
    }

    /* --- Icon + text horizontal rows in services → stack --- */
    div[style*="display: flex"][style*="align-items: center"][style*="gap: 15px"],
    div[style*="display: flex"][style*="align-items: flex-start"][style*="gap: 20px"] {
        flex-wrap: wrap !important;
    }

    /* --- Office cards grid --- */
    .offices-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Properties filter bar on mobile --- */
    .filter-bar {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .filter-bar select,
    .filter-bar input {
        width: 100% !important;
    }

    /* --- Property listing cards --- */
    .property-card {
        margin-bottom: 20px;
    }

    /* --- Loan comparison side-by-side boxes → stack --- */
    div[style*="grid-template-columns: 1fr 40px 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* Ensure images in gallery rows don't overflow */
    img {
        max-width: 100%;
    }

    /* --- Footer columns on very small screens --- */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Contact/Services panels extra tight */
    .grid-layout-sidebar-small {
        gap: 16px !important;
    }
    .calc-banner h1, .resources-banner h1, .services-banner h1 {
        font-size: 1.2rem !important;
    }

    /* Bump up section top padding since header is fixed */
    body > div[style*="height: 100px"] {
        height: 80px !important;
    }
}


/* ======================================================
   RESPONSIVE STATS GRID - Inline grid overrides
   ====================================================== */

.responsive-stats-grid {
    display: grid !important;
}

@media (max-width: 768px) {
    .responsive-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}


/* ======================================================
   MOBILE TAB → DROPDOWN NAVIGATION
   Desktop: shows calc-tabs-wrapper buttons
   Mobile:  shows styled <select> dropdown
   ====================================================== */

.tab-nav-container {
    margin-bottom: 40px;
}

/* Hide mobile dropdown by default (desktop first) */
.tab-mobile-select {
    display: none;
}

/* Hide nothing on desktop - tabs visible */
.tab-nav-container .calc-tabs-wrapper {
    display: flex;
    margin-bottom: 0;
}

/* --- Mobile Select Styling --- */
@media (max-width: 768px) {
    /* Hide desktop tab buttons */
    .tab-nav-container .calc-tabs-wrapper {
        display: none !important;
    }

    /* Show the dropdown instead */
    .tab-mobile-select {
        display: block;
        margin-bottom: 24px;
    }

    .tab-select-label {
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--color-text-muted);
        margin-bottom: 8px;
    }

    .tab-select-wrapper {
        position: relative;
    }

    .tab-select-wrapper select {
        appearance: none;
        -webkit-appearance: none;
        width: 100%;
        padding: 14px 44px 14px 18px;
        font-family: var(--font-primary);
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--color-primary);
        background: #ffffff;
        border: 2px solid var(--color-accent);
        border-radius: var(--border-radius-sm);
        outline: none;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(242,115,33,0.08);
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .tab-select-wrapper select:focus {
        border-color: var(--color-primary);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .tab-select-arrow {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-accent);
        font-size: 0.85rem;
        pointer-events: none;
    }
}


/* ======================================================
   FIX: Force hide desktop tabs on mobile - override all
   ====================================================== */
@media (max-width: 768px) {
    /* Ensure the desktop tabs inside tab-nav-container are ALWAYS hidden on mobile */
    .tab-nav-container > .calc-tabs-wrapper,
    .tab-nav-container .calc-tabs-wrapper {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Ensure the mobile dropdown is always shown */
    .tab-nav-container .tab-mobile-select {
        display: block !important;
        visibility: visible !important;
    }
}

/* ======================================================
   TIMELINE STEP CARDS — Resources Guide (Buying/Selling)
   ====================================================== */

/* Outer row: step-number circle + card */
.timeline-step-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    margin-bottom: 35px;
    align-items: flex-start;
}

/* Inner card: image | text side-by-side */
.timeline-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 25px rgba(242,115,33,0.12);
}

/* Image wrapper inside the card */
.timeline-card-image {
    height: 100%;
    min-height: 160px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.timeline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.timeline-card-image img:hover {
    transform: scale(1.06);
}

/* Text content side */
.timeline-card-text {
    padding: 22px 28px;
}

/* ======================================================
   RESPONSIVE — stack cards vertically on mobile
   ====================================================== */
@media (max-width: 768px) {
    .timeline-step-row {
        grid-template-columns: 44px 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .timeline-card {
        /* Stack image on top, text below */
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .timeline-card-image {
        height: 180px;
        min-height: 180px;
        width: 100%;
    }

    .timeline-card-text {
        padding: 16px 18px;
    }

    .timeline-card-text h4 {
        font-size: 1.05rem;
    }

    .timeline-card-text p {
        font-size: 0.88rem;
    }
}

/* ======================================================
   PROPERTY LISTING — IMAGE / VIDEO SLIDER
   ====================================================== */

/* ── Wrapper ── */
.property-slider-wrap {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    user-select: none;
}

/* ── Slide track ── */
.property-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Individual slide ── */
.property-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1b1b1b;
    cursor: zoom-in;
}

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

.property-slide:hover img {
    transform: scale(1.03);
}

.property-slide video,
.property-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    cursor: default;
}

/* ── Prev / Next Arrows ── */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    font-size: 1.25rem;
    color: #1b1c1c;
}
.slider-nav-btn:hover {
    background: #f27321;
    color: #fff;
    box-shadow: 0 6px 20px rgba(242,115,33,0.4);
    transform: translateY(-50%) scale(1.08);
}
.slider-nav-btn.prev { left: 14px; }
.slider-nav-btn.next { right: 14px; }

/* ── Slide Counter "2 / 5" ── */
.slider-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* ── "Click to expand" hint ── */
.slider-expand-hint {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: rgba(0,0,0,0.50);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 10;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

/* ── Thumbnail Strip ── */
.slider-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #f27321 #eee;
}
.slider-thumbs::-webkit-scrollbar { height: 4px; }
.slider-thumbs::-webkit-scrollbar-thumb { background: #f27321; border-radius: 2px; }

.slider-thumb {
    flex: 0 0 90px;
    height: 62px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: border-color 0.2s, opacity 0.2s, transform 0.15s;
    scroll-snap-align: start;
    opacity: 0.65;
    position: relative;
}
.slider-thumb:hover { opacity: 1; transform: translateY(-2px); }
.slider-thumb.active {
    border-color: #f27321;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(242,115,33,0.3);
}

.slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Video thumb overlay icon */
.slider-thumb-video-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 1.2rem;
}

/* ── Full-screen Lightbox ── */
.prop-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.93);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(6px);
}
.prop-lightbox.open { display: flex; }

.prop-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop-lightbox-inner img,
.prop-lightbox-inner video {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.prop-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}
.prop-lightbox-close:hover { background: #f27321; }

.prop-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}
.prop-lightbox-nav:hover { background: #f27321; }
.prop-lightbox-nav.prev { left: 20px; }
.prop-lightbox-nav.next { right: 20px; }

.prop-lightbox-counter {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 14px;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .slider-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .slider-nav-btn.prev { left: 8px; }
    .slider-nav-btn.next { right: 8px; }

    .slider-thumb {
        flex: 0 0 72px;
        height: 50px;
    }

    .prop-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .prop-lightbox-nav.prev { left: 8px; }
    .prop-lightbox-nav.next { right: 8px; }
}
