/**
 * BucketListly-style destination category archives
 */

.blog-dest-page {
    --dest-shell: min(74rem, calc(100vw - 2rem));
    --dest-accent: #2563eb;
    background: #fff;
}

@media (min-width: 1200px) {
    .blog-dest-page {
        --dest-shell: min(92rem, calc(100vw - 5.5rem));
    }
}

@media (min-width: 1400px) {
    .blog-dest-page {
        --dest-shell: min(96rem, calc(100vw - 5rem));
    }
}

/* Hero */
.blog-dest-hero {
    position: relative;
    min-height: min(52vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: #0f172a;
    background-image: var(--dest-hero-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.blog-dest-hero--fallback {
    background-image:
        linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, transparent 55%),
        linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #334155 100%);
}

.blog-dest-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.35) 45%,
        rgba(15, 23, 42, 0.72) 100%
    );
}

.blog-dest-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 48rem;
    padding: 5.5rem 1.25rem 4.5rem;
}

.blog-dest-hero__eyebrow {
    margin: 0 0 0.65rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.blog-dest-hero__title {
    margin: 0 0 0.85rem;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.blog-dest-hero__dek {
    margin: 0 auto;
    max-width: 38rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.blog-dest-hero__curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3.5rem;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 3;
}

/* Shell */
.blog-dest-shell {
    width: var(--dest-shell);
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

@media (min-width: 1200px) {
    .blog-dest-shell {
        padding: 0 1.25rem 5rem;
    }
}

/* Intro */
.blog-dest-intro {
    padding: 0.5rem 0 2rem;
    text-align: left;
}

.blog-category-page .blog-dest-intro .blog-breadcrumb {
    justify-content: flex-start;
    margin-bottom: 1rem;
    font-style: normal;
}

.blog-category-page .blog-dest-intro .blog-breadcrumb,
.blog-category-page .blog-dest-intro .blog-breadcrumb a {
    color: var(--blog-muted, #64748b);
}

.blog-category-page .blog-dest-intro .blog-breadcrumb a:hover {
    color: var(--blog-accent, #2563eb);
}

.blog-category-page .blog-dest-intro .blog-breadcrumb .current,
.blog-category-page .blog-dest-intro .blog-breadcrumb-sep {
    color: #94a3b8;
}

.blog-dest-intro__lead {
    margin: 0 0 1rem;
    max-width: 42rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #475569;
}

.blog-dest-intro__prose {
    max-width: 42rem;
    margin-bottom: 1rem;
}

.blog-dest-intro__stat {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Sections */
.blog-dest-section {
    margin-bottom: 3rem;
}

.blog-dest-section__head {
    margin-bottom: 1.5rem;
}

.blog-dest-section__title {
    margin: 0 0 1rem;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--blog-ink, #0f172a);
    letter-spacing: -0.02em;
}

/* Toolbar */
.blog-dest-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-dest-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 22rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--blog-border, #e2e8f0);
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
}

.blog-dest-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: var(--blog-ink, #0f172a);
    outline: none;
}

.blog-dest-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.blog-dest-filter {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--blog-border, #e2e8f0);
    border-radius: 999px;
    background: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.blog-dest-filter:hover {
    border-color: #bfdbfe;
    color: var(--dest-accent);
}

.blog-dest-filter.is-active {
    background: var(--dest-accent);
    border-color: var(--dest-accent);
    color: #fff;
}

.blog-dest-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-dest-pill {
    display: inline-flex;
    padding: 0.45rem 1rem;
    border: 1px solid var(--blog-border, #e2e8f0);
    border-radius: 999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.blog-dest-pill:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: var(--dest-accent);
}

/* Child destination cards */
.blog-dest-grid {
    display: grid;
    gap: 1.25rem;
}

.blog-dest-grid--directory {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .blog-dest-grid:not(.blog-dest-grid--directory) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-dest-card__link {
        flex-direction: row;
    }

    .blog-dest-grid:not(.blog-dest-grid--directory) .blog-dest-card__media {
        width: 38%;
        min-height: 11rem;
    }
}

@media (min-width: 1100px) {
    .blog-dest-grid:not(.blog-dest-grid--directory) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.blog-dest-card {
    border: 1px solid var(--blog-border, #e2e8f0);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-dest-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.blog-dest-card.is-hidden {
    display: none;
}

.blog-dest-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-dest-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.blog-dest-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-dest-card:hover .blog-dest-card__media img {
    transform: scale(1.04);
}

.blog-dest-card__body {
    padding: 1.1rem 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.blog-dest-card__title {
    margin: 0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blog-ink, #0f172a);
}

.blog-dest-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-dest-card__tags li {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.blog-dest-card__excerpt {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
}

.blog-dest-card__count {
    margin: auto 0 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dest-accent);
}

/* Travel guide cards */
.blog-guide-grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 640px) {
    .blog-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .blog-guide-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

.blog-guide-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--blog-border, #e2e8f0);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-guide-card:hover {
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.blog-guide-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-guide-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.blog-guide-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-guide-card:hover .blog-guide-card__media img {
    transform: scale(1.05);
}

.blog-guide-card__media-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.blog-guide-card__body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.blog-guide-card__badge {
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eff6ff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dest-accent);
}

.blog-guide-card__title {
    margin: 0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--blog-ink, #0f172a);
}

.blog-guide-card__excerpt {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
}

.blog-guide-card__meta {
    margin: auto 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-guide-card__meta time {
    color: #94a3b8;
}

/* Empty states */
.blog-dest-empty {
    margin: 1rem 0 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #64748b;
    text-align: center;
}

.blog-dest-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    border: 1px dashed var(--blog-border, #e2e8f0);
    border-radius: 1rem;
    background: #f8fafc;
}

.blog-dest-empty-state__title {
    margin: 0 0 0.5rem;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.5rem;
    color: var(--blog-ink, #0f172a);
}

.blog-dest-empty-state__text {
    margin: 0 auto 1.25rem;
    max-width: 28rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
}

.blog-dest-empty-state__btn {
    display: inline-flex;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: var(--dest-accent);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.blog-dest-empty-state__btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 639px) {
    .blog-dest-hero__inner {
        padding-top: 4.75rem;
        padding-bottom: 3.5rem;
    }

    .blog-dest-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .blog-dest-filter {
        flex-shrink: 0;
    }
}
