/**
 * Interactive Asia Map Styles
 */

/* Global box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Map Container */
.interactive-asia-map-container {
    position: relative;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 10px;
}

.interactive-asia-map {
    width: 100%;
    height: 500px;
    background-color: #b8c5cd;
    border-radius: 4px;
    overflow: hidden;
}

/* Search Bar */
.map-search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    width: 40%;
    max-width: 300px;
}

.location-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.location-search:focus {
    outline: none;
    border-color: #40c4db;
    box-shadow: 0 0 0 2px rgba(64, 196, 219, 0.2);
    transition: all 0.2s ease;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1001;
    margin-top: 2px;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

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

.search-result-name {
    font-weight: bold;
    font-size: 14px;
}

.search-result-details {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Zoom Controls */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
    background-color: white !important;
    color: #333 !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

/* Custom Markers */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    background-color: #40c4db;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.marker-pin::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Location Info Cards */
.location-popup {
    min-width: 250px;
}

.location-info-card {
    padding: 0;
    color: #333;
}

.location-info-card h3 {
    background-color: #40c4db;
    color: white;
    margin: 0;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px 4px 0 0;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.info-card-image {
    margin-bottom: 10px;
    text-align: center;
}

.info-card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.info-card-details {
    font-size: 14px;
}

.info-card-details p {
    margin: 5px 0;
    color: #666;
    line-height: 1.5;
}

.company-name {
    font-weight: bold;
    color: #333 !important;
}

.learn-more-btn {
    display: inline-block;
    background-color: #40c4db;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
    background-color: #2ea8bd;
    color: white;
    text-decoration: none;
}

/* Location Slider - ENHANCED */
.location-slider-container {
    position: relative;
    width: 100%;
    margin-top: 10px;
    overflow-x: auto;
    white-space: nowrap;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 990;
}

.location-slider {
    display: flex;
    padding: 10px;
}

.location-item {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    background-color: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.location-item:hover {
    background-color: #f0f0f0;
}

.location-item.active {
    background-color: #40c4db;
    color: white;
    border-color: #40c4db;
}


/* Updated interactive-map.css */

/* ... Existing styles remain unchanged ... */

.slider-arrow {
    position: absolute;
    bottom: 10px;
    background-color: #40c4db;
    color: white;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.left-arrow {
    right: 60px;
}

.right-arrow {
    right: 10px;
}

.location-slider-container {
    width: auto;
    max-width: 300px;
    position: absolute;
    bottom: 10px;
    right: 100px;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.location-slider {
    display: flex;
    gap: 10px;
}

.location-item {
    white-space: nowrap;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .map-search-container {
        width: 60%;
        max-width: none;
    }

    .location-popup {
        min-width: 200px;
    }

    .location-item {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .map-search-container {
        width: 80%;
    }

    .info-card-content {
        flex-direction: column;
    }

    .info-card-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search-result-name,
    .search-result-details,
    .company-name,
    .learn-more-btn {
        font-size: 13px;
    }

    .location-search {
        font-size: 13px;
        padding: 6px 10px;
    }

    .location-slider {
        padding: 8px;
    }
}