/* --- FRONTEND STYLES for GastroMap Pro Lite --- */

.gmpl-wrapper-instance { max-width: 800px; margin: 0 auto; position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; }

/* Map Container */
.gmpl-map-container {
    width: 100%;
    background: #eef2f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

/* --- REFACTORED MARKERS (CRITICAL) --- */

/* 1. Restaurant Logo Marker */
.gastro-marker-container {
    background-color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50%; /* CIRCLE */
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, z-index 0.2s;
}
.gastro-marker-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}
.gastro-marker-container:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
    border-color: #2271b1; /* Highlight color */
}

/* 2. User Location Marker (SVG + Pulse) */
.gastro-user-marker-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gastro-user-icon-svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 10;
    position: relative;
}
/* Pulse Effect */
.gastro-user-pulse-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.4);
    top: 0;
    left: 0;
    animation: gastro-radar 2s infinite;
    z-index: 1;
}
@keyframes gastro-radar {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Sorter Button */
.gmpl-sort-controls { text-align: center; margin-bottom: 20px; }
.gmpl-sort-geo-btn {
    background: #ffffff; border: 1px solid #dcdcde; color: #1d2327;
    padding: 10px 24px; border-radius: 50px; cursor: pointer;
    font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: all 0.2s;
}
.gmpl-sort-geo-btn:hover { background: #f6f7f7; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* List Cards */
.gmpl-list-container { display: flex; flex-direction: column; gap: 15px; }

.gmpl-card {
    display: flex; justify-content: space-between; align-items: center;
    background: #ffffff; border: 1px solid #e2e4e7; border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gmpl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.gmpl-card-left h3 { margin: 0 0 5px; font-size: 16px; font-weight: 700; color: #1d2327; }
.gmpl-card-badge { display: inline-block; background: #e5f5fa; color: #0073aa; font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
.gmpl-card-colonia { font-size: 13px; color: #50575e; display: block; }
.gmpl-dist-info { margin-top: 5px; font-size: 12px; color: #008a20; font-weight: bold; }

.gmpl-card-right .gmpl-card-logo, .gmpl-card-right .gmpl-no-logo {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.gmpl-no-logo { background: #f0f0f1; }

.gmpl-view-more-btn { display: none; } 

/* --- MODAL OVERLAY --- */
#gmpl-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}
#gmpl-modal-content {
    background: #fff; width: 90%; max-width: 420px;
    border-radius: 12px; padding: 30px 25px 25px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    text-align: center;
}
#gmpl-modal-close {
    position: absolute; top: 10px; right: 15px;
    font-size: 30px; line-height: 1; border: none; background: none; color: #888; cursor: pointer;
}
#gmpl-modal-logo {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    margin-top: -55px; margin-bottom: 15px;
    border: 4px solid #fff; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
#gmpl-modal-title { margin: 0 0 5px; font-size: 20px; color: #1d2327; }
.gmpl-badge { color: #646970; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; margin-bottom: 15px; }

.gmpl-modal-body p { margin: 8px 0; color: #3c434a; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }

.gmpl-svc-tag { display: inline-block; background: #f0f0f1; color: #50575e; padding: 4px 10px; border-radius: 4px; font-size: 12px; margin: 2px; }
#gmpl-modal-services { margin: 20px 0; border-top: 1px solid #eee; padding-top: 15px; }

.gmpl-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.gmpl-btn { flex: 1; padding: 12px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; transition: opacity 0.2s; }
.gmpl-btn:hover { opacity: 0.9; }

.gmpl-btn-call { background: #2271b1; }
.gmpl-btn-whatsapp { background: #25D366; }
