/* ==========================================================================
   DESTINATIONS — public pages
   Palette: #0e7c66 -> #16a37f (emerald, Georgian nature) + #f2a154 (gold accent)
   Container matches the site header: max-width 1400px, 40px side padding.
   ========================================================================== */

:root {
    --dest-brand: #0e7c66;
    --dest-brand-2: #16a37f;
    --dest-grad: linear-gradient(135deg, #0b3d33 0%, #0e7c66 55%, #16a37f 100%);
    --dest-accent: #f2a154;
    --dest-ink: #16241f;
    --dest-muted: #5b6b63;
    --dest-line: #e3ece7;
    --dest-tint: #f2f8f5;
}

.dest-page,
.dest-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 40px 72px;
}

/* ---------- Hero (listing) ---------- */
.dest-hero {
    position: relative;
    overflow: hidden;
    background: var(--dest-hero-image, var(--dest-grad)) center/cover no-repeat;
    color: #fff;
    border-radius: 24px;
    padding: 64px 40px;
    margin-bottom: 26px;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.dest-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(0deg, rgba(2, 8, 6, .85) 0%, rgba(2, 8, 6, .45) 55%, rgba(2, 8, 6, .15) 100%);
    pointer-events: none;
}

.dest-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.dest-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dest-accent);
    margin-bottom: 10px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .9), 0 2px 14px rgba(0, 0, 0, .6);
}

.dest-hero h1 {
    font-size: 2.6rem;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .9), 0 4px 20px rgba(0, 0, 0, .65);
}

.dest-hero p {
    margin: 0;
    max-width: 620px;
    font-size: 1.05rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .9), 0 2px 16px rgba(0, 0, 0, .6);
}

/* ---------- Region filter chips ---------- */
.dest-region-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.dest-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--dest-line);
    background: #fff;
    color: var(--dest-ink);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}

.dest-chip:hover {
    border-color: var(--dest-brand-2);
    color: var(--dest-brand);
}

.dest-chip.is-active {
    background: var(--dest-grad);
    border-color: transparent;
    color: #fff;
}

/* ---------- Card grid ---------- */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.dest-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--dest-muted);
    padding: 60px 0;
}

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

.dest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(14, 124, 102, .16);
}

.dest-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--dest-tint);
    overflow: hidden;
}

.dest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.dest-card:hover .dest-card-image img {
    transform: scale(1.06);
}

.dest-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--dest-brand-2);
    background: var(--dest-tint);
}

.dest-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dest-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    z-index: 2;
}

.dest-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(11, 26, 20, .85) 100%);
}

.dest-card-title {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    color: #fff;
}

.dest-card-title h2 {
    font-size: 1.15rem;
    margin: 0 0 4px;
    line-height: 1.2;
}

.dest-card-title span {
    font-size: .82rem;
    opacity: .9;
}

.dest-card-body {
    padding: 14px 16px 18px;
}

.dest-card-body p {
    margin: 0;
    font-size: .88rem;
    color: var(--dest-muted);
    line-height: 1.5;
}

/* ---------- Detail page ---------- */
.dest-detail-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    background: var(--dest-hero-image, none) center/cover no-repeat, var(--dest-grad);
    margin: 28px 40px 0;
}

.dest-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(2, 8, 6, .3) 0%, rgba(2, 8, 6, .55) 55%, rgba(2, 8, 6, .92) 100%);
    pointer-events: none;
}

.dest-detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 32px 40px;
    color: #fff;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.dest-detail-hero-card {
    max-width: 640px;
}

.dest-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    margin-bottom: 14px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .9), 0 2px 14px rgba(0, 0, 0, .6);
}

.dest-back:hover { text-decoration: underline; }

.dest-detail-hero-inner h1 {
    font-size: 2.4rem;
    margin: 0 0 8px;
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .9), 0 4px 20px rgba(0, 0, 0, .65);
}

.dest-detail-region {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .95rem;
    color: var(--dest-accent);
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .9), 0 2px 14px rgba(0, 0, 0, .6);
}

.dest-detail-region:hover {
    text-decoration: underline;
}

.dest-detail-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 34px 40px 72px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.dest-detail-summary {
    font-size: 1.15rem;
    color: var(--dest-ink);
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 18px;
}

.dest-detail-desc {
    color: var(--dest-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.dest-highlights,
.dest-gallery,
.dest-marketplace {
    margin-bottom: 36px;
}

.dest-highlights h2,
.dest-gallery h2,
.dest-marketplace h2 {
    font-size: 1.3rem;
    color: var(--dest-ink);
    margin: 0 0 16px;
}

.dest-highlights ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 20px;
}

.dest-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .95rem;
    color: var(--dest-ink);
}

.dest-highlights li i {
    color: var(--dest-brand);
    margin-top: 3px;
}

.dest-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.dest-gallery-item {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
}

.dest-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

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

.dest-marketplace-intro {
    color: var(--dest-muted);
    margin: 0 0 18px;
}

.dest-marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.dest-mp-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--dest-line);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.dest-mp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(14, 124, 102, .14);
}

.dest-mp-media {
    aspect-ratio: 16 / 10;
    background: var(--dest-tint);
}

.dest-mp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dest-mp-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dest-brand-2);
    font-size: 1.6rem;
}

.dest-mp-body {
    padding: 12px 14px 16px;
}

.dest-mp-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dest-brand);
    background: var(--dest-tint);
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.dest-mp-body h3 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--dest-ink);
}

.dest-mp-cta {
    font-size: .85rem;
    font-weight: 600;
    color: var(--dest-brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Sidebar ---------- */
.dest-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
}

.dest-sidebar-card {
    border: 1px solid var(--dest-line);
    border-radius: 16px;
    padding: 18px;
    background: var(--dest-tint);
}

.dest-sidebar-card h3 {
    font-size: .95rem;
    margin: 0 0 10px;
    color: var(--dest-ink);
}

.dest-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dest-brand);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}

.dest-source-credit {
    font-size: .78rem;
    color: var(--dest-muted);
    line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .dest-detail-layout {
        grid-template-columns: 1fr;
    }
    .dest-detail-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .dest-page,
    .dest-detail-layout {
        padding-left: 18px;
        padding-right: 18px;
    }
    .dest-detail-hero,
    .dest-detail-hero-inner {
        margin-left: 0;
        margin-right: 0;
        padding-left: 18px;
        padding-right: 18px;
    }
    .dest-hero {
        padding: 44px 22px;
        border-radius: 16px;
    }
    .dest-hero h1 {
        font-size: 1.9rem;
    }
}
