/**
 * Destination Pages — CSS
 *
 * Single hero, quick facts, overview, why visit, things to do,
 * best time chart, practical info accordion, related destinations.
 */


/* =========================================================================
   SINGLE HERO — 60vh
   ========================================================================= */

.single-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background: var(--dn-primary, #1B3A4B);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-top: -64px;
    padding-top: 64px;
}

.single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(27, 58, 75, 0.2) 0%, rgba(27, 58, 75, 0.75) 100%);
}

.single-hero__content {
    position: relative;
    z-index: 1;
    padding-bottom: 48px;
}

.single-hero__title {
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.single-hero__subtitle {
    font-family: var(--dn-font-body, 'Inter', sans-serif);
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 560px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .single-hero {
        height: 50vh;
        min-height: 320px;
    }
}


/* =========================================================================
   QUICK FACTS BAR
   ========================================================================= */

.dest-quick-facts {
    padding: 20px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #EEE;
}

.dest-quick-facts__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.dest-quick-facts__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    border-right: 1px solid #EEE;
    flex: 1;
    min-width: 140px;
}
.dest-quick-facts__item:last-child {
    border-right: none;
}

.dest-quick-facts__icon {
    color: var(--dn-accent, #E8A045);
    flex-shrink: 0;
}

.dest-quick-facts__label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dn-muted, #8C7B6E);
}

.dest-quick-facts__value {
    display: block;
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--dn-text, #1A1A18);
}

@media (max-width: 767px) {
    .dest-quick-facts__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .dest-quick-facts__item {
        border-right: none;
        padding: 10px 12px;
        border-bottom: 1px solid #EEE;
    }
    .dest-quick-facts__item:nth-child(odd) {
        border-right: 1px solid #EEE;
    }
    .dest-quick-facts__item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}


/* =========================================================================
   SECTIONS
   ========================================================================= */

.dest-section {
    margin-bottom: 48px;
    padding-top: 16px;
}

.dest-section__heading {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dn-text, #1A1A18);
    margin: 0 0 20px;
    line-height: 1.3;
}

.dest-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.dest-section__header .dest-section__heading {
    margin-bottom: 0;
}

.dest-section__text {
    font-size: 17px;
    line-height: 1.75;
    color: var(--dn-text, #1A1A18);
    max-width: 780px;
}


/* =========================================================================
   WHY VISIT
   ========================================================================= */

.dest-why-visit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dest-why-card {
    padding: 24px;
    background: var(--dn-surface, #F7F3EE);
    border-radius: 12px;
}

.dest-why-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(232, 160, 69, 0.12);
    border-radius: 10px;
    color: var(--dn-accent, #E8A045);
    margin-bottom: 14px;
}

.dest-why-card__title {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--dn-text, #1A1A18);
    margin: 0 0 6px;
}

.dest-why-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dn-muted, #8C7B6E);
    margin: 0;
}

@media (max-width: 767px) {
    .dest-why-visit-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================================
   THINGS TO DO
   ========================================================================= */

.dest-things-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dest-thing-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(27, 58, 75, 0.06);
}

.dest-thing-card__image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.dest-thing-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.dest-thing-card:hover .dest-thing-card__image {
    transform: scale(1.03);
}

.dest-thing-card__body {
    padding: 16px 20px;
}

.dest-thing-card__title {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--dn-text, #1A1A18);
    margin: 0 0 4px;
}

.dest-thing-card__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--dn-muted, #8C7B6E);
    margin: 0;
}

@media (max-width: 767px) {
    .dest-things-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================================
   BEST TIME CHART
   ========================================================================= */

.dest-best-time {
    background: var(--dn-surface, #F7F3EE);
    border-radius: 12px;
    padding: 28px;
}

.dest-best-time__content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.dest-best-time__content .dn-icon {
    color: var(--dn-accent, #E8A045);
    flex-shrink: 0;
    margin-top: 2px;
}

.dest-best-time__value {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--dn-text, #1A1A18);
    margin: 0 0 4px;
}

.dest-best-time__note {
    font-size: 14px;
    color: var(--dn-muted, #8C7B6E);
    margin: 0;
    line-height: 1.5;
}

.dest-best-time__months {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
}

.dest-best-time__month {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.dest-best-time__month-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--dn-text, #1A1A18);
}

.dest-best-time__month-bar {
    width: 100%;
    height: 32px;
    border-radius: 4px;
    background: #DDD;
}

.dest-best-time__month--peak .dest-best-time__month-bar {
    background: var(--dn-success, #3D6B4F);
    height: 48px;
}
.dest-best-time__month--good .dest-best-time__month-bar {
    background: var(--dn-accent, #E8A045);
    height: 40px;
}
.dest-best-time__month--ok .dest-best-time__month-bar {
    background: #D4CCC3;
    height: 28px;
}
.dest-best-time__month--avoid .dest-best-time__month-bar {
    background: var(--dn-danger, #C23A22);
    height: 20px;
}

.dest-best-time__month-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--dn-muted, #8C7B6E);
}

.dest-best-time__month--peak .dest-best-time__month-label { color: var(--dn-success, #3D6B4F); }
.dest-best-time__month--avoid .dest-best-time__month-label { color: var(--dn-danger, #C23A22); }

@media (max-width: 767px) {
    .dest-best-time__months {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (max-width: 480px) {
    .dest-best-time__months {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* =========================================================================
   PRACTICAL INFO ACCORDION
   ========================================================================= */

.dest-practical__item {
    border-bottom: 1px solid #EEE;
}

.dest-practical__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}
.dest-practical__question > span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--dn-text, #1A1A18);
    flex: 1;
}
.dest-practical__question .dn-icon {
    color: var(--dn-accent, #E8A045);
}

.dest-practical__chevron {
    color: var(--dn-muted, #8C7B6E);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.dest-practical__item.is-open .dest-practical__chevron {
    transform: rotate(180deg);
}

.dest-practical__answer {
    padding: 0 0 18px 34px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--dn-text, #1A1A18);
}
.dest-practical__answer[hidden] {
    display: none;
}

.dest-practical__tips {
    margin: 0;
    padding: 0 0 0 20px;
}
.dest-practical__tips li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.dest-practical__tips li:last-child {
    margin-bottom: 0;
}


/* =========================================================================
   RELATED DESTINATIONS
   ========================================================================= */

.dest-section--related {
    background: var(--dn-surface, #F7F3EE);
    padding: 64px 0;
    margin-bottom: 0;
}

/* Base destinations grid (also defined in home.css; duplicated here for
   pages that load destination.css without home.css — archive, 404, etc.) */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 960px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .destinations-grid {
        grid-template-columns: 1fr;
    }
}

/* Destination card styles (duplicated from home.css for archive/404 pages) */
.dest-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
    .dest-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    }
}
.dest-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.dest-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.dest-card__image--placeholder {
    background: linear-gradient(135deg, #EDE8E0, #D4CCC3);
}
.dest-card:hover .dest-card__image {
    transform: scale(1.05);
}
.dest-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}
.dest-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    color: #fff;
}
.dest-card__title {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #fff;
}
.dest-card__tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.destinations-grid--3 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
    .destinations-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .destinations-grid--3 {
        grid-template-columns: 1fr;
    }
}
