/* City Profile Page Styles */
.city-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.city-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/assets/chennaibg3.svg') no-repeat bottom center;
    background-size: contain;
    opacity: 0.05;
    z-index: 1;
}

.city-hero .container {
    position: relative;
    z-index: 2;
}

.city-image-container {
    width: 100%;
    max-width: 900px;
    height: 450px;
    background: #ffffff;
    border-radius: 30px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2), 0 15px 40px rgba(255, 103, 37, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 50px;
    border: 6px solid rgba(255, 103, 37, 0.2);
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
}

.city-image-container:hover {
    transform: translateY(-12px);
    box-shadow: 0 50px 100px rgba(0,0,0,0.25), 0 20px 50px rgba(255, 103, 37, 0.25);
    border-color: rgba(255, 103, 37, 0.4);
}

.city-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.city-image-container:hover img {
    transform: scale(1.02);
}

.city-image-badge {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: linear-gradient(135deg, rgba(255, 103, 37, 0.95), rgba(255, 138, 80, 0.95));
    color: white;
    padding: 15px 25px;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(255, 103, 37, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.city-image-badge i {
    font-size: 1.3rem;
}

.city-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.city-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

.city-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 103, 37, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6725, #FF8A50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6725;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Localities Section */
.localities-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 103, 37, 0.1);
}

.localities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.locality-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(248,249,250,0.85) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px) saturate(180%);
    min-height: 90px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
}

.locality-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
    filter: blur(1.5px) saturate(120%);
    transition: all 0.3s ease;
}

/* Lazy loading background images */
.locality-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: -1;
    filter: blur(1.5px) saturate(120%);
    transition: all 0.3s ease;
}

.locality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6725, #FF8A50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.locality-card:hover {
    border-color: rgba(255, 103, 37, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 103, 37, 0.2), 0 8px 32px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
}

.locality-card:hover::after {
    opacity: 0.25;
    filter: blur(1px) saturate(140%);
}

.locality-card:hover::before {
    transform: scaleX(1);
}

.locality-info {
    flex: 1;
    z-index: 2;
    position: relative;
}

.locality-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

.locality-count {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.locality-arrow {
    color: #FF6725;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.locality-card:hover .locality-arrow {
    transform: translateX(5px);
}

.price-insight {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid rgba(255, 103, 37, 0.1);
    position: relative;
    overflow: hidden;
}

.price-insight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 103, 37, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.price-insight-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.price-insight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6725, #FF8A50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 103, 37, 0.3);
}

.price-insight h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.price-range-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.price-stat {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 103, 37, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.price-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: rgba(255, 103, 37, 0.3);
}

.price-stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.price-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FF6725;
    line-height: 1.2;
}

.price-stat-value small {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.price-stat.featured {
    background: linear-gradient(135deg, rgba(255, 103, 37, 0.05) 0%, rgba(255, 138, 80, 0.02) 100%);
    border-color: rgba(255, 103, 37, 0.2);
}

.price-stat.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6725, #FF8A50);
}

.scores-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.scores-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.score-item:last-child {
    border-bottom: none;
}

.score-label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 18px !important;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-bar {
    width: 150px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6725, #FF8A50);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.score-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.score-value {
    font-weight: 700;
    color: #FF6725;
    font-size: 1rem;
    min-width: 60px;
    text-align: right;
}

.filters-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 40px 80px 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 103, 37, 0.1);
    position: relative;
    overflow: visible;
}

.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6725, #FF8A50);
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.filters-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #FF6725, #FF8A50);
    border-radius: 2px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.filter-group label {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #FF6725, #FF8A50);
    border-radius: 2px;
}

.filter-group select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #FF6725;
}

/* Nice Select Custom Styling */
.filter-group .nice-select {
    width: 100%;
    height: auto;
    line-height: 1.5;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #2c3e50;
    font-weight: 500;
}

.filter-group .nice-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 103, 37, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.filter-group .nice-select:hover::before {
    opacity: 1;
}

.filter-group .nice-select:hover {
    border-color: #FF6725;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 103, 37, 0.15);
}

.filter-group .nice-select:active,
.filter-group .nice-select.open {
    border-color: #FF6725;
    transform: translateY(0);
    box-shadow: 0 8px 25px rgba(255, 103, 37, 0.2);
    background: white;
}

.filter-group .nice-select:after {
    border-bottom: 2px solid #FF6725;
    border-right: 2px solid #FF6725;
    height: 10px;
    width: 10px;
    margin-top: -7px;
    right: 18px;
    transition: transform 0.3s ease;
}

.filter-group .nice-select.open:after {
    transform: rotate(-135deg);
    margin-top: -3px;
}

/* Simple z-index fix for Nice Select */
.nice-select .list {
    z-index: 999999 !important;
}

.nice-select.open {
    z-index: 999998 !important;
}

.filter-group .nice-select .option {
    color: #2c3e50;
    font-size: 0.95rem;
    padding: 14px 18px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.filter-group .nice-select .option:last-child {
    border-bottom: none;
}

.filter-group .nice-select .option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #FF6725, #FF8A50);
    transition: width 0.2s ease;
}

.filter-group .nice-select .option:hover::before,
.filter-group .nice-select .option.focus::before {
    width: 4px;
}

.filter-group .nice-select .option:hover,
.filter-group .nice-select .option.focus,
.filter-group .nice-select .option.selected.focus {
    background: linear-gradient(135deg, rgba(255, 103, 37, 0.08) 0%, rgba(255, 103, 37, 0.03) 100%);
    color: #FF6725;
    padding-left: 22px;
}

.filter-group .nice-select .option.selected {
    background: linear-gradient(135deg, #FF6725, #FF8A50);
    color: white;
    font-weight: 600;
    position: relative;
}

.filter-group .nice-select .option.selected::after {
    content: '✓';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1.1rem;
}

.apartments-section {
    margin: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 40px;
}

.apartment-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.apartment-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.apartment-card:hover .apartment-image img {
    transform: scale(1.05);
}

.apartment-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 103, 37, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.favorite-btn.favourited {
    background: #FF6725;
    color: white;
}

.apartment-content {
    padding: 25px;
}

.apartment-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF6725;
    margin-bottom: 8px;
}

.apartment-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.apartment-details {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.apartment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-view-apartment {
    background: linear-gradient(135deg, #FF6725, #FF8A50);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-view-apartment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 37, 0.3);
    color: white;
    text-decoration: none;
}

.contact-sidebar {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: sticky;
    top: 120px;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FF6725;
    background: white;
}

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

.btn-contact {
    width: 100%;
    background: linear-gradient(135deg, #FF6725, #FF8A50);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 103, 37, 0.3);
}

.btn-contact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.no-apartments {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 40px 0;
}

.no-apartments i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.seo-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    margin: 60px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 103, 37, 0.1);
}

.seo-content h1,
.seo-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.seo-content h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.seo-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FF6725, #FF8A50);
    border-radius: 2px;
}

.seo-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-content h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #FF6725, #FF8A50);
    border-radius: 2px;
}

.seo-content p {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.seo-content ul {
    margin: 20px 0;
    padding-left: 0;
}

.seo-content li {
    color: #5a6c7d;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    list-style: none;
}

.seo-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #FF6725;
    font-weight: bold;
    font-size: 1.1rem;
}

.seo-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.seo-content a {
    color: #FF6725;
    text-decoration: none;
    transition: color 0.3s ease;
}

.seo-content a:hover {
    color: #e55a1c;
    text-decoration: underline;
}

/* Custom Pagination */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.custom-pagination .page-item {
    list-style: none;
}

.custom-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.custom-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #FF6725, #FF8A50);
    border-color: #FF6725;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 103, 37, 0.3);
}

.custom-pagination .page-link:hover {
    border-color: #FF6725;
    color: #FF6725;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.custom-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    border-color: #f0f0f0;
    color: #7f8c8d;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #FF6725;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .city-hero {
        padding: 150px 0 60px;
    }

    .city-title {
        font-size: 2.2rem;
    }

    .city-image-container {
        width: 100%;
        max-width: 100%;
        height: 300px;
        margin: 0 auto 30px;
    }

    .city-image-badge {
        bottom: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 1rem;
        border-radius: 14px;
    }

    .city-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .localities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-sidebar {
        margin-top: 40px;
        position: relative;
        top: auto;
    }

    .score-container {
        gap: 10px;
    }

    .score-bar {
        width: 100px;
    }

    .seo-content {
        padding: 30px 20px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filters-section {
        padding: 30px 20px;
    }

    .filters-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .filter-group label {
        font-size: 0.9rem;
    }

    .filter-group .nice-select {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .filter-group .nice-select .option {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .price-range-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .price-stat {
        padding: 15px 12px;
    }

    .price-stat-value {
        font-size: 1.1rem;
    }

    .custom-pagination {
        gap: 4px;
    }

    .custom-pagination .page-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}