/* EntoHub — filter bar + result cards */

/* ════════════════════════════════════════════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════════════════════════════════════════════ */

.dh-filter-bar {
    padding: 16px 24px;
}

.dh-filter-trigger-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.dh-filter-toggle {
    background: transparent;
    color: #1A2E45;
    border: 1.5px solid #1A2E45;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 200ms ease;
}

.dh-filter-toggle:hover {
    background: #1A2E45;
    color: #FFFCED;
}

.dh-filter-toggle:hover svg {
    stroke: #FFFCED;
}

.dh-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #2271b1;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.dh-filter-badge.dh-hidden {
    display: none;
}

.dh-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: #E0E9EE;
    border-top: 1px solid rgba(26, 46, 69, 0.15);
    border-bottom: 1px solid rgba(26, 46, 69, 0.15);
    padding: 24px;
    margin-bottom: 24px;
}

.dh-filter-panel[hidden] {
    display: none;
}

.dh-filter-group {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 160px;
}

.dh-filter-group legend,
.dh-filter-group-label {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2A2A2A;
    opacity: 0.5;
    margin-bottom: 12px;
}

.dh-filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dh-filter-option,
.dh-filter-panel label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #2A2A2A;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.dh-filter-option input[type="checkbox"],
.dh-filter-panel input[type="checkbox"] {
    accent-color: #1A2E45;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Active filter chips ─────────────────────────────────────────────────── */

.dh-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.dh-active-chip {
    background: #1A2E45;
    color: #FFFCED;
    border: none;
    border-radius: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dh-chip-label {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dh-active-chip .dh-chip-remove {
    background: none;
    border: none;
    padding: 0;
    color: #FFFCED;
    opacity: 0.7;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.dh-active-chip .dh-chip-remove:hover {
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   RESULTS
   ════════════════════════════════════════════════════════════════════════════ */

.dh-result-count,
.dh-results-count {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2A2A2A;
    opacity: 0.6;
    padding: 16px 0 16px 24px;
    margin-bottom: 0;
}

#dh-results-container.dh-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

.dh-no-results {
    padding: 48px 0;
    text-align: center;
    color: #50575e;
}

/* ── Cards grid ──────────────────────────────────────────────────────────── */

.dh-cards-grid {
    display: grid;
    grid-template-columns: repeat( 2, 1fr );
    gap: 24px;
    align-items: stretch;
    width: 100vw;
    margin-left: calc( 50% - 50vw );
    padding: 0 2rem;
    box-sizing: border-box;
}

@media ( max-width: 640px ) {
    .dh-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Card shell ──────────────────────────────────────────────────────────── */

.dh-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.1 );
    transition: box-shadow 0.15s, transform 0.15s;
}

.dh-card:hover {
    box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.14 );
    transform: translateY( -2px );
}

/* ── Hero image area ─────────────────────────────────────────────────────── */

.dh-card-hero-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.dh-card-hero {
    position: relative;
    height: 240px;
    background: #1c2340;
    overflow: hidden;
}

.dh-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dh-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba( 0, 0, 0, 0.35 ) 0%, rgba( 0, 0, 0, 0.80 ) 100% );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px;
    gap: 3px;
}

.dh-card-region {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba( 255, 255, 255, 0.75 );
    line-height: 1.2;
}

.dh-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.dh-card-subtitle {
    font-size: 13px;
    color: rgba( 255, 255, 255, 0.78 );
    margin: 0;
    line-height: 1.35;
}

/* ── Card meta (badges) ──────────────────────────────────────────────────── */

.dh-card-meta {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    flex: 1;
}

/* ── Hero image content badges ──────────────────────────────────────────── */

.dh-card-hero-wrap {
    position: relative;
    flex-shrink: 0;
}

.dh-card-season-badges {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.dh-card-season-badges .dh-badge--season {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-color: transparent;
    cursor: default;
}

.dh-card-content-badges {
    position: absolute;
    bottom: 8px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.dh-card-content-badges .dh-badge--content {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-color: transparent;
    cursor: pointer;
    transition: background 0.15s;
}

.dh-card-content-badges a.dh-badge--content:hover,
.dh-card-content-badges button.dh-badge--content:hover {
    background: rgba(0, 0, 0, 0.75);
    opacity: 1;
}

.dh-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.dh-badges-row--content {
    margin-top: auto;
}

/* ── Badge base ──────────────────────────────────────────────────────────── */

.dh-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    cursor: default;
}

a.dh-badge,
button.dh-badge {
    cursor: pointer;
    transition: opacity 0.12s;
}

a.dh-badge:hover,
button.dh-badge:hover {
    opacity: 0.8;
}

button.dh-badge {
    background: inherit;
    font-family: inherit;
    font-size: inherit;
}

/* ── Season badges — colored ─────────────────────────────────────────────── */

.dh-badge--spring {
    background: #d4edda;
    color: #155724;
    border-color: #b8dfc5;
}

.dh-badge--summer {
    background: #fff3cd;
    color: #856404;
    border-color: #ffe69c;
}

.dh-badge--autumn {
    background: #ffe0cc;
    color: #9c3d00;
    border-color: #ffbe99;
}

.dh-badge--winter {
    background: #cfe2ff;
    color: #0a58ca;
    border-color: #b6d4fe;
}

/* ── Season badges — neutral ─────────────────────────────────────────────── */

.dh-badge--neutral {
    background: #e9ecef;
    color: #495057;
    border-color: #ced4da;
}

/* ── Content badges ──────────────────────────────────────────────────────── */

.dh-badge--content {
    background: #f1f3f5;
    color: #343a40;
    border-color: #dee2e6;
}

.dh-badge-arrow {
    font-size: 9px;
    opacity: 0.6;
}

/* ── Popover ─────────────────────────────────────────────────────────────── */

.dh-popover-wrap {
    position: relative;
    display: inline-flex;
}

.dh-popover {
    position: absolute;
    bottom: calc( 100% + 6px );
    left: 0;
    z-index: 100;
    min-width: 150px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.12 );
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.dh-popover[hidden] {
    display: none;
}

.dh-popover a {
    display: block;
    padding: 7px 14px;
    font-size: 13px;
    color: #1d2327;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s;
}

.dh-popover a:hover {
    background: #f6f7f7;
    color: #2271b1;
}

/* ════════════════════════════════════════════════════════════════════════════
   FEATURE CARD
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Feature card list ──────────────────────────────────────────────────────────── */

.dh-cards-feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100vw;
    margin-left: calc( 50% - 50vw );
    padding: 0 2rem;
    box-sizing: border-box;
}

/* ── Feature card shell ────────────────────────────────────────────────────────── */

.dh-card-feature {
    display: flex;
    flex-direction: row;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.1 );
    transition: box-shadow 0.15s, transform 0.15s;
}

.dh-card-feature:hover {
    box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.14 );
    transform: translateY( -2px );
}

/* ── Feature card image panel ─────────────────────────────────────────────────── */

.dh-card-feature-hero-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
    width: 380px;
    height: 100%;
}

.dh-card-feature-hero {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1c2340;
    overflow: hidden;
}

.dh-card-feature-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 20px;
    gap: 3px;
}

/* ── Feature card content panel ─────────────────────────────────────────────── */

.dh-card-feature-body {
    flex: 1;
    min-width: 0;
    padding: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.dh-card-feature-excerpt {
    font-size: 14px;
    color: #50575e;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Responsive ────────────────────────────────────────────────────────────────── */

@media ( max-width: 640px ) {
    .dh-card-feature {
        flex-direction: column;
        height: auto;
    }

    .dh-card-feature-hero-link {
        width: 100%;
        height: 200px;
        flex-shrink: 0;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   AGENCY DIRECTORY
   ════════════════════════════════════════════════════════════════════════════ */

.dh-agency-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.dh-agencies-none {
    color: #50575e;
    padding: 32px 0;
    text-align: center;
}

/* ── Region filter dropdown ──────────────────────────────────────────────── */

.dh-agency-region-filter {
    appearance: none;
    background-color: transparent;
    border: 1.5px solid #1A2E45;
    border-radius: 6px;
    color: #1A2E45;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 36px 8px 16px;
    cursor: pointer;
    margin-bottom: 32px;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A2E45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 200ms ease;
}

.dh-agency-region-filter:hover {
    background-color: transparent;
    color: #1A2E45;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A2E45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.dh-agency-region-filter:focus {
    outline: none;
    border-color: #1A2E45;
    box-shadow: 0 0 0 3px rgba(26, 46, 69, 0.1);
}

/* ── Agency card grid ────────────────────────────────────────────────────── */

.dh-agency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .dh-agency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dh-agency-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Agency card ─────────────────────────────────────────────────────────── */

.dh-agency-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dh-agency-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dh-agency-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.dh-agency-logo-placeholder {
    width: 48px;
    height: 48px;
    background: #1A2E45;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Petrona', serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFCED;
    flex-shrink: 0;
}

.dh-agency-header-text { flex: 1; min-width: 0; }

.dh-agency-name {
    font-family: 'Petrona', serif;
    font-size: 18px;
    font-weight: 700;
    color: #2A2A2A;
    opacity: 1;
    margin: 0;
}

.dh-agency-contact {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #2A2A2A;
    opacity: 0.55;
    margin: 0;
}

.dh-agency-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dh-agency-tag {
    display: inline-block;
    background: #E0E9EE;
    color: #1A2E45;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 6px;
}

.dh-agency-description {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2A2A2A;
    opacity: 0.75;
    flex-grow: 1;
    margin: 0;
}

.dh-agency-link {
    display: inline-block;
    margin-top: auto;
    background: transparent;
    border: 1.5px solid #1A2E45;
    color: #1A2E45;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 200ms ease;
    align-self: flex-start;
}

.dh-agency-link:hover {
    background: #1A2E45;
    color: #FFFCED;
}

/* ════════════════════════════════════════════════════════════════════════════
   LOAD MORE
   ════════════════════════════════════════════════════════════════════════════ */

#dh-load-more-wrap,
.dh-load-more-wrap {
    padding: 40px 0 60px;
    text-align: center;
}

#dh-load-more-wrap[hidden] {
    display: none;
}

.dh-showing-count {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 10px;
}

.dh-load-more-btn,
.dh-load-more {
    background: transparent;
    border: 1.5px solid #1A2E45;
    color: #1A2E45;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
}

.dh-load-more-btn:hover,
.dh-load-more:hover {
    background: #1A2E45;
    color: #FFFCED;
    transition: all 200ms ease;
}

.dh-load-more-btn:disabled,
.dh-load-more:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.dh-filter-options--scroll {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.dh-region-search {
    background: #ffffff;
    border: 1.5px solid rgba(26, 46, 69, 0.2);
    border-radius: 6px;
    height: 36px;
    padding: 0 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #2A2A2A;
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
    outline: none;
}

.dh-region-search:focus {
    border: 1.5px solid #1A2E45;
    box-shadow: 0 0 0 3px rgba(26, 46, 69, 0.1);
}


.dh-clear-all {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #2A2A2A;
    opacity: 0.5;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    text-decoration: underline;
}

.dh-clear-all:hover {
    opacity: 1;
}

/* ── No-results empty state ──────────────────────────────────────────────── */

.dh-no-results {
    text-align: center;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.dh-no-results-message {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #2A2A2A;
    opacity: 0.5;
    margin: 0;
}

.dh-clear-all-empty {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1A2E45;
    background: transparent;
    border: 1.5px solid #1A2E45;
    border-radius: 6px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 200ms ease;
}

.dh-clear-all-empty:hover {
    background: #1A2E45;
    color: #FFFCED;
}

/* ── Map markers ────────────────────────────────────────────────────────── */

.dh-marker-pin {
    width: 20px;
    height: 20px;
    background: #1A2E45;
    border: 3px solid #FFFCED;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    cursor: pointer;
}

#dh-map {
    height: 600px;
}

@media (max-width: 768px) {
    #dh-map {
        height: 350px;
    }
}

/* ── Layout toggle ───────────────────────────────────────────────────────── */
.dh-layout-toggle { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.dh-layout-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1.5px solid #d0d0d0; border-radius: 6px; background: transparent; color: #2A2A2A; cursor: pointer; opacity: .5; transition: all 150ms ease; }
.dh-layout-btn.active { border-color: #1A2E45; background: #1A2E45; color: #FFFCED; opacity: 1; }
.dh-layout-btn:hover:not(.active) { border-color: #1A2E45; opacity: .8; }
.dh-layout-wrap { width: 100%; }
#dh-map { height: 480px; }
.dh-layout-wrap.layout-top { display: block; }
.dh-layout-wrap.layout-top #dh-filter-bar { margin-bottom: 1rem; }
.dh-layout-wrap.layout-top #dh-map { height: 480px; }
.dh-layout-wrap.layout-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.dh-layout-wrap.layout-sidebar #dh-map { height: 560px; }
@media (max-width: 860px) {
    .dh-layout-wrap.layout-sidebar { grid-template-columns: 1fr; }
    .dh-layout-wrap.layout-sidebar #dh-map { height: 360px; }
}
