/* ============================================================
   Grand Tyres Coverage Map
   Colors: #B08625 (gold) | #80ba53 (green)
   ============================================================ */

.gt-coverage-section,
.gt-coverage-section *,
.gt-popup,
.gt-popup * {
    font-family: inherit !important;
}

.gt-coverage-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Body layout */
.gt-body {
    display: flex !important;
    gap: 20px;
    align-items: stretch;
}

/* ============================================================
   Location List
   ============================================================ */

.gt-list {
    width: 300px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #ebebeb;
    background: #fff;
    max-height: 600px;
    overflow-y: auto;
}

.gt-list::-webkit-scrollbar { width: 4px; }
.gt-list::-webkit-scrollbar-track { background: #f5f5f5; }
.gt-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.gt-item {
    display: block !important;
    padding: 12px 14px;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
    transition: background 0.18s ease;
    border-left: 3px solid transparent;
}

.gt-item:last-child {
    border-bottom: none;
}

.gt-item:hover {
    background: #fdf8ef;
}

.gt-item.is-active {
    background: #fdf5e0;
    border-left-color: #B08625;
}

/* Row 1: pin + name + arrow */
.gt-item-top {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.gt-pin {
    color: #B08625;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
}

.gt-info {
    display: flex !important;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.gt-name {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
    line-height: 1.3;
}

.gt-area {
    font-size: 11.5px !important;
    color: #999 !important;
    display: block !important;
    line-height: 1.3;
}

.gt-arrow {
    color: #B08625;
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s, transform 0.15s;
}

.gt-item:hover .gt-arrow,
.gt-item.is-active .gt-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Row 2: buttons */
.gt-item-btns {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    padding-left: 32px;
}

/* Buttons — strong specificity for Elementor */
.gt-coverage-section .gt-btn,
.gt-item-btns .gt-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    border: none !important;
    cursor: pointer !important;
    transition: opacity 0.18s, transform 0.12s !important;
    box-shadow: none !important;
}

.gt-coverage-section .gt-btn:hover,
.gt-item-btns .gt-btn:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.gt-coverage-section .gt-btn-call,
.gt-item-btns .gt-btn-call {
    background: #80ba53 !important;
    color: #fff !important;
}

.gt-coverage-section .gt-btn-dir,
.gt-item-btns .gt-btn-dir {
    background: #B08625 !important;
    color: #fff !important;
}

/* Empty state */
.gt-empty {
    padding: 32px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}
.gt-empty a { color: #B08625; }

/* ============================================================
   Map
   ============================================================ */

.gt-map-wrap {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

#gt-map {
    width: 100% !important;
    height: 600px !important;
    min-height: 600px;
    display: block !important;
}

/* ============================================================
   Leaflet overrides
   ============================================================ */

.gt-leaflet-icon {
    background: transparent !important;
    border: none !important;
}

.gt-popup {
    font-family: inherit;
    min-width: 170px;
}

.gt-popup-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px;
}

.gt-popup-area {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.gt-popup-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gt-popup-btns a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 11px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    color: #fff !important;
}

.gt-pop-call { background: #80ba53 !important; }
.gt-pop-dir  { background: #B08625 !important; }

.leaflet-popup-content { margin: 12px 14px !important; }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet: stack vertically */
@media (max-width: 960px) {
    .gt-body {
        flex-direction: column !important;
    }
    .gt-list {
        width: 100% !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    .gt-map-wrap {
        min-height: 420px !important;
    }
    #gt-map {
        height: 420px !important;
        min-height: 420px !important;
    }
    /* Show items in 2-column grid on tablet */
    .gt-item {
        display: inline-block !important;
        width: calc(50% - 1px);
        vertical-align: top;
        box-sizing: border-box;
    }
}

/* Mobile: single column */
@media (max-width: 600px) {
    .gt-coverage-section {
        padding: 24px 0;
    }
    .gt-coverage-inner {
        padding: 0 14px;
    }
    .gt-item {
        display: block !important;
        width: 100% !important;
    }
    .gt-map-wrap {
        min-height: 320px !important;
    }
    #gt-map {
        height: 320px !important;
        min-height: 320px !important;
    }
    .gt-item-btns {
        padding-left: 0;
    }
    /* Stretch buttons full width on mobile */
    .gt-item-btns .gt-btn {
        flex: 1;
        justify-content: center !important;
    }
}
