.gm-page { display: flex; flex-direction: column; height: calc(100vh - 130px); min-height: 500px; }

.gm-featured-strip { background: #fff; padding: 12px 16px; border-bottom: 1px solid #eee; }
.gm-featured-strip h3 { margin: 0 0 10px; font-size: 14px; color: var(--rc-slate); }
.gm-featured-scroll { display: flex; gap: 12px; overflow-x: auto; }
.gm-featured-card {
    flex: 0 0 auto;
    width: 110px;
    text-decoration: none;
    color: inherit;
    text-align: center;
}
.gm-featured-card img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #FFD54A;
}
.gm-featured-name { display: block; font-size: 12px; font-weight: 600; margin-top: 4px; color: var(--rc-slate); }
.gm-featured-area { display: block; font-size: 10px; color: #999; }

.gm-toolbar {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: var(--rc-slate);
    flex-wrap: wrap;
    align-items: center;
}
.gm-search-wrap { flex: 1; min-width: 200px; }
#gm-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
}
#gm-area-filter {
    padding: 10px 14px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
}
#gm-near-me-btn {
    background: var(--rc-orange);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.gm-mobile-only { display: none; }

#gm-add-mandal-btn {
    background: var(--rc-green);
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
#gm-add-mandal-btn:hover { opacity: 0.9; }

#gm-add-home-btn {
    background: #fff;
    color: var(--rc-green);
    border: 1.5px solid var(--rc-green);
    padding: 9px 17px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
#gm-add-home-btn:hover { background: var(--rc-green); color: #fff; }

#gm-leaderboard-btn {
    background: #FFD54A;
    color: var(--rc-slate);
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
#gm-leaderboard-btn:hover { opacity: 0.9; }

#gm-mydarshan-btn {
    background: var(--rc-green);
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
#gm-mydarshan-btn:hover { opacity: 0.9; }

.gm-stats-bar {
    background: linear-gradient(135deg, var(--rc-orange), var(--rc-yellow));
    color: #fff;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
}

.gm-body { display: flex; flex: 1; position: relative; overflow: hidden; }
#gm-map { flex: 1; height: 100%; }

.gm-list-panel {
    width: 320px;
    background: #fff;
    border-left: 1px solid #eee;
    overflow-y: auto;
    padding: 14px;
}
.gm-list-panel h3 { margin-top: 0; font-size: 15px; }

.gm-list-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 6px;
    align-items: center;
}
.gm-list-item:hover { background: var(--rc-cream); }
.gm-list-item.active { background: #FDEFE3; border: 1px solid var(--rc-orange); }
.gm-list-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.gm-list-item strong { font-size: 13px; display: block; }
.gm-list-meta { font-size: 11px; color: #999; }
.gm-empty { color: #999; font-size: 13px; text-align: center; padding: 20px; }

.gm-live-badge {
    display: inline-block;
    font-size: 10px;
    background: var(--rc-cream);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

/* Marker + cluster icons */
.gm-marker-pin {
    width: 36px; height: 36px;
    background: var(--rc-orange);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.gm-marker-pin::before { content: ''; }
.gm-marker-pin-boosted {
    background: linear-gradient(135deg, #FFD54A, var(--rc-orange));
    box-shadow: 0 0 0 3px rgba(255,213,74,0.5), 0 2px 8px rgba(0,0,0,0.35);
}
.gm-marker-star {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 14px;
    transform: rotate(45deg);
}
.gm-marker-pin-visited {
    background: var(--rc-green);
}
.gm-marker-check {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 13px;
    font-weight: 900;
    color: var(--rc-green);
    background: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
}
.gm-marker { background: none; border: none; }
.gm-cluster {
    background: var(--rc-orange);
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.gm-you-marker { font-size: 24px; }

/* Bottom sheet */
.gm-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    padding: 8px 20px 24px;
}
.gm-sheet.open { transform: translateY(0); }
.gm-sheet-handle {
    width: 40px; height: 5px;
    background: #ddd;
    border-radius: 3px;
    margin: 8px auto 12px;
    cursor: pointer;
}
/* An explicit, clearly visible close control - the small drag-handle
   above wasn't a discoverable way to dismiss the sheet on its own. */
.gm-sheet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    color: var(--rc-slate);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.gm-sheet-close:hover { background: #e5e5e5; }
.gm-sheet-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin: 10px 0; }
.gm-sheet-area { color: #777; font-size: 13px; margin-top: -8px; }
.gm-sheet-actions { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.gm-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    background: var(--rc-cream);
    color: var(--rc-slate);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    min-width: 120px;
}
.gm-btn-primary { background: var(--rc-orange); color: #fff; }
.gm-view-full { display: block; text-align: center; color: var(--rc-orange); font-weight: 600; font-size: 13px; }

@media (max-width: 860px) {
    .gm-mobile-only { display: inline-block; background: #fff; border: 1px solid #ddd; padding: 10px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; }
    .gm-list-panel { position: absolute; inset: 0; width: 100%; display: none; z-index: 500; }
    .gm-list-panel.gm-list-visible { display: block; }
    .gm-stats-bar { gap: 14px; font-size: 11px; flex-wrap: wrap; }
}

/* On wider screens, the sheet becomes a contained card anchored to the
   bottom-right rather than a full-viewport-width mobile-style bar - the
   close behavior (button, handle, map-click) already worked identically
   at every width, but the full-width bottom-sheet treatment only ever
   made sense on a narrow phone screen. */
@media (min-width: 861px) {
    .gm-sheet {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: 380px;
        border-radius: 16px;
        max-height: 80vh;
        transform: translateY(20px) scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .gm-sheet.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
    .gm-sheet-handle { display: none; }
}
