/* Import Badge Styles from Property CSS */
.property-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #717171;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.property-location svg {
    color: var(--blue) !important;
    fill: #FF385C !important;
}

.property-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* Modal Popup Survey */
.modal-popup-survey {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
}

.modal-content-survey {
    background: white;
    max-width: 75vw;
    width: 95%;
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Desktop specific width */
@media (min-width: 769px) {
    .modal-content-survey {
        width: 50vw;
        max-width: 1200px;
    }
    
    /* Hide date navigation buttons on desktop */
    .date-nav-btn {
        display: none !important;
    }
    
    .date-picker-container {
        gap: 0;
    }
}

/* Header */
.modal-header-survey {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.back-btn-survey {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn-survey:hover {
    background: #f5f5f5;
}

.head-popup-survey {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Body */
.modal-body-survey {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

/* Property Info */
.property-info-survey {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.property-image-survey {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.property-image-survey img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-details-survey {
    flex: 1;
}

.property-name-survey {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.property-price-survey {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-amount {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.price-period {
    font-size: 14px;
    color: #666;
}

.price-daily {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-amount-daily {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
}

.price-period-daily {
    font-size: 12px;
    color: #22c55e;
}

/* Sections */
.section-survey {
    margin-bottom: 24px;
}

.section-title-survey {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

/* Section Header with Timezone */
.section-header-with-timezone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header-with-timezone .section-title-survey {
    margin: 0;
}

.timezone-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.timezone-text {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

/* Time Presets */
.time-presets {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.preset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.preset-btn:hover {
    border-color: var(--yellow);
    background-color: #fffcf0;
    color: #333;
}

.preset-btn.active {
    border-color: var(--yellow);
    background-color: var(--yellow);
    color: #333;
    font-weight: 600;
}

.preset-btn svg {
    color: inherit;
    stroke: currentColor;
}

.section-text-survey {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Map */
.map-container-survey {
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.survey-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-placeholder-survey {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
}

.map-loading-survey {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #1b75bb;
    font-size: 14px;
    font-weight: 500;
}

/* Date Picker */
.date-picker-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-nav-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.date-nav-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.date-picker-survey {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    flex: 1;
}

.date-item-survey {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    background: white;
}

.date-item-survey:hover {
    border-color: #1b75bb;
    background: #f8f9ff;
}

.date-item-survey.active {
    border-color: #fff100;
    background: #fff100;
    color: #333;
}

.date-number {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.date-day {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Simple Time Picker */
.simple-time-picker {
    margin-bottom: 16px;
}

.time-picker-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e6ff;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.time-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

/* Smooth Scroll Time Picker */
.scroll-time-picker {
    position: relative;
    width: 70px;
}

.scroll-picker-container {
    width: 100%;
    height: 100px;
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.scroll-picker-list {
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 30px 0;
    position: relative;
}

.scroll-picker-list::-webkit-scrollbar {
    display: none;
}

.scroll-picker-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    z-index: 2;
}

.scroll-picker-item:hover {
    color: #1b75bb;
}

.scroll-picker-item.active {
    color: #333;
    font-weight: 700;
}

.scroll-picker-highlight {
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 40px;
    transform: translateY(-50%);
    background: rgba(255, 241, 0, 0.2);
    border: 2px solid #fff100;
    border-radius: 6px;
    pointer-events: none;
    z-index: 1;
}

.time-separator {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 8px;
}

/* Footer */
.modal-footer-survey {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: white;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancel-survey {
    flex: 1;
    max-width: 120px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-survey:hover {
    border-color: #ccc;
    background-color: #f8f9fa;
    color: #333;
}

.btn-confirm-survey {
    flex: 1;
    max-width: 120px;
    background: linear-gradient(135deg, #fff100 0%, #ffe600 100%);
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 230, 0, 0.25);
}

.btn-confirm-survey:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 117, 187, 0.3);
    text-decoration: none;
}

.btn-confirm-survey:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 230, 0, 0.25);
}

/* Mobile Responsiveness - Full Screen */
@media (max-width: 768px) {
    .modal-popup-survey {
        padding: 0;
    }
    
    .modal-content-survey {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .property-info-survey {
        display: grid;
        gap: 12px;
        align-items: center;
    }
    
    .property-image-survey {
        width: 100%;
        height: 100%;
        max-width: 500px;
        max-height: 500px;
    }
    
    .date-picker-survey {
        justify-content: flex-start;
    }
    
    .date-item-survey {
        min-width: 50px;
        padding: 10px 12px;
    }
    
    .modal-header-survey {
        position: sticky;
        top: 0;
        z-index: 1;
    }
    
    .modal-footer-survey {
        position: sticky;
        bottom: 0;
        z-index: 1;
    }

    /* Timezone and presets mobile styles */
    .section-header-with-timezone {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .timezone-info {
        align-self: flex-end;
        padding: 0.25rem 0.5rem;
        font-size: 11px;
    }

    .time-presets {
        gap: 6px;
        margin-bottom: 12px;
    }

    .preset-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 0;
        flex: 1;
    }

    .preset-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Mobile footer buttons */
    .modal-footer-survey {
        padding: 16px 20px;
        gap: 10px;
    }

    .btn-cancel-survey,
    .btn-confirm-survey {
        padding: 12px 16px;
        font-size: 14px;
        max-width: none;
    }
}