/**
 * Hero Banner Slider Styles
 */

/* Hero Banner Container */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 120px);
    margin-bottom: 40px;
}

.hero-swiper {
    width: 100%;
    height: calc(100vh - 120px);
    overflow: hidden;
}

/* Slide Background */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 100%);
}

/* Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    color: #fff;
}

/* Typography */
.hero-heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-subheading {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.hero-btn-primary {
    background: #FF5B00;
    color: #fff;
    border-color: #FF5B00;
}

.hero-btn-primary:hover {
    background: #e64f00;
    border-color: #e64f00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 91, 0, 0.4);
}

.hero-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Swiper Active Slide Animations */
.swiper-slide-active .hero-heading,
.swiper-slide-active .hero-subheading,
.swiper-slide-active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper Navigation */
.hero-nav-prev,
.hero-nav-next {
    color: #fff;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-nav-prev:hover,
.hero-nav-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero-nav-prev::after,
.hero-nav-next::after {
    font-size: 20px;
    font-weight: 700;
}

/* Swiper Pagination */
.hero-pagination {
    bottom: 40px !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #FF5B00;
    width: 40px;
    border-radius: 6px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-banner {
        min-height: calc(100vh - 120px);
    }

    .hero-swiper {
        height: calc(100vh - 120px);
    }

    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }

    .hero-heading {
        margin-bottom: 1rem;
    }

    .hero-subheading {
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
    }

    /* Hide navigation arrows on mobile */
    .hero-nav-prev,
    .hero-nav-next {
        display: none;
    }

    .hero-pagination {
        bottom: 20px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        padding: 0 2rem;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {

    .hero-heading,
    .hero-subheading,
    .hero-buttons {
        transition: none;
    }
}

/* Booking Search Filter Bar - Pill Design */
.hero-search-filter {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 20;
    width: 92%;
    max-width: 1000px;
    background: #fff;
    border-radius: 500px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.hero-search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    width: 100%;
    padding: 8px 88px 8px 25px; /* right padding to leave space for absolute button */
    position: relative;
}

/* Fields */
.hero-search-filter .pill-field {
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    background: transparent;
    border-radius: 40px;
    transition: background 0.2s ease;
    padding: 0 15px;
}

.hero-search-filter .location-field {
    flex: 1;
}

.hero-search-filter .date-field {
    flex: 1.1;
}

.hero-search-filter .guest-field {
    flex: 1.3;
}

.hero-search-filter .pill-field:hover {
    background: rgba(0,0,0,0.03);
}

.hero-search-filter .pill-field > i {
    font-size: 24px;
    color: #FF5B00; /* Primary color */
    margin-right: 15px;
}

/* Custom Dropdown */
.custom-dropdown-container {
    position: relative;
}

.hero-search-filter .field-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.custom-dropdown-trigger {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    transition: color 0.2s ease;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 15px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f0f0f0;
}

.custom-dropdown-container.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-item {
    padding: 12px 25px;
    font-size: 15px;
    color: #484848;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.custom-dropdown-item:hover {
    background: #f7f7f7;
}

.custom-dropdown-item.active {
    font-weight: 600;
    color: #FF5A5F;
    background: #fff8f8;
}

/* Specific inputs */
.hero-date-picker {
    font-weight: 500 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #333 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: 100%;
    cursor: pointer;
}

.hero-date-picker::placeholder {
    color: #888 !important;
}

/* Custom Guest Dropdown */
.custom-guest-dropdown-container {
    position: relative;
    overflow: visible !important;
}

.guest-trigger {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.guest-dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    min-width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 10px 25px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f0f0f0;
}

.custom-guest-dropdown-container.open .guest-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.guest-dropdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.guest-dropdown-row:last-child {
    border-bottom: none;
}

.guest-info {
    display: flex;
    flex-direction: column;
}

.guest-title {
    font-size: 15px;
    font-weight: 600;
    color: #6D4C41; /* Brown text matching image */
    margin-bottom: 4px;
}

.guest-subtitle {
    font-size: 13px;
    color: #888;
}

.guest-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guest-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FF5B00; /* Primary color */
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.guest-btn:hover:not(:disabled) {
    border-color: #FF5B00;
    color: #fff;
    background: #FF5B00;
}

.guest-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.guest-count {
    font-size: 15px;
    font-weight: 500;
    color: #6D4C41;
    min-width: 16px;
    text-align: center;
}

.field-divider {
    width: 1px;
    height: 40px;
    background-color: #efefef;
    margin: 0 10px;
}

/* Submit Button */
.hero-search-btn-round {
    background: #FF5B00; /* Primary Color */
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-search-btn-round i {
    font-size: 24px;
    color: #fff !important;
    margin: 0 !important;
}

.hero-search-btn-round:hover {
    background: #e64f00; /* Darker Primary Color */
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 91, 0, 0.4);
}

/* Responsive adjustments for filter bar */
@media (max-width: 900px) {
    .hero-search-filter {
        transform: translate(-50%, 40%);
        width: 95%;
        border-radius: 20px;
        padding: 5px 0;
    }
    .hero-search-form {
        flex-direction: column;
        height: auto;
        padding: 5px 15px;
        gap: 5px;
    }
    .hero-search-filter .pill-field,
    .hero-search-filter .location-field,
    .hero-search-filter .date-field,
    .hero-search-filter .guest-field {
        width: 100%;
        flex: 1 1 100%;
        height: 60px;
        padding: 0 10px;
        border-radius: 12px;
    }
    .hero-search-filter .field-divider {
        display: none;
    }
    
    .hero-search-filter .guest-field {
        padding-right: 60px; /* Space for the button */
        position: relative;
    }
    
    .hero-search-btn-round {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        margin-left: 0;
    }
    
    .hero-search-btn-round:hover {
        transform: translateY(-50%) scale(1.05);
    }
    
    .hero-banner {
        margin-bottom: 200px; /* More space for stacked search form */
    }
}