/* Map Section Styles - Minimalist Style */

.map-section {
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

/* Map Footer */
.map-footer {
    padding: 16px 20px;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.map-info-text {
    color: #666;
    font-size: 0.8em;
    font-weight: 300;
    margin: 0;
    text-align: center;
}

.btn-add-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #ff8c00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 140, 0, 0.4);
    width: 100%;
    max-width: 300px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-add-location:hover {
    background: #ff9d1f;
    box-shadow: 0 5px 16px rgba(255, 140, 0, 0.6);
    transform: translateY(-2px);
}

.btn-add-location:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
}

.btn-add-location svg {
    flex-shrink: 0;
}

.map-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #999;
    font-weight: 300;
}

.map-legend .marker-icon {
    font-size: 1.3em;
}

#halloweenMap {
    flex: 1;
    width: 100%;
    border: none;
    touch-action: pan-x pan-y;
}

/* Custom Leaflet Popup Styling - Minimalist */
.leaflet-container a {
    color: #fff !important;
}

.leaflet-popup-content-wrapper {
    background: #000;
    color: #fff;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.leaflet-popup-content {
    margin: 16px;
    font-size: 14px;
    min-width: 200px;
    color: #fff;
}

.leaflet-popup-content div {
    color: #000 !important;
}

.leaflet-popup-tip {
    background: #000;
}

.leaflet-popup-close-button {
    color: #999 !important;
    font-size: 24px !important;
    padding: 8px 8px 0 0 !important;
}

.popup-title {
    font-size: 1.15em;
    font-weight: 400;
    color: #000 !important;
    margin-bottom: 8px;
    line-height: 1.3;
}

.popup-address {
    color: #000 !important;
    font-size: 1em;
    font-weight: 300;
    margin-bottom: 8px;
    line-height: 1.3;
}

.popup-description {
    color: #999;
    margin-top: 8px;
    font-style: normal;
    font-size: 0.95em;
    line-height: 1.4;
}

.popup-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 18px;
    background: #ff8c00;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    width: 100%;
    justify-content: center;
}

.popup-directions:hover {
    background: #ff9d1f;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5);
    transform: translateY(-1px);
}

.popup-directions:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.4);
}

.popup-directions svg {
    flex-shrink: 0;
}

/* Leaflet controls - Minimalist */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-control-zoom a {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 20px !important;
}

.leaflet-control-zoom a:hover {
    background-color: #111 !important;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.8) !important;
    color: #666 !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: #999 !important;
}

/* Area labels */
.area-label div {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 8px 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

/* Custom marker icons */
.custom-div-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User location icon */
.user-location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing animation for user location */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .map-section {
        max-width: 1400px;
        margin: 0 auto;
        padding: 30px 40px;
        height: auto;
        min-height: 90vh;
    }

    .map-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0;
        height: auto;
        min-height: 80vh;
    }

    .map-legend {
        gap: 40px;
        padding: 20px;
        margin-bottom: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1em;
    }

    .map-legend .legend-item {
        font-size: 1.1em;
    }

    #halloweenMap {
        height: 800px;
        min-height: 800px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .map-footer {
        margin-top: 30px;
        padding: 25px;
        gap: 20px;
    }

    .map-info-text {
        font-size: 1em;
    }

    .btn-add-location {
        padding: 16px 32px;
        font-size: 1.1em;
        max-width: 400px;
    }

    .btn-map-login {
        padding: 16px 32px;
        font-size: 1.1em;
        max-width: 400px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .leaflet-popup-content-wrapper {
        max-width: 280px;
    }

    .leaflet-popup-content {
        margin: 14px;
        font-size: 13px;
    }

    .popup-title {
        font-size: 1.1em;
    }

    .popup-directions {
        padding: 9px 16px;
        font-size: 0.85em;
        margin-top: 10px;
        gap: 6px;
    }

    .popup-directions svg {
        width: 12px;
        height: 12px;
    }

    .leaflet-control-zoom {
        margin-right: 10px !important;
        margin-bottom: 10px !important;
    }

    .leaflet-control-attribution {
        font-size: 9px !important;
        padding: 2px 5px !important;
    }
}

/* Add Location Form Styles */
.add-location-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #fff;
    font-size: 0.95em;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
}

.form-group small {
    color: #999;
    font-size: 0.8em;
    margin-top: -0.3rem;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.btn-submit-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ff8c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    margin-top: 0.5rem;
}

.btn-submit-location:hover {
    background: #ff9d1f;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5);
    transform: translateY(-1px);
}

.btn-submit-location:active {
    transform: translateY(0);
}

.btn-submit-location svg {
    flex-shrink: 0;
}

/* Map Login Button */
.btn-map-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #ff8c00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 140, 0, 0.4);
    width: 100%;
    max-width: 300px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-map-login:hover {
    background: #ff9d1f;
    box-shadow: 0 5px 16px rgba(255, 140, 0, 0.6);
    transform: translateY(-2px);
}

.btn-map-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
}

.btn-map-login svg {
    flex-shrink: 0;
}

/* Google Sign-In Button in Map Modal */
.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 280px;
}

.google-signin-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.google-signin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for form */
@media (max-width: 768px) {
    .map-footer {
        padding: 14px 16px;
        gap: 10px;
    }

    .map-info-text {
        font-size: 0.75em;
    }

    .btn-add-location {
        font-size: 0.95em;
        padding: 12px 20px;
        max-width: 100%;
        border-radius: 6px;
    }

    .btn-add-location svg {
        width: 16px;
        height: 16px;
    }

    .btn-map-login {
        font-size: 0.95em;
        padding: 12px 20px;
        max-width: 100%;
        border-radius: 6px;
    }

    .btn-map-login svg {
        width: 16px;
        height: 16px;
    }

    .add-location-form {
        gap: 1.2rem;
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group select {
        padding: 0.7rem;
        font-size: 0.85em;
    }

    .google-signin-btn {
        font-size: 15px;
        padding: 11px 20px;
    }
}
