/* mountain.css */
.mountain-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.map-wrapper {
    width: 100%;
    height: 700px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

#map {
    width: 100%;
    height: 100%;
}

.actions-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.region-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.region-btn {
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    backdrop-filter: blur(5px);
}

.region-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
}

.region-btn.active {
    background: #60a5fa;
    color: #fff;
    border-color: #60a5fa;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

.btn-add-mountain {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-add-mountain:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.back-btn {
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.back-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

:root {
    --map-zoom-scale: 1;
}

/* InfoWindow Customization (Leaflet Overrides) */
.leaflet-popup-content-wrapper {
    background-color: #1e293b !important;
    border: 1px solid var(--border-color) !important;
    border-radius: calc(20px * var(--map-zoom-scale)) !important;
    padding: 0 !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6) !important;
    overflow: hidden;
    transition: border-radius 0.2s ease-out;
}
.leaflet-popup-content {
    margin: 0 !important;
    width: calc(320px * var(--map-zoom-scale)) !important;
    transition: width 0.2s ease-out;
}
.leaflet-popup-tip {
    background-color: #1e293b !important;
    border: 1px solid var(--border-color) !important;
}
.leaflet-container a.leaflet-popup-close-button {
    color: #fff !important;
    padding: calc(8px * var(--map-zoom-scale)) calc(10px * var(--map-zoom-scale)) 0 0 !important;
    font-size: calc(20px * var(--map-zoom-scale)) !important;
    z-index: 100 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    transition: font-size 0.2s ease-out, padding 0.2s ease-out;
}

.info-window {
    width: 100%;
    color: #e2e8f0;
    font-family: 'Pretendard', sans-serif;
}
.info-window img {
    width: 100%;
    height: calc(180px * var(--map-zoom-scale));
    object-fit: cover;
    border-top-left-radius: calc(20px * var(--map-zoom-scale));
    border-top-right-radius: calc(20px * var(--map-zoom-scale));
    display: block;
    transition: height 0.2s ease-out, border-radius 0.2s ease-out;
}
.info-content {
    padding: calc(20px * var(--map-zoom-scale));
    transition: padding 0.2s ease-out;
}
.info-content h3 {
    margin: 0 0 calc(15px * var(--map-zoom-scale)) 0;
    font-size: calc(1.3rem * var(--map-zoom-scale));
    color: #fcd34d;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: margin 0.2s ease-out, font-size 0.2s ease-out;
}
.info-grid {
    display: grid;
    grid-template-columns: calc(80px * var(--map-zoom-scale)) 1fr;
    gap: calc(8px * var(--map-zoom-scale));
    font-size: calc(0.95rem * var(--map-zoom-scale));
    margin-bottom: calc(15px * var(--map-zoom-scale));
    transition: all 0.2s ease-out;
}
.info-grid span.label {
    color: #94a3b8;
}
.info-grid span.val {
    color: #e2e8f0;
    font-weight: 500;
}
.info-desc {
    font-size: calc(0.95rem * var(--map-zoom-scale));
    color: #cbd5e1;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: calc(15px * var(--map-zoom-scale));
    margin-top: calc(15px * var(--map-zoom-scale));
    word-break: keep-all;
    transition: all 0.2s ease-out;
}
.btn-delete-marker {
    width: 100%;
    margin-top: calc(15px * var(--map-zoom-scale));
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: calc(10px * var(--map-zoom-scale));
    border-radius: calc(8px * var(--map-zoom-scale));
    cursor: pointer;
    font-size: calc(0.95rem * var(--map-zoom-scale));
    font-weight: 600;
    transition: all 0.2s ease-out;
    font-family: inherit;
}
.btn-delete-marker:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

/* Custom Context Menu */
.custom-context-menu {
    display: none;
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 10000;
    padding: 5px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.custom-context-menu-item {
    padding: 12px 20px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: 0.2s;
    font-family: inherit;
}
.custom-context-menu-item:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}
.modal-content {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin: 5vh auto;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    color: #e2e8f0;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,0.2); border-radius: 4px; }
.close-btn {
    color: #94a3b8;
    position: absolute;
    top: 30px;
    right: 35px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}
.close-btn:hover {
    color: #f87171;
}

/* Forms in Modal */
.form-row {
    display: flex;
    gap: 15px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #60a5fa;
}
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.photo-drop-zone {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    color: #94a3b8;
    margin-top: 12px;
    background: rgba(15, 23, 42, 0.4);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.photo-drop-zone.dragover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}
.photo-drop-zone img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    object-fit: contain;
}

.photo-drop-zone img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    object-fit: contain;
}
