/* ════════════════════════════════════════
   GB Audio Guide – Public Styles
════════════════════════════════════════ */
:root {
    --gbag-blue:    #0d6abe;
    --gbag-ocean:   #1a8fe3;
    --gbag-gold:    #d4a017;
    --gbag-white:   #ffffff;
    --gbag-light:   #f4f8fc;
    --gbag-border:  #dde8f0;
    --gbag-text:    #1a2533;
    --gbag-muted:   #6b7a8d;
    --gbag-radius:  14px;
    --gbag-shadow:  0 2px 16px rgba(0,0,0,.10);
}

.gbag-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 720px;
    margin: 0 auto;
    color: var(--gbag-text);
    padding-bottom: 90px; /* space for sticky bar */
}

/* ── Language bar ─────────────────────── */
.gbag-lang-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--gbag-light);
    border-radius: var(--gbag-radius);
    border: 1px solid var(--gbag-border);
}
.gbag-lang-label { font-size: 13px; color: var(--gbag-muted); margin-right: 4px; }
.gbag-lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 2px solid var(--gbag-border);
    border-radius: 50px;
    background: var(--gbag-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    white-space: nowrap;
}
.gbag-lang-btn:hover { border-color: var(--gbag-ocean); color: var(--gbag-ocean); }
.gbag-lang-btn.active {
    background: var(--gbag-blue);
    border-color: var(--gbag-blue);
    color: var(--gbag-white);
}
@media (max-width: 480px) {
    .gbag-lang-name { display: none; }
    .gbag-lang-btn { padding: 6px 10px; font-size: 18px; }
}

/* ── Cards ────────────────────────────── */
.gbag-locations { display: flex; flex-direction: column; gap: 18px; }

.gbag-card {
    background: var(--gbag-white);
    border-radius: var(--gbag-radius);
    box-shadow: var(--gbag-shadow);
    overflow: hidden;
    border: 1px solid var(--gbag-border);
    transition: transform .2s, box-shadow .2s;
}
.gbag-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.13); }

.gbag-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.gbag-card-body { padding: 20px 22px; position: relative; }

.gbag-card-number {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px; height: 32px;
    background: var(--gbag-blue);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}

.gbag-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gbag-text);
    padding-right: 40px;
}

.gbag-desc {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gbag-muted);
}

/* ── Audio player ─────────────────────── */
.gbag-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gbag-light);
    border-radius: 10px;
    border: 1px solid var(--gbag-border);
}

.gbag-play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gbag-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.gbag-play-btn:hover { background: var(--gbag-ocean); transform: scale(1.04); }
.gbag-play-btn.playing { background: #e05c2a; }
.gbag-play-btn.playing .gbag-play-icon::before { content: '⏸'; }

.gbag-play-icon { font-size: 13px; }

.gbag-progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gbag-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gbag-border);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}
.gbag-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gbag-blue);
    border-radius: 3px;
    transition: width .3s linear;
}
.gbag-time { font-size: 12px; color: var(--gbag-muted); min-width: 36px; text-align: right; }

.gbag-no-audio { font-size: 13px; color: var(--gbag-muted); margin: 0; font-style: italic; }

/* ── Sticky bar ───────────────────────── */
.gbag-sticky-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #0d2240;
    color: #fff;
    z-index: 9999;
    padding: 10px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.gbag-sticky-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.gbag-sticky-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gbag-sticky-play, .gbag-sticky-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .2s;
}
.gbag-sticky-play:hover, .gbag-sticky-close:hover { background: rgba(255,255,255,.1); }
.gbag-sticky-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
    overflow: hidden;
    max-width: 200px;
}
.gbag-sticky-fill {
    height: 100%;
    width: 0%;
    background: var(--gbag-gold);
    border-radius: 2px;
    transition: width .3s linear;
}
.gbag-sticky-time { font-size: 12px; opacity: .7; min-width: 34px; }
