/* ========================================
   PUBLIC WEBSITE STYLES - MODERN LAYOUT
   ======================================== */

/* ----------------------------------------
   Brand theme overrides (Bootstrap primary → brand red)
   ---------------------------------------- */
:root {
    --bs-primary: #dc3545;
    --bs-primary-rgb: 220, 53, 69;
    --bs-link-color: #dc3545;
    --bs-link-hover-color: #b02a37;
}

.text-primary { color: #dc3545 !important; }
.bg-primary { background-color: #dc3545 !important; }
.border-primary { border-color: #dc3545 !important; }
.link-primary { color: #dc3545 !important; }
.link-primary:hover { color: #b02a37 !important; }

.btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #bb2d3b;
    border-color: #b02a37;
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, 0.25);
}

.btn-outline-primary {
    color: #dc3545;
    border-color: #dc3545;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, 0.15);
}

/* Pills / active tab states */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #dc3545;
}

/* Inputs focus ring */
.form-control:focus, .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, 0.15);
}

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

/* Main Navigation */
.navbar {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #dc3545;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

/* Logo Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2d3436 !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #dc3545 !important;
}

.navbar-brand img {
    height: 55px;
    transition: all 0.3s ease;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #2d3436 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.7rem 1.2rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.navbar-nav .nav-link.active-link {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.4);
}

/* Dropdown Menus */
.dropdown-menu {
    background: #ffffff;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
}

.dropdown-item {
    color: #2d3436;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.2rem 0.5rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: #fff;
    transform: translateX(5px);
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(220, 53, 69, 0.2);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        text-align: center;
    }
}

/* ----------------------------------------
   Property Sidebar: Share Buttons Styling
   Ensures consistent look even if template styles fail
   ---------------------------------------- */
.enquiry-card .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding-top: 0.25rem;
}

.enquiry-card .share-buttons .share-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-card .share-buttons .share-btn i {
    font-size: 1.05rem;
}

.enquiry-card .share-buttons .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.enquiry-card .share-buttons .share-btn.whatsapp { background: #25d366; }
.enquiry-card .share-buttons .share-btn.facebook { background: #1877f2; }
.enquiry-card .share-buttons .share-btn.twitter { background: #1da1f2; }
.enquiry-card .share-buttons .share-btn.copy { background: #6c757d; }

@media (max-width: 576px) {
  .enquiry-card .share-buttons .share-btn {
      width: 44px;
      height: 44px;
  }
}

/* ----------------------------------------
   Generic Share Section (used on property pages)
   ---------------------------------------- */
.share-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.share-section h4 {
    margin-bottom: 1rem;
    color: #2d3436;
    font-size: 1.1rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 0;
}

.share-btn {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.copy     { background: #6c757d; }

@media (max-width: 576px) {
    .share-buttons { gap: 0.75rem; }
    .share-btn { width: 52px; height: 52px; font-size: 1.1rem; }
}

/* ----------------------------------------
   Property Gallery Grid (ensures grid even inside tabs)
   ---------------------------------------- */
#gallery .content-card.gallery-content {
    padding-top: 0.5rem;
}

.gallery-hero {
    width: 100%;
    height: 340px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#propertyGallery,
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 180px;
    gap: 14px;
}

.gallery-grid.masonry-layout {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}

.gallery-grid.grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
}

#propertyGallery .gallery-item,
.gallery-grid .gallery-item {
    display: block;
}

#propertyGallery .gallery-item .gallery-item-wrapper,
.gallery-grid .gallery-item .gallery-item-wrapper {
    height: 100%;
}

#propertyGallery .gallery-item img,
.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   HERO & FILTER SECTION
   ======================================== */

/* Hero Section */
.filter-hero {
    /* Uses the runtime-provided CSS variable (set from SiteSettings) with fallback gradient */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--search-hero-image, linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 3rem 0 3rem 0;
    margin-top: 80px; /* Account for fixed navbar */
    position: relative;
    min-height: 400px;
}

/* Hero Title - Two-Line Style */
.hero-title-wrapper {
    animation: fadeInDown 0.8s ease-out;
    padding-top: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.hero-title-line1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8);
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    animation: slideInFromLeft 0.9s ease-out;
}

.hero-title-line1 .highlight-text {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 2px 8px rgba(220, 53, 69, 0.8));
    font-weight: 900;
    position: relative;
}

.hero-title-line2 {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.75rem;
    font-weight: 400;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.4;
    animation: slideInFromRight 1s ease-out;
    font-style: italic;
}

.hero-title-line2 .accent-dot {
    color: #fff;
    font-weight: 600;
    font-style: normal;
    position: relative;
}

/* Removed dot before text
.hero-title-line2 .accent-dot::before {
    content: '●';
    color: #dc3545;
    font-size: 0.5rem;
    position: absolute;
    left: -0.25rem;
    top: 50%;
    transform: translateY(-50%);
    animation: pulse 2s ease-in-out infinite;
}
*/

/* Legacy hero-title class for backward compatibility */
.hero-title {
    color: #ffffff !important;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    padding-top: 1rem;
    animation: fadeInDown 0.8s ease-out;
    display: block;
    visibility: visible;
    z-index: 10;
    position: relative;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Search Card */
.search-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.search-card .card-body {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
}

/* Search Input Group */
.search-input-group {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: stretch;
}

.search-input-group .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #fff;
    border-radius: 15px 0 0 15px;
    transition: all 0.3s ease;
    height: 48px;
    line-height: 1.5;
}

.search-input-group .form-control:focus {
    box-shadow: none;
    background: #f8f9fa;
}

.search-input-group .btn {
    border: none;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border-radius: 0 15px 15px 0;
    transition: all 0.3s ease;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-group .btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: scale(1.02);
}

/* Floating Label Search Input */
.search-card .form-floating {
    margin-bottom: 0;
}

.search-card .form-floating .form-control {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem 0.75rem 0.25rem 0.75rem;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
    height: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-card .form-floating .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background: #fff;
}

.search-card .form-floating label {
    padding: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Search Card Button Styles */
.search-card .btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-card .btn-outline-danger:hover,
.search-card .btn-outline-danger:focus {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

.search-card .btn-outline-danger:active {
    background-color: #bb2d3b;
    border-color: #b02a37;
    transform: translateY(0);
}

/* Filter Controls */
.filter-controls {
    margin-top: 0.75rem;
}

/* All filter inputs and selects - consistent height */
.filter-controls .form-control,
.filter-controls .form-select,
.filter-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
    height: 44px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.filter-controls .form-control:focus,
.filter-controls .form-select:focus,
.filter-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Buttons in filter controls */
.filter-controls .btn {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}

/* Additional filters (collapsible section) */
#additionalFilters .form-control,
#additionalFilters .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
    height: 50px;
    line-height: 1.5;
    font-size: 1rem;
}

/* Apply Filters button */
.search-card button[type="submit"]:not(.search-input-group .btn) {
    height: 44px;
}

/* Compact search form rows */
.compact-search .row > [class^="col-"] {
    margin-bottom: 0.25rem;
}

/* Advanced Filters Toggle */
.advanced-filters-toggle {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.advanced-filters-toggle:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
}

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

/* Listings Container */
.listings-container {
    padding: 3rem 0;
}

/* Results Header */
.results-header {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-left: 4px solid #dc3545;
}

.results-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: #dc3545;
}

/* View Toggle Buttons */
.view-toggle {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.3rem;
    display: inline-flex;
}

.view-toggle .btn {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-toggle .btn.active,
.view-toggle .btn:hover {
    background: #dc3545;
    color: #fff;
    transform: scale(1.05);
}

/* Property Cards */
.property-card {
    background: #fff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Clickable card styling */
.clickable-card {
    cursor: pointer;
}

.clickable-card .property-title {
    color: #2d3436;
    transition: color 0.3s ease;
}

.clickable-card:hover .property-title {
    color: #dc3545;
}

/* Property Image */
.property-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

/* Property Status Badge */
.property-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.status-for-sale {
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
}

.status-for-rent {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.status-to-let {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.status-sold {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

/* Property Price */
.property-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

/* Property Content */
.property-content {
    padding: 1.5rem 1.5rem 1rem 1.5rem; /* Reduced bottom padding */
}

.property-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.property-location {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.property-location i {
    color: #dc3545;
    margin-right: 0.5rem;
}

/* Property Features */
.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0; /* Removed bottom margin since no buttons below */
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-icon {
    color: #dc3545;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.feature-text {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Property Actions - Removed (cards are now fully clickable)
.property-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.property-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-btn i {
    margin-right: 0.5rem;
}

.property-btn-primary {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: #fff;
}

.property-btn-primary:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-2px);
    color: #fff;
}

.property-btn-outline {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.property-btn-outline:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-2px);
}
*/

/* ========================================
   PAGINATION
   ======================================== */

.pagination-container {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.pagination {
    justify-content: center;
    margin: 0;
}

.page-link {
    border: none;
    color: #6c757d;
    padding: 0.75rem 1rem;
    margin: 0 0.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    /* Mobile Navigation */
    .navbar-brand img {
        height: 50px;
    }
    
    /* Hero Section */
    .filter-hero {
        padding: 2rem 0;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title-line1 {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }
    
    .hero-title-line2 {
        font-size: 1.35rem;
        letter-spacing: 0.3px;
    }
    
    .search-card .card-body {
        padding: 1.5rem;
    }
    
    .search-input-group .form-control,
    .search-input-group .btn {
        height: 50px;
        font-size: 1rem;
    }
    
    /* Property Cards */
    .property-card {
        margin-bottom: 1.5rem;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 1rem 1rem 0.75rem 1rem; /* Reduced bottom padding on mobile */
    }
    
    .property-features {
        padding: 0.75rem;
        margin-bottom: 0; /* No bottom margin on mobile */
    }
    
    /* Results Header */
    .results-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .results-count {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
        letter-spacing: -0.3px;
    }
    
    .hero-title-line1 {
        font-size: 1.85rem;
        letter-spacing: -0.3px;
        margin-bottom: 0.5rem;
    }
    
    .hero-title-line2 {
        font-size: 1.1rem;
        letter-spacing: 0.2px;
    }
    
    .hero-title-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .property-title {
        font-size: 1.1rem;
    }
    
    .property-price {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
    
    .search-input-group .form-control {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        height: 48px;
    }
    
    .search-input-group .btn {
        padding: 0.75rem 1.25rem;
        height: 48px;
        font-size: 0.95rem;
    }
}

/* ========================================
   LOADING STATES & ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.6s ease-out;
}

.property-card:nth-child(2) { animation-delay: 0.1s; }
.property-card:nth-child(3) { animation-delay: 0.2s; }
.property-card:nth-child(4) { animation-delay: 0.3s; }

/* Loading Skeleton */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* ========================================
   ACCESSIBILITY & FOCUS STATES
   ======================================== */

.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .property-card {
        border: 2px solid #000;
    }
    
    .navbar {
        background: #fff;
        border: 2px solid #000;
    }
    
    .dropdown-menu {
        background: #fff;
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #c82333, #b02a37);
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(220, 53, 69, 0.6);
}

.scroll-top-btn.show {
    display: flex;
}

.scroll-top-btn:active {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 90px;
        right: 20px;
        font-size: 1rem;
    }
}
