/* ===== CSS RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000000;
}

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

p {
    margin-bottom: 1rem;
    color: #333333;
}

a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #666666;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 1rem 0;
}

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

.navbar-brand .brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 65px;
    width: auto;
    max-width: 200px;
    transition: opacity 0.3s ease;
}

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

.hamburger-line {
    width: 25px;
    height: 2px;
    background: #000000;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar-menu {
    display: flex;
}

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

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #333333;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #000000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 200px);
    max-width: 1200px;
    margin: auto;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #000000;
    border-color: #000000;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== Property Detail Neutral Styling ===== */
.icon-offgrey {
    color: #ccc !important;
}

.text-offgrey {
    color: #222 !important;
}

.feature-value {
    font-size: 1rem;
    line-height: 1.2;
}

.property-features .fa-lg {
    font-size: 1.25rem;
}

.property-features .border {
    border-color: #e5e5e5 !important;
}

.property-features small {
    color: #777 !important;
}

/* Mobile tuning for detail page features */
@media (max-width: 576px) {
    .property-features .fa-lg {
        font-size: 1rem;
    }
    .property-features .feature-value {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    .property-features .border {
        padding: 0.5rem !important;
    }
    .property-features small {
        font-size: 0.75rem;
    }
}

/* Reduced pricing font for property detail sidebar */
.property-pricing .price-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}

/* ===== CARDS ===== */
.card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    /* height: 100%; Removed to prevent stacking issues in forms */
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.card-text {
    color: #666666;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #999999;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

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

.section-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== STATS ===== */
.stats {
    background: #f8f9fa;
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    display: block;
}

.stat-label {
    color: #666666;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000000;
}

.form-control {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Property listings page search form */
.property-search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-form-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.contact-form-container h2 {
    color: #111827;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-form-container > p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
}

.contact-form .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #000000;
}

.contact-form .checkbox-label a {
    color: #000000;
    text-decoration: underline;
}

.contact-form .checkbox-label a:hover {
    text-decoration: none;
}

.contact-info {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.contact-info h2 {
    color: #111827;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info > p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-content h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-content p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.social-links h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.faq-item h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-buttons {
        justify-content: center;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.contact-info p {
    color: #222;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #999999;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.legal-link {
    color: #999999;
    font-size: 0.875rem;
}

.legal-link:hover {
    color: #ffffff;
}
#main-content .text-primary {
    color: #222222;
}

/* ===== DROPDOWN NAVIGATION ===== */
/* Desktop: ensure dropdown floats over content */
@media (min-width: 769px) {
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        z-index: 10000;
        min-width: 200px;
    }
}

/* Mobile: Tabbed in text links */
@media (max-width: 768px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        padding-left: 1.5rem;
        padding-top: 0;
        padding-bottom: 0.5rem;
    }

    .navbar-nav .dropdown-item {
        color: #555;
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: transparent;
        color: #000;
    }
    
    .navbar-nav .dropdown-divider {
        border-color: #eee;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .dropdown-toggle::after {
        /* Optional: adjust caret if needed */
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Desktop navigation - ensure horizontal layout */
@media (min-width: 769px) {
    .navbar-nav {
        flex-direction: row;
    }
    
    .nav-item {
        margin-left: 2rem;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Mobile and tablet navigation */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e5e5;
        padding: 1rem;
    }
    
    .navbar-menu.active {
        display: block;
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    /* Responsive logo styles */
    .brand-logo {
        height: 40px;
        max-width: 150px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-6, .col-8, .col-9 {
        flex: 0 0 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .property-search-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .stats {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Ensure property features remain inline on mobile (overrides global stacking) */
@media (max-width: 768px) {
    .property-features {
        flex-direction: row; /* override .row stacking */
    }
    .property-features .col-4 {
        flex: 0 0 33.333333%; /* keep three columns */
        padding: 0 0.25rem; /* slightly tighter gutters */
    }
    /* Keep insights cards two-up on mobile */
    .insights-cards {
        flex-direction: row;
    }
    .insights-cards .col-6 {
        flex: 0 0 50%;
        padding: 0 0.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== PROPERTY GRID LAYOUT ===== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.property-grid .property-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0; /* Override the margin from property-listings.css */
}

.property-grid a {
    display: block;
    height: 100%;
}

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

.property-grid a:hover .property-image img {
    transform: scale(1.05);
}

.property-grid .property-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

/* Remove direct hover on card since we now use the anchor hover */
/* .property-grid .property-card:hover { ... } - REMOVED */
/* .property-grid .property-card:hover .property-image img { ... } - REMOVED */

.property-grid .property-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-grid .property-status.status-exclusive {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000;
}

.property-grid .property-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-grid .property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.property-grid .property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-grid .property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.property-grid .property-location::before {
    content: "📍";
    margin-right: 0.5rem;
}

.property-grid .property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-grid .feature {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.property-grid .feature i {
    margin-right: 0.25rem;
    color: #0d6efd;
}

.property-grid .property-agent {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.property-grid .agent-info {
    display: flex;
    flex-direction: column;
}

.property-grid .agent-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.property-grid .agent-agency {
    color: #666;
    font-size: 0.8rem;
}

.property-grid .property-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.property-grid .property-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-grid .property-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    
    .property-grid .property-image {
        height: 250px;
    }
    
    .property-grid .property-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .property-grid .property-content {
        padding: 1rem;
    }
    
    .property-grid .property-features {
        gap: 0.5rem;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ===== PROPERTY DETAIL PAGE ===== */
.property-detail-image {
    height: 500px;
    object-fit: cover;
    cursor: zoom-in;
}

.property-detail-placeholder {
    height: 500px;
}

@media (max-width: 768px) {
    .property-detail-image,
    .property-detail-placeholder {
        height: 300px;
    }
}

/* ===== PROPERTY CAROUSEL & THUMBNAILS ===== */
.property-carousel-control {
    width: 5%;
    /*background-color: rgba(0, 0, 0, 0.3); opacity: 1;
    transition: background-color 0.3s ease; */
}

.property-carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.property-thumbnails {
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #fff;
    padding: 2px 4px; /* Padding to prevent left edge clipping */
}

.property-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.property-thumbnails::-webkit-scrollbar-track {
    background: #fff;
}

.property-thumbnails::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

.thumbnail-item {
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    width: 80px;
    height: 60px;
    min-width: 80px;
}

.thumbnail-item:hover {
    opacity: 0.8;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: #000; /* Primary color */
    transform: scale(1.05);
    z-index: 1;
}

/* Larger thumbnails on desktop (~37% larger) */
@media (min-width: 992px) {
    .thumbnail-item {
        width: 110px;
        height: 82px;
        min-width: 110px;
    }
}

/* Gallery Modal Controls - Match Property Grid style */
#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: 5%;
    opacity: 1;
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50%;
}

#galleryCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ===== ARCHIVED RIBBON ===== */
.property-image-container, 
.property-grid .property-image,
.carousel-item {
    position: relative;
    overflow: hidden;
}

.archived-ribbon {
    position: absolute;
    top: 25px;
    left: -25px;
    background: #6c757d; /* Bootstrap secondary gray */
    color: #fff;
    padding: 5px 30px;
    transform: rotate(-45deg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    width: 120px;
    letter-spacing: 1px;
}
