/* Single Destination — scoped under .vnx-dest-single */

.vnx-dest-single {
    --vnx-ds-border: #e5e7eb;
    --vnx-ds-muted: #6b7280;
    --vnx-ds-primary: #0f172a;
    --vnx-ds-accent: #0ea5e9;

    color: var(--vnx-ds-primary);
    background: #fff;
}

.vnx-dest-single *,
.vnx-dest-single *::before,
.vnx-dest-single *::after {
    box-sizing: border-box;
}

/* ---------- Hero ---------- */
.vnx-dest-single__hero {
    position: relative;
    min-height: 420px;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.vnx-dest-single__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.vnx-dest-single__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 20px 48px;
}

.vnx-dest-single__back {
    position: absolute;
    top: 24px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    backdrop-filter: blur(6px);
}

.vnx-dest-single__back:hover { background: rgba(0, 0, 0, 0.55); }

.vnx-dest-single__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--vnx-ds-primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.vnx-dest-single__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.1;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.vnx-dest-single__lede {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 720px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* ---------- Layout ---------- */
.vnx-dest-single__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 72px;
}

.vnx-dest-single__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

@media (min-width: 992px) {
    .vnx-dest-single__grid {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

.vnx-dest-single__main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

/* ---------- Content blocks ---------- */
.vnx-dest-single__card {
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid var(--vnx-ds-border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(2, 6, 23, 0.04);
}

.vnx-dest-single__card-title,
.vnx-dest-single__section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
}

.vnx-dest-single__prose {
    color: #334155;
    line-height: 1.7;
    font-size: 15.5px;
}

.vnx-dest-single__prose p { margin: 0 0 14px; }
.vnx-dest-single__prose p:last-child { margin-bottom: 0; }

/* ---------- Tours ----------
 * The tour grid now uses the canonical theme tour card
 * (template-parts/tours/card.php). Only wrapper / overlay styles
 * live here — the card's own styles are provided by the theme.
 */
.vnx-dest-single__tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.vnx-dest-single__tour-slot {
    position: relative;
    display: flex;
}

.vnx-dest-single__tour-slot > article {
    flex: 1 1 auto;
    width: 100%;
}

/*
 * "Weather-dependent" flag is scoped to this destination context only.
 * It is a sibling of the tour card, absolutely positioned over the media.
 * Uses z-index 4 to sit above the card's internal badge bar (z ~10 internal),
 * but pointer-events: none so clicks pass through to the card's image
 * (which opens the tour detail modal).
 */
.vnx-dest-single__tour-weather-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(2, 6, 23, 0.15);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.vnx-dest-single__tour-weather-flag i {
    color: #0ea5e9;
    font-size: 12px;
}

@media (max-width: 640px) {
    .vnx-dest-single__tour-weather-flag {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* ---------- Hotels ---------- */
.vnx-dest-single__hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.vnx-dest-single__hotel-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--vnx-ds-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.vnx-dest-single__hotel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
}

.vnx-dest-single__hotel-media {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #e5e7eb;
    position: relative;
}

.vnx-dest-single__hotel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vnx-dest-single__hotel-media--ph {
    min-height: 0;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.vnx-dest-single__hotel-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vnx-dest-single__hotel-title {
    font-weight: 600;
    font-size: 14px;
}

.vnx-dest-single__hotel-tag {
    font-size: 12px;
    color: var(--vnx-ds-muted);
}

/* ---------- Sidebar ---------- */
.vnx-dest-single__aside { min-width: 0; }

.vnx-dest-single__sticky {
    position: sticky;
    top: 24px;
}

.vnx-dest-single__aside-card {
    background: #fff;
    border: 1px solid var(--vnx-ds-border);
    border-radius: 16px;
    padding: 20px;
    /* box-shadow: 0 6px 16px rgba(2, 6, 23, 0.06); */
}

.vnx-dest-single__aside-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
}

.vnx-dest-single__aside-price {
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vnx-dest-single__aside-price-label {
    font-size: 12px;
    color: var(--vnx-ds-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.vnx-dest-single__aside-price-value {
    font-size: 34px;
    line-height: 1;
    color: #0b5cab;
}

.vnx-dest-single__aside-price-note {
    font-size: 12px;
    color: var(--vnx-ds-muted);
}

.vnx-dest-single__aside-weather {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vnx-ds-border);
}

.vnx-dest-single__aside-weather-heading {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
}

.vnx-dest-single__aside-cta {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #F97316;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vnx-dest-single__aside-cta:hover {
    background: #EA580C;
    transform: translateY(-1px);
}

.vnx-dest-single__aside-note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--vnx-ds-muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .vnx-dest-single__hero { min-height: 340px; }
    .vnx-dest-single__back { top: 16px; left: 16px; }
    .vnx-dest-single__hero-inner { padding: 32px 16px 36px; }
    .vnx-dest-single__container { padding: 28px 16px 56px; }
    .vnx-dest-single__card { padding: 20px; }
}
