/* Full screen map styles */
body.map-page {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Grid System */
.row {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.col-3 {
    width: 25%;
    float: left;
}

.col-9 {
    width: 75%;
    float: left;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* Header and Navigation */
body.map-page #header {
    font-size: 13px;
    height: 71px;
    overflow: visible;
    z-index: 9999;
    width: 100%;
    position: absolute;
}

body.map-page #header nav#nav-main {
    float: right;
    height: 71px;
    line-height: 71px;
    width: auto;
}

body.map-page #header nav#nav-main ul.primary-nav {
    text-transform: uppercase;
    text-align: right;
    margin: 0;
    padding: 0;
    display: inline-block;
}

body.map-page #header nav#nav-main ul.primary-nav li {
    display: inline-block;
    list-style: none;
    margin: 0;
}

body.map-page #header nav#nav-main ul.primary-nav li a {
    height: 71px;
    line-height: 71px;
    display: inline-block;
    padding: 0 10px;
    color: #111;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease-out;
}

/* Solid Navigation State */
body.map-page #header.nav-solid {
    background: #fff;
    box-shadow: 2px 0px 3px rgba(0, 0, 0, 0.2);
    position: fixed;
    left: 0;
}

body.map-page #header.nav-solid nav#nav-main a {
    color: #333;
    border-bottom: 3px solid #fff;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body.map-page #header nav#nav-main {
        float: none;
        height: auto;
        line-height: normal;
    }
    
    body.map-page #header nav#nav-main ul.primary-nav {
        flex-direction: column;
    }
    
    body.map-page #header nav#nav-main ul.primary-nav li {
        margin: 0;
    }

    /* Hide banner background on mobile */
    #banner {
        background: none !important;
        background-color: #fff !important;
    }
}

/* Logo */
.map-page #logo {
    float: left;
    height: 70px;
    line-height: 70px;
    margin-right: 15px;
}

.map-page #logo img {
    max-height: 40px;
    vertical-align: middle;
}

/* Full screen map container */
#map {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Container for all map controls */
.leaflet-top.leaflet-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    top: 80px !important;
    right: 10px !important;
    position: absolute !important;
    z-index: 1000 !important;
}

/* Search Container */
#search-container {
    position: absolute;
    top: 90px;
    left: 85%;
    transform: translateX(-50%);
    z-index: 9999;
    background: white;
    padding: 4px;
    border-radius: 4px;
    width: 350px;
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Search Input */
#location-search {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Search Button */
#search-button {
    padding: 8px 16px;
    background: #d2b356;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

#search-button:hover {
    background: #c4a43d;
}

/* Zoom Control */
.leaflet-control-zoom {
    position: absolute !important;
    margin: 10px !important;
    z-index: 1000 !important;
}

/* Container for bottom-left controls */
.leaflet-bottom.leaflet-left {
    bottom: 10px !important;
    left: 10px !important;
    position: absolute !important;
    z-index: 1000 !important;
}

/* Layer Control */
.leaflet-control-layers {
    order: 3 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.1) !important;
    padding: 8px !important;
}

/* Main Container */
.leaflet-control-layers-list {
    display: grid !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Checkbox Row */
.leaflet-control-layers-overlays label {
    display: grid !important;
    grid-template-columns: 20px auto !important;
    align-items: center !important;
}

/* Checkbox */
.leaflet-control-layers-overlays input[type="checkbox"] {
    margin: 0 !important;
    height: 16px !important;
    width: 16px !important;
}

/* Layer Name */
.leaflet-control-layers-overlays span {
    font-size: 14px !important;
    line-height: 1 !important;
    padding-left: 4px !important;
}

/* Slider Container */
.opacity-slider-container {
    padding-left: 20px !important;
    margin-top: 2px !important;
}

/* Slider */
.opacity-slider {
    width: 100px !important;
    height: 4px !important;
    -webkit-appearance: none !important;
    background: #e0e0e0 !important;
    border-radius: 2px !important;
    margin: 0 !important;
}

/* Slider Thumb */
.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #d2b356 !important;
    cursor: pointer !important;
}

.opacity-slider::-moz-range-thumb {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #d2b356 !important;
    cursor: pointer !important;
    border: none !important;
}

/* Zoom Control Styles */
.leaflet-control-zoom {
    order: 2;
    margin: 5px !important;
    align-self: flex-end;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .row {
        padding: 0 10px;
    }

    .col-3, .col-9 {
        width: 100%;
        float: none;
    }

    .map-page #header {
        height: auto;
        min-height: 60px;
    }
    
    .map-page #logo {
        height: 60px;
        line-height: 60px;
    }
    
    .map-page #logo img {
        max-height: 30px;
        margin: 15px 0;
    }
    
    .map-page #nav-main {
        float: none;
        height: auto;
        line-height: normal;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .map-page #nav-main ul {
        flex-direction: column;
        padding: 10px 0;
        justify-content: center;
    }
    
    .map-page #nav-main ul li {
        display: block;
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }
}

/* Solid Navigation State hover */
body.map-page #header.nav-solid nav#nav-main a:hover {
    color: #d2b356;
    border-bottom: 3px solid #d2b356;
}

body.map-page #header nav#nav-main ul.primary-nav li a:hover {
    color: #d2b356;
    opacity: 1;
}

/* Mobile Navigation Styles */
body.map-page #nav-main {
    display: block !important;
}

body.map-page #nav-trigger {
    display: none !important;
}

body.map-page #nav-mobile {
    display: none;
}

/* Mobile styles */
@media only screen and (max-width: 768px) {
    /* Hide desktop nav */
    body.map-page #nav-main {
        display: none !important;
    }

    /* Show mobile trigger */
    body.map-page #nav-trigger {
        display: block !important;
        cursor: pointer;
    }

    /* Mobile Nav Positioning */
    body.map-page #nav-mobile {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 9999;
    }

    body.map-page #nav-mobile ul {
        margin: 0;
        padding: 0;
        list-style: none;
        background: white;
    }

    body.map-page #nav-mobile ul li {
        border-bottom: 1px solid #eee;
        display: block;
        text-align: center;
    }

    body.map-page #nav-mobile ul li a {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        height: auto;
        line-height: normal;
    }

    body.map-page #nav-mobile ul li a:hover {
        background: #f5f5f5;
        color: #d2b356;
    }
}

/* Force desktop nav visible on larger screens */
@media only screen and (min-width: 769px) {
    body.map-page #nav-main {
        display: block !important;
    }
    body.map-page #nav-mobile, 
    body.map-page #nav-trigger {
        display: none !important;
    }
}

/* Update header layout */
body.map-page #header .row .col-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

body.map-page #logo {
    flex: 0 0 auto;
}

body.map-page #nav-main {
    flex: 1 1 auto;
}

/* Info Panel Styles */
#info-panel {
    position: absolute !important;
    top: 80px !important;
    left: 0 !important;
    width: 400px !important;
    height: calc(100vh - 80px) !important;
    background: white !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.1) !important;
    z-index: 99999 !important;
    overflow: visible !important;
}

/* Panel Content */
#info-panel .panel-content {
    height: calc(100% - 45px) !important;
    overflow-y: auto !important;
    background: white !important;
}

/* Tab Container Styles */
#info-panel .panel-header {
    position: relative !important;
    background: #f0f0f0 !important;  /* Restored from yellow */
    border-bottom: 1px solid #ddd !important;
    overflow: visible !important;
}

#info-panel .tab-container {
    display: flex !important;
    background: #e4e4e4 !important;
    padding: 0 !important;
    margin-right: 40px !important;  /* Space for toggle button */
}

#info-panel .tab-button {
    flex: 1 !important;
    padding: 12px 20px !important;
    border: 1px solid #ccc !important;
    border-bottom: none !important;
    background: #f0f0f0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

#info-panel .tab-button:hover {
    background: #f8f8f8 !important;
}

#info-panel .tab-button.active {
    background: white !important;
    border-bottom: 1px solid white !important;
    margin-bottom: -1px !important;
    z-index: 2 !important;
    font-weight: 500 !important;
}

#info-panel .tab-content {
    display: none !important;
    padding: 20px !important;
    background: white !important;
}

#info-panel .tab-content.active {
    display: block !important;
}

/* Toggle Button */
#info-panel .panel-toggle {
    position: absolute !important;
    left: 100% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    background: white !important;  /* Restored from red */
    border: 1px solid #ddd !important;
    border-radius: 0 4px 4px 0 !important;
    cursor: pointer !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1) !important;
}

/* Icon inside toggle button */
#info-panel .panel-toggle i {
    font-size: 16px !important;
    color: #666 !important;
}

/* Panel collapsed state */
#info-panel.collapsed {
    transform: translateX(-400px) !important;
    transition: transform 0.3s ease !important;
}

/* Add transition to non-collapsed state too */
#info-panel {
    transition: transform 0.3s ease !important;
}

/* Links in panel */
#info-panel a {
    color: #d2b356 !important;
    text-decoration: none !important;
}

#info-panel a:hover {
    text-decoration: underline !important;
}

.panel-content h2 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    color: #333;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
}

.panel-content h3 {
    margin: 20px 0 10px 0;
    font-size: 1.2em;
    color: #444;
}

.panel-content p {
    margin: 0 0 15px 0;
    line-height: 1.5;
    color: #666;
}

.panel-content ul {
    margin: 0 0 20px 20px;
    padding: 0;
}

.panel-content ul li {
    margin: 5px 0;
    color: #666;
}

.github-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* GitHub Button - match search button styling */
.github-link {
    position: relative;
    padding: 8px 16px;
    background: #d2b356;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.github-link i,
.github-link span {
    position: relative;
    z-index: 2;
    color: white;
}

.github-link:hover {
    background: #c4a43d;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #info-panel {
        width: 260px;
    }
    
    #info-panel.collapsed {
        transform: translateX(-250px);
    }
}

/* Adjust control positioning */
.leaflet-control-zoom {
    margin-top: 160px !important;
    z-index: 1000 !important;
}

/* Search Box Styles */
/*
#search-container {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    display: flex !important;
    gap: 5px !important;
    background: white !important;
    padding: 5px !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.1) !important;
}
*/

#location-search {
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    width: 200px !important;
    font-size: 14px !important;
}

#search-button {
    background: #d2b356 !important;
    color: white !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

#search-button:hover {
    background: #c4a43d !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #search-container {
        left: 75% !important;  /* Move it more to the left */
        width: 200px !important;  /* Make it narrower */
        transform: translateX(-50%) !important;  /* Center it relative to its position */
    }
    
    #location-search {
        width: calc(100% - 40px) !important;  /* Adjust for smaller button */
        font-size: 13px !important;  /* Slightly smaller font */
    }

    #search-button {
        padding: 8px !important;
        width: 32px !important;
        min-width: 32px !important;  /* Prevent shrinking */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    #search-button span {
        display: none !important;
    }

    #search-button i {
        margin: 0 !important;  /* Remove any margin around the icon */
    }
}

/* Button Styles - matching main site */
#search-button, .github-link {
    background: #d2b356;  /* Match your site's gold color */
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-out;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Open Sans', sans-serif;
}

#search-button:hover, .github-link:hover {
    background: #c4a43d;  /* Slightly darker on hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#search-button:active, .github-link:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Update GitHub link to match */
.github-link {
    background: #d2b356;  /* Changed from dark GitHub color to match site */
    margin-top: 10px;
    text-decoration: none;
}

.github-link i {
    font-size: 16px;
}

/* Info Box Styles */
.info-box {
    padding: 15px;  /* Reset base padding */
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    max-width: 300px;
    margin-bottom: 20px;
    margin-right: 10px;
    position: relative;
}

/* Close Button Styles */
.close-button {
    position: absolute;
    top: -10px;  /* Move button up */
    right: -10px;  /* Move button out */
    background: #f5f5f5;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1001;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);  /* Add shadow for depth */
}

.close-button:hover {
    background: #e0e0e0;
    color: #000;
}

/* Info Content Styles */
.info-content {
    position: relative;
    text-align: center;
    margin-top: 10px;  /* Add space at the top of content */
}

.info-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.contact-button {
    background: #d2b356;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-out;
    cursor: pointer;
}

.contact-button:hover {
    background: #c4a43d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Button Container */
.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Button Styles */
.contact-button, .dismiss-button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    font-family: inherit;  /* Match site font */
    font-weight: 500;     /* Match other buttons */
    text-transform: uppercase;  /* Match other buttons */
    letter-spacing: 0.5px;     /* Match other buttons */
    transition: background-color 0.3s ease;
}

.contact-button {
    background: #d2b356;
    color: white;
}

.dismiss-button {
    background: #f0f0f0;
    color: #333;
}

.contact-button:hover {
    background: #c4a43d;
}

.dismiss-button:hover {
    background: #e0e0e0;
}

/* Layer Control Title */
.layer-control-title {
    text-align: center !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #eee !important;
}

/* Reduce spacing in the layer control list */
.leaflet-control-layers-list {
    margin: 0 !important;
    padding: 0 !important;
}

.leaflet-control-layers-overlays {
    margin: 0 !important;
    padding: 0 !important;
}

/* Info Panel */
.info-panel {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: white !important;
    padding: 20px !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.1) !important;
    max-width: 300px !important;
    z-index: 1000 !important;
}

/* Close Button */
.close-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    cursor: pointer !important;
    padding: 5px !important;
    line-height: 1 !important;
    color: #666 !important;
}

.close-button:hover {
    color: #333 !important;
}

/* Container for all map controls on the right */
.leaflet-right .leaflet-control {
    margin-right: 10px !important;
    margin-bottom: 5px !important;
    clear: both !important;
}

/* Move zoom control below search */
.leaflet-control-zoom {
    margin-top: 60px !important;  /* Increased space to account for search box */
}

/* Layer control positioning */
.leaflet-control-layers {
    margin-top: 5px !important;
}

/* Ensure controls stack properly */
.leaflet-top.leaflet-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

/* Leaflet Controls Container */
.leaflet-top.leaflet-right {
    top: 80px !important;  /* Increased to make room for search box */
    right: 10px !important;
}

/* Leaflet Controls Container */
.leaflet-control-container {
    margin-top: 50px !important;  /* Add space for search box */
}

/* Reset Leaflet controls container */
.leaflet-top.leaflet-right {
    top: 80px !important;
    right: 10px !important;
    gap: 5px !important;
}

/* Info Box - add after existing search container styles */
.info-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 100000;
    max-width: 400px;
    width: 90%;
}

.info-content {
    text-align: center;
}

.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.contact-button, .dismiss-button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

.contact-button {
    background: #d2b356;
    color: white;
}

.dismiss-button {
    background: #f0f0f0;
    color: #333;
}

.contact-button:hover {
    background: #c4a43d;
}

.dismiss-button:hover {
    background: #e0e0e0;
}

/* GitHub Button */
#info-panel .github-link {
    position: relative;
    padding: 8px 16px;
    background: #d2b356;
    color: white !important;  /* Override the panel link color */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#info-panel .github-link:hover {
    background: #c4a43d;
    color: white !important;
}

/* Force white text color for both icon and text */
#info-panel .github-link i,
#info-panel .github-link {
    color: white !important;
}


