/* ==========================================================================
   What's the Difference page (whats-the-difference.php) — loaded on this page only.
   Builds on new/css/bundle.css (colors, fonts, .container, .btn, .grid).
   ========================================================================== */

.wtd {
    --wtd-ink: #1b2433;
    --wtd-line: #dee3ed;
    --wtd-ok: #1e9e5a;
    --wtd-no: #d93b3b;
}

/* ---------- Hero: four photos with frosted labels + title card ---------- */
.wtd-hero {
    padding: 30px 0 70px;
    background: #fff;
}

.wtd-hero-panels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.wtd-panel {
    position: relative;
    display: block;
    height: clamp(340px, 36vw, 480px);
    overflow: hidden;
    background: var(--wtd-ink);
}

.wtd-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.wtd-panel:hover img,
.wtd-panel:focus-visible img {
    transform: scale(1.05);
}

.wtd-panel:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
}

.wtd-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 12px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, .6);
    color: var(--wtd-ink);
    font-family: var(--headings-font);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}

.wtd-label small {
    display: block;
    margin-top: 4px;
    font-family: var(--default-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary);
}

/* Title card overlaps the bottom of the photos */
.wtd-title-card {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: -90px auto 0;
    padding: 34px 40px 30px;
    background: #fff;
    border-radius: 10px;
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 18px 50px rgba(27, 36, 51, .18);
    text-align: center;
}

.wtd-title-card .small-title {
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 8px;
}

.wtd-title-card h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4.4vw, 54px);
    color: var(--wtd-ink);
}

/* Keyword line inside the H1, styled as the small blue eyebrow */
.wtd-title-card h1 .small-title {
    display: block;
    margin-bottom: 10px;
    font-family: var(--default-font);
    line-height: 1.4;
}

.wtd-title-card p {
    max-width: 580px;
    margin: 0 auto 22px;
    font-size: 17px;
}

/* "Scroll Down To Compare" link */
.wtd-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
}

.wtd-scroll svg {
    animation: wtd-bounce 1.8s ease-in-out infinite;
}

.wtd-scroll:hover {
    color: var(--secondary);
}

@keyframes wtd-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ---------- Luxury ladder: bar chart of 2 bedroom sizes ---------- */
.wtd-steps {
    --bar-max: 300px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.wtd-step a {
    display: grid;
    grid-template-areas: "value" "bar" "name";
    grid-template-rows: 1fr auto auto;
    height: 100%;
    padding: 0 5px;
    color: var(--wtd-ink);
    text-align: center;
}

/* Bar height is true to scale: --size = this suite's sq ft / the largest */
.wtd-step-bar {
    grid-area: bar;
    height: calc(var(--size) * var(--bar-max));
    border-radius: 8px 8px 0 0;
    background: var(--secondary);
    transition: background-color .2s ease;
}

.wtd-step-num {
    grid-area: bar;
    z-index: 1;
    align-self: start;
    padding-top: 8px;
    font-family: var(--headings-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, .6);
}

.wtd-step-value {
    grid-area: value;
    align-self: end;
    padding-bottom: 8px;
    font-size: 13px;
    line-height: 1.3;
    color: #5b6478;
}

.wtd-step-value strong {
    display: block;
    font-family: var(--headings-font);
    font-size: 24px;
    line-height: 1.1;
    color: var(--wtd-ink);
}

.wtd-step-name {
    grid-area: name;
    min-height: 54px;
    margin: 0 -5px; /* line runs edge to edge under the bars */
    padding: 10px 9px 0;
    border-top: 2px solid var(--secondary);
    font-weight: 600;
    line-height: 1.25;
}

.wtd-step a:hover .wtd-step-bar,
.wtd-step a:focus-visible .wtd-step-bar {
    background: var(--primary);
}

.wtd-step a:hover .wtd-step-name,
.wtd-step a:focus-visible .wtd-step-name {
    color: var(--primary);
}

.wtd-steps-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary);
}

.wtd-steps-note {
    margin: 18px 0 0;
    font-size: 14px;
    text-align: center;
    color: #5b6478;
}

/* ---------- Overview rows ---------- */
.wtd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    padding: 50px 0;
    border-bottom: 1px solid var(--wtd-line);
}

.wtd-row:first-child { padding-top: 0; }
.wtd-row:last-child  { border-bottom: 0; padding-bottom: 0; }

.wtd-row:nth-child(even) .wtd-row-media { order: 2; }

.wtd-row-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.wtd-tier-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 30px;
    background: rgba(28, 152, 224, .1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

.wtd-row h2 {
    margin-bottom: 14px;
}

.wtd-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Comparison tabs ---------- */
.wtd-compare {
    scroll-margin-top: 20px;
}

.wtd-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.wtd-tab {
    padding: 11px 18px;
    border: 1px solid var(--wtd-line);
    border-radius: 30px;
    background: #fff;
    color: var(--wtd-ink);
    font: 600 15px/1.2 var(--default-font);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.wtd-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.wtd-tab[aria-selected="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.wtd-tab:focus-visible {
    outline: 3px solid rgba(28, 152, 224, .35);
    outline-offset: 2px;
}

.wtd-pane {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--wtd-line);
    border-radius: 10px;
}

.wtd-pane[hidden] { display: none; }

.wtd-gallery-main img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.wtd-thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.wtd-thumbs a {
    width: 84px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: .65;
    transition: opacity .2s ease, border-color .2s ease;
}

.wtd-thumbs a:hover,
.wtd-thumbs a:focus-visible {
    opacity: 1;
}

.wtd-thumbs a.is-active {
    border-color: var(--primary);
    opacity: 1;
}

.wtd-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.wtd-pane-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 8px;
    background: var(--primary);
}
.wtd-pane-cta .btn {
    padding: 12px 15px;
}
.wtd-pane-cta .h4 {
    margin: 0;
    color: #fff;
}

.wtd-pane h3 {
    color: var(--primary);
    margin-bottom: 18px;
}

.wtd-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
}

.wtd-specs h4 {
    margin: 0 0 10px;
    font-family: var(--default-font);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
}

.wtd-specs > div + div h4 { margin-top: 0; }
.wtd-specs .wtd-span-2 { grid-column: 1 / -1; }

.wtd-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.wtd-list li {
    position: relative;
    padding: 0 0 8px 28px;
    line-height: 1.45;
}

.wtd-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-color: var(--wtd-ok);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.2-4.2 1.4-1.4 2.8 2.8 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.2-4.2 1.4-1.4 2.8 2.8 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.wtd-list li.is-no { color: #8a8f99; }

.wtd-list li.is-no::before {
    background-color: var(--wtd-no);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm4.2 12.8-1.4 1.4L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm4.2 12.8-1.4 1.4L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8z'/%3E%3C/svg%3E");
}

.wtd-compare-note {
    max-width: 760px;
    margin: 30px auto 0;
    text-align: center;
}

/* ---------- Owners ---------- */
.wtd-owners .wtd-owners-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 40px;
}

.wtd-owners img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
    .wtd-label { font-size: 20px; }

    /* Chart turns into horizontal bars: name and size on top, bar below */
    .wtd-steps {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 680px;
        margin: 0 auto;
    }
    .wtd-step a {
        grid-template-areas: "num name value" "num bar bar";
        grid-template-columns: 30px 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px 10px;
        padding: 12px 16px;
        border-radius: 8px;
        background: #fff;
        text-align: left;
    }
    .wtd-step-bar {
        width: calc(var(--size) * 100%);
        height: 10px;
        border-radius: 5px;
    }
    .wtd-step-num {
        grid-area: num;
        align-self: center;
        padding: 0;
        color: var(--secondary);
        opacity: .45;
    }
    .wtd-step-name {
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
    }
    .wtd-step-value { padding: 0; white-space: nowrap; }
    .wtd-step-value strong {
        display: inline;
        font-size: 18px;
    }
    .wtd-steps-axis { display: none; }

    .wtd-row { gap: 30px; }

    .wtd-pane { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .wtd-hero { padding: 16px 0 50px; }

    .wtd-hero-panels { grid-template-columns: 1fr 1fr; }

    .wtd-panel { height: 230px; }

    .wtd-label {
        padding: 10px 6px;
        font-size: 17px;
    }
    .wtd-label small { font-size: 9px; letter-spacing: 1px; }

    .wtd-title-card {
        margin: -40px 12px 0;
        padding: 24px 18px 22px;
    }
    .wtd-title-card p { font-size: 16px; }

    .wtd-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 36px 0;
    }
    .wtd-row:nth-child(even) .wtd-row-media { order: 0; }

    /* All tabs visible: 2-column grid, odd last tab spans the full row */
    .wtd-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }
    .wtd-tab {
        width: 100%;
        padding: 11px 8px;
        border-radius: 8px;
        font-size: 14px;
        text-align: center;
    }
    .wtd-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }

    .wtd-pane { padding: 18px; gap: 24px; }
    .wtd-specs { grid-template-columns: 1fr; }
    .wtd-pane-cta { flex-direction: column; align-items: stretch; text-align: center; }

    .wtd-owners .wtd-owners-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .wtd-owners img { max-width: 220px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .wtd-panel img,
    .wtd-step-bar { transition: none; }
    .wtd-scroll svg { animation: none; }
    .wtd-panel:hover img { transform: none; }
}
@media (max-width: 767px) {
.wtd-overview .wtd-row {
    text-align: center;
}
}
@media (max-width: 479px) {
    .wtd-btns .btn {
    padding: 13px 15px;
}
}