/* Athos Map Styles */

/* Map Container */
#map {
    width: 100%;
    height: 100vh;
}

#map .related {
    color: darkcyan;
    font-size: 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mapLang {
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: space-between;
    margin: 1rem;
}
.mapLang a {
    display: block;
    line-height: 1;
    text-decoration: none;
    color: #6f6e6a;
    text-transform: uppercase;
    padding: 3px;
    background: #e4e4da;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}
.typeTitle{
    font-size: 9px;
    /* background: #efefef; */
    color:#777;
    padding: 1px 3px;
    letter-spacing: 2px;
    text-transform: uppercase;

}
#myFooter{display:none!important}
.map-container {
    flex: 1;
    position: relative;
}

/* Mapbox Customizations */
.mapboxgl-popup-content {
    padding: 15px;
    border-radius: 1rem;
}

.cluster-marker {
    color: #fff;
    background: #1978c8;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-style-control {
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.mapboxgl-popup-close-button {
    top: 5px;
    right: 5px;
}

/* Navigation Panel */
.map-navigation-panel {
    width: 380px;
    /* background: #d9e1e3; */
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
    max-height: 100vh;
    border-radius: 20px;
    padding-bottom: 32px;
    background-image: linear-gradient(#d0d0d0c4, #ebebebed), url(/static/images/calendar-bg1.webp);
    background-position: -120px 3px;
    background-size: cover;
    /* background-repeat: no-repeat; */
}

.panel-header {
    padding: 10px;
    /* border-bottom: 1px solid #e5e5e5; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 2px;
    font-family: 'EB Garamond';
    color: #ffff;
    text-align: center;
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    /* color: #333; */
    text-align: center;
}

.close-panel-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.2s;
}

.close-panel-btn:hover {
    color: #333;
}

/* Tabs */
.panel-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    border-bottom: 2px solid #e5e5e5;
}

.tab-btn {
    flex: 1;
    padding: 1px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #2d7a7a;
}

.tab-btn.active {
    color: #2d7a7a;
    border-bottom-color: #2d7a7a;
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tab-pane {
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.tab-pane[x-cloak] {
    display: none !important;
}

/* Ensure visible tabs use flex display */
.tab-pane:not([style*="display: none"]) {
    display: flex;
}

/* Search Container */
.search-container {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.search-icon {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 8px 40px 8px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #2d7a7a;
}

.clear-search-btn {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.clear-search-btn:hover {
    color: #666;
}

/* Category Pills */
.category-pills {
    padding: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid #e5e5e5;
    scrollbar-width: thin;
    scrollbar-color: #2d7a7a #f1f1f1;
}

.category-pills::-webkit-scrollbar {
    height: 8px;
}

.category-pills::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.category-pills::-webkit-scrollbar-thumb {
    background: #2d7a7a;
    border-radius: 10px;
}

.category-pills::-webkit-scrollbar-thumb:hover {
    background: #236060;
}

.pill-btn {
    padding: 4px 8px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.pill-btn:hover {
    background: #e8f5f5;
    border-color: #2d7a7a;
    color: #2d7a7a;
}

.pill-btn.active {
    background: #2d7a7a;
    border-color: #2d7a7a;
    color: #ffffff;
}

/* Location List */
.location-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Scrollbar styling for location list */
.location-list::-webkit-scrollbar {
    width: 8px;
}

.location-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.location-list::-webkit-scrollbar-thumb {
    background: #2d7a7a;
    border-radius: 10px;
}

.location-list::-webkit-scrollbar-thumb:hover {
    background: #236060;
}

/* Firefox scrollbar */
.location-list {
    scrollbar-width: thin;
    scrollbar-color: #2d7a7a #f1f1f1;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.location-item:hover {
    background: #f8f8f8;
}

.location-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.location-info {
    flex: 1;
    min-width: 0;
}

.location-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-category {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Route List */
.route-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Scrollbar styling for route list */
.route-list::-webkit-scrollbar {
    width: 8px;
}

.route-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.route-list::-webkit-scrollbar-thumb {
    background: #2d7a7a;
    border-radius: 10px;
}

.route-list::-webkit-scrollbar-thumb:hover {
    background: #236060;
}

/* Firefox scrollbar */
.route-list {
    scrollbar-width: thin;
    scrollbar-color: #2d7a7a #f1f1f1;
}

.route-item {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    border-left: 3px solid transparent;
}

.route-item:hover {
    background: #f8f8f8;
}

.route-item.active {
    background: #e8f5f5;
    border-left-color: #2d7a7a;
}

.route-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.route-meta {
    font-size: 13px;
    color: #666;
}

/* Route Info Card */
.route-info-card {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 360px;
    max-width: calc(100% - 24px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    overflow: hidden;
}

.route-info-card[x-cloak] {
    display: none !important;
}

.route-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 14px 6px 16px;
}

.route-info-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.route-info-close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 2px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.route-info-close:hover {
    color: #333;
}

.route-info-meta {
    padding: 0 16px 10px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.route-info-body {
    padding: 12px 16px 16px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.55;
    color: #444;
    scrollbar-width: thin;
    scrollbar-color: #2d7a7a #f1f1f1;
}

.route-info-body::-webkit-scrollbar {
    width: 8px;
}

.route-info-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.route-info-body::-webkit-scrollbar-thumb {
    background: #2d7a7a;
    border-radius: 10px;
}

.route-info-body::-webkit-scrollbar-thumb:hover {
    background: #236060;
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #2d7a7a;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.mobile-toggle-btn:hover {
    transform: scale(1.05);
}

.mobile-toggle-btn:active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .map-navigation-panel {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        box-shadow: none;
    }

    .map-navigation-panel.open {
        left: 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }

    .close-panel-btn {
        display: block;
    }

    .mobile-toggle-btn {
        display: flex;
    }

    .map-container {
        width: 100%;
    }

    #map {
        height: calc(100vh - 100px);
    }

    .route-info-card {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        max-height: 50vh;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
    }
}

/* Desktop Layout */
@media (min-width: 992px) {
    .map-navigation-panel {
        position: relative;
    }

    .mobile-toggle-btn {
        display: none;
    }
}

/* Custom Utility Classes (Bootstrap Replacements) */
.text-small {
    font-size: 0.875rem;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.flex-grow-1 {
    flex-grow: 1;
}

.my-3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.w-25 {
    width: 25%;
}

.text-muted {
    color: #6c757d;
}

.map-wrapper {
    display: flex;
    margin: 0;
    padding: 0;
}

.map-row {
    display: flex;
    width: 100%;
    background: none!;
}
