/* Visitor guide directory (/guides).
   Self-contained: the page reuses site.css's tokens and wrap/section rhythm,
   but none of the homepage's section styles, so home.css is not loaded here. */

/* --- page band ---
   Lead text left, guide covers fading in from the right. The covers fade on
   their own left edge so the sand shows straight through — no seam. */

.gqv2 .gq-gd-band {
    position: relative;
    overflow: hidden;
    background: var(--gq-sand);
    border-bottom: 1px solid var(--gq-line);
    padding: 46px 0;
}

.gqv2 .gq-gd-band-inner {
    position: relative;
    z-index: 1;
}

.gqv2 .gq-gd-band-lead {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gqv2 .gq-gd-band-mark {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 34px;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--gq-navy), var(--gq-blue-dark));
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45),
                0 18px 34px -12px rgba(18, 59, 99, .5),
                inset 0 2px 0 rgba(255, 255, 255, .22);
    transform: rotate(-4deg);
}

.gqv2 .gq-gd-band .gqv2-script {
    font-size: 26px;
    color: var(--gq-blue);
}

.gqv2 .gq-gd-band h1 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    color: var(--gq-navy);
    line-height: 1.1;
}

.gqv2 .gq-gd-band p {
    margin: 6px 0 0;
    max-width: 520px;
    font-size: 15px;
    color: var(--gq-mist);
}

.gqv2 .gq-gd-band p b {
    color: var(--gq-navy);
}

.gqv2 .gq-gd-band-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding-right: 40px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 34%, rgba(0, 0, 0, .5) 52%, #000 72%);
            mask-image: linear-gradient(90deg, transparent 34%, rgba(0, 0, 0, .5) 52%, #000 72%);
}

.gqv2 .gq-gd-band-bg img {
    width: 130px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, .9);
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .4);
}

.gqv2 .gq-gd-band-bg img:nth-child(1) { transform: rotate(-7deg) translateY(8px); }
.gqv2 .gq-gd-band-bg img:nth-child(2) { transform: rotate(2deg) translateY(-6px); }
.gqv2 .gq-gd-band-bg img:nth-child(3) { transform: rotate(8deg) translateY(10px); }

@media (max-width: 860px) {
    .gqv2 .gq-gd-band-bg {
        gap: 12px;
        padding-right: 20px;
        -webkit-mask-image: linear-gradient(90deg, transparent 44%, #000 80%);
                mask-image: linear-gradient(90deg, transparent 44%, #000 80%);
    }

    .gqv2 .gq-gd-band-bg img { width: 104px; }
}

@media (max-width: 620px) {
    .gqv2 .gq-gd-band-bg { display: none; }
}

/* --- layout ---
   .gqv2-wrap sets margin at the same specificity, so the layout has to match
   it to win its own spacing. */

.gqv2 .gqv2-wrap.gq-gd-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    margin-top: 56px;
    margin-bottom: 70px;
}

/* --- state sidebar --- */

.gqv2 .gq-gd-side {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--gq-line) transparent;
}

.gqv2 .gq-gd-side::-webkit-scrollbar { width: 8px; }
.gqv2 .gq-gd-side::-webkit-scrollbar-track { background: transparent; }
.gqv2 .gq-gd-side::-webkit-scrollbar-thumb { background: var(--gq-line); border-radius: 999px; }

.gqv2 .gq-gd-side h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gq-mist);
}

.gqv2 .gq-gd-state-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gqv2 .gq-gd-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--gq-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--gq-navy);
    transition: background .14s ease, color .14s ease;
}

.gqv2 .gq-gd-item .cnt {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--gq-cloud);
    font-size: 12px;
    font-weight: 700;
    color: var(--gq-mist);
}

.gqv2 .gq-gd-item:hover { background: var(--gq-cloud); }
.gqv2 .gq-gd-item.is-active { background: var(--gq-navy); color: #fff; }
.gqv2 .gq-gd-item.is-active .cnt { background: rgba(255, 255, 255, .2); color: #fff; }

.gqv2 .gq-gd-note {
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px solid var(--gq-line);
    border-radius: 12px;
    background: var(--gq-blue-tint);
    font-size: 12px;
    line-height: 1.5;
    color: var(--gq-mist);
}

.gqv2 .gq-gd-note i { color: var(--gq-blue); }

/* --- mobile + tablet state picker ---
   The sidebar is out of reach, so the state lives behind one wide sticky
   button. It parks under the site header, whose height is measured into
   --gq-gd-headh by the script — the header is sticky at z-index 1000, so a
   bar at top:0 would simply hide behind it. */

.gqv2 .gq-gd-statebar { display: none; }

@media (max-width: 900px) {
    .gqv2 .gqv2-wrap.gq-gd-layout {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 24px;
    }

    .gqv2 .gq-gd-side { display: none; }

    .gqv2 .gq-gd-statebar {
        display: block;
        position: sticky;
        top: var(--gq-gd-headh, 64px);
        z-index: 70;
        margin: 0 -24px 20px;
        padding: 10px 24px;
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(6px);
        border-bottom: 1px solid var(--gq-line);
    }

    .gqv2 .gq-gd-statebar.is-stuck { box-shadow: 0 10px 22px -16px rgba(18, 59, 99, .55); }

    .gqv2 .gq-gd-pick {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 13px 16px;
        border: 0;
        border-radius: 12px;
        background: var(--gq-navy);
        color: #fff;
        cursor: pointer;
        font-family: var(--gq-font);
        font-size: 14.5px;
        font-weight: 800;
        box-shadow: 0 10px 22px -12px rgba(13, 44, 75, .7);
    }

    .gqv2 .gq-gd-pick-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gqv2 .gq-gd-pick-pin { color: var(--gq-gold); }
    .gqv2 .gq-gd-pick-caret { margin-left: auto; font-size: 12px; opacity: .85; }

    .gqv2 .gq-gd-pick-n {
        padding: 2px 9px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .18);
        font-size: 11.5px;
        font-weight: 800;
        color: #FFD98A;
    }
}

/* --- results --- */

.gqv2 .gq-gd-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.gqv2 .gq-gd-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--gq-navy);
}

.gqv2 .gq-gd-head span {
    font-size: 13px;
    font-weight: 600;
    color: var(--gq-mist);
}

.gqv2 .gq-gd-group { margin-bottom: 44px; }
.gqv2 .gq-gd-group:last-child { margin-bottom: 0; }
.gqv2 .gq-gd-group.is-hidden { display: none; }

.gqv2 .gq-gd-group-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}

.gqv2 .gq-gd-group-head .gqv2-script { font-size: 32px; }

.gqv2 .gq-gd-group-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gq-line);
}

.gqv2 .gq-gd-group-count {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--gq-sand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gq-gold-dark);
}

/* the results head already names the state, so the lone group drops its own */
.gqv2 .gq-gd-group.is-solo .gq-gd-group-head { display: none; }

.gqv2 .gq-gd-nearby {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 44px 0 30px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gq-mist);
}

.gqv2 .gq-gd-nearby::before,
.gqv2 .gq-gd-nearby::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gq-line);
}

.gqv2 .gq-gd-nearby i { color: var(--gq-gold); }
.gqv2 .gq-gd-nearby[hidden] { display: none; }

/* --- guide cards --- */

.gqv2 .gq-gd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .gqv2 .gq-gd-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

.gqv2 .gq-gd-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gq-navy-dark);
    box-shadow: var(--gq-shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.gqv2 .gq-gd-card:hover { transform: translateY(-5px); box-shadow: var(--gq-shadow); }
.gqv2 .gq-gd-card.is-hidden { display: none; }

.gqv2 .gq-gd-card-img {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gq-navy-dark);
}

/* Filled and pinned to the top, so surplus crops at the bottom and the
   masthead is never cut. The mask dissolves the last 48px into the card —
   the extra stops keep the alpha ramp smooth, which is what stops banding. */
.gqv2 .gq-gd-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transform-origin: top center;
    transition: transform .4s ease;
    -webkit-mask-image: linear-gradient(to bottom,
        #000 calc(100% - 48px), rgba(0, 0, 0, .85) calc(100% - 36px),
        rgba(0, 0, 0, .6) calc(100% - 24px), rgba(0, 0, 0, .3) calc(100% - 12px), transparent 100%);
            mask-image: linear-gradient(to bottom,
        #000 calc(100% - 48px), rgba(0, 0, 0, .85) calc(100% - 36px),
        rgba(0, 0, 0, .6) calc(100% - 24px), rgba(0, 0, 0, .3) calc(100% - 12px), transparent 100%);
}

.gqv2 .gq-gd-card:hover .gq-gd-card-img img { transform: scale(1.05); }

.gqv2 .gq-gd-card-pages {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(13, 34, 58, .82);
    backdrop-filter: blur(2px);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

/* rides up into the dissolved zone so cover and text read as one piece */
.gqv2 .gq-gd-card-body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    margin-top: -30px;
    padding: 11px 12px 13px;
}

.gqv2 .gq-gd-card-state {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #FFD98A;
}

.gqv2 .gq-gd-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
}

.gqv2 .gq-gd-card-read {
    margin-top: auto;
    padding-top: 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9CC7E3;
}

.gqv2 .gq-gd-card-read i { transition: transform .18s ease; }
.gqv2 .gq-gd-card:hover .gq-gd-card-read i { transform: translateX(4px); }

/* --- featured card ---
   Leads its state's grid across three columns: the whole cover tilted on the
   left, the details on the right. Its height is pinned to a sibling card by
   the script so the grid rows stay aligned. */

.gqv2 .gq-gd-card.gq-gd-card-feat {
    grid-column: span 3;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, #0d2c4b 0%, #123B63 60%, #1c5d86 100%);
}

.gqv2 .gq-gd-card.gq-gd-card-feat::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(217, 108, 71, .35), transparent 65%);
    pointer-events: none;
}

.gqv2 .gq-gd-card-feat .gq-gd-feat-cover {
    flex: 0 0 36%;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 16px 10px 16px 16px;
}

.gqv2 .gq-gd-card-feat .gq-gd-feat-cover img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border: 3px solid rgba(255, 255, 255, .92);
    border-radius: 6px 10px 10px 6px;
    transform: perspective(900px) rotateY(16deg) rotate(-3deg);
    box-shadow: -22px 26px 38px -14px rgba(0, 0, 0, .6);
    transition: transform .25s ease;
}

.gqv2 .gq-gd-card-feat:hover .gq-gd-feat-cover img {
    transform: perspective(900px) rotateY(8deg) rotate(-1deg);
}

.gqv2 .gq-gd-card-feat .gq-gd-card-body {
    max-width: 480px;
    margin-top: 0;
    padding: 20px 24px 18px;
    gap: 10px;
    justify-content: center;
}

.gqv2 .gq-gd-card-feat .gq-gd-feat-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #D96C47, #B85434);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 6px 14px rgba(184, 84, 52, .45);
}

.gqv2 .gq-gd-card-feat .gq-gd-card-title {
    font-size: 16px;
    line-height: 1.3;
    -webkit-line-clamp: 3;
}

.gqv2 .gq-gd-card-feat .gq-gd-feat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gqv2 .gq-gd-card-feat .gq-gd-feat-chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gq-sky);
}

.gqv2 .gq-gd-card-feat .gq-gd-feat-chips i { font-size: 10px; color: #FFD98A; }
.gqv2 .gq-gd-card-feat .gq-gd-feat-chips span[hidden] { display: none; }

.gqv2 .gq-gd-card-feat .gq-gd-feat-tag {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.55;
    color: #C9DCEA;
}

.gqv2 .gq-gd-card-feat .gq-gd-card-read {
    align-self: flex-start;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--gq-gold);
    font-size: 11px;
    letter-spacing: .06em;
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(184, 84, 52, .6);
    transition: background .18s ease;
}

.gqv2 .gq-gd-card-feat:hover .gq-gd-card-read { background: var(--gq-gold-dark); }

@media (max-width: 640px) {
    /* a narrow grid may only be two columns wide, and the card stacks */
    .gqv2 .gq-gd-card.gq-gd-card-feat { grid-column: span 2; flex-direction: column; }

    .gqv2 .gq-gd-card-feat .gq-gd-feat-cover { flex: 0 0 auto; padding: 18px 18px 4px; }
    .gqv2 .gq-gd-card-feat .gq-gd-feat-cover img { max-height: 220px; }
    .gqv2 .gq-gd-card-feat .gq-gd-card-body { max-width: none; padding: 14px 18px 18px; }
    .gqv2 .gq-gd-card-feat .gq-gd-card-title { font-size: 15px; }
}

/* --- empty state --- */

.gqv2 .gq-gd-empty {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

.gqv2 .gq-gd-empty i { font-size: 42px; color: var(--gq-blue); }
.gqv2 .gq-gd-empty h2 { margin: 16px 0 8px; font-size: 24px; color: var(--gq-navy); }
.gqv2 .gq-gd-empty p { margin: 0 0 22px; color: var(--gq-mist); }

/* --- state sheet (mobile + tablet) --- */

.gqv2 .gq-gd-sheet {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.gqv2 .gq-gd-sheet[hidden] { display: none; }

.gqv2 .gq-gd-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 32, 56, .55);
    backdrop-filter: blur(2px);
}

/* fixed height, not max-height: filtering the list must not resize the sheet
   under the reader's thumb while they type */
.gqv2 .gq-gd-sheet-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    height: 78vh;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -20px 60px -20px rgba(10, 32, 56, .6);
    animation: gqGdSheetUp .22s cubic-bezier(.2, .8, .3, 1);
}

@keyframes gqGdSheetUp { from { transform: translateY(14px); opacity: 0; } }

.gqv2 .gq-gd-sheet-grab {
    width: 44px;
    height: 4px;
    margin: 10px auto 2px;
    border-radius: 999px;
    background: var(--gq-line);
}

.gqv2 .gq-gd-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px 12px;
}

.gqv2 .gq-gd-sheet-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--gq-navy);
}

.gqv2 .gq-gd-sheet-x {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    background: var(--gq-cloud);
    color: var(--gq-navy);
    font-size: 15px;
    cursor: pointer;
}

.gqv2 .gq-gd-sheet-search { position: relative; padding: 0 20px 12px; }

.gqv2 .gq-gd-sheet-search i {
    position: absolute;
    top: 13px;
    left: 34px;
    font-size: 13px;
    color: var(--gq-mist);
    pointer-events: none;
}

.gqv2 .gq-gd-sheet-search input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1.5px solid var(--gq-line);
    border-radius: 12px;
    background: var(--gq-cloud);
    font-family: var(--gq-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--gq-navy);
}

.gqv2 .gq-gd-sheet-search input:focus {
    outline: none;
    border-color: var(--gq-blue);
    background: #fff;
}

/* flex:1 + min-height:0 is what lets the list absorb the leftover height and
   scroll inside the fixed card instead of stretching it */
.gqv2 .gq-gd-sheet-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 20px;
    -webkit-overflow-scrolling: touch;
}

.gqv2 .gq-gd-sheet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 12px;
    border: 0;
    border-radius: 12px;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--gq-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--gq-navy);
}

.gqv2 .gq-gd-sheet-item .cnt {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gq-cloud);
    font-size: 12px;
    font-weight: 700;
    color: var(--gq-mist);
}

.gqv2 .gq-gd-sheet-item .tick { display: none; font-size: 13px; color: #fff; }
.gqv2 .gq-gd-sheet-item.is-active { background: var(--gq-navy); color: #fff; }
.gqv2 .gq-gd-sheet-item.is-active .cnt { background: rgba(255, 255, 255, .2); color: #FFD98A; }
.gqv2 .gq-gd-sheet-item.is-active .tick { display: inline; }
.gqv2 .gq-gd-sheet-item[hidden] { display: none; }

.gqv2 .gq-gd-sheet-empty {
    margin: 0;
    padding: 6px 24px 26px;
    font-size: 14px;
    color: var(--gq-mist);
}

.gqv2 .gq-gd-sheet-empty[hidden] { display: none; }

/* The reader itself is shared with the partner panel — shared/guide-reader.css. */
