/* Destination Page — Figma proto: click image → side cards */

.dest-hero {
    position: relative;
    height: 75vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dest-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
    z-index: 2;
}

.dest-hero-container {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.dest-hero-content {
    max-width: 650px;
    color: #ffffff;
    padding-top: 60px;
}

.dest-hero-content h1 {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.dest-hero-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
}

/* ── Blocks ── */

.destinations-detail-section {
    padding: 0;
    background: var(--bg-primary);
}

.dest-block {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.dest-block-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dest-block-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.38) saturate(0.8);
    transform: scale(1.12);
}

.dest-block-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 13, 0.5) 0%,
        rgba(10, 15, 13, 0.28) 45%,
        rgba(10, 15, 13, 0.6) 100%
    );
}

.dest-block-inner {
    position: relative;
    z-index: 1;
}

.dest-block-title {
    font-family: var(--font-body);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--green-light);
    margin-bottom: 40px;
}

/* ── Expand layout: image alone → hover → glass side cards ── */

.dest-expand {
    display: grid;
    grid-template-columns: 0fr auto 0fr;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    border-radius: 48px;
    border: 1.5px solid transparent;
    background: transparent;
    transition:
        grid-template-columns 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.45s ease,
        gap 0.45s ease,
        background 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        backdrop-filter 0.45s ease;
}

.dest-expand:hover,
.dest-expand:focus-within,
.dest-expand.is-open {
    grid-template-columns: 1fr auto 1fr;
    gap: 20px 28px;
    padding: 28px 32px;
    background: rgba(15, 26, 21, 0.48);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Side cards — hidden until hover */

.dest-side-card {
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scaleX(0.85);
    transform-origin: center;
    pointer-events: none;
    transition:
        opacity 0.4s ease 0.05s,
        visibility 0.4s ease,
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.dest-expand:hover .dest-side-card,
.dest-expand:focus-within .dest-side-card,
.dest-expand.is-open .dest-side-card {
    opacity: 1;
    visibility: visible;
    transform: scaleX(1);
    pointer-events: auto;
}

.dest-side-left {
    transform-origin: right center;
}

.dest-side-right {
    transform-origin: left center;
}

.dest-info-heading {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    color: var(--green-light);
    text-align: center;
    margin-bottom: 16px;
}

.dest-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    white-space: nowrap;
}

.dest-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.dest-emoji {
    flex-shrink: 0;
    width: 1.35em;
    text-align: center;
}

/* Center image */

.dest-center {
    position: relative;
    z-index: 2;
    justify-self: center;
}

.dest-center-trigger {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: default;
    border-radius: 32px;
}

.dest-center-frame {
    position: relative;
    width: min(360px, 72vw);
    aspect-ratio: 4 / 5;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: width 0.45s ease, border-radius 0.45s ease, border-color 0.45s ease;
}

.dest-center-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dest-expand:hover .dest-center-frame,
.dest-expand:focus-within .dest-center-frame,
.dest-expand.is-open .dest-center-frame {
    width: min(280px, 58vw);
    border-radius: 28px;
    border-color: rgba(201, 168, 76, 0.85);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(201, 168, 76, 0.2),
        0 0 24px rgba(201, 168, 76, 0.15);
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .dest-expand:hover,
    .dest-expand:focus-within,
    .dest-expand.is-open {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .dest-side-card {
        transform: translateY(12px) scale(0.98);
    }

    .dest-expand:hover .dest-side-card,
    .dest-expand:focus-within .dest-side-card,
    .dest-expand.is-open .dest-side-card {
        transform: translateY(0) scale(1);
    }

    .dest-center {
        order: -1;
    }

    .dest-info-list {
        white-space: normal;
    }

    .dest-expand:hover .dest-center-frame,
    .dest-expand:focus-within .dest-center-frame,
    .dest-expand.is-open .dest-center-frame {
        width: min(260px, 70vw);
    }
}

@media (max-width: 768px) {
    .dest-hero {
        height: 55vh;
    }

    .dest-hero-content h1 {
        font-size: 34px;
    }

    .dest-block {
        padding: 56px 0 72px;
    }

    .dest-block-title {
        text-align: center;
        margin-bottom: 28px;
    }

    .dest-center-frame {
        width: min(300px, 78vw);
        border-radius: 28px;
    }
}
