/* ============================================================
   GALLERY — LIVE BADGE + REAL PHOTO TAGS + GRID
   (appended to main.css — covers new gallery.php classes)
   ============================================================ */

/* Live API badge — shown when Places API photos are active */
.gp-gallery-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.06));
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #15803D;
    margin: 16px auto 0;
}

.gp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: gp-pulse-gold 1.8s infinite;
    flex-shrink: 0;
}

/* Real Google Maps badge */
.gp-gallery-real-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(66,133,244,0.08);
    border: 1px solid rgba(66,133,244,0.2);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1A73E8;
    margin: 14px auto 0;
}

/* Small "Google" tag overlaid on individual gallery photo */
.gp-gallery-gm-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(13,33,55,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.9);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.03em;
    pointer-events: none;
    z-index: 2;
}

/* Gallery grid */
.gp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 12px;
    margin-top: 32px;
}

.gp-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #F3F4F6;
}

.gp-gallery-item.gp-gallery-large {
    grid-row: span 2;
}

.gp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gp-gallery-item:hover img { transform: scale(1.06); }

.gp-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,33,55,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    z-index: 1;
}
.gp-gallery-item:hover .gp-gallery-overlay { opacity: 1; }
.gp-gallery-overlay svg  { width: 32px; height: 32px; }
.gp-gallery-overlay span { font-size: 0.875rem; font-weight: 600; }

/* Gallery footer CTA */
.gp-gallery-cta {
    text-align: center;
    margin-top: 28px;
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.65;
}
.gp-gallery-cta a       { color: #C9A227; font-weight: 600; }
.gp-gallery-cta a:hover { text-decoration: underline; }

.gp-gallery-photo-count {
    font-weight: 500;
    opacity: 0.8;
}

/* Admin refresh button */
#gp-refresh-gallery {
    background: #0D2137;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px 12px;
    transition: background 0.2s ease;
    vertical-align: middle;
}
#gp-refresh-gallery:hover    { background: #1a3a57; }
#gp-refresh-gallery:disabled { opacity: 0.6; cursor: not-allowed; }
#gp-refresh-msg              { color: #059669; font-weight: 600; font-size: 0.8rem; }

/* Responsive overrides */
@media (max-width: 768px) {
    .gp-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .gp-gallery-item.gp-gallery-large { grid-row: span 1; }
}
@media (max-width: 480px) {
    .gp-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
}
