/* Ultra-modern destination guide cards & detail gallery */
.dest-grid-modern {
    --dest-gold: #eab308;
    --dest-amber: #f59e0b;
    --dest-navy: #0a2540;
    --dest-radius: 24px;
}

.dest-card-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--dest-radius);
    overflow: hidden;
    border: 1px solid rgba(234, 179, 8, 0.15);
    box-shadow: 0 4px 24px rgba(10, 37, 64, 0.06);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}

.dest-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(234, 179, 8, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.dest-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 60px rgba(10, 37, 64, 0.14);
    border-color: rgba(234, 179, 8, 0.45);
}

.dest-card-modern:hover::before {
    opacity: 1;
}

.dest-card-media {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.dest-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.dest-card-modern:hover .dest-card-media img {
    transform: scale(1.1);
}

.dest-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 37, 64, 0.05) 0%,
        rgba(10, 37, 64, 0.75) 100%
    );
    pointer-events: none;
}

.dest-badge-detail {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--dest-gold), var(--dest-amber));
    color: var(--dest-navy);
    font-weight: 700;
    font-size: 12px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.45);
    max-width: calc(100% - 140px);
}

.dest-badge-detail i {
    font-size: 14px;
    flex-shrink: 0;
}

.dest-badge-detail span {
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dest-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--dest-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 50px;
}

.dest-card-body {
    padding: 26px 26px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dest-card-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dest-navy);
    line-height: 1.35;
    margin: 0 0 12px;
}

.dest-card-body p {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.65;
    margin: 0 0 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dest-card-body .dest-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.dest-card-body .dest-highlights li {
    position: relative;
    padding: 4px 0 4px 22px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.dest-card-body .dest-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dest-gold), var(--dest-amber));
}

.dest-btn-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 12px 22px;
    background: var(--dest-navy);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    border-radius: 50px;
    transition: background 0.3s ease, gap 0.3s ease, transform 0.3s ease;
    margin-top: auto;
}

.dest-btn-read i {
    transition: transform 0.3s ease;
}

.dest-card-modern:hover .dest-btn-read {
    background: linear-gradient(135deg, var(--dest-gold), var(--dest-amber));
    color: var(--dest-navy) !important;
    gap: 14px;
}

.dest-card-modern:hover .dest-btn-read i {
    transform: translateX(4px);
}

/* Detail page */
.dest-guide-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 60px;
    background-size: cover;
    background-position: center;
}

.dest-guide-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 37, 64, 0.35) 0%,
        rgba(10, 37, 64, 0.92) 100%
    );
}

.dest-guide-hero .container {
    position: relative;
    z-index: 1;
}

.dest-hero-tag {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--dest-gold), var(--dest-amber));
    color: var(--dest-navy);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 16px;
}

.dest-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
}

.dest-hero-excerpt-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    max-width: 100%;
}

.dest-hero-excerpt {
    flex: 1;
    min-width: min(100%, 480px);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    margin: 0;
}

.dest-hero-back {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    margin-left: auto;
}

.dest-hero-back:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

/*
 * Photo gallery — horizontal layout:
 *   [ Image 1 (tall) ] [ Image 4 ][ Image 2 ]
 *                      [ Image 5 ][ Image 3 ]
 */
.dest-photo-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    grid-template-areas:
        "main img4 img2"
        "main img5 img3";
    gap: 16px;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

.dest-photo-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    background: #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.08);
    display: block;
}

.dest-photo-gallery .gallery-item:nth-child(1) {
    grid-area: main;
    min-height: 416px;
    aspect-ratio: auto;
}

.dest-photo-gallery .gallery-item:nth-child(2) {
    grid-area: img2;
    aspect-ratio: 4 / 3;
    height: auto;
}

.dest-photo-gallery .gallery-item:nth-child(3) {
    grid-area: img3;
    aspect-ratio: 4 / 3;
    height: auto;
}

.dest-photo-gallery .gallery-item:nth-child(4) {
    grid-area: img4;
    aspect-ratio: 4 / 3;
    height: auto;
}

.dest-photo-gallery .gallery-item:nth-child(5) {
    grid-area: img5;
    aspect-ratio: 4 / 3;
    height: auto;
}

.dest-photo-gallery .gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.dest-photo-gallery .gallery-item:hover img {
    transform: scale(1.04);
}

.dest-photo-gallery .gallery-item:hover {
    z-index: 1;
}

.dest-photo-gallery .gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: linear-gradient(transparent, rgba(10, 37, 64, 0.85));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dest-photo-gallery .gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Guide layout — sidebar top aligns with gallery top (not heading) */
.dest-gallery-heading {
    font-size: 26px;
    font-weight: 800;
    color: #0a2540;
    margin: 0;
}

.dest-gallery-heading i {
    color: #eab308;
    margin-right: 10px;
}

@media (min-width: 992px) {
    .dest-guide-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
        grid-template-areas:
            "heading heading"
            "gallery sidebar";
        column-gap: 40px;
        row-gap: 24px;
        align-items: start;
    }

    .dest-guide-layout .dest-gallery-heading {
        grid-area: heading;
    }

    /* Bootstrap row children become direct grid items */
    .dest-guide-layout .dest-guide-body-row {
        display: contents;
    }

    .dest-guide-layout .dest-guide-body-row > .col-lg-8 {
        grid-area: gallery;
        width: 100%;
        max-width: 100%;
    }

    .dest-guide-layout .dest-guide-body-row > .dest-guide-sidebar-col {
        grid-area: sidebar;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        padding-top: 0;
        align-self: start;
    }
}

.dest-guide-body-row {
    align-items: flex-start !important;
}

.dest-guide-sidebar-col {
    margin-top: 0;
}

.dest-guide-sidebar-sticky {
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .dest-guide-layout .dest-gallery-heading {
        margin-bottom: 20px;
    }

    .dest-guide-sidebar-col {
        margin-top: 32px;
    }

    .dest-guide-sidebar-sticky {
        position: static;
    }
}

/* Sidebar CTA — override global dark heading/body colors */
.dest-sidebar-cta h4 {
    color: #ffffff !important;
}

.dest-sidebar-cta p,
.dest-sidebar-cta li {
    color: #e2e8f0 !important;
    opacity: 1 !important;
}

.dest-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 37, 64, 0.95);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dest-lightbox.is-open {
    display: flex;
}

.dest-lightbox img {
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.dest-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.dest-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #0a2540;
    font-size: 18px;
    cursor: pointer;
}

.dest-lightbox-prev { left: 24px; }
.dest-lightbox-next { right: 24px; }

.dest-lightbox-caption {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 991px) {
    .dest-hero-excerpt-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dest-hero-back {
        margin-left: 0;
        align-self: flex-end;
    }

    .dest-photo-gallery {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: 200px 180px 180px;
        grid-template-areas:
            "main main"
            "img4 img2"
            "img5 img3";
        gap: 14px;
    }

    .dest-photo-gallery .gallery-item:nth-child(1) {
        min-height: 200px;
    }
}

@media (max-width: 575px) {
    .dest-photo-gallery {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "main"
            "img4"
            "img2"
            "img5"
            "img3";
        gap: 14px;
    }

    .dest-photo-gallery .gallery-item:nth-child(1) {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .dest-photo-gallery .gallery-item:nth-child(n + 2) {
        aspect-ratio: 16 / 10;
        height: auto;
    }
    .dest-card-media {
        height: 220px;
    }
}
