/**
 * Move-In Date Filter Styles
 * Self-contained styles for the move-in date filter component
 * 
 * @package ApartmentAvailability
 * @since 1.0.0
 */

/* Move-In Date Filter Container */
.move-in-date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.move-in-date-filter label {
    font-weight: 500;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

/* Date Input — match the grey text used by the other filter selects */
.move-in-date-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    min-width: 160px;
    background: #fff;
    color: #666;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.move-in-date-input::-webkit-datetime-edit,
.move-in-date-input::-webkit-datetime-edit-fields-wrapper,
.move-in-date-input::-webkit-datetime-edit-text,
.move-in-date-input::-webkit-datetime-edit-month-field,
.move-in-date-input::-webkit-datetime-edit-day-field,
.move-in-date-input::-webkit-datetime-edit-year-field {
    color: #666;
}

.move-in-date-input:focus {
    outline: none;
    border-color: var(--secondary-color, #007cba);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Clear Button */
.clear-date-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.clear-date-btn:hover {
    background: #5a6268;
}

.clear-date-btn:active {
    transform: scale(0.98);
}

/* Info Text */
.move-in-date-info,
.move-in-date-info-single {
    color: #666;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
}

/* When inside availability-filters, stay a single control on the same row */
.availability-filters .move-in-date-filter {
    flex: 0 0 auto;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
}

.move-in-date-note-row {
    margin: -8px 0 12px;
    padding: 0 15px;
}

.move-in-date-note-row .move-in-date-info {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .move-in-date-filter {
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }
    
    .move-in-date-filter label {
        flex-shrink: 0;
    }
    
    .move-in-date-input {
        flex: 1;
        min-width: 140px;
    }
    
    .clear-date-btn {
        flex-shrink: 0;
    }
    
    .move-in-date-info,
    .move-in-date-info-single {
        width: 100%;
        text-align: center;
        font-size: 13px;
    }
}

/* Single Floor Plan Page Specific Styles */
.available-units-section .move-in-date-filter {
    margin-bottom: 20px;
}

/* Archive Page Specific Styles */
.floorplans-grid + .move-in-date-filter {
    margin-top: 20px;
}

.move-in-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 40px 0;
}

.move-in-no-results-emoji {
    font-size: 48px;
    margin-bottom: 20px;
}

.move-in-no-results h3 {
    color: #333;
    margin-bottom: 15px;
}

.move-in-no-results p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px;
}

.move-in-no-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.move-in-no-results-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
}

.move-in-no-results-units {
    margin: 12px 0 8px;
    padding: 28px 12px;
}
