.fdl-wrap {
    --fdl-red: #D7000F;
    --fdl-ink: #101010;
    --fdl-muted: #6F7378;
    --fdl-line: #E5E7EB;
    --fdl-soft: #F5F6F7;
    font-family: 'Manrope', Arial, sans-serif;
    color: var(--fdl-ink);
    background: #fff;
}

.fdl-hero {
    background: #030303;
    color: #fff;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
}

.fdl-eyebrow {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fdl-eyebrow::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 2px;
    margin-right: 12px;
    vertical-align: middle;
    background: var(--fdl-red);
}

.fdl-title {
    margin: 0;
    max-width: 980px;
    font-size: clamp(40px, 6vw, 84px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fdl-title::first-letter {
    color: inherit;
}

.fdl-intro {
    max-width: 620px;
    margin: 24px auto 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 16px;
    line-height: 1.7;
}

.fdl-shell {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.fdl-panel {
    min-width: 0;
}

.fdl-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.fdl-search {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 0 22px;
    border: 1px solid var(--fdl-line);
    background: #fff;
    box-shadow: 0 16px 35px rgba(16, 16, 16, 0.06);
}

.fdl-search-icon svg,
.fdl-map-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fdl-search-input {
    width: 100%;
    border: 0;
    outline: 0;
    font: inherit;
    color: var(--fdl-ink);
}

.fdl-search-input::placeholder {
    color: #A0A4AA;
}

.fdl-count {
    margin: 18px 0 10px;
    color: var(--fdl-muted);
    font-size: 13px;
}

.fdl-search-status {
    margin: -2px 0 14px;
    padding-left: 12px;
    border-left: 2px solid var(--fdl-red);
    color: var(--fdl-ink);
    font-size: 13px;
    line-height: 1.5;
}

.fdl-empty {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--fdl-line);
    color: var(--fdl-muted);
    background: #fff;
}

.fdl-list {
    display: grid;
    gap: 14px;
    max-height: 620px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
    scrollbar-color: var(--fdl-red) #E5E7EB;
    scrollbar-width: thin;
}

.fdl-list::-webkit-scrollbar {
    width: 8px;
}

.fdl-list::-webkit-scrollbar-track {
    background: #E5E7EB;
}

.fdl-list::-webkit-scrollbar-thumb {
    background: var(--fdl-red);
    border: 2px solid #fff;
}

.fdl-list::-webkit-scrollbar-thumb:hover {
    background: #A9000B;
}

.fdl-card {
    border: 1px solid var(--fdl-line);
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.fdl-wrap .fdl-card:hover,
.fdl-wrap .fdl-card:focus-within {
    border-color: var(--fdl-red) !important;
    background: #fff !important;
    box-shadow: 0 16px 32px rgba(16, 16, 16, 0.08) !important;
}

.fdl-card-active {
    border-color: var(--fdl-red);
    box-shadow: 0 14px 28px rgba(215, 0, 15, 0.08);
}

.fdl-card-button {
    appearance: none;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 16px;
    width: 100%;
    padding: 22px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.fdl-wrap .fdl-card-button:hover,
.fdl-wrap .fdl-card-button:focus,
.fdl-wrap .fdl-card-button:active {
    background: transparent !important;
    color: var(--fdl-ink) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: 0;
}

.fdl-wrap .fdl-card-button:focus-visible {
    outline: 2px solid var(--fdl-red);
    outline-offset: -2px;
}

.fdl-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--fdl-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.fdl-card-active .fdl-rank {
    background: var(--fdl-red);
}

.fdl-card-content {
    display: grid;
    gap: 10px;
}

.fdl-card-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.fdl-card-logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--fdl-line);
    background: #fff;
}

.fdl-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 5px;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
}

.fdl-card-title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fdl-card-photo {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    border: 1px solid var(--fdl-line);
    background: var(--fdl-soft);
}

.fdl-card-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.fdl-address {
    color: var(--fdl-muted);
    font-size: 13px;
    line-height: 1.5;
}

.fdl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fdl-chip,
.fdl-distance {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    background: var(--fdl-soft);
    color: var(--fdl-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.fdl-distance {
    background: rgba(215, 0, 15, 0.08);
    color: var(--fdl-red);
}

.fdl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0 22px 22px 72px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.fdl-actions a {
    color: var(--fdl-red) !important;
    background: transparent !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.fdl-actions a:hover,
.fdl-actions a:focus,
.fdl-actions a:active {
    color: #A9000B !important;
    background: transparent !important;
    text-decoration: underline !important;
    box-shadow: none !important;
}

.fdl-map-panel {
    min-height: 620px;
}

.fdl-map {
    position: sticky;
    top: 24px;
    min-height: 620px;
    height: 70vh;
    border: 1px solid var(--fdl-line);
    background: #EEF1F2;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.fdl-map-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    text-align: center;
    color: var(--fdl-muted);
}

.fdl-map-fallback strong {
    color: var(--fdl-ink);
    font-size: 18px;
    font-weight: 500;
}

.fdl-map-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 8px;
    background: #fff;
    color: var(--fdl-red);
}

.fdl-map .leaflet-pane,
.fdl-map .leaflet-control-container {
    z-index: 1;
}

.fdl-map .leaflet-tile-pane {
    filter: grayscale(1) saturate(0.28) contrast(0.95) brightness(1.05);
}

.fdl-map .leaflet-control-zoom a {
    border-radius: 0 !important;
    color: var(--fdl-ink) !important;
}

.fdl-map .leaflet-control-zoom a:hover,
.fdl-map .leaflet-control-zoom a:focus {
    color: #fff !important;
    background: var(--fdl-red) !important;
}

.fdl-map .leaflet-popup-content-wrapper,
.fdl-map .leaflet-popup-tip {
    border-radius: 0;
}

.fdl-map .leaflet-popup-content-wrapper {
    border-left: 3px solid var(--fdl-red);
    box-shadow: 0 18px 34px rgba(16, 16, 16, 0.16);
}

.fdl-popup {
    display: grid;
    gap: 6px;
    min-width: 190px;
    font-family: 'Manrope', Arial, sans-serif;
}

.fdl-popup strong {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
}

.fdl-popup span {
    color: var(--fdl-muted);
    font-size: 12px;
    line-height: 1.45;
}

.fdl-marker {
    background: transparent;
    border: 0;
}

.fdl-marker-dot {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    background: var(--fdl-red);
    border: 3px solid #fff;
    box-shadow: 0 10px 22px rgba(215, 0, 15, 0.28);
    transform: rotate(45deg);
}

.fdl-marker-dot::after {
    content: "";
    position: absolute;
    inset: 7px;
    background: #fff;
}

.fdl-marker-active .fdl-marker-dot {
    background: #101010;
    box-shadow: 0 12px 26px rgba(16, 16, 16, 0.28);
}

@media (max-width: 900px) {
    .fdl-shell {
        grid-template-columns: 1fr;
    }

    .fdl-map-panel,
    .fdl-map {
        min-height: 420px;
    }

    .fdl-map {
        position: relative;
        top: auto;
        height: 420px;
    }
}

@media (max-width: 560px) {
    .fdl-hero {
        min-height: 220px;
        padding: 48px 18px;
    }

    .fdl-title {
        font-size: 42px;
    }

    .fdl-shell {
        padding: 32px 16px 52px;
    }

    .fdl-card-button {
        grid-template-columns: 1fr;
    }

    .fdl-card-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .fdl-actions {
        padding-left: 22px;
    }
}

.fdl-wrap h1,
.fdl-wrap h2,
.fdl-wrap h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
}
