/* ===========================================================
   Xenia Rise - Guest Guide
   Functional, mobile-first styles layered on top of xenia.css
   =========================================================== */

/* ---------- Slim page header ---------- */
.guide-header {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: calc(var(--nav-h) + 34px) 0 34px;
    text-align: center;
}

.guide-header h1 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 700;
}

.guide-header p {
    color: rgba(255, 255, 255, 0.85);
    margin: 8px auto 0;
    max-width: 560px;
    font-size: 0.98rem;
}

.guide-header .crumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.guide-header .crumb svg {
    width: 15px;
    height: 15px;
}

.guide-header .crumb:hover {
    color: #fff;
}

/* ---------- Sticky section nav (chip bar) ---------- */
.guide-nav {
    position: sticky;
    top: var(--nav-h);
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.guide-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 24px;
    max-width: var(--maxw);
    margin: 0 auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.guide-nav-inner::-webkit-scrollbar {
    display: none;
}

.guide-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.guide-chip:hover,
.guide-chip.active {
    background: var(--brand);
    color: #fff;
}

/* ---------- Guide body ---------- */
.guide {
    max-width: 820px;
    margin: 0 auto;
}

.guide-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 26px;
}

/* anchor offset below the two sticky bars */
.g-card,
.g-anchor {
    scroll-margin-top: calc(var(--nav-h) + 64px);
}

/* ---------- Accordion cards ---------- */
.g-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    overflow: hidden;
}

.g-card summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.g-card summary::-webkit-details-marker {
    display: none;
}

.g-card summary:hover {
    background: var(--bg);
}

.g-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
}

.g-icon svg {
    width: 22px;
    height: 22px;
}

.g-title {
    flex: 1;
    min-width: 0;
}

.g-title strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.g-title span {
    display: block;
    font-size: 0.83rem;
    color: var(--muted);
    margin-top: 1px;
}

.g-badge {
    flex: 0 0 auto;
    background: #fff1cc;
    color: #9a6200;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 9px;
    border-radius: 999px;
}

.g-chevron {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--muted);
    transition: transform 0.25s ease;
}

.g-card[open] .g-chevron {
    transform: rotate(180deg);
}

.g-body {
    padding: 4px 18px 20px;
    border-top: 1px solid var(--line);
}

.g-body > p:first-child {
    margin-top: 14px;
}

.g-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 18px 0 10px;
}

.g-body p {
    font-size: 0.95rem;
}

/* ---------- Numbered steps ---------- */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 14px 0;
    padding: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 14px 46px;
    color: var(--ink);
    font-size: 0.95rem;
}

.steps li:last-child {
    padding-bottom: 0;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps li small {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* highlighted steps (e.g. ice pack rotation) */
.steps li.hl {
    background: var(--brand-tint);
    border-radius: var(--radius-sm);
    padding: 10px 12px 10px 50px;
    margin-bottom: 8px;
}

.steps li.hl::before {
    left: 10px;
    top: 10px;
    background: var(--brand);
    color: #fff;
}

/* ---------- Simple tip list ---------- */
.tips {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.tips li {
    position: relative;
    padding: 0 0 10px 28px;
    color: var(--ink);
    font-size: 0.95rem;
}

.tips li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-light);
}

/* ---------- Callouts ---------- */
.callout {
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 0.93rem;
}

.callout strong.c-title {
    display: block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.callout.warn {
    background: #fff7e6;
    border: 1px solid #f0c563;
    color: #4a3500;
}

.callout.warn strong.c-title {
    color: #b45309;
}

.callout.info {
    background: var(--brand-tint);
    border: 1px solid #cddcf5;
    color: var(--ink);
}

.callout.info strong.c-title {
    color: var(--brand);
}

.callout p {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.callout ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.callout ul li {
    margin-bottom: 4px;
}

/* ---------- Editable info fields (Wi-Fi etc.) ---------- */
.g-fields {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.g-field {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    background: var(--bg);
    border: 1px dashed #c3cfe2;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.g-field label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    flex: 0 0 100%;
}

.g-field .g-value {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    word-break: break-all;
}

.g-field .g-value.placeholder {
    color: var(--muted);
    font-weight: 500;
    font-style: italic;
}

/* ---------- Recycling / bin cards ---------- */
.bin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0;
}

.bin-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.bin-swatch {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 2px solid rgba(21, 35, 61, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
}

.bin-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 3px;
}

.bin-card p {
    margin: 0;
    font-size: 0.92rem;
}

.bin-card .bin-fallback {
    display: block;
    margin-top: 5px;
    font-size: 0.84rem;
    color: var(--muted);
    font-style: italic;
}

/* ---------- Landing page choice cards ---------- */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.choice-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.choice-card .g-icon {
    width: 54px;
    height: 54px;
}

.choice-card .g-icon svg {
    width: 26px;
    height: 26px;
}

.choice-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.choice-card p {
    margin: 0;
    font-size: 0.93rem;
}

.choice-card .g-chevron {
    transform: rotate(-90deg);
}

/* ---------- Help card ---------- */
.help-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    text-align: center;
    padding: 30px 24px;
    margin-top: 30px;
}

.help-card h2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.help-card p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 480px;
    margin: 0 auto 16px;
    font-size: 0.95rem;
}

.help-card .btn {
    background: #fff;
    color: var(--brand);
}

/* ---------- Cross links between guide pages ---------- */
.guide-cross {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.guide-cross a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.93rem;
}

.guide-cross a svg {
    width: 16px;
    height: 16px;
}

/* ---------- Desktop tweaks ---------- */
@media (min-width: 700px) {
    .bin-grid {
        grid-template-columns: 1fr 1fr;
    }

    .g-card summary {
        padding: 18px 22px;
    }

    .g-body {
        padding: 4px 22px 22px;
    }
}
