/* Carwash Demo Layout */
#demo-section {
    background-color: #f8f9fa;
    padding: 100px 0;
    overflow: hidden;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.phone-mockup .notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #333;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 100;
}

.app-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans KR', sans-serif;
}

/* Common UI Elements */
.cw-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    background: #fff;
    padding-top: 20px;
    z-index: 50;
    position: relative;
}

.cw-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.cw-btn-primary {
    background: #4e73df;
    color: white;
}

.cw-btn-primary:active {
    background: #2e59d9;
}

/* Screen 1: Intro */
.screen-intro {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.intro-logo {
    font-size: 2rem;
    font-weight: 900;
    color: #4e73df;
    margin-bottom: 30px;
}

.car-input-group {
    position: relative;
    margin-bottom: 20px;
}

.car-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    outline: none;
}

.car-input:focus {
    border-color: #4e73df;
}

.car-result-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.5s;
    display: none;
}

.car-result-card.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.car-img {
    width: 100%;
    height: 120px;
    background: #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    background-size: cover;
    background-position: center;
}

/* Screen 2: Map */
.screen-map {
    height: 100%;
    background: #f8f9fa;
    position: relative;
    display: none;
}

.map-view {
    width: 100%;
    height: calc(100% - 60px);
    /* header height */
    position: relative;
    background: #e9ecef;
    /* Fallback */
}

/* Kakao Map Custom Overlay Styles */
.custom-overlay {
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #4e73df;
    color: #333;
    position: relative;
    transition: 0.2s;
    white-space: nowrap;
    margin-bottom: 12px;
    /* compensate for pointer */
}

.custom-overlay:hover,
.custom-overlay.active {
    background: #4e73df;
    color: white;
    z-index: 999;
    transform: scale(1.1);
}

.custom-overlay::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #4e73df;
}

.custom-overlay:hover::after,
.custom-overlay.active::after {
    border-top-color: #4e73df;
    /* Keep content blue, pointer blue */
}

.shop-detail-sheet {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(110%);
    transition: 0.3s;
    z-index: 100;
}

.shop-detail-sheet.show {
    transform: translateY(0);
}

/* Screen 3: Booking Success */
.screen-success {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: none;
    background: #fff;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #1cc88a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
    animation: popIn 0.5s;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Admin Toast */
.admin-toast {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #1cc88a;
    padding: 15px;
    border-radius: 4px;
    z-index: 9999;
    display: none;
    animation: slideInRight 0.5s;
}

.admin-toast h5 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.admin-toast p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #666;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}