/* ================================================================
   AVESTA TRAVEL - Locations Listing Page
================================================================ */

.page-locations-destination {
    background: #f6f8fc;
}

.page-locations-destination .ldp-hero {
    min-height: 540px;
}

.page-locations-destination .ldp-hero-bg-fallback {
    background:
        radial-gradient(circle at 18% 18%, rgba(14, 165, 233, .34), transparent 42%),
        radial-gradient(circle at 82% 28%, rgba(22, 163, 74, .26), transparent 44%),
        radial-gradient(circle at 58% 76%, rgba(234, 88, 12, .32), transparent 42%),
        linear-gradient(145deg, #07111f 0%, #132642 52%, #0f1f35 100%);
}

.page-locations-destination .ldp-search-wrap .search-field {
    flex: 1 1 auto;
}

.page-locations-destination .ldp-search-field {
    position: relative;
}

.page-locations-destination .ldp-results-section {
    padding-top: 64px;
}

.page-locations-destination .ldp-filter-toggle-icon {
    margin-right: 8px;
    color: #ea580c;
}

.page-locations-destination .ldp-filter-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-locations-destination .ldp-filter-body {
    scrollbar-width: none;
}

.page-locations-destination .ldp-filter-option {
    position: relative;
    padding: 8px 8px 8px 0;
    border-radius: 12px;
    background: transparent !important;
}

.page-locations-destination .ldp-filter-option::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    order: -1;
    flex: 0 0 auto;
}

.page-locations-destination .ldp-filter-option-location::after {
    background: #16a34a;
}

.page-locations-destination .ldp-filter-option-hotel::after {
    background: #0ea5e9;
}

.page-locations-destination .ldp-filter-option-airport::after {
    background: #7c3aed;
}

.page-locations-destination .ldp-filter-option:has(input:checked) {
    background: transparent !important;
}

.page-locations-destination .ldp-result-card {
    scroll-margin-top: 118px;
}

.page-locations-destination .ldp-result-card:target {
    border-color: rgba(234, 88, 12, .62);
    box-shadow: 0 24px 48px rgba(234, 88, 12, .16), 0 14px 32px rgba(15, 23, 42, .08);
}

.page-locations-destination .ldp-result-media {
    min-height: 230px;
}

.page-locations-destination .ldp-result-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, .08), rgba(2, 6, 23, .54));
    pointer-events: none;
}

.page-locations-destination .ldp-result-media-fallback {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 230px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%),
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, .24), transparent 30%),
        linear-gradient(145deg, #1e3a5f, #0f172a);
}

.page-locations-destination .ldp-type-location .ldp-result-media-fallback {
    background:
        radial-gradient(circle at 20% 18%, rgba(187, 247, 208, .38), transparent 34%),
        linear-gradient(145deg, #14532d, #0f172a);
}

.page-locations-destination .ldp-type-hotel .ldp-result-media-fallback {
    background:
        radial-gradient(circle at 20% 18%, rgba(186, 230, 253, .38), transparent 34%),
        linear-gradient(145deg, #075985, #0f172a);
}

.page-locations-destination .ldp-type-airport .ldp-result-media-fallback {
    background:
        radial-gradient(circle at 20% 18%, rgba(221, 214, 254, .38), transparent 34%),
        linear-gradient(145deg, #4c1d95, #0f172a);
}

.page-locations-destination .ldp-type-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    max-width: calc(100% - 28px);
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    color: #ffffff;
    background: rgba(15, 23, 42, .68);
    box-shadow: 0 10px 26px rgba(2, 6, 23, .22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: .72rem;
    font-weight: 850;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.page-locations-destination .ldp-type-chip svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.page-locations-destination .ldp-type-location .ldp-type-chip {
    background: rgba(22, 101, 52, .82);
}

.page-locations-destination .ldp-type-hotel .ldp-type-chip {
    background: rgba(3, 105, 161, .84);
}

.page-locations-destination .ldp-type-airport .ldp-type-chip {
    background: rgba(91, 33, 182, .84);
}

.page-locations-destination .ldp-result-content {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 210px);
    align-items: stretch;
}

.page-locations-destination .ldp-result-info {
    min-width: 0;
}

.page-locations-destination .ldp-result-info h3 {
    margin-bottom: 9px;
}

.page-locations-destination .ldp-result-info .tdp-result-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: #475569;
}

.page-locations-destination .ldp-result-info .tdp-result-dates span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f766e;
    font-weight: 800;
}

.page-locations-destination .ldp-result-info .tdp-result-dates span::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
}

.page-locations-destination .ldp-result-desc {
    margin: 0 0 14px;
    color: #64748b;
    font-size: .89rem;
    line-height: 1.68;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-locations-destination .ldp-result-badges .tdp-badge-gray {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.page-locations-destination .ldp-result-badges .ldp-detail-badge {
    border-color: #d9f99d;
    color: #365314;
    background: #f7fee7;
}

.page-locations-destination .ldp-type-block {
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 6px;
}

.page-locations-destination .ldp-type-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 12px 24px rgba(234, 88, 12, .18);
}

.page-locations-destination .ldp-type-location .ldp-type-icon {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 12px 24px rgba(22, 163, 74, .18);
}

.page-locations-destination .ldp-type-hotel .ldp-type-icon {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    box-shadow: 0 12px 24px rgba(14, 165, 233, .18);
}

.page-locations-destination .ldp-type-airport .ldp-type-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 12px 24px rgba(124, 58, 237, .18);
}

.page-locations-destination .ldp-type-title {
    color: #0f172a;
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.18;
}

.page-locations-destination .ldp-result-footer .tdp-btn-primary {
    white-space: nowrap;
}

.page-locations-destination .ldp-featured-star {
    margin-right: 8px;
    color: #ea580c;
    flex: 0 0 auto;
}

.page-locations-destination .ldp-footer-logo {
    height: 24px;
    width: auto;
    max-width: 128px;
    object-fit: contain;
    margin-right: 8px;
    filter: brightness(0);
    transform: scale(1.08);
    transform-origin: left center;
    flex: 0 0 auto;
}

.page-locations-destination .ldp-footer-logo-fallback {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #0f172a;
    flex: 0 0 auto;
}

@media (max-width: 992px) {
    .page-locations-destination .ldp-result-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .page-locations-destination .ldp-type-block {
        min-width: 0;
        height: auto;
        padding: 15px 0 0;
        border-top: 1px solid #f1f5f9;
        border-left: 0;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        column-gap: 12px;
    }

    .page-locations-destination .ldp-type-icon {
        grid-row: span 3;
    }
}

@media (max-width: 768px) {
    .page-locations-destination .ldp-hero {
        min-height: auto;
    }

    .page-locations-destination .ldp-results-section {
        padding-top: 38px;
    }

    .page-locations-destination .ldp-result-card {
        scroll-margin-top: 84px;
    }

    .page-locations-destination .tdp-filter-sidebar {
        justify-content: flex-end !important;
        padding-top: 18vh !important;
    }

    .page-locations-destination .tdp-filter-body {
        max-height: 76vh !important;
        max-height: min(76svh, 620px) !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .page-locations-destination .tdp-result-content.ldp-result-content {
        grid-template-columns: 1fr !important;
        padding: 18px !important;
    }

    .page-locations-destination .ldp-type-block {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) !important;
        padding: 14px 0 0 !important;
        border-top: 1px solid #f1f5f9 !important;
        border-left: 0 !important;
    }

    .page-locations-destination .ldp-type-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .page-locations-destination .ldp-result-footer {
        gap: 12px;
    }

    .page-locations-destination .ldp-result-footer .tdp-btn-primary {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 520px) {
    .page-locations-destination .tdp-filter-sidebar {
        padding-top: 24vh !important;
    }

    .page-locations-destination .tdp-filter-body {
        max-height: 70vh !important;
        max-height: min(70svh, 560px) !important;
    }

    .page-locations-destination .ldp-type-chip {
        top: 10px;
        left: 10px;
        min-height: 30px;
        padding: 6px 9px;
        font-size: .67rem;
    }

    .page-locations-destination .ldp-result-desc {
        -webkit-line-clamp: 2;
    }

    .page-locations-destination .ldp-result-footer {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .page-locations-destination .ldp-result-footer .tdp-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .page-locations-destination .tdp-result-card.ldp-result-card {
        border-radius: 20px !important;
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .06) !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .page-locations-destination .tdp-result-main-area {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .page-locations-destination .tdp-result-media.ldp-result-media {
        height: 160px !important;
        min-height: 160px !important;
        aspect-ratio: auto !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .page-locations-destination .ldp-result-media-fallback {
        min-height: 160px !important;
    }

    .page-locations-destination .tdp-result-content.ldp-result-content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .page-locations-destination .tdp-result-info.ldp-result-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .page-locations-destination .tdp-result-info.ldp-result-info h3 {
        margin: 0 !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .page-locations-destination .ldp-result-info .tdp-result-dates {
        margin-bottom: 2px !important;
        font-size: .7rem !important;
        line-height: 1.3 !important;
        overflow: hidden !important;
        display: block !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .page-locations-destination .ldp-result-info .tdp-result-dates span {
        display: inline !important;
        font-size: inherit !important;
    }

    .page-locations-destination .ldp-result-info .tdp-result-dates span::before {
        display: inline-block !important;
        margin: 0 6px 1px !important;
    }

    .page-locations-destination .ldp-result-desc {
        margin: 2px 0 4px !important;
        font-size: .74rem !important;
        line-height: 1.45 !important;
        -webkit-line-clamp: 2 !important;
    }

    .page-locations-destination .tdp-result-badges {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    .page-locations-destination .tdp-badge-gray {
        padding: 2px 6px !important;
        font-size: .62rem !important;
        white-space: nowrap !important;
    }

    .page-locations-destination .ldp-type-block {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        min-width: 86px !important;
        max-width: 104px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        text-align: right !important;
        gap: 2px !important;
    }

    .page-locations-destination .ldp-type-icon {
        display: none !important;
    }

    .page-locations-destination .ldp-type-title {
        max-width: 104px !important;
        font-size: .95rem !important;
        line-height: 1.08 !important;
        font-weight: 900 !important;
        text-align: right !important;
    }

    .page-locations-destination .ldp-type-block .tdp-price-label,
    .page-locations-destination .ldp-type-block .tdp-price-sub {
        font-size: .52rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .page-locations-destination .tdp-result-footer.ldp-result-footer {
        padding: 0 15px 15px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .page-locations-destination .tdp-footer-label {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
    }

    .page-locations-destination .ldp-footer-logo {
        height: 14px !important;
        max-width: 96px !important;
        margin-right: 3px !important;
        transform: none !important;
    }

    .page-locations-destination .tdp-footer-label span {
        font-size: .65rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }

    .page-locations-destination .ldp-result-footer .tdp-btn-primary {
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 112px !important;
        padding: 10px !important;
        border-radius: 12px !important;
        font-size: .8rem !important;
        font-weight: 800 !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}
