/* ────────────────────────────────────────────────────────────
   Single Destination — Travel Guide sections
   (hero / stats strip / related itineraries / enquiry CTA are
   inline-styled in single-destination.php and reuse global
   .itin-card / .enquiry-strip / .why-brand-* classes already
   defined in style.css — this file only covers the new
   long-form "Travel Guide" content sections + FAQ accordion.)
   ──────────────────────────────────────────────────────────── */

.dg-section {
    padding: 72px 80px;
    background: var(--ivory);
}
.dg-section.dg-alt {
    background: var(--ivory-2);
}
.dg-inner {
    max-width: 1360px;
    margin: 0 auto;
}

.dg-heading {
    margin-bottom: 24px;
}

/* ── Icon badge — shown above the heading on every section, either as the
   sole visual (text-only sections) or alongside a full photo panel ── */
.dg-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--orange-pale);
    color: var(--orange);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.dg-section-icon .dg-inner {
    max-width: 1080px;
}

/* ── Photo panel — full-bleed alternating image + text for the 5
   "experiential" sections (Attractions, Food, Culture, Shopping, Activities) ── */
.dg-panel {
    display: flex;
    min-height: 520px;
}
.dg-panel-rev {
    flex-direction: row-reverse;
}
.dg-panel-img {
    flex: 1 1 46%;
    background-size: cover;
    background-position: center;
    min-height: 320px;
}
.dg-panel-text {
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 72px;
    background: var(--ivory);
}

.dg-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--black-soft);
}
.dg-body p {
    margin: 0 0 18px;
}
.dg-body p:last-child {
    margin-bottom: 0;
}
.dg-body ul,
.dg-body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}
.dg-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.dg-body strong {
    color: var(--black);
    font-weight: 700;
}
.dg-body a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── FAQ accordion ── */
.dg-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dg-faq-item {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 14px;
    padding: 4px 22px;
}
.dg-faq-item[open] {
    border-color: rgba(213, 142, 74, .35);
}
.dg-faq-q {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}
.dg-faq-q::-webkit-details-marker {
    display: none;
}
.dg-faq-toggle {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--orange-pale);
    color: var(--orange);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s var(--ease-out);
}
.dg-faq-item[open] .dg-faq-toggle {
    transform: rotate(45deg);
}
.dg-faq-a {
    padding: 0 0 20px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray);
}
.dg-faq-a p {
    margin: 0 0 12px;
}
.dg-faq-a p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .dg-section {
        padding: 48px 24px;
    }
    .dg-panel,
    .dg-panel-rev {
        flex-direction: column;
    }
    .dg-panel-img {
        min-height: 240px;
    }
    .dg-panel-text {
        padding: 40px 24px;
    }
}

/* ── Section Builder additions ──────────────────────────────────
   Styles for the typed sections editable from the admin Section
   Builder: tip blockquotes, bullet lists, season blocks, trip
   duration rows. (Accordion boxes reuse the .dg-faq-* styles.) */

/* Quoted tips — matches the client reference: a plain vertical accent line,
   italic body, and a bold coloured lead-in ("Travenza tip:", "If you asked us:") */
.dg-body blockquote,
.dg-tip {
    margin: 18px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--orange);
    background: none;
    font-style: italic;
    font-size: 14px;
    line-height: 1.75;
    color: var(--black-soft);
}
.dg-body blockquote p {
    margin: 0 0 10px;
}
.dg-body blockquote p:last-child {
    margin-bottom: 0;
}
.dg-body blockquote strong,
.dg-tip strong {
    color: var(--orange);
    font-weight: 700;
    font-style: italic;
}

.dg-bullets {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dg-bullets li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--black-soft);
}
.dg-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange-pale);
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-seasons {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 28px;
}
.dg-season-label {
    font-family: var(--f-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}
.dg-season-line {
    font-size: 14px;
    line-height: 1.7;
    color: var(--black-soft);
    margin: 0 0 4px;
}
.dg-season-line strong {
    color: var(--orange);
    font-weight: 700;
}
.dg-season .dg-tip {
    margin-top: 12px;
    margin-bottom: 0;
}

.dg-durations {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
}
.dg-duration-row {
    display: flex;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-light);
    align-items: baseline;
}
.dg-duration-row:last-child {
    border-bottom: none;
}
.dg-duration-label {
    flex: 0 0 120px;
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--orange);
}
.dg-duration-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--black-soft);
}

@media (max-width: 768px) {
    .dg-duration-row {
        flex-direction: column;
        gap: 4px;
    }
}

/* ── Testimonials section (Section Builder type) ── */
.dg-testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.dg-testi-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}
.dg-testi-quote {
    font-family: var(--f-display);
    font-size: 48px;
    line-height: 1;
    color: var(--orange);
    display: block;
    margin-bottom: 8px;
}
.dg-testi-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--black-soft);
    margin-bottom: 20px;
}
.dg-testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dg-testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-pale);
    color: var(--orange);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dg-testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.dg-testi-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
}
.dg-testi-trip {
    font-size: 11px;
    color: var(--gray);
}
.dg-testi-card .travenza-stars {
    display: block;
    color: var(--orange);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* ── Inline section image — the client-template "image, para" format:
   photo directly under the H2, paragraphs below it ── */
.dg-inline-img {
    margin: 4px 0 28px;
}
.dg-inline-img img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 16px;
}

/* ── "Best Places to Visit" cards — horizontal scroll row of full-bleed photo
   cards; collapsed shows a truncated preview + "Read More" pill, expanded
   grows taller to reveal the full text + a "Plan My Trip Now" CTA (client
   template format) ── */
.dg-place-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 16px;
    margin-top: 28px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.dg-place-row::-webkit-scrollbar {
    height: 6px;
}
.dg-place-row::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 10px;
}
.dg-place-card {
    position: relative;
    isolation: isolate;
    flex: 0 0 260px;
    min-height: 340px;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.dg-place-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
}
.dg-place-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8,8,8,.32) 0%, rgba(8,8,8,.4) 30%, rgba(8,8,8,.72) 65%, rgba(8,8,8,.93) 100%);
}
.dg-place-summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: block;
}
.dg-place-summary::-webkit-details-marker {
    display: none;
}
.dg-place-title {
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 10px;
    text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
.dg-place-preview {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,.88);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.dg-place-toggle-more {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--black);
    background: #fff;
    padding: 10px 22px;
    border-radius: 60px;
}
.dg-place-card[open] .dg-place-toggle-more {
    display: none;
}
.dg-place-card[open] .dg-place-preview {
    display: none;
}
.dg-place-expand {
    padding: 0 20px 20px;
}
.dg-place-full {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,.88);
    margin: 0 0 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.dg-place-expand .dg-place-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 12px;
    box-shadow: none;
}

@media (max-width: 600px) {
    .dg-place-card {
        flex-basis: 220px;
        min-height: 300px;
    }
}

/* Best Places section needs a wider column than the 720px text-only default,
   so several place cards are visible before the horizontal scroll cuts off. */
.dg-section-wide .dg-inner {
    max-width: 1600px;
}

/* Placeholder shown on place cards with no image yet (editable any time from
   wp-admin via the Section Builder's "Choose Image" button on that box). */
.dg-place-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, var(--ivory-2), var(--orange-pale));
    color: var(--orange);
    opacity: .85;
}

/* ── Tile grid (Section Builder "tiles" type) — icon + title + short text
   cards, modelled on the homepage "Why Choose Us" treatment (front-page.php
   .why-grid/.why-card, styled in assets/css/page-home.css) which isn't
   loaded on this template, so the same look is reproduced here under the
   dg-* naming already used by this design system. ── */
.dg-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 28px;
}
.dg-tile-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--orange-pale);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}
.dg-tile-title {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}
.dg-tile-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray);
}

@media (max-width: 768px) {
    .dg-tiles-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
