/* ==========================================================================
   Hotel Home Page - Modern Search UI
   ========================================================================== */

/* Hero Section */
.hotel-hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 120px;
    overflow: hidden;
}

.hotel-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hotel-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hotel-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hotel-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 0;
}

/* Search Form Container */
.hotel-search-container {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 60px;
}

.hotel-search-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 32px;
}

.hotel-search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.hotel-search-field {
    flex: 1;
    position: relative;
}

.hotel-search-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.hotel-search-field-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: #111827;
    background: #f9fafb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hotel-search-field-input:hover {
    border-color: #d1d5db;
    background: #fff;
}

.hotel-search-field-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hotel-search-field-input::placeholder {
    color: #9ca3af;
}

/* Search Button */
.hotel-search-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 180px;
    justify-content: center;
}

.hotel-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.hotel-search-button:active {
    transform: translateY(0);
}

.hotel-search-button i {
    font-size: 1.125rem;
}

/* Destination Popup */
.hotel-destination-popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.hotel-destination-popup.active {
    display: block;
    animation: hotelFadeSlideUp 0.2s ease;
}

.hotel-popup-section {
    padding: 16px;
}

.hotel-popup-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.hotel-destination-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.hotel-destination-item:hover {
    background: #f3f4f6;
}

.hotel-destination-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 12px;
    flex-shrink: 0;
}

.hotel-destination-info {
    flex: 1;
}

.hotel-destination-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.hotel-destination-country {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Date Picker Popup */
.hotel-date-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: none;
    min-width: 320px;
}

.hotel-date-popup.active {
    display: block;
    animation: hotelFadeSlideUp 0.2s ease;
}

.hotel-date-quick-select {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hotel-date-quick-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hotel-date-quick-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f9fafb;
}

.hotel-date-quick-btn.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.hotel-date-display {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.hotel-date-display-text {
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
}

.hotel-date-nights {
    color: #667eea;
    font-weight: 600;
}

/* Guest Selector Popup */
.hotel-guest-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: none;
    min-width: 280px;
}

.hotel-guest-popup.active {
    display: block;
    animation: hotelFadeSlideUp 0.2s ease;
}

.hotel-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.hotel-guest-row:last-child {
    border-bottom: none;
}

.hotel-guest-label {
    font-weight: 500;
    color: #374151;
}

.hotel-guest-sublabel {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.hotel-guest-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hotel-guest-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-guest-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    background: #f9fafb;
}

.hotel-guest-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hotel-guest-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #111827;
}

.hotel-guest-apply-btn {
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hotel-guest-apply-btn:hover {
    background: #5568d8;
}

/* Popular Destinations Section */
.hotel-popular-destinations {
    padding: 60px 0;
    background: #f9fafb;
}

.hotel-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.hotel-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.hotel-section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.hotel-destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.hotel-destination-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.hotel-destination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.hotel-destination-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hotel-destination-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.hotel-destination-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hotel-destination-card-count {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Animations */
@keyframes hotelFadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1023px) {
    .hotel-search-form {
        flex-wrap: wrap;
    }

    .hotel-search-field {
        flex: 1 1 calc(50% - 8px);
    }

    .hotel-search-button {
        flex: 1 1 100%;
        margin-top: 8px;
    }

    .hotel-hero-title {
        font-size: 2.5rem;
    }

    .hotel-destinations-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .hotel-hero-section {
        padding: 60px 0 100px;
    }

    .hotel-hero-title {
        font-size: 2rem;
    }

    .hotel-hero-subtitle {
        font-size: 1rem;
    }

    .hotel-search-box {
        padding: 20px;
    }

    .hotel-search-field {
        flex: 1 1 100%;
    }

    .hotel-destinations-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .hotel-section-title {
        font-size: 1.75rem;
    }

    .hotel-section-subtitle {
        font-size: 1rem;
    }
}
