/**
 * GBWebcams — the Partners page (Step 89, v2.59.0). Markup: inc/partners-page.php (archive-gb_advert.php).
 *
 * Ported from the settled round 2c mock (previews/fixtures/site-pages-r2.html?page=partners, r2-* → gb-pt-*):
 *   .gb-pt-pills     Location pills with counts (the camera-selector pills), computers
 *   .gb-pt-pick      phones: a dropdown of every location + three towns suggested as pills (random each visit)
 *   .gb-pt-window    the featured partner's shop window under a striped awning, on a pavement
 *   .gb-pt-signs     every other partner as a shop sign hanging from an iron bracket (swings on hover;
 *                    on phones it swings once as it scrolls into view — phones have no hover)
 */

.gb-pt {
    --pt-paper: #f6f1e7;
    --pt-ink: #24324a;
    --pt-ink-2: #5a6b85;
    --pt-iron: #23262e;
    --pt-brass: #d9b86b;
}

/* ---------- choosing a location ---------- */
.gb-pt-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.gb-pt-pills .gb-webcam-tab small { opacity: .7; margin-left: 4px; }
.gb-pt-pick { display: none; margin: 0 0 22px; }
.gb-pt-pick label { display: block; text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; font-weight: 800; color: var(--gb-accent-blue); margin: 0 0 8px; }
.gb-pt-pick-row { display: flex; gap: 8px; }
/* Step 92: the open list is drawn by the phone/browser on white — the select's white text made the towns invisible */
.gb-pt-pick select option { color: #1a1e2a; background: #fff; }
.gb-pt-pick select { flex: 1; min-width: 0; padding: 11px 12px; border-radius: var(--gb-radius-sm, 8px); background: var(--gb-bg-card); color: var(--gb-text-main); border: 1px solid var(--gb-border-highlight, var(--gb-border)); font: 700 .9rem var(--gb-font-family); }
.gb-pt-pick-row button { padding: 0 14px; border-radius: var(--gb-radius-sm, 8px); border: 0; background: var(--gb-accent-blue); color: #04121f; font-weight: 800; }
.gb-pt.is-js .gb-pt-pick-row button { display: none; } /* the no-JS Show button only — not the suggested towns */
.gb-pt-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: .78rem; color: var(--gb-text-muted); }
.gb-pt-suggest:empty { display: none; }
.gb-pt-suggest .gb-webcam-tab { cursor: pointer; font: inherit; font-weight: 700; }
.gb-pt-empty { color: var(--gb-text-muted); margin: 0 0 30px; }

/* ---------- the featured partner's shop window ---------- */
.gb-pt-window { display: grid; grid-template-columns: 1.2fr 1fr; background: #b06a4f; border-radius: 8px 8px 0 0; padding: 0 16px 16px; box-shadow: inset -12px 0 0 rgba(0,0,0,.14); margin-bottom: 40px; position: relative; }
.gb-pt-window[hidden] { display: none; }
.gb-pt-awning { grid-column: 1 / -1; height: 30px; margin: 0 -10px 14px; background: repeating-linear-gradient(90deg, #1f5a66 0 22px, #f3efe6 22px 44px);
    -webkit-mask: radial-gradient(11px 8px at 11px 100%, transparent 98%, #000) 0 0 / 22px 100%; mask: radial-gradient(11px 8px at 11px 100%, transparent 98%, #000) 0 0 / 22px 100%; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.gb-pt-window::after { content: ""; position: absolute; left: -8px; right: -8px; bottom: -14px; height: 14px; border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #4a4e58 0 5px, #2a2d36 5px 7px, #3a3e48 7px); }
.gb-pt-photo { min-height: 220px; border: 6px solid #f6f3ec; outline: 2px solid rgba(0,0,0,.3); border-radius: 3px; background: linear-gradient(135deg, #3b6f8e, #10314f); position: relative; overflow: hidden; display: grid; place-items: center; }
.gb-pt-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gb-pt-photo .gb-pt-photo-logo { position: relative; max-width: 70%; max-height: 60%; object-fit: contain; background: #fff; padding: 10px; border-radius: 6px; }
.gb-pt-photo-name { position: relative; font-family: var(--gb-font-script); font-size: clamp(2rem, 4vw, 3rem); color: #f6f1e7; text-align: center; padding: 0 20px; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.gb-pt-photo .gb-badge-featured { top: 10px; left: 10px; z-index: 2; }
.gb-pt-body { background: var(--pt-paper); color: var(--pt-ink); margin-left: 16px; border-radius: 3px; padding: 16px; display: flex; flex-direction: column; gap: 8px; border: 6px solid #f6f3ec; outline: 2px solid rgba(0,0,0,.3); }
.gb-pt-body h2 { margin: 0; font-size: 1.35rem; color: var(--pt-ink); text-transform: none; letter-spacing: 0; }
.gb-pt-body p { margin: 0; color: #3b4a62; font-size: .92rem; }
.gb-pt-where { font-size: .78rem; color: var(--pt-ink-2); font-weight: 800; letter-spacing: .08em; }
.gb-pt-where a { display: inline-block; background: #e3ecf5; color: #1f3a5c; border-radius: 999px; padding: 3px 9px; margin: 4px 4px 0 0; font-weight: 700; letter-spacing: 0; text-decoration: none; }
.gb-pt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.gb-pt-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: var(--gb-accent-green, #1e9e5a); color: #fff; }
.gb-pt-btn:hover { color: #fff; filter: brightness(1.08); }
.gb-pt-more { color: #1f3a5c; font-weight: 700; font-size: .86rem; }

/* ---------- hanging signs ---------- */
.gb-pt-signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; margin-bottom: 10px; }
.gb-pt-sign { position: relative; padding-top: 34px; text-decoration: none; color: inherit; display: block; }
.gb-pt-sign[hidden] { display: none; }
.gb-pt-bracket { position: absolute; top: 0; left: 14%; right: 14%; height: 12px; border-top: 4px solid var(--pt-iron); border-radius: 2px; }
.gb-pt-bracket::before, .gb-pt-bracket::after { content: ""; position: absolute; top: -4px; width: 2px; height: 30px; background: repeating-linear-gradient(180deg, #8a8f99 0 4px, transparent 4px 6px); }
.gb-pt-bracket::before { left: 12%; }
.gb-pt-bracket::after { right: 12%; }
.gb-pt-board { background: var(--pt-paper); color: var(--pt-ink); border-radius: 8px; border: 3px solid var(--pt-brass); box-shadow: 0 12px 24px rgba(0,0,0,.45); overflow: hidden; transform-origin: 50% -30px; }
.gb-pt-sign:hover .gb-pt-board, .gb-pt-sign:focus-visible .gb-pt-board, .gb-pt-sign.is-view .gb-pt-board { animation: gb-pt-swing 1.4s ease-in-out; }
@keyframes gb-pt-swing { 0% { transform: rotate(0); } 25% { transform: rotate(3deg); } 55% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
.gb-pt-sign-photo { height: 110px; background: linear-gradient(135deg, var(--c1, #6b4f3a), var(--c2, #d9c5a5)); position: relative; overflow: hidden; }
.gb-pt-sign-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-pt-sign-logo { margin: -22px auto 0; width: 72%; min-height: 40px; background: #fff; border-radius: 6px; box-shadow: 0 3px 8px rgba(0,0,0,.25); text-align: center; font-weight: 900; padding: 8px 6px; color: #0b5aa6; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; position: relative; display: grid; place-items: center; box-sizing: border-box; }
.gb-pt-sign-logo img { max-width: 100%; max-height: 34px; object-fit: contain; }
.gb-pt-sign-name { padding: 8px 12px 12px; text-align: center; }
.gb-pt-sign-name b { display: block; font-size: .95rem; }
.gb-pt-sign-name small { color: var(--pt-ink-2); font-size: .74rem; }
.gb-pt-sign .gb-pt-star { position: absolute; top: 40px; right: 8px; z-index: 2; background: var(--gb-accent-red, #e01e26); color: #fff; font-size: .62rem; font-weight: 900; letter-spacing: .08em; padding: 3px 7px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
    .gb-pt-sign:hover .gb-pt-board, .gb-pt-sign:focus-visible .gb-pt-board, .gb-pt-sign.is-view .gb-pt-board { animation: none; }
}

/* ---------- phones: dropdown + suggestions instead of the pill row; two signs a row ---------- */
@media (max-width: 900px) {
    .gb-pt-pills { display: none; }
    .gb-pt-pick { display: block; }
    .gb-pt-window { grid-template-columns: 1fr; }
    .gb-pt-body { margin: 12px 0 0; }
    .gb-pt-signs { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
}
