/* TreeVine Geo-Mapper — Front-end Map Styles */

/* ------------------------------------------------------------------ */
/* Container                                                             */
/* ------------------------------------------------------------------ */
.tvgm-map-wrap {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
    font-family: inherit;
}

/* ------------------------------------------------------------------ */
/* Toolbar                                                               */
/* ------------------------------------------------------------------ */
.tvgm-map-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #1c1c1e;
    color: #fff;
}

.tvgm-map-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tvgm-marker-count {
    font-size: 0.78rem;
    color: #aaa;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* 2D / 3D toggle                                                        */
/* ------------------------------------------------------------------ */
.tvgm-mode-toggle {
    display: flex;
    background: #2c2c2e;
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}

.tvgm-toggle-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tvgm-toggle-btn:hover {
    color: #fff;
}

.tvgm-toggle-btn.active {
    background: #e85a2c;   /* terracotta — matches Vidalist brand */
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* Map canvas                                                            */
/* ------------------------------------------------------------------ */
.tvgm-map-canvas {
    width: 100%;
    height: 520px;
    background: #e8e0d8;   /* neutral fallback while map loads */
    display: block;
}

@media (max-width: 600px) {
    .tvgm-map-canvas {
        height: 360px;
    }
}

/* ------------------------------------------------------------------ */
/* Custom photo marker element                                           */
/* ------------------------------------------------------------------ */
.tvgm-photo-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    background: #ccc;
}

.tvgm-photo-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    z-index: 10;
}

.tvgm-photo-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Cluster bubble */
.tvgm-cluster-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e85a2c;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    cursor: pointer;
    border: 2px solid #fff;
    transition: transform 0.12s;
}

.tvgm-cluster-bubble:hover {
    transform: scale(1.1);
}

/* ------------------------------------------------------------------ */
/* Info window                                                           */
/* ------------------------------------------------------------------ */
.tvgm-info-window {
    max-width: 220px;
    font-family: inherit;
}

.tvgm-info-window img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 8px;
}

.tvgm-info-window .tvgm-info-meta {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

/* ------------------------------------------------------------------ */
/* Service-area circle (drawn via google.maps.Circle)                   */
/* The circle itself is a Maps API object; these styles apply to any    */
/* legend or label we add alongside it.                                  */
/* ------------------------------------------------------------------ */
.tvgm-radius-label {
    font-size: 0.7rem;
    color: #e85a2c;
    font-weight: 600;
    background: rgba(255,255,255,0.85);
    padding: 2px 5px;
    border-radius: 4px;
    pointer-events: none;
}
