/* Converted DITO layout for HTT Data Validation (results + header glue only) */
:root {
    --header-height: 92px;
}



.htt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: clamp(1rem, 3vw, 2.25rem);
    padding-right: clamp(1rem, 3vw, 2.25rem);
}

.fixed-header-container .navbar-brand {
    padding: 0;
    margin: 0;
}

.fixed-header-container .header-logo,
.fixed-header-container .navbar-brand img.header-logo {
    height: 58px;
    max-height: 58px;
    width: auto;
    max-width: min(420px, 62vw);
    object-fit: contain;
}

.header-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #20b9a3;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.4rem;
    min-height: 48px;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(32, 185, 163, 0.28);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.header-refresh-btn .header-refresh-icon {
    font-size: 1.2rem;
    width: 1.2em;
    text-align: center;
}

.header-refresh-btn:hover,
.header-refresh-btn:focus {
    background: #17a08a;
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 160, 138, 0.32);
}

.header-refresh-btn:hover {
    transform: translateY(-1px);
}

.header-refresh-btn.is-loading i,
.header-refresh-btn:disabled i {
    animation: htt-spin 0.7s linear infinite;
}

.header-refresh-btn:disabled {
    opacity: 0.85;
    cursor: wait;
    transform: none;
}

.singlecustom-select-trigger .placeholder,
.singlecustom-select-trigger .select-placeholder {
    display: inline;
    min-height: 0;
    background: none !important;
    opacity: 1 !important;
    cursor: pointer;
    color: #6c757d;
    font-style: italic;
    vertical-align: baseline;
}

.singlecustom-select-trigger {
    padding-right: 2.4rem;
}

.singlecustom-select-container > .dropdown-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    margin-right: 0;
    border: 3px solid #c5ebe4;
    border-top-color: #048aae;
    border-right-color: #20b9a3;
    border-radius: 50%;
    background: #ffffff;
    display: none;
    z-index: 6;
    pointer-events: none;
    box-shadow: none;
    animation: htt-spin 0.65s linear infinite;
    transform: none;
}

.singlecustom-select-container.is-loading > .dropdown-spinner {
    display: block;
}

.singlecustom-select-container.is-loading .singlecustom-select-trigger {
    background-image: linear-gradient(90deg, #fff 0%, #e8f8f5 50%, #fff 100%);
    background-size: 200% 100%;
    animation: htt-shimmer 1.2s ease-in-out infinite;
}

.dropdown-loading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    color: #1b4a52;
    font-style: italic;
    font-weight: 600;
}

.dropdown-inline-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #d7ece8;
    border-top-color: #20b9a3;
    border-radius: 50%;
    animation: htt-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.singlecustom-select-container.disabled {
    pointer-events: none;
}

.singlecustom-select-container.disabled .singlecustom-select-trigger {
    background: #e9ecef;
    color: #6c757d;
}

.select-check {
    display: inline-flex;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 8px;
    background: #2e7d32;
    border-radius: 2px;
    color: #fff;
    font-size: 11px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.search-directory-stack,
.search-directory-shell,
.search-directory-body,
.search-directory-sidebar,
.search-directory-main {
    overflow: visible;
}

.search-directory-shell {
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 48px rgba(1, 77, 97, 0.28), 0 0 0 1px rgba(67, 189, 167, 0.4);
}

.search-directory-body {
    min-height: 0 !important;
}

.search-directory-sidebar-body,
.search-directory-main {
    padding: 1.5rem 1.25rem !important;
}

@media (min-width: 768px) {
    .search-directory-sidebar-body {
        padding: 1.5rem 1.15rem 1.5rem 1.5rem !important;
    }

    .search-directory-main {
        padding: 1.5rem 1.5rem 1.5rem 1.15rem !important;
    }
}

.sidebar-select-heading,
.search-directory-main .form-label {
    color: #222 !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    min-height: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.search-directory-sidebar .sidebar-select-control,
.sidebar-select-block .singlecustom-select-container {
    margin-bottom: 0;
    max-width: 100%;
    width: 100%;
}

.search-directory-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: #fff;
    border-bottom-right-radius: 2rem;
    border-top-right-radius: 2rem;
}

.search-directory .col-md-8.search-directory-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.search-directory-filters {
    width: 100%;
    margin: 0;
}

.search-filter {
    min-width: 0;
}

.search-directory-main .singlecustom-select-container {
    margin-bottom: 0;
    width: 100%;
}

.search-directory-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

.search-directory-main .search-btn-custom {
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0.5rem 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .search-directory-main .search-btn-custom {
        width: auto;
        max-width: none;
    }
}

.search-directory .singlecustom-select-trigger {
    justify-content: flex-start !important;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.45rem 2.4rem 0.45rem 0.85rem;
    white-space: nowrap;
    overflow: hidden;
}

.search-directory .single-selected-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.search-directory .single-selected-item .single-select-text,
.search-directory .singlecustom-select-trigger .single-select-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.search-directory .single-selected-item .option-status,
.search-directory .single-selected-item .option-count {
    flex-shrink: 0;
}

.search-directory .singlecustom-select-dropdown,
.search-directory .singlecustom-select-dropdown.active {
    min-width: 100%;
    max-width: min(28rem, 92vw);
    overflow-x: hidden;
    overflow-y: auto;
}

.search-directory #specializationCol .singlecustom-select-dropdown,
.search-directory #cityCol .singlecustom-select-dropdown {
    left: auto;
    right: 0;
}

.search-directory .singlecustom-select-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.search-directory .singlecustom-select-option .single-select-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-directory .singlecustom-select-option .option-count {
    margin-left: auto;
    flex-shrink: 0;
}

.search-directory .hide-count .option-status,
.search-directory .hide-count .option-count {
    display: none !important;
}

.search-directory .option-status {
    margin-right: 0;
}

.search-directory .option-count {
    margin-left: 0;
}

.search-btn-custom:disabled {
    background: #b7d8d2;
    color: #f7fffd;
    cursor: not-allowed;
    opacity: 1;
}

.search-btn-custom.is-loading {
    background: #17a08a;
    cursor: wait;
}

.search-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: htt-spin 0.7s linear infinite;
}

.search-btn-custom.is-loading .search-btn-spinner {
    display: inline-block;
}

.option-status {
    display: inline-flex;
    width: 1.1em;
    margin-right: 6px;
    font-size: 0.95rem;
    line-height: 1;
}

.option-count {
    margin-left: 6px;
    color: #4d5d64;
    font-weight: 700;
}

.dropdown-loading {
    padding: 0.7rem 1rem;
    color: #5b6b73;
    font-style: italic;
}

.required-mark {
    color: #c0392b;
    font-weight: 700;
}

.optional-mark {
    color: #7a8a90;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
}

.search-directory-shell {
    position: relative;
    z-index: 20;
}

.search-directory .singlecustom-select-dropdown,
.search-directory .singlecustom-select-dropdown.active {
    z-index: 5000 !important;
}

.results-section {
    position: relative;
    background: #f7fbfc;
    padding: 1.5rem 0 2.5rem;
    z-index: 1;
}

.htt-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    overflow: hidden;
    background: #d7ece8;
}

.htt-progress-bar {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #20b9a3, #138a7d);
    animation: htt-progress 1.1s ease-in-out infinite;
}

.results-stage {
    position: relative;
    min-height: 80px;
}

.results-stage.is-loading {
    min-height: 180px;
}

.results-stage.is-loading .results-list {
    display: none;
}

.results-loader {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 1.5rem 1rem;
    color: #1b4a52;
    font-weight: 600;
}

.results-loader[hidden],
.htt-progress[hidden] {
    display: none !important;
}

.results-loader-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.4rem 0;
}

.results-loader-copy strong,
.results-loader-copy span {
    display: block;
}

.results-loader-copy span {
    color: #4d5d64;
    font-weight: 500;
    font-size: 0.92rem;
}

.results-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #d7ece8;
    border-top-color: #20b9a3;
    border-radius: 50%;
    animation: htt-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.page-loader {
    position: fixed;
    right: 22px;
    bottom: 96px;
    z-index: 4500;
    display: block;
    animation: htt-slide-in 0.35s ease;
}

.page-loader-panel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 240px;
    max-width: 320px;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(4, 138, 174, 0.18);
    border: 1px solid #d7ece8;
}

.page-loader-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f8f5;
    box-shadow: 0 0 0 0 rgba(32, 185, 163, 0.45);
    animation: htt-pulse 1.4s ease-out infinite;
    flex-shrink: 0;
}

.page-loader-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #b7e4dc;
    border-top-color: #048aae;
    border-radius: 50%;
    animation: htt-spin 0.7s linear infinite;
}

.page-loader-copy {
    min-width: 0;
}

.page-loader-copy strong,
.page-loader-copy span {
    display: block;
}

.page-loader-copy strong {
    color: #024558;
    font-size: 0.95rem;
}

.page-loader-copy span {
    color: #4d5d64;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.15rem;
}

@keyframes htt-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes htt-pulse {
    0% { box-shadow: 0 0 0 0 rgba(32, 185, 163, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(32, 185, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 185, 163, 0); }
}

@keyframes htt-slide-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pagination-meta {
    width: 100%;
    text-align: center;
    color: #5b6b73;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

@keyframes htt-spin {
    to { transform: rotate(360deg); }
}

@keyframes htt-spinner-glow {
    0% { box-shadow: 0 0 0 0 rgba(32, 185, 163, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(32, 185, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 185, 163, 0); }
}

@keyframes htt-progress {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.results-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(240px, 1.4fr) auto;
    gap: 0.85rem 1rem;
    align-items: center;
    margin-bottom: 1.15rem;
}

.results-search {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
    max-width: none;
}

.results-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    background: #fff;
    color: #222;
}

.results-search input:disabled,
.results-search button:disabled {
    background: #f3f3f3;
    color: #8a979c;
    cursor: not-allowed;
}

.results-search button {
    background: #20b9a3;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.results-search button:hover:not(:disabled) {
    background: #1aa391;
}

#resultsSummary {
    color: #4d5d64;
    font-size: 0.95rem;
}

.page-size-select {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.page-size-select select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    min-width: 80px;
    background: #fff;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    overflow: visible;
    padding: 0.25rem 0.2rem 0.75rem;
}

.results-list > article.business-card {
    background: #ffffff;
    border: 1px solid #cfe8e3;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(4, 138, 174, 0.12), 0 0 0 1px rgba(32, 185, 163, 0.12);
    margin-bottom: 0;
}

.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.pagination-wrap button {
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    width: auto;
    border: 1px solid #d5e3e6;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #394e6a;
}

.pagination-wrap button.active,
.pagination-wrap button:hover:not(:disabled) {
    background: #20b9a3;
    border-color: #20b9a3;
    color: #fff;
}

.pagination-wrap button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.empty-results {
    text-align: center;
    color: #5b6b73;
    padding: 2rem 1rem;
}

.back-to-top {
    display: none;
}

@media (max-width: 991.98px) {
    .htt-site-header.navbar {
        padding: 0.7rem 0;
        min-height: 76px;
    }

    .fixed-header-container .header-logo,
    .fixed-header-container .navbar-brand img.header-logo {
        height: 48px;
        max-height: 48px;
        max-width: min(280px, 58vw);
    }

    .header-refresh-btn {
        min-height: 44px;
        padding: 0.6rem 1.15rem;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .htt-site-header.navbar {
        padding: 0.6rem 0;
        min-height: 68px;
    }

    .fixed-header-container .header-logo,
    .fixed-header-container .navbar-brand img.header-logo {
        height: 42px;
        max-height: 42px;
        max-width: min(220px, 54vw);
    }

    .header-refresh-btn {
        min-height: 42px;
        padding: 0.55rem 0.95rem;
        font-size: 0.95rem;
        gap: 0.45rem;
        border-radius: 10px;
    }

    .header-refresh-btn .header-refresh-icon {
        font-size: 1.05rem;
    }

    .search-directory-sidebar-body,
    .search-directory-main {
        padding: 1.15rem !important;
    }

    .search-directory-main {
        border-radius: 0 0 1.25rem 1.25rem;
    }

    .search-directory-main .search-btn-custom {
        width: auto;
        max-width: none;
    }

    .search-directory .singlecustom-select-dropdown,
    .search-directory .singlecustom-select-dropdown.active {
        max-width: 100%;
        width: 100%;
        left: 0;
        right: 0;
    }

    .results-toolbar {
        grid-template-columns: 1fr;
    }

    .results-search {
        max-width: none;
    }

    .page-size-select {
        justify-content: space-between;
    }
}
