/* 1. IMPORT FONTS (only if you're using direct @import) */
/* If you already enqueued fonts in functions.php, you can remove the @import here. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Red+Hat+Display:wght@400;700&display=swap');

/* 2. GLOBAL FONT FOR BODY */
body {
    font-family: 'Red Hat Display', sans-serif;
    margin: 0;
    padding: 0;
}

/* Locations Directory Wrapper */
.locations-directory-wrapper {
    margin: 0 auto;
    max-width: 95%;
    padding: 0 15px;
}

/* MAIN TITLE => Poppins */
.main-title {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin: 60px auto 20px;
    max-width: 80%;
    line-height: 1.2;
}

/* TAB Buttons */
.ld-tab-buttons {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin: 20px 0 40px;
}

.ld-tab-button {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.ld-tab-button:hover {
    background-color: #000;
    color: #fff;
}

.ld-tab-button.active {
    background-color: #09841F;
    color: #fff;
}

/* Icon spacing for Tab Buttons */
.ld-tab-button i {
    margin-right: 8px;
    vertical-align: middle;
}

/* STATE TITLE */
.state-title {
    font-family: 'Red Hat Display', sans-serif;
    color: #000;
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.state-section {
    margin-bottom: 40px;
}

/* LOCATIONS CONTAINER */
.locations-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* LOCATION CARD */
.location-card {
    background-color: #09841F;
    padding: 40px 30px;
    border-radius: 0;
    width: calc(33.333% - 20px);
    min-width: 300px;
    box-sizing: border-box;
}

.location-title {
    font-size: 25px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #fff;
    text-align: left;
    font-family: 'Red Hat Display', sans-serif;
}

.location-address {
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: left;
    color: #fff;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 17px;
    font-weight: 400;
}

/* LOCATION CONTACT: Phone Info & Button on one row */
.location-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.phone-label,
.phone-value {
    margin: 0;
    color: #fff;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 17px;
    font-weight: 400;
}

/* VIEW WEBSITE BUTTON */
.view-website-btn {
    display: inline-block;
    background-color: #fff;
    color: #09841F;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: background-color 0.3s;
    font-family: 'Red Hat Display', sans-serif;
}

.view-website-btn i {
    display: none;
    margin-left: 8px;
    vertical-align: middle;
}

.view-website-btn:hover i,
.view-website-btn:active i {
    display: inline-block;
}

.view-website-btn:hover {
    background-color: #000;
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-title {
        font-size: 36px;
        margin: 40px auto 60px;
    }

    .locations-container {
        flex-direction: column;
    }

    .location-card {
        width: 100%;
    }
}

/* --- MAP VIEW STYLES --- */
.map-view-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    height: 800px;
    /* Adjust as needed */
    padding: 0 0 50px 0;
}

.map-locations-list {
    width: 30%;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    order: 1;
}

.map-container {
    width: 70%;
    border: 1px solid #ddd;
    position: relative;
    order: 2;
}

.map-view-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    margin-bottom: 20px;
    color: #000;
}

.map-location-item {
    padding: 20px 25px;
    border: 1px solid #ddd;
    transition: background-color 0.3s, color 0.3s;
    margin-bottom: 20px;
}

.map-location-title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 18px;
    margin: 0 0 5px;
    color: #09841F;
}

.map-location-address,
.map-location-phone {
    font-size: 14px;
    margin: 0 0 5px;
    color: #000;
}

.map-location-link,
.map-location-link:visited {
    display: inline-block;
    background-color: #09841F;
    color: #fff !important;
    font-weight: 500;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.map-location-link i {
    display: none;
    margin-left: 8px;
    vertical-align: middle;
}

.map-location-item:hover .map-location-link {
    background-color: #fff;
    color: #09841F !important;
}

.map-location-item:hover .map-location-link:hover {
    background-color: #000;
    color: #fff !important;
}

.map-location-link:hover i {
    display: inline-block;
}

.map-location-item:hover {
    background-color: #09841F;
}

.map-location-item:hover .map-location-title,
.map-location-item:hover .map-location-address,
.map-location-item:hover .map-location-phone {
    color: #fff !important;
}

@media (max-width: 768px) {
    .map-view-container {
        flex-direction: column;
        height: auto;
    }

    .map-container {
        width: 100%;
        height: 400px;
        order: 1;
    }

    .map-locations-list {
        width: 100%;
        order: 2;
    }
}

/* Scrollbar styling */
.map-locations-list {
    scrollbar-width: thin;
    scrollbar-color: #999 #f1f1f1;
}

.map-locations-list::-webkit-scrollbar {
    width: 8px;
}

.map-locations-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.map-locations-list::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
}

.map-locations-list::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Google Map InfoWindow styling */
.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-d {
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0;
}

.kd-infowindow {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'Red Hat Display', sans-serif;
    padding: 15px 25px;
}

.kd-infotitle {
    font-size: 18px;
    font-weight: 500;
    color: #09841F;
    margin: 10px 0 0;
}

.kd-infoaddress,
.kd-infophone {
    font-size: 14px;
    margin: 0 0 5px;
    color: #000;
}

.kd-infobtn {
    background-color: #09841F;
    color: #fff !important;
    font-weight: 500;
    padding: 8px 10px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

/* No-data message */
.kd-no-data {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0 0 10px;
}

/* --- Cute & Responsive Alphabet Filter (Square Buttons) --- */
.alphabet-filter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
    justify-items: center;
    margin: 24px auto 50px;
    max-width: 800px;
    padding: 0 16px;
}

.alphabet-filter button {
    width: 40px;
    height: 40px;
    border: 2px solid #09841F;
    background: #fff;
    color: #09841F;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.alphabet-filter button:hover {
    border: 2px solid #000;
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.alphabet-filter button.active {
    border: 2px solid #09841F;
    background: #09841F;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile tweaks for filter */
@media (max-width: 480px) {
    .alphabet-filter {
        gap: 6px;
        grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
    }

    .alphabet-filter button {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-width: 1.5px;
    }
}

/* Map Custom Zoom Control Buttons */
.custom-zoom-control {
    background: #fff;
    margin: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-zoom-control button {
    background: #fff;
    color: #000;
    outline: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: background 0.3s;
}

.custom-zoom-control button:hover {
    background: #09841F;
    color: #fff;
}

.zoom-in-button {
    border-bottom: 1px solid #000;
}

.zoom-in-button:hover {
    border-bottom: 1px solid #000;
}

.custom-zoom-control:has(.zoom-out-button:hover) .zoom-in-button {
    border-bottom: 1px solid #000 !important;
}

.custom-zoom-control button.disabled,
.custom-zoom-control button:disabled {
    opacity: 0.5;
    cursor: default;
}

