/* Scoped Guide browse + detail. Do not style Home/Auth. */

body.has-app-shell.is-guide-shell .bc_wrap {
    background: #f4f6fb;
}

body.has-app-shell.is-guide-detail-shell .bc_wrap {
    padding-bottom: calc(var(--app-bottom-offset) + 72px);
}

.guide-browse,
.guide-detail,
.guide-filter-sheet {
    font-family: Poppins, system-ui, sans-serif;
    color: var(--color-text-primary);
}

.guide-browse {
    padding: 12px 16px 24px;
    overflow-x: hidden;
}

.guide-browse__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.guide-browse__back,
.guide-hero__back,
.guide-hero__wish {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.guide-browse__kicker {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.guide-browse__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.guide-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: var(--radius-pill);
    padding: 6px 6px 6px 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.guide-search__input {
    flex: 1;
    border: 0;
    outline: none;
    height: 36px;
    font-size: 14px;
    background: transparent;
    min-width: 0;
}

.guide-search__submit {
    border: 0;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
}

.guide-chips {
    margin-top: 14px;
}

.guide-chips__label,
.guide-filter__group h3 {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 700;
}

.guide-chips__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guide-chip {
    border: 0;
    background: #eef2f7;
    color: var(--color-text-primary);
    border-radius: var(--radius-pill);
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.guide-chip input {
    display: none;
}

.guide-chip.is-active {
    background: var(--color-primary);
    color: #fff;
}

.guide-browse__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 12px;
    flex-wrap: wrap;
}

.guide-browse__filter-btn {
    border: 0;
    background: #16357a;
    color: #fff;
    border-radius: var(--radius-pill);
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
}

.guide-browse__sort-select {
    border: 0;
    background: #fff;
    height: 36px;
    border-radius: var(--radius-pill);
    padding: 0 10px;
    font-size: 13px;
}

.guide-browse__count {
    margin: 0 0 0 auto;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.guide-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.guide-card__media {
    display: block;
    position: relative;
    height: 160px;
    background: #e8eef7;
}

.guide-card__media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.guide-card__body {
    padding: 12px 14px 14px;
}

.guide-card__title {
    margin: 0 0 4px;
    font-size: 16px;
}

.guide-card__title a {
    color: inherit;
}

.guide-card__loc,
.guide-card__langs {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.guide-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.guide-card__cta {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.guide-empty {
    padding: 24px 8px;
    text-align: center;
    color: var(--color-text-secondary);
}

.guide-filter-sheet[hidden] {
    display: none !important;
}

.guide-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.guide-filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.guide-filter-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 80vh;
    overflow: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(var(--app-bottom-offset) + 16px);
}

.guide-filter-sheet__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.guide-filter__group {
    margin-bottom: 16px;
}

.guide-filter__date {
    width: 100%;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0 10px;
}

.guide-filter__hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

.guide-filter__actions {
    display: flex;
    gap: 8px;
}

.guide-filter__reset,
.guide-filter__apply {
    flex: 1;
    height: 44px;
    border: 0;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.guide-filter__reset {
    background: #eef2f7;
}

.guide-filter__apply {
    background: var(--color-primary);
    color: #fff;
}

.guide-hero {
    position: relative;
    height: 240px;
    background: #d9e3f0;
}

.guide-hero img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.guide-hero__back,
.guide-hero__wish {
    position: absolute;
    top: 12px;
}

.guide-hero__back {
    left: 12px;
}

.guide-hero__wish {
    right: 12px;
}

.guide-hero__copy {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.guide-hero__copy h1 {
    margin: 0 0 4px;
    font-size: 22px;
}

.guide-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
}

.guide-meta span {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.guide-price-row {
    padding: 0 16px 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.guide-price-row strong {
    color: var(--color-primary);
    font-size: 22px;
}

.guide-vendor,
.guide-bio,
.guide-reviews,
.guide-book {
    padding: 0 16px 16px;
}

.guide-book__form .form-group {
    margin-bottom: 12px;
}

.guide-book__form input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0 10px;
}

.guide-book__submit,
.guide-book__enquiry,
.guide-sticky-bar__book {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: var(--radius-pill);
    font-weight: 700;
    margin-top: 8px;
}

.guide-book__submit,
.guide-sticky-bar__book {
    background: var(--color-primary);
    color: #fff;
}

.guide-book__enquiry {
    background: #eef2f7;
}

.guide-book__error {
    color: #b42318;
    font-size: 13px;
}

.guide-sticky-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--app-bottom-offset);
    width: 100%;
    max-width: var(--app-max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    z-index: 20;
}

.guide-sticky-bar__book {
    width: auto;
    min-width: 120px;
    margin: 0;
    padding: 0 18px;
}

body.guide-filter-open {
    overflow: hidden;
}
