/* modals.css - 맵 레이어 컨트롤, 다운로드 모달, 프로모 모달, 푸터 스타일 */

/* ==================== MAP LAYER CONTROLS (우측 하단 플로팅) ==================== */

.map-layer-controls {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.map-layer-btn {
    width: auto;
    padding: 10px 14px;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-layer-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.map-layer-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-layer-btn.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* ==================== DOWNLOAD MODAL ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(3px);
}

/* 모든 모달 - 검색 컨테이너 위치에 표시 */
.modal-overlay.modal-left {
    justify-content: flex-start;
    padding-left: calc(50% - 120px); /* 검색 컨테이너 중심으로 이동 */
}

.modal-content {
    background: #ffffff;
    border-radius: 0;
    padding: 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    margin-bottom: 16px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.modal-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.modal-order-id {
    background: #f8f9fa;
    border-radius: 0;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-label {
    font-size: 12px;
    color: #888;
}

.order-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Consolas', 'Monaco', monospace;
}

.modal-sub {
    font-size: 13px;
    color: #888;
    margin: 0 0 20px 0;
}

.modal-sub strong {
    color: #333;
}

.modal-close-btn {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    filter: brightness(0.9); /* 배경색에 상관없이 살짝 어두워지도록 변경 */
}

/* ==================== PROMO MODAL ==================== */

.promo-modal-content {
    position: relative;
    max-width: 340px;
    padding: 24px 20px 20px;
}

.promo-close-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.2s;
}

.promo-close-x svg {
    width: 16px;
    height: 16px;
}

.promo-close-x:hover {
    background: #f0f0f0;
    color: #666;
}

.promo-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    text-align: center;
}

.promo-plans {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.promo-plan {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 16px 12px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.promo-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.promo-plan.highlight {
    border: 2px solid #1a1a1a;
}

.promo-plan .plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 0;
}

.promo-plan .plan-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.promo-plan .plan-original {
    display: block;
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
    margin-top: 8px;
}

.promo-plan .plan-price {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.promo-plan .plan-discount {
    display: block;
    font-size: 12px;
    color: #4CAF50;
    margin-top: 4px;
}

.promo-note {
    font-size: 11px;
    color: #888;
    margin: 0;
    text-align: center;
}

.promo-dont-show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
}

.promo-dont-show input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* ==================== FOOTER ==================== */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa; /* 상단 네비와 동일한 색상 */
    border-top: 1px solid #e0e0e0;
    padding: 5px 15px;
    z-index: 999;
}

.footer-content {
    text-align: center;
    padding-left: 0;
}

.footer-line {
    margin: 2px 0;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.footer-copyright {
    margin: 5px 0 0 0;
    font-size: 10px;
    color: #999;
}

.footer-links {
    margin: 5px 0;
    font-size: 11px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #333;
    text-decoration: underline;
}

.footer-links a:visited {
    color: #333;
}

.footer a {
    color: #333 !important;
}

.footer a:visited {
    color: #333 !important;
}

