/* ============================================================
   place-detail.css — Mindtrip-style place deep-dive page
   Light + dark mode via CSS custom properties.
   ============================================================ */

html.dark {
    --pd-bg:           #0d1117;
    --pd-surface:      #161b22;
    --pd-surface-2:    rgba(255,255,255,0.04);
    --pd-border:       rgba(255,255,255,0.08);
    --pd-border-2:     rgba(255,255,255,0.16);
    --pd-text-1:       #f0f6fc;
    --pd-text-2:       rgba(240,246,252,0.66);
    --pd-text-3:       rgba(240,246,252,0.42);
    --pd-tab-bg:       rgba(13,17,23,0.92);
    --pd-chip-bg:      rgba(255,255,255,0.07);
    --pd-chip-border:  rgba(255,255,255,0.12);
    --pd-action-bg:    rgba(255,255,255,0.06);
    --pd-action-bg-h:  rgba(255,255,255,0.12);
    --pd-shadow:       0 6px 24px rgba(0,0,0,0.45);
    --pd-accent:       #E05A2B;
    --pd-accent-h:     #c44d22;
    --pd-accent-soft:  rgba(224,90,43,0.16);
    --pd-map-bg:       #1a1f2e;
}
html:not(.dark) {
    --pd-bg:           #faf9f7;
    --pd-surface:      #ffffff;
    --pd-surface-2:    #ffffff;
    --pd-border:       rgba(0,0,0,0.09);
    --pd-border-2:     rgba(0,0,0,0.18);
    --pd-text-1:       #111827;
    --pd-text-2:       rgba(17,24,39,0.62);
    --pd-text-3:       rgba(17,24,39,0.38);
    --pd-tab-bg:       rgba(250,249,247,0.96);
    --pd-chip-bg:      rgba(0,0,0,0.04);
    --pd-chip-border:  rgba(0,0,0,0.09);
    --pd-action-bg:    #ffffff;
    --pd-action-bg-h:  #f1f3f5;
    --pd-shadow:       0 4px 18px rgba(0,0,0,0.08);
    --pd-accent:       #c94f24;
    --pd-accent-h:     #a73d18;
    --pd-accent-soft:  rgba(224,90,43,0.1);
    --pd-map-bg:       #e8e8e8;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.pd-page {
    min-height: 100vh;
    background: var(--pd-bg);
    color: var(--pd-text-1);
    padding-bottom: 96px;          /* mobile bottom-nav clearance */
}
.pd-hidden { display: none !important; }
.pd-muted  { color: var(--pd-text-3); }

/* Reserve right-side space on desktop so action bar never collides
   with the fixed top-right login / sign-out header. */
@media (min-width: 768px) {
    .pd-page {
        padding-top: 8px;
    }
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.pd-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px 4px;
    /* Keep clear of fixed top-right auth header on desktop */
    padding-right: 240px;
    font-size: 13px;
    color: var(--pd-text-2);
}
.pd-breadcrumb ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px 4px;
}
.pd-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: var(--pd-text-3);
}
.pd-breadcrumb a {
    color: var(--pd-text-2);
    text-decoration: none;
}
.pd-breadcrumb a:hover { color: var(--pd-text-1); }
.pd-breadcrumb [aria-current="page"] span { color: var(--pd-text-1); font-weight: 600; }

@media (max-width: 767px) {
    .pd-breadcrumb { padding: 60px 16px 4px; }
}

/* ── Hero gallery ─────────────────────────────────────────── */
.pd-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px 0;
    position: relative;
}
.pd-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--pd-surface);
    box-shadow: var(--pd-shadow);
}
/* Solo: 0 or 1 photo — collapse to a single image, full width */
.pd-hero-grid.pd-hero-solo {
    grid-template-columns: 1fr;
}
.pd-hero-main,
.pd-hero-thumb {
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--pd-surface-2);
    overflow: hidden;
}
.pd-hero-main img,
.pd-hero-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.pd-hero-main:hover img,
.pd-hero-thumb:hover img { transform: scale(1.03); }
.pd-hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}
/* Adapt the side panel layout to the actual number of thumbs so we never show empty cells. */
.pd-hero-side[data-thumb-count="1"] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}
.pd-hero-side[data-thumb-count="2"] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
}
.pd-hero-side[data-thumb-count="3"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.pd-hero-side[data-thumb-count="3"] .pd-hero-thumb:first-child {
    grid-column: span 2;
}
.pd-hero-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--pd-text-3);
}

.pd-hero-buttons {
    position: absolute;
    left: 32px; right: 32px;
    top: 24px;
    display: flex; justify-content: space-between;
    pointer-events: none;
}
.pd-hero-back, .pd-hero-allphotos {
    pointer-events: auto;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px; font-weight: 600;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.18s ease;
}
.pd-hero-back:hover, .pd-hero-allphotos:hover { background: rgba(0,0,0,0.78); }

.pd-hero-attr {
    position: absolute;
    bottom: 16px; right: 16px;
    width: 28px; height: 28px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.15s ease;
    z-index: 3;
}
.pd-hero-attr:hover { background: rgba(0,0,0,0.78); }
.pd-attr-tooltip {
    position: absolute;
    bottom: 52px; right: 16px;
    max-width: 320px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.88);
    color: #fff;
    font-size: 12px; line-height: 1.4;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    z-index: 4;
    pointer-events: none;
}

@media (max-width: 767px) {
    .pd-hero { padding: 0; }
    .pd-hero-grid {
        grid-template-columns: 1fr;
        aspect-ratio: 4 / 3;
        border-radius: 0;
    }
    .pd-hero-side { display: none; }
    .pd-hero-buttons { left: 12px; right: 12px; top: 12px; }
}

/* ── Header ───────────────────────────────────────────────── */
.pd-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 8px;
}
.pd-header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: flex-end;
    justify-content: space-between;
}
.pd-title-block { min-width: 0; flex: 1 1 320px; }
.pd-eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--pd-text-2);
    margin: 0 0 6px;
}
.pd-cat-badge {
    display: inline-block;
    background: var(--pd-accent-soft);
    color: var(--pd-accent);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.pd-loc { font-weight: 500; }
.pd-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--pd-text-1);
}
.pd-meta-row {
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    align-items: center;
    font-size: 14px; color: var(--pd-text-2);
}
.pd-rating {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--pd-text-1);
}
.pd-rating svg { color: #fbbf24; }
.pd-rating strong { font-weight: 700; }
.pd-rating-count { color: var(--pd-text-3); font-size: 13px; }
.pd-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    background: var(--pd-chip-bg);
    border: 1px solid var(--pd-chip-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.pd-chip-verified { color: #16a34a; }
.pd-chip-closed   { color: #dc2626; }

/* ── Action bar ───────────────────────────────────────────── */
.pd-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
    flex: 0 0 auto;
}
.pd-action {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--pd-action-bg);
    color: var(--pd-text-1);
    border: 1px solid var(--pd-border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.pd-action:hover {
    background: var(--pd-action-bg-h);
    border-color: var(--pd-border-2);
}
.pd-action.is-saved {
    color: var(--pd-accent);
    border-color: var(--pd-accent);
    background: var(--pd-accent-soft);
}
.pd-action-primary {
    background: var(--pd-accent);
    color: #fff;
    border-color: var(--pd-accent);
}
.pd-action-primary:hover {
    background: var(--pd-accent-h);
    border-color: var(--pd-accent-h);
    color: #fff;
}

@media (max-width: 767px) {
    .pd-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;            /* tight spacing between title and actions */
    }
    /* Stop the title block from flex-growing to fill the column,
       which was leaving a large dead-space above the action bar. */
    .pd-title-block { flex: 0 0 auto; }
    .pd-actions {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .pd-actions::-webkit-scrollbar { display: none; }
    /* Mobile: collapse Save to icon-only heart */
    .pd-action-save .pd-action-label { display: none; }
    .pd-action-save { padding: 8px 10px; }
}

/* Heart save — saved state is filled red-orange, unsaved is outline */
.pd-action-save.saved {
    color: var(--pd-accent);
    border-color: var(--pd-accent);
    background: var(--pd-accent-soft);
}
.pd-action-save.saved .pd-heart {
    fill: currentColor;
}
.pd-action-save .pd-heart { transition: transform 0.15s ease; }
.pd-action-save:active .pd-heart { transform: scale(0.85); }

/* ── Sticky tabs ──────────────────────────────────────────── */
.pd-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--pd-tab-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pd-border);
    margin-top: 8px;
}
.pd-tabs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pd-tabs-inner::-webkit-scrollbar { display: none; }
.pd-tab {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--pd-text-2);
    font-size: 14px; font-weight: 600;
    padding: 14px 6px;
    margin: 0 6px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.pd-tab:hover { color: var(--pd-text-1); }
.pd-tab-active {
    color: var(--pd-accent);
    border-bottom-color: var(--pd-accent);
}

/* ── Sections ─────────────────────────────────────────────── */
.pd-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px 32px;
}
.pd-section {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 16px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: var(--pd-shadow);
}
.pd-h2 {
    font-size: 20px; font-weight: 700;
    margin: 0 0 14px;
    color: var(--pd-text-1);
}
.pd-desc {
    font-size: 15px; line-height: 1.65;
    color: var(--pd-text-2);
    margin: 0 0 16px;
}
.pd-desc p {
    margin: 0 0 12px;
}
.pd-desc p:last-child {
    margin-bottom: 0;
}

/* "See more / See less" clamp ----------------------------------------------- */
/* Roughly 4 lines at 1.65 line-height (15px * 1.65 * 4 ≈ 99px); the gradient
   fade hints there's more content beneath. */
.pd-desc.is-clamped {
    position: relative;
    max-height: 6.6em;
    overflow: hidden;
}
.pd-desc.is-clamped::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2.4em;
    background: linear-gradient(to bottom, transparent, var(--pd-bg));
    pointer-events: none;
}
.pd-desc.is-expanded {
    max-height: none;
}
.pd-desc-toggle {
    background: transparent;
    border: none;
    padding: 6px 0 0;
    margin: 4px 0 16px;
    color: var(--pd-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.pd-desc-toggle:hover {
    text-decoration: underline;
}
.pd-desc-toggle:focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* AI overview loading indicator (shown while /api/places/{id}/overview is in flight). */
.pd-overview-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--pd-text-2);
    opacity: 0.75;
}
.pd-overview-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pd-overview-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes pd-overview-spin {
    to { transform: rotate(360deg); }
}
.pd-info-line {
    margin: 8px 0;
    font-size: 14px;
    color: var(--pd-text-2);
}
.pd-info-line a { color: var(--pd-accent); text-decoration: none; }
.pd-info-line a:hover { text-decoration: underline; }

.pd-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.pd-quick-item {
    background: var(--pd-surface-2);
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 4px;
    min-width: 0;
}
.pd-quick-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--pd-text-3); font-weight: 700;
}
.pd-quick-value {
    font-size: 14px; color: var(--pd-text-1);
    word-break: break-word;
}
.pd-quick-link {
    color: var(--pd-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.pd-quick-link:hover { text-decoration: underline; }

/* ── Hours ────────────────────────────────────────────────── */
.pd-hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 16px;
    font-size: 14px;
    margin-bottom: 12px;
}
.pd-hours-row {
    display: flex; justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed var(--pd-border);
    color: var(--pd-text-2);
}
.pd-hours-row strong { color: var(--pd-text-1); font-weight: 600; }
.pd-hours-empty { color: var(--pd-text-3); font-style: italic; }

/* ── Map ──────────────────────────────────────────────────── */
.pd-map {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--pd-map-bg);
    border-radius: 12px;
    border: 1px solid var(--pd-border);
    overflow: hidden;
}

/* ── Nearby category sections (Overview tab) ──────────────── */
.pd-nearby-sections { display: block; }
.pd-cat-section {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 16px;
    padding: 20px 24px 24px;
    margin: 16px 0;
    box-shadow: var(--pd-shadow);
}
.pd-cat-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.pd-cat-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 700;
    color: var(--pd-text-1);
    margin: 0;
}
.pd-cat-icon { font-size: 20px; line-height: 1; }
.pd-cat-seeall {
    background: transparent;
    border: none;
    color: var(--pd-accent);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.pd-cat-seeall:hover { background: var(--pd-accent-soft); }

/* See-all paginated grid */
.pd-seeall { padding: 4px 0 32px; }
.pd-seeall-back {
    background: transparent;
    border: none;
    color: var(--pd-text-2);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    margin: 8px 0 16px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}
.pd-seeall-back:hover { background: var(--pd-action-bg-h); color: var(--pd-text-1); }

/* ── Nearby scroll outer (horizontal scroll with arrow buttons) ─── */
.pd-scroll-outer {
    position: relative;
    margin: 0 -24px;          /* bleed beyond .pd-cat-section padding */
}

/* ── Nearby horizontal scroll row ────────────────────────────── */
.pd-nearby-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 24px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-inline: 24px;
}
.pd-nearby-scroll::-webkit-scrollbar { display: none; }

/* ── Nearby grid (used only for See-all paginated view) ───────── */
.pd-nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

/* ── Nearby card ──────────────────────────────────────────────── */
.pd-nearby-card {
    display: block;
    position: relative;
    background: var(--pd-surface-2);
    border: 1px solid var(--pd-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--pd-text-1);
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.pd-nearby-card:hover {
    transform: translateY(-2px);
    border-color: var(--pd-border-2);
}
/* Fixed width when inside horizontal scroll row */
.pd-nearby-scroll .pd-nearby-card {
    flex-shrink: 0;
    width: 210px;
}
.pd-nearby-img {
    width: 100%; aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--pd-surface);
    display: block;
}
.pd-nearby-img-empty {
    background: var(--pd-surface);
}
.pd-nearby-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.pd-nearby-imgwrap { position: relative; }
.pd-nearby-actions {
    position: absolute;
    top: 8px; right: 8px;
    display: flex; gap: 6px;
    z-index: 2;
}
.pd-nearby-act {
    width: 30px; height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.pd-nearby-act:hover { background: rgba(0,0,0,0.78); transform: scale(1.06); }
.pd-nearby-save.saved {
    background: var(--pd-accent);
    border-color: var(--pd-accent);
    color: #fff;
}
.pd-nearby-save.saved svg { fill: currentColor; }
.pd-nearby-meta { padding: 10px 12px; }
.pd-nearby-name {
    font-size: 14px; font-weight: 600;
    margin: 0 0 4px;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pd-nearby-sub {
    font-size: 12px;
    color: var(--pd-text-3);
    display: flex; gap: 8px; align-items: center;
}

/* Category badge overlay on card image */
.pd-nearby-badge {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.60);
    color: #fff;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 1;
}

/* ── Scroll arrow buttons (place-detail variant) ──────────────── */
.pd-scroll-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 10;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--pd-border);
    background: var(--pd-surface);
    color: var(--pd-text-1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pd-scroll-arrow:hover {
    background: var(--pd-action-bg-h);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.pd-scroll-arrow-prev { left: 6px; }
.pd-scroll-arrow-next { right: 6px; }

/* ── See-all button with inline arrow icon ────────────────────── */
.pd-cat-seeall {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pd-loading { color: var(--pd-text-3); padding: 20px; text-align: center; }

/* ── Lightbox ─────────────────────────────────────────────── */
.pd-lightbox {
    position: fixed; inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
}
.pd-lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.pd-lightbox-close,
.pd-lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    border-radius: 999px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}
.pd-lightbox-close:hover,
.pd-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.pd-lightbox-close { top: 18px; right: 18px; }
.pd-lightbox-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.pd-lightbox-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.pd-lightbox-counter {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500;
    padding: 6px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
}

@media (max-width: 767px) {
    .pd-lightbox-close { top: 12px; right: 12px; }
    .pd-lightbox-prev  { left: 8px; }
    .pd-lightbox-next  { right: 8px; }
}

/* ── Place detail: social proof mentioners block ─────────────────────── */
.pd-mentioners {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px;
    padding: 10px 14px;
    background: rgba(99,102,241,0.07);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 10px;
}

.pd-mentioner-avatars {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
}

.pd-mentioner-av {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, rgba(99,102,241,0.6), rgba(139,92,246,0.6));
    color: #fff;
    flex-shrink: 0;
    margin-left: -9px;
}
.dark .pd-mentioner-av { border-color: #111827; }
.pd-mentioner-av:first-child { margin-left: 0; }

.pd-mentioner-av img {
    width: 100%; height: 100%; object-fit: cover;
}

.pd-mentioners-text {
    font-size: 13px;
    color: rgba(0,0,0,0.6);
    line-height: 1.4;
}
.dark .pd-mentioners-text { color: rgba(255,255,255,0.55); }

.pd-mentioners-text strong {
    color: rgba(0,0,0,0.85);
    font-weight: 600;
}
.dark .pd-mentioners-text strong { color: rgba(255,255,255,0.9); }

/* ── Nearby card: social proof mentioners row ─────────────────────────── */
.pd-nearby-mentions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}
.pd-nearby-mentioner-avs {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
}
.pd-nearby-mentioner-av {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 7px; font-weight: 700;
    background: linear-gradient(135deg, rgba(99,102,241,0.55), rgba(139,92,246,0.55));
    color: #fff;
    flex-shrink: 0;
    margin-left: -5px;
}
.dark .pd-nearby-mentioner-av { border-color: rgba(255,255,255,0.06); }
.pd-nearby-mentioner-av:first-child { margin-left: 0; }
.pd-nearby-mentioner-av img { width: 100%; height: 100%; object-fit: cover; }
.pd-nearby-mentions-text {
    font-size: 10px;
    color: rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .pd-nearby-mentions-text { color: rgba(255,255,255,0.45); }
