/* Modern UI Enhancements for AirAnju */

/* General & Typography */
body {
    background-color: #f8f9fa; /* Softer, modern background */
    color: #4a4a4a;
}

h1, h2, h3, h4, h5, h6 {
    color: #2d3436;
}

/* Section Styling */
.section-title h2 {
    font-weight: 800;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* .section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: #f9b90f;
    border-radius: 2px;
} */

.section-title p {
    font-size: 1rem;
    color: #636e72;
    margin-top: 10px;
}

/* Hero & Search Section */
.hero-section .overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.home-intro h2.modern-hero-title {
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    font-weight: 900;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.home-intro h3.modern-hero-subtitle {
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Airbnb-Style Search Box */
.airbnb-search-wrapper {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    direction: rtl; /* Ensure RTL layout */
}

.airbnb-search-bar {
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15) !important;
    border-radius: 40px !important;
    padding: 0 !important;
    border: 1px solid #DDDDDD !important;
    display: flex;
    align-items: center;
    height: 66px;
    position: relative;
}

.airbnb-search-item {
    flex: 1;
    position: relative;
    padding: 14px 24px !important;
    transition: background 0.2s;
    border-radius: 32px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.airbnb-search-item:hover {
    background: #EBEBEB;
}

/* Specific item widths (approximate Airbnb proportions) */
.location-item {
    flex: 1.5;
}

.date-item {
    flex: 1;
}

.guest-item {
    flex: 1;
    padding-right: 24px !important; /* Adjust padding for visual balance */
}

/* Labels */
.airbnb-search-item label {
    font-size: 12px;
    font-weight: 800;
    color: #222222;
    margin-bottom: 2px;
    display: block;
    cursor: pointer;
    line-height: 16px;
}

/* Inputs & Placeholders */
.airbnb-search-item input {
    font-weight: 400;
    color: #222222;
    border: none;
    padding: 0;
    height: auto;
    background: transparent;
    font-size: 14px;
    width: 100%;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.airbnb-search-item input::placeholder {
    color: #717171;
    font-weight: 400;
}

.date-placeholder {
    font-size: 14px;
    color: #717171;
    font-weight: 400;
    line-height: 18px;
}

/* Dividers */
.airbnb-divider {
    width: 1px;
    height: 32px;
    background-color: #DDDDDD;
    flex-shrink: 0;
}

.airbnb-search-item:hover + .airbnb-divider,
.airbnb-divider:hover {
    opacity: 0; /* Hide divider when hovering adjacent items */
}

/* Search Button Wrapper */
.airbnb-search-btn-wrapper {
    padding: 8px;
}

/* Search Button */
.airbnb-search-btn {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    background: #FF385C !important; /* Airbnb Pink - or stick to brand #f9b90f if preferred */
    color: #fff !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

/* Expand button on larger screens/states (optional, keeping it simple icon for now as per Airbnb default view) */
.airbnb-search-btn span {
    display: none;
    margin-right: 8px;
    font-weight: 600;
    font-size: 16px;
}

/* Hover effect for button */
.airbnb-search-btn:hover {
    background: #E00B41 !important; /* Darker pink */
}

/* Sort Dropdown Styling */
.list-main-wrap-opt .nice-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: 45px;
    line-height: 43px;
    padding-left: 18px;
    padding-right: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    float: none;
    display: inline-block;
    vertical-align: middle;
    min-width: 180px;
}

.list-main-wrap-opt .nice-select:after {
    border-bottom: 2px solid #999;
    border-right: 2px solid #999;
    height: 8px;
    width: 8px;
    right: 15px;
}

.list-main-wrap-opt .nice-select .list {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 5px;
    width: 100%;
}

.list-main-wrap-opt .nice-select .option {
    padding-right: 18px;
    text-align: right;
    min-height: 40px;
    line-height: 40px;
}

.list-main-wrap-opt .nice-select .option.selected {
    font-weight: bold;
    background-color: #f5f5f5;
}

.list-main-wrap-opt .nice-select .option:hover {
    background-color: #f9f9f9;
    color: #3270FC; /* Brand color */
}

.price-opt-title {
    font-weight: 600;
    color: #2d3436;
    margin-left: 10px;
}

/* Responsive Search Form */
@media (max-width: 768px) {
    .airbnb-search-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }

    .airbnb-search-bar {
        flex-direction: column;
        height: auto;
        border-radius: 24px !important;
        padding: 8px !important;
    }

    .airbnb-search-item {
        width: 100%;
        padding: 12px 20px !important;
        border-radius: 12px;
        margin-bottom: 4px;
    }
    
    .airbnb-search-item:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
    }

    .airbnb-divider {
        display: none;
    }

    .airbnb-search-btn-wrapper {
        width: 100%;
        padding: 8px 0 0 0;
    }

    .airbnb-search-btn {
        width: 100%;
        height: 48px;
        border-radius: 12px !important;
    }

    .airbnb-search-btn span {
        display: inline-block;
        margin-right: 8px;
    }
}
