﻿/* ===== GLOBAL STYLES ===== */
/* Breadcrumb */
.breadcrumb-container {
    background: #F5F7F9;
    padding: 16px 24px 0;
}

.breadcrumb {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #062929;
    background: #f8f9fa !important;
}

    .breadcrumb a {
        color: #137C7A;
        text-decoration: none;
    }

    .breadcrumb .separator {
        color: #657786;
    }

/* Main Content */
.main-content {
    padding: 32px 24px;
    background: #F5F7F9;
}

.page-title {
    color: #3C4146;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 150%;
    padding-bottom: 24px;
    margin-left: 15px;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px 24px;
}

    .search-header img {
        margin-top: -5px;
    }

.search-title {
    color: #212325;
    font-size: 20px;
    font-weight: 700;
    line-height: 150%;
}

/* Search Tabs */
.search-tabs {
    padding: 0 24px;
}

.tab-buttons {
    display: flex;
    gap: 5px;
}

.tab-button {
    background: #F7F7F7;
    border-bottom: 1px solid #DADCDF;
    border-top: none;
    border-right: none;
    border-left: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    border-radius: 6px 6px 0 0;
    margin-right: 2px;
    transition: all 0.3s ease;
    position: relative;
}

    .tab-button:hover {
        background: #e9ecef;
        color: #333;
    }

    .tab-button.active {
        background: #E6FDFF;
        color: #000;
        font-weight: 700;
        border-bottom: 1px solid #01ADBA;
        z-index: 1;
    }

        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
        }

/* ===== DROPDOWN SECTION ===== */
.search-content {
    padding: 24px;
}

.search-dropdowns-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.dropdown-group {
    flex: 1;
    position: relative;
}

.searchable-dropdown {
    position: relative;
    width: 100%;
}

    .searchable-dropdown.open .dropdown-toggle img[src*="chevron-down"] {
        transform: rotate(180deg);
    }

/* Dropdown Toggle */
.dropdown-toggle {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--Input-Border-default, #DDDDE3);
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

    .dropdown-toggle:disabled {
        background-color: #f8f9fa;
        color: #6c757d;
        cursor: not-allowed;
        border-color: #e9ecef;
        opacity: 0.6;
    }

        .dropdown-toggle:disabled:hover {
            background-color: #f8f9fa;
            border-color: #e9ecef;
        }

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

    .dropdown-arrow.rotated {
        transform: rotate(180deg);
    }

/* Angular cloak */
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
    display: none !important;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 350px;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Search */
.dropdown-search {
    position: relative;
    padding: 16px 16px 24px;
}

.dropdown-search-input,
.district-dropdown-search-input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #20CECC;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    background: #fff;
    color: var(--cement-dark, #717375);
    font-weight: 400;
    box-sizing: border-box;
}

    .dropdown-search-input::placeholder,
    .district-dropdown-search-input::placeholder {
        color: var(--cement-dark, #717375);
    }

.search-icon,
.search-bar-icon {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

.search-icon {
    right: 30px;
}

.search-bar-icon {
    right: 10px;
}

.search-bar {
    position: relative;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 12px 20px 12px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    text-overflow: ellipsis;
}

/* Dropdown Options */
.dropdown-options {
    max-height: 240px;
    overflow-y: auto;
    padding: 0 16px;
}

.dropdown-option {
    padding: 10px 0;
    cursor: pointer;
    border-top: 1px solid rgb(218, 220, 223);
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

    .dropdown-option:last-child {
        border-bottom: none;
    }

.dropdown-no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Selection States */
.city-selected,
.district-selected {
    color: #00B14F;
    font-weight: 500;
}

/* Scrollbar */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .dropdown-options::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* ===== RESULTS SECTION ===== */
.results-section {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 24px;
}

.results-section-index,
.results-section-detail,
.results-section-detail-top {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #D9D9D9;
}

.results-section-detail {
    margin-bottom: 30px;
}

.results-section-detail-top {
    margin-top: 16px;
}

.results-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.results-table-wrapper,
.results-table-wrapper-detail {
    margin: 0;
    border: none;
    overflow: visible;
}

.results-table-wrapper {
    padding: 24px;
}

.results-table-container {
    overflow-x: auto;
}

/* Results Table */
.results-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
}

    .results-table .col-header {
        padding: 15px 20px;
        font-weight: 600;
        color: #333;
        font-size: 14px;
        text-align: left;
        border-bottom: 1px solid #e9ecef;
        background: #EBEBEB;
        width: 50%;
    }

.result-row {
    border-bottom: 1px solid #D9D9D9;
    transition: background-color 0.2s ease;
}

    .result-row:hover {
        background-color: #f8f9fa;
    }

    .result-row:last-child {
        border-bottom: none;
    }

/* Table Cells */
.new-city-cell,
.old-city-cell,
.new-city-cell-detail,
.old-city-cell-detail {
    padding: 15px 20px;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.5;
}

.new-city-cell,
.old-city-cell {
    border: 1px solid #D9D9D9;
}

.new-city-cell-detail {
    border-right: 1px solid #D9D9D9;
}

/* Links */
.city-link {
    color: #003A9B;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

    .city-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    .city-link:focus {
        outline: 2px solid rgba(0, 123, 255, 0.25);
        outline-offset: 2px;
        border-radius: 2px;
    }

.city-link-updating {
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    display: inline-block;
}

.old-city-name {
    color: #000;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 15px;
    border-radius: 6px;
    margin: 20px;
}

.no-results-row td {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #6c757d !important;
    font-size: 15px !important;
    background: #f8f9fa !important;
    line-height: 1.5 !important;
}

    .no-results-row td::before {
        content: "🔍";
        display: block;
        font-size: 24px;
        margin-bottom: 10px;
        opacity: 0.5;
    }

/* ===== PAGINATION ===== */
.pagination-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 8px;
}

    .pagination > .active > span:hover {
        background-color: #FFF1EB !important;
        border: 1px solid #FF641E;
    }

    .pagination > li > a, .pagination > li > span {
        border-radius: 8px !important;
        border: 1px solid var(--Global-gray40, #DADCDF);
        background: var(--Global-white, #FFF);
        color: var(--Global-grayblack, #000);
    }


.page-item {
    display: flex;
}

    .page-item.disabled .page-link {
        color: var(--Global-gray50, #B1B3B5);
    }

    .page-item.dots .page-link {
        color: var(--Global-gray50, #B1B3B5);
    }

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-width: 40px;
    height: 40px;
    text-decoration: none;
    color: #B1B3B5;
    background-color: #fff;
    border: 1px solid #DADCDF;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .page-link:hover {
        color: #0056b3;
        background-color: #e9ecef;
        border-color: #adb5bd;
        text-decoration: none;
    }

.page-item.active .page-link {
    border: 1px solid #FF641E;
    background: #FFF1EB;
    color: #FF641E !important;
}

.page-item.disabled .page-link {
    color: var(--Global-gray50, #B1B3B5);
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.5;
}

    .page-item.disabled .page-link:hover {
        color: #6c757d;
        background-color: #fff;
        border-color: #dee2e6;
    }

.page-item.dots .page-link {
    color: var(--Global-gray50, #B1B3B5);
    cursor: default;
}

    .page-item.dots .page-link:hover {
        background: transparent;
        color: #B1B3B5;
    }

.page-link .arrow-left {
    margin-right: 4px;
}

.page-link .arrow-right {
    margin-left: 4px;
}

/* ===== INFO SECTION ===== */
.info-section {
    margin: 0;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-content-wrapper {
    max-width: 100%;
    position: relative;
}

.info-main-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .info-main-content h2 {
        font-size: 20px;
        font-weight: 700;
        color: #333;
        margin: 0 0 20px 0;
        line-height: 1.4;
        text-align: center;
    }

    .info-main-content h3 {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin: 25px 0 15px 0;
        line-height: 1.3;
    }

    .info-main-content p {
        margin-bottom: 15px;
        text-align: justify;
    }

    .info-main-content ul,
    .info-main-content ol {
        margin: 15px 0;
        padding-left: 25px;
    }

    .info-main-content li {
        margin-bottom: 8px;
        line-height: 1.6;
    }

    .info-main-content a {
        color: #e67e23;
        text-decoration: none;
        font-weight: 500;
    }

        .info-main-content a:hover {
            text-decoration: underline;
        }

    .info-main-content strong {
        font-weight: 600;
    }

/* Fade Overlay */
.content-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.fade-gradient {
    height: 100%;
    background: linear-gradient( to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.95) 80%, rgba(255, 255, 255, 1) 100% );
}

/* Toggle Button */
.expand-toggle-wrapper {
    text-align: center;
}

.expand-toggle-btn {
    background: transparent;
    border: none;
    color: #0671CA;
    font-size: 14px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: 0.035px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

    .expand-toggle-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .expand-toggle-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .expand-toggle-btn i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .expand-toggle-btn.expanded {
        color: #0671CA;
        border-color: #007bff;
    }

    .expand-toggle-btn.loading {
        opacity: 0.7;
        pointer-events: none;
    }

/* ===== SIDEBAR ===== */
.cta-box,
.help-box {
    background-size: cover;
    box-shadow: 1px 6px 6px 0 rgba(0, 0, 1, 0.10);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    height: 312px;
    width: 254px;
}

.cta-box {
    background: url('/Content/Images/banner/banner_dang_tin.png') no-repeat center center;
    padding: 20px;
}

.help-box {
    background: url('/Content/Images/banner/banner_tim-kiem.png') no-repeat center center;
    padding: 16px;
}

    .cta-box h4,
    .help-box h4 {
        color: #222;
        font-size: 14px;
        font-weight: 700;
        line-height: 20px;
        margin-bottom: 16px;
    }

    .cta-box p,
    .help-box p {
        margin-bottom: 16px;
        color: #222;
        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
    }

    .cta-box .btn,
    .help-box .btn {
        background: #FFF;
        color: #0499A8;
        text-align: right;
        font-size: 12px;
        font-weight: 600;
        line-height: 150%;
        border: 1px solid #01ADBA !important;
        border-radius: 8px;
        text-decoration: none;
        display: inline-block;
        margin-bottom: 15px;
    }

/* ===== CITY STATS ===== */
.city-stats-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .city-stats-section h3 {
        color: #000;
        font-size: 18px;
        font-weight: 600;
        line-height: 27px;
        margin: 0 0 15px 0;
        padding: 0;
        border: none;
        text-align: left;
    }

        .city-stats-section h3:first-child {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .city-stats-section h3:not(:first-child) {
            margin-top: 20px;
            font-size: 16px;
        }

.title-section {
    margin-bottom: 15px;
}

    .title-section p,
    .city-code {
        font-size: 14px;
        color: #333;
        margin: 5px 0;
        line-height: 1.4;
        background: none;
        padding: 0;
        border-radius: 0;
        display: block;
    }

.text-section {
    margin-bottom: 15px;
}

    .text-section a {
        font-size: 14px;
        color: #084AB9;
        margin: 5px 0;
        line-height: 1.4;
    }

/* ===== MERGE INFO ===== */
.merge-info-section {
    padding: 0 24px 24px;
}

.merge-info-card {
    background: #F8F8F8;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.merge-info-title {
    color: #078959;
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
}

.merge-flow {
    display: flex;
    align-items: center;
    gap: 64px;
}

.merge-from,
.merge-to {
    display: flex;
    align-items: center;
    gap: 8px;
}

.merge-to {
    white-space: nowrap;
}

.merge-label {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
}

.merge-result {
    color: #28a745;
    font-weight: 600;
}

.arrow-icon {
    width: 24px;
    height: 24px;
}

.merge-date {
    margin-top: 10px;
    color: #6c757d;
}

/* ===== SHARE ===== */
.share {
    position: relative;
    display: flex;
    gap: 4px;
    align-items: center;
    cursor: pointer;
}

    .share img {
        margin-top: 0 !important;
    }

    .share > span {
        color: #06C;
        font-size: 14px;
        font-weight: 400;
        line-height: 150%;
        white-space: nowrap;
    }

.share-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

    .share-link:last-child {
        border-bottom: none;
    }

    .share-link:hover {
        background-color: #f8f9fa;
    }

    .share-link span {
        font-size: 14px;
        color: #333;
        display: block;
    }

    .share-link:hover span {
        color: #007bff;
    }

    .share-link img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        flex-shrink: 0;
    }

/* ===== ATTRIBUTE GRID ===== */
.attribute-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
    border: 1px solid #dddde3;
    border-radius: 8px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.grid-label {
    color: #64646d;
    font-size: 14px;
}

.grid-content {
    color: #078959;
    font-weight: 700;
    font-size: 14px;
}

/* ===== UTILITY CLASSES ===== */
.divider {
    height: 1px;
    background-color: #DADCDF;
    align-self: stretch;
    flex-grow: 0;
    margin: 7px 0;
}

.results-summary-detail {
    padding-top: 24px;
}

.summary-box {
    padding-bottom: 24px;
}

.search-highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 600;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 987px) {
    .cta-box {
        background: url("/Content/Images/banner/banner mobi_dang_tin.png") no-repeat center center;
        background-size: cover;
        height: 150px;
        width: 100%;
    }

    .help-box {
        background: url("/Content/Images/banner/banner mobi_tim_kiem.png") no-repeat center center;
        background-size: cover;
        height: 150px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    .search-box {
        display: flex;
        gap: 4px;
        padding: 0;
    }

        .search-box img {
            width: 20px;
            height: 20px;
            margin-top: 0;
        }

    .attribute-grid {
        padding: 8px;
    }

    .merge-flow {
        gap: 16px;
    }

    .search-title {
        font-size: 14px;
    }

    .search-section,
    .results-section,
    .city-stats-section,
    .cta-box,
    .help-box {
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .col-md-8,
    .col-md-4 {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .search-dropdowns-row {
        flex-direction: column;
        gap: 10px;
    }

    .tab-button {
        font-size: 12px;
        padding: 10px 16px;
        width: 100%;
    }

    .search-tabs {
        padding: 0 16px;
    }

    .search-content {
        padding: 16px;
    }

    .merge-info-section {
        padding: 0 16px 24px;
    }

    .search-header {
        padding: 20px 16px 15px;
        align-items: flex-start;
        gap: 10px;
    }

    .dropdown-toggle {
        font-size: 13px;
    }

    .results-title {
        font-size: 20px;
        line-height: 27px;
    }

    .results-table .col-header,
    .new-city-cell,
    .old-city-cell,
    .new-city-cell-detail,
    .old-city-cell-detail {
        padding: 12px 15px;
        font-size: 13px;
    }

    .sidebar {
        padding-left: 0;
        margin-top: 25px;
    }

    .page-title {
        font-size: 16px;
        margin-bottom: 0 !important;
        padding: 0 0 24px;
    }

    .breadcrumb-container {
        padding: 16px 0 0 16px;
    }

    .info-section {
        margin: 20px -15px 0;
        border-radius: 8px;
    }

    .info-main-content {
        font-size: 14px;
        line-height: 1.6;
        padding: 12px;
    }

        .info-main-content h2 {
            font-size: 18px;
            margin-bottom: 15px;
        }

        .info-main-content h3 {
            font-size: 16px;
            margin: 20px 0 12px 0;
        }

    .expand-toggle-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .content-fade-overlay {
        height: 60px;
    }

    .city-stats-section {
        padding: 16px;
    }

    .pagination {
        gap: 2px;
    }

    .page-link {
        padding: 6px 8px;
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

        .page-link span.text {
            display: none;
        }

    .merge-from,
    .merge-to {
        justify-content: space-around;
    }

    .attribute-grid .grid-item[data-position="2"] {
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
    }

    .attribute-grid.has-more-than-three {
        grid-template-columns: repeat(2, 1fr);
    }

        .attribute-grid.has-more-than-three .grid-item[data-position="2"] {
            border: none;
        }

        .attribute-grid.has-more-than-three .grid-item:nth-child(odd) {
            align-items: flex-start;
            text-align: start;
        }

        .attribute-grid.has-more-than-three .grid-item:nth-child(even) {
            align-items: flex-end;
            text-align: end;
        }

        .attribute-grid.has-more-than-three .grid-item[data-position="3"]::before,
        .attribute-grid.has-more-than-three .grid-item[data-position="4"]::before {
            content: '';
            background-color: #e0e0e0;
            height: 1px;
            width: 100%;
            display: block;
            margin-bottom: 8px;
        }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 480px) {
    .search-dropdowns-row {
        gap: 8px;
    }

    .dropdown-toggle {
        font-size: 12px;
    }

    .results-section-detail {
        margin: 0 -10px 20px;
        border-radius: 8px;
    }

    .results-section {
        margin: 0 -10px 20px;
        border-radius: 0;
    }

    .results-title {
        font-size: 15px;
    }

    .results-table .col-header,
    .new-city-cell,
    .old-city-cell,
    .new-city-cell-detail,
    .old-city-cell-detail {
        padding: 10px 12px;
        font-size: 12px;
    }

    .no-results {
        margin: 15px;
        padding: 30px 15px;
        font-size: 14px;
    }

    .info-section {
        padding: 15px;
    }

    .info-main-content {
        font-size: 13px;
        line-height: 1.5;
    }

        .info-main-content h2 {
            font-size: 16px;
            text-align: left;
        }

        .info-main-content h3 {
            font-size: 15px;
        }

        .info-main-content p,
        .info-main-content li {
            text-align: left;
        }

    .expand-toggle-btn {
        font-size: 12px;
        padding: 6px 14px;
        gap: 6px;
    }

    .content-fade-overlay {
        height: 50px;
    }

    .city-stats-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

        .city-stats-section h3:first-child {
            font-size: 16px;
        }

    .page-link {
        padding: 4px 6px;
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ===== RESPONSIVE - DESKTOP SPECIFIC ===== */
@media (min-width: 768px) {
    .attribute-grid .grid-item[data-position="4"]::before {
        content: '';
        background-color: #e0e0e0;
        height: 1px;
        width: 100%;
        display: block;
        margin-bottom: 8px;
    }

    .merge-label {
        max-width: 300px;
    }

    .attribute-grid .grid-item[data-position="4"] {
        grid-column: 1 / -1;
    }

    .attribute-grid .grid-item[data-position="2"] {
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
    }

    .attribute-grid.has-more-than-three .grid-item[data-position="2"] {
        border: none;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .result-row,
    .city-link,
    .pagination > li > a,
    .dropdown-option,
    .tab-button,
    .expand-toggle-btn,
    .info-main-content,
    .content-fade-overlay,
    .expand-toggle-btn i {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .expand-toggle-btn {
        border: 2px solid #007bff;
        background: #fff;
    }

        .expand-toggle-btn:hover:not(:disabled) {
            background: #007bff;
            color: #fff;
        }
}

/* ===== PRINT ===== */
@media print {
    .content-fade-overlay,
    .expand-toggle-wrapper {
        display: none !important;
    }

    .info-main-content {
        max-height: none !important;
        overflow: visible !important;
    }

        .info-main-content a {
            color: #333 !important;
            text-decoration: underline !important;
        }
}


/* Mobile Modal Overlay */
.mobile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

/* Mobile Modal Container */
.mobile-modal-container {
    background: white;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-height: 80vh;
    height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

/* Mobile Modal Header */
.mobile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E5E5;
}

    .mobile-modal-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: #1A1A1A;
        margin: 0;
    }

.modal-close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .modal-close-btn img {
        width: 24px;
        height: 24px;
    }

/* Mobile Modal Search */
.mobile-modal-search {
    padding: 24px 16px;
    position: relative;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

    .mobile-search-input:focus {
        border-color: #20CECC;
    }

.mobile-modal-search .search-icon {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* Mobile Modal Options */
.mobile-modal-options {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    min-height: 400px;
    max-height: 60vh;
}

.mobile-option-item {
    padding: 12px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px;
    color: #1A1A1A;
    border-top: 1px solid rgb(218, 220, 223);
    flex-shrink: 0;
}

    .mobile-option-item:active {
        background: #F5F5F5;
    }

    .mobile-option-item.selected {
        color: #20CECC;
        font-weight: 500;
    }

    .mobile-option-item .check-icon {
        width: 20px;
        height: 20px;
        filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(101%);
    }

.mobile-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Smooth transitions */
.mobile-modal-overlay {
    transition: opacity 0.3s ease;
}

.mobile-modal-container {
    transition: transform 0.3s ease;
}

/* Loading state for mobile options */
.mobile-option-item:active {
    background: #F5F5F5;
    transition: background 0.1s ease;
}

/* Desktop: Hide mobile modals */
@media (min-width: 769px) {
    .mobile-modal-overlay {
        display: none !important;
    }
}
