/* =====================================================================
 *  Driftlogue Child — Custom Styles
 *  All selectors prefixed with `dl-` to avoid colliding with
 *  GeneratePress defaults. Sections: tokens / layout / components.
 * ===================================================================== */

/* ---------------------------------------------------------------------
 *  Design tokens
 * ------------------------------------------------------------------- */
:root {
    --dl-accent: #2f5d4f;
    --dl-accent-soft: #e7f0eb;
    --dl-bg: #fafaf7;
    --dl-surface: #ffffff;
    --dl-text: #1f2a26;
    --dl-text-soft: #5b6661;
    --dl-border: #e3e7e3;
    --dl-radius: 10px;
    --dl-radius-sm: 6px;
    --dl-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .04);
    --dl-maxw: 1100px;
    --dl-gap: 1.5rem;
}

/* ---------------------------------------------------------------------
 *  Base / layout
 * ------------------------------------------------------------------- */
body { background: var(--dl-bg); color: var(--dl-text); }

.driftogue-front-page,
.driftlogue-destinations,
.driftlogue-checklist,
.driftlogue-transport {
    max-width: var(--dl-maxw);
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 1.75rem);
}

.dl-section-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------------
 *  Pill (used for country / continent labels)
 * ------------------------------------------------------------------- */
.dl-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--dl-accent-soft);
    color: var(--dl-accent);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.dl-pill + .dl-pill { margin-left: 0.4rem; }
.dl-pill--ghost {
    background: transparent;
    color: var(--dl-text-soft);
    border: 1px solid var(--dl-border);
}

/* ---------------------------------------------------------------------
 *  Front Page — Hero + entries + recent
 * ------------------------------------------------------------------- */
.dl-hero {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    text-align: center;
    border-bottom: 1px solid var(--dl-border);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.dl-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--dl-text);
}
.dl-hero__tagline {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--dl-text-soft);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.5;
}

.dl-entries__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--dl-gap);
    margin-top: 1.5rem;
}
.dl-entry-card {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--dl-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dl-entry-card:hover,
.dl-entry-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
    outline: none;
}
.dl-entry-card__icon { color: var(--dl-accent); }
.dl-entry-card__title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.dl-entry-card__desc { color: var(--dl-text-soft); margin: 0; line-height: 1.5; }
.dl-entry-card__cta { margin-top: auto; color: var(--dl-accent); font-weight: 500; }

.dl-recent__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--dl-gap);
    margin-top: 1.5rem;
}
.dl-recent__card {
    background: var(--dl-surface);
    border-radius: var(--dl-radius);
    border: 1px solid var(--dl-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .15s ease, box-shadow .15s ease;
}
.dl-recent__card:hover { transform: translateY(-2px); box-shadow: var(--dl-shadow); }
.dl-recent__cover {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: var(--dl-accent-soft);
}
.dl-recent__cover--placeholder {
    background: linear-gradient(135deg, var(--dl-accent-soft), #d4e6dd);
}
.dl-recent__body { padding: 1rem 1.25rem 1.25rem; }
.dl-recent__title { margin: 0 0 0.25rem; font-size: 1.1rem; font-weight: 600; }
.dl-recent__meta { margin: 0; color: var(--dl-text-soft); font-size: 0.85rem; }

/* ---------------------------------------------------------------------
 *  Destinations Hub
 * ------------------------------------------------------------------- */
.dl-destinations-grid__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--dl-gap);
}
.dl-destinations-map {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--dl-surface);
    border-radius: var(--dl-radius);
    border: 1px solid var(--dl-border);
}

/* Destination card */
.dl-destination-card {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    overflow: hidden;
    box-shadow: var(--dl-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.dl-destination-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.dl-destination-card__link { color: inherit; text-decoration: none; display: block; }
.dl-destination-card__cover {
    width: 100%;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: var(--dl-accent-soft);
}
.dl-destination-card__cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dl-accent);
    background: linear-gradient(135deg, var(--dl-accent-soft), #d4e6dd);
}
.dl-destination-card__body { padding: 1rem 1.25rem 1.25rem; }
.dl-destination-card__meta { margin: 0 0 0.5rem; font-size: 0.8rem; }
.dl-destination-card__title { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.5rem; }
.dl-destination-card__summary { color: var(--dl-text-soft); line-height: 1.5; margin: 0 0 0.75rem; }
.dl-destination-card__cta { color: var(--dl-accent); font-weight: 500; font-size: 0.9rem; }

/* Destination detail */
.dl-destination-hero {
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-bottom: 1px solid var(--dl-border);
    margin-bottom: 2rem;
}
.dl-destination-hero__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
.dl-destination-hero__meta { margin: 0; }
.dl-destination-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}
@media (max-width: 880px) {
    .dl-destination-grid { grid-template-columns: 1fr; }
}
.dl-destination-content { font-size: 1.05rem; line-height: 1.7; }
.dl-destination-content p { margin: 0 0 1rem; }
.dl-destination-aside .dl-info-card {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.dl-info-card__title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dl-text-soft);
    margin: 0 0 0.75rem;
}
.dl-info-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 0.85rem; }
.dl-info-list dt { font-weight: 600; color: var(--dl-text-soft); font-size: 0.9rem; }
.dl-info-list dd { margin: 0; }

/* Videos grid */
.dl-destination-videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--dl-gap);
    margin-top: 1.5rem;
}

/* ---------------------------------------------------------------------
 *  Video Lazy (cover + play button)
 * ------------------------------------------------------------------- */
.dl-video-lazy {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--dl-radius);
    overflow: hidden;
    cursor: pointer;
}
.dl-video-lazy__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dl-video-lazy__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68px;
    height: 48px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
    transition: transform .15s ease;
}
.dl-video-lazy__play:hover,
.dl-video-lazy__play:focus-visible { transform: scale(1.1); outline: none; }
.dl-video-lazy__play svg { display: block; }
.dl-video-lazy__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
}
.dl-video-lazy iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.dl-video-lazy--invalid {
    aspect-ratio: auto;
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border: 1px solid #ffeeba;
}

/* ---------------------------------------------------------------------
 *  Checklist
 * ------------------------------------------------------------------- */
.dl-checklist-header { margin-bottom: 1.5rem; }
.dl-checklist-sub { color: var(--dl-text-soft); margin: 0; }
.dl-checklist-form { display: grid; gap: 1.5rem; }
.dl-checklist-group {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    padding: 1.25rem 1.5rem 1rem;
}
.dl-checklist-group__legend {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0 0.5rem;
    margin-left: -0.5rem;
}
.dl-checklist-group__items {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}
.dl-checklist-item label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
}
.dl-checklist-item input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--dl-accent);
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}
.dl-checklist-item__label {
    font-weight: 500;
    line-height: 1.5;
}
.dl-checklist-item__hint {
    margin: 0.25rem 0 0 calc(1.1rem + 0.75rem);
    color: var(--dl-text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}
.dl-checklist-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}
.dl-checklist-status[data-kind="success"] { color: var(--dl-accent); }
.dl-checklist-status[data-kind="error"]   { color: #b3261e; }
.dl-checklist-status[data-kind="pending"] { color: var(--dl-text-soft); }
.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: var(--dl-radius-sm);
    border: 1px solid var(--dl-border);
    background: var(--dl-surface);
    color: var(--dl-text);
    cursor: pointer;
    font: inherit;
    transition: background .15s ease, border-color .15s ease;
}
.dl-btn--ghost { background: transparent; }
.dl-btn:hover { border-color: var(--dl-accent); }

/* ---------------------------------------------------------------------
 *  Transport & Budget
 * ------------------------------------------------------------------- */
.dl-transport-hero { margin-bottom: 2rem; }
.dl-transport-hero__intro { color: var(--dl-text-soft); max-width: 40rem; line-height: 1.6; }
.dl-transport-modes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--dl-gap);
    margin-top: 1.5rem;
}
.dl-transport-card {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    padding: 1.25rem 1.5rem;
}
.dl-transport-card__title { margin: 0 0 0.5rem; font-size: 1.2rem; font-weight: 600; }
.dl-transport-card__desc { color: var(--dl-text-soft); margin: 0 0 1rem; line-height: 1.5; }
.dl-transport-card__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: 0.92rem; }
.dl-transport-card__cols h4 {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dl-text-soft);
}
.dl-transport-card__cols ul { margin: 0; padding-left: 1.1rem; }
.dl-transport-card__cols li { margin-bottom: 0.25rem; line-height: 1.4; }

.dl-budget-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dl-surface);
    border-radius: var(--dl-radius);
    overflow: hidden;
    border: 1px solid var(--dl-border);
}
.dl-budget-table th, .dl-budget-table td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--dl-border);
    vertical-align: top;
}
.dl-budget-table thead th {
    background: var(--dl-accent-soft);
    color: var(--dl-accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dl-budget-table tbody tr:last-child th,
.dl-budget-table tbody tr:last-child td { border-bottom: 0; }
.dl-budget-table tbody th { font-weight: 600; }

.dl-faq { display: grid; gap: 0.75rem; max-width: 40rem; }
.dl-faq__item {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    padding: 0.25rem 1rem;
}
.dl-faq__item summary {
    padding: 0.75rem 0;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
}
.dl-faq__item summary::after { content: '+'; float: right; font-weight: 300; font-size: 1.3rem; }
.dl-faq__item[open] summary::after { content: '−'; }
.dl-faq__item p { margin: 0 0 1rem; color: var(--dl-text-soft); line-height: 1.6; }

.dl-empty {
    padding: 2rem;
    text-align: center;
    color: var(--dl-text-soft);
    background: var(--dl-surface);
    border: 1px dashed var(--dl-border);
    border-radius: var(--dl-radius);
}