/* Restaurant Search Section */

.lpre-restaurant-search-section {
    width: 100%;
    margin: 3rem 0;
    padding: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.lpre-search-title {
    font-size: 24px;
    font-weight: 600;
    color: #C67353;
    margin: 0 0 2rem 0;
    text-align: center;
    line-height: 1.2;
}

.lpre-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lpre-search-row {
    display: flex;
    gap: 0;
}

/* Top Row: Date, Time, People */
.lpre-search-top-row {
    display: flex;
    gap: 0;
}

.lpre-search-field {
    flex: 1;
    position: relative;
}

.lpre-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Date Field - Left */
.lpre-field-date {
    flex: 1;
}

.lpre-field-date .lpre-date-wrapper {
    position: relative;
}

.lpre-date-input,
.lpre-time-input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.lpre-date-input:focus,
.lpre-time-input:focus {
    outline: none;
    border-color: #C67353;
}

/* Time Field - Middle */
.lpre-field-time {
    flex: 1;
}

.lpre-field-time .lpre-time-wrapper {
    position: relative;
}

.lpre-time-input {
    border-left: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 0;
}

/* People Field - Right */
.lpre-field-people {
    flex: 1;
}

.lpre-people-select {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 2px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    color: #333;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    transition: border-color 0.3s ease;
}

.lpre-people-select:focus {
    outline: none;
    border-color: #C67353;
}

/* Location Row */
.lpre-search-location-row {
    display: flex;
}

.lpre-field-location {
    width: 100%;
}

.lpre-location-select {
    width: 100%;
    height: 50px;
    padding: 0 45px 0 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    transition: border-color 0.3s ease;
}

.lpre-location-select:focus {
    outline: none;
    border-color: #C67353;
}

/* Search Button Row */
.lpre-search-button-row {
    display: flex;
    justify-content: center;
}

.lpre-search-button {
    width: 100%;
    height: 50px;
    background: #C67353;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lpre-search-button:hover {
    background: #b05f44;
}

.lpre-search-text {
    font-size: 16px;
    color: inherit;
}

/* Custom Date Picker */
.lpre-date-picker {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    padding: 1rem;
    min-width: 300px;
}

.lpre-date-picker.active {
    display: block;
}

.lpre-date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.lpre-date-picker-nav {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.lpre-date-picker-nav:hover {
    color: #C67353;
}

.lpre-date-picker-month {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.lpre-date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.lpre-date-picker-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    padding: 0.5rem 0;
}

.lpre-date-picker-day {
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #333;
}

.lpre-date-picker-day:hover {
    background: #f0f0f0;
}

.lpre-date-picker-day.selected {
    background: #C67353;
    color: #fff;
}

.lpre-date-picker-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.lpre-date-picker-day.today {
    font-weight: 600;
    border: 2px solid #C67353;
}

/* Custom Time Picker */
.lpre-time-picker {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    padding: 1rem;
    min-width: 200px;
}

.lpre-time-picker.active {
    display: block;
}

.lpre-time-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.lpre-time-picker-time {
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #e0e0e0;
}

.lpre-time-picker-time:hover {
    background: #f0f0f0;
    border-color: #C67353;
}

.lpre-time-picker-time.selected {
    background: #C67353;
    color: #fff;
    border-color: #C67353;
}

/* Responsive */
@media (max-width: 768px) {
    .lpre-restaurant-search-section {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    .lpre-search-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .lpre-search-top-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lpre-date-input,
    .lpre-time-input,
    .lpre-people-select {
        border-radius: 10px !important;
        border: 2px solid #e0e0e0 !important;
    }
    
    .lpre-date-picker,
    .lpre-time-picker {
        left: 0;
        right: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lpre-search-title {
        font-size: 1.25rem;
    }
    
    .lpre-date-input,
    .lpre-time-input,
    .lpre-people-select,
    .lpre-location-select,
    .lpre-search-button {
        height: 45px;
        font-size: 0.95rem;
    }
}

