/* ========================================================================== 
   WPD MALAYSIA — HERITAGE TOUR
   Scoped to .wpd-heritage. Change palette / sizing in the variables below.
   ========================================================================== */
.wpd-heritage {
    --heritage-navy: #0c2446;
    --heritage-blue: #164374;
    --heritage-gold: #bb9658;
    --heritage-paper: #f9f8f4;
    --heritage-cream: #f2eee6;
    --heritage-ink: #24354d;
    --heritage-muted: #65758a;
    --heritage-gutter: clamp(22px, 5vw, 88px);
    color: var(--heritage-ink);
    background: var(--heritage-paper);
    font-family: 'Inter', Arial, sans-serif;
}

.wpd-heritage *, .wpd-heritage *::before, .wpd-heritage *::after { box-sizing: border-box; }
.wpd-heritage img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wpd-heritage a { text-decoration: none; }
.wpd-heritage h1, .wpd-heritage h2, .wpd-heritage h3, .wpd-heritage p { margin: 0; }
.wpd-heritage em { color: var(--heritage-gold); font-style: normal; }
.wpd-heritage .heritage-shell { width: min(100%, 1540px); margin-inline: auto; padding-inline: var(--heritage-gutter); }

/* Every panel aims to fit ONE usable viewport on desktop.
   min-height (not height) protects content from being cut off on small screens. */
.wpd-heritage .heritage-panel {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(80px, 9vh, 118px) clamp(52px, 7vh, 90px);
    scroll-margin-top: 72px;
}

.wpd-heritage .heritage-eyebrow {
    font-size: clamp(11px, .88vw, 14px);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--heritage-blue);
}
.wpd-heritage .heritage-section-heading { margin-bottom: clamp(20px, 3.4vh, 38px); }
.wpd-heritage .heritage-section-heading h2 {
    margin-top: 12px;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(34px, 3.5vw, 60px);
    line-height: 1.13;
    font-weight: 500;
    letter-spacing: -.045em;
    color: var(--heritage-navy);
}
.wpd-heritage .heritage-section-heading > p:last-child,
.wpd-heritage .heritage-section-heading--row > p { font-size: 14px; color: var(--heritage-muted); }
.wpd-heritage .heritage-section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }

/* 01 — Hero */
.wpd-heritage .heritage-hero { background: linear-gradient(115deg, #f9f8f4 0%, #edeef0 100%); }
.wpd-heritage .heritage-hero__grid { display: grid; grid-template-columns: 1fr .90fr; align-items: center; gap: clamp(32px, 5vw, 100px); }
.wpd-heritage .heritage-hero__content { max-width: 720px; }
.wpd-heritage .heritage-hero h1 {
    margin-top: clamp(22px, 4vh, 44px);
    color: var(--heritage-navy);
    font-family: 'Lora', Georgia, serif;
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: 1.11;
    font-size: clamp(42px, 4.25vw, 76px);
}
.wpd-heritage .heritage-lead { max-width: 610px; margin-top: 24px; font-size: clamp(15px, 1.13vw, 18px); line-height: 1.75; color: var(--heritage-muted); }
.wpd-heritage .heritage-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.wpd-heritage .heritage-button { display: inline-flex; gap: 32px; align-items: center; justify-content: space-between; padding: 15px 22px; border: 1px solid var(--heritage-navy); background: var(--heritage-navy); color: #fff; font-size: 13px; font-weight: 700; transition: background .25s, transform .25s; }
.wpd-heritage .heritage-button:hover { background: var(--heritage-blue); transform: translateY(-2px); color: #fff; }
.wpd-heritage .heritage-text-link { font-size: 13px; font-weight: 700; color: var(--heritage-blue); }
.wpd-heritage .heritage-text-link:hover { color: var(--heritage-gold); }
.wpd-heritage .heritage-status { margin-top: 32px; font-size: 12px; font-weight: 600; color: var(--heritage-navy); }
.wpd-heritage .heritage-status > span:first-child { color: var(--heritage-gold); }
.wpd-heritage .heritage-status__sep { color: #a6a9af; padding-inline: 8px; }
.wpd-heritage .heritage-hero__image { height: min(65svh, 690px); min-height: 380px; position: relative; background: var(--heritage-navy); overflow: hidden; border-radius: 3px; box-shadow: 20px 20px 0 #e1d5c2; }
.wpd-heritage .heritage-image-tag { position: absolute; inset: auto 20px 20px; display: flex; justify-content: space-between; gap: 12px; color: #fff; background: rgba(12,36,70,.86); padding: 14px 18px; text-transform: uppercase; font-weight: 700; font-size: 11px; letter-spacing: .12em; }

/* 02 — Itinerary */
.wpd-heritage .heritage-schedule { background: #fff; }
.wpd-heritage .heritage-timeline { max-width: 1160px; margin-inline: auto; border-top: 1px solid #d9dddf; }
.wpd-heritage .heritage-timeline__item { display: grid; grid-template-columns: minmax(150px, 20%) 1fr; gap: 28px; padding: clamp(12px, 1.8vh, 23px) 0; border-bottom: 1px solid #d9dddf; }
.wpd-heritage .heritage-timeline time { color: var(--heritage-gold); font-size: clamp(15px, 1.25vw, 19px); font-weight: 800; }
.wpd-heritage .heritage-timeline h3 { color: var(--heritage-navy); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.25; font-weight: 700; }
.wpd-heritage .heritage-timeline p { color: var(--heritage-muted); font-size: clamp(12px, .98vw, 15px); margin-top: 6px; line-height: 1.5; }

/* 03–05 — Destination cards */
.wpd-heritage .heritage-destinations { background: var(--heritage-paper); }
.wpd-heritage .heritage-destinations--soft { background: var(--heritage-cream); }
.wpd-heritage .heritage-finale { background: #fff; }
.wpd-heritage .heritage-card-grid { display: grid; gap: clamp(14px, 2vw, 30px); }
.wpd-heritage .heritage-card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wpd-heritage .heritage-card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wpd-heritage .heritage-place-card { min-width: 0; background: #fff; border: 1px solid #e6e3dd; box-shadow: 0 8px 24px rgba(12, 36, 70, .04); }
.wpd-heritage .heritage-place-card__image { height: clamp(150px, 24vh, 270px); background: var(--heritage-navy); overflow: hidden; }
.wpd-heritage .heritage-place-card__image img { transition: transform .45s ease; }
.wpd-heritage .heritage-place-card:hover img { transform: scale(1.04); }
.wpd-heritage .heritage-place-card__body { padding: clamp(18px, 2vw, 30px); }
.wpd-heritage .heritage-stop-number { color: var(--heritage-gold); text-transform: uppercase; font-size: 10px; line-height: 1.4; letter-spacing: .13em; font-weight: 800; }
.wpd-heritage .heritage-place-card h3 { color: var(--heritage-navy); font-family: 'Lora', Georgia, serif; font-size: clamp(20px, 1.65vw, 29px); font-weight: 600; line-height: 1.2; margin-top: 9px; }
.wpd-heritage .heritage-place-card p { color: var(--heritage-muted); font-size: clamp(12px, 1vw, 15px); line-height: 1.6; margin-top: 11px; }
.wpd-heritage .heritage-place-card--wide .heritage-place-card__image { height: clamp(190px, 28vh, 310px); }
.wpd-heritage .heritage-notice { margin-top: clamp(16px, 3vh, 32px); background: #f5f0e8; border-left: 4px solid var(--heritage-gold); padding: 16px 24px; display: flex; gap: 18px; align-items: center; font-size: 13px; line-height: 1.5; color: var(--heritage-ink); }
.wpd-heritage .heritage-notice strong { min-width: max-content; color: var(--heritage-navy); }

/* Laptop / short-viewports: content wins over strict height. */
@media (max-height: 780px) and (min-width: 901px) {
    .wpd-heritage .heritage-panel { padding-block: 76px 40px; }
    .wpd-heritage .heritage-place-card__image { height: 21vh; min-height: 125px; }
    .wpd-heritage .heritage-place-card--wide .heritage-place-card__image { height: 24vh; }
    .wpd-heritage .heritage-hero h1 { font-size: clamp(40px, 4vw, 64px); }
}

@media (max-width: 900px) {
    .wpd-heritage .heritage-panel { min-height: auto; padding-block: 72px; }
    .wpd-heritage .heritage-hero__grid { grid-template-columns: 1fr; }
    .wpd-heritage .heritage-hero__image { height: 44svh; min-height: 260px; }
    .wpd-heritage .heritage-card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wpd-heritage .heritage-section-heading--row { align-items: start; flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
    .wpd-heritage .heritage-panel { min-height: 100svh; padding-block: 76px 52px; }
    .wpd-heritage .heritage-hero h1 { font-size: clamp(36px, 9vw, 49px); }
    .wpd-heritage .heritage-lead { line-height: 1.6; }
    .wpd-heritage .heritage-hero__image { height: 32svh; min-height: 220px; box-shadow: 10px 10px 0 #e1d5c2; }
    .wpd-heritage .heritage-card-grid--three, .wpd-heritage .heritage-card-grid--two { grid-template-columns: 1fr; }
    .wpd-heritage .heritage-place-card__image, .wpd-heritage .heritage-place-card--wide .heritage-place-card__image { height: 220px; }
    .wpd-heritage .heritage-timeline__item { grid-template-columns: 1fr; gap: 5px; }
    .wpd-heritage .heritage-notice { align-items: flex-start; flex-direction: column; gap: 4px; }
    .wpd-heritage .heritage-status__sep { padding-inline: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .wpd-heritage *, .wpd-heritage *::before, .wpd-heritage *::after { transition: none !important; scroll-behavior: auto !important; }
}
/* =========================================================
   HERITAGE TOUR — VISIT MALAYSIA 2026
   ========================================================= */

.wpd-heritage-vm {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: clamp(1rem, 2.5vw, 2rem);

    margin-top: 1.75rem;
}


/* Collaboration Label */

.wpd-heritage-vm__label {
    flex: 0 0 auto;

    color: #D6B779;

    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* Logo Container */

.wpd-heritage-vm__logo {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 1 264px;
    width: 264px;
    min-width: 0;
    max-width: 100%;

    padding: 0.85rem 1.25rem;

    background: #F8F6F0;
    border-radius: 4px;
}


/* Logo Image */

.wpd-heritage-vm__logo img {
    display: block;

    width: 100%;
    max-height: 144px;
    height: auto;

    object-fit: contain;

    transition: transform 0.3s ease;
}


/* Hover Effect */

.wpd-heritage-vm__logo:hover img {
    transform: translateY(-3px);
}


/* =========================================================
   HERITAGE TOUR — MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .wpd-heritage-vm {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        width: 100%;

        margin-top: 1.5rem;

        gap: clamp(0.75rem, 3vw, 1.25rem);

        text-align: left;
    }


    .wpd-heritage-vm__label {
        flex: 0 0 auto;
        max-width: 45%;

        font-size: 0.6rem;
        line-height: 1.5;
    }


    .wpd-heritage-vm__logo {
        flex: 0 1 216px;
        width: 216px;

        padding: 0.75rem 1rem;
    }


    .wpd-heritage-vm__logo img {
        max-height: 120px;
    }

}
