/* =============================================
   DESTINATION HERO STYLES
   ============================================= */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hero Container */
.destination-hero-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Hero Price Promise */
.hero-price-promise {
    max-width: 600px;
    text-align: center;
    color: white;
    margin-top: 20px;
    padding: 0 15px;
}

.hero-price-promise h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-price-promise p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* =============================================
   SEARCH BOX STYLES
   ============================================= */

.destination-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.destination-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.destination-search-input:focus {
    border-color: #FF6B35;
    outline: none;
}

.search-instructions {
    color: white;
    margin-top: 15px;
    font-size: 1rem;
    opacity: 0.8;
    text-align: center;
}

.search-instructions i {
    margin-right: 6px;
    color: #FF6B35;
}

/* Prominent Search Box */
/* Prominent Search Box */
.search-prominent {
    max-width: 70%;  /* Changed from 650px */
    width: 70%;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    padding: 5px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: pulse-glow 2s ease-in-out 3;
    width: 100%;
}

.search-box-wrapper .destination-search-input {
    min-width: 0; /* Prevents flex overflow - stops text cutoff */
}

.search-box-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.search-box-wrapper:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: 20px;
    color: #FF6B35;
    font-size: 1.2rem;
    z-index: 2;
}

.search-prominent .destination-search-input {
    border: none;
    padding: 18px 60px 18px 50px;
    font-size: 1.1rem;
    border-radius: 50px;
    width: 100%;
    background: transparent;
}

.search-prominent .destination-search-input:focus {
    outline: none;
    border: none;
}

.search-prominent .destination-search-input::placeholder {
    color: #888;
    font-style: italic;
}

.search-arrow {
    position: absolute;
    right: 8px;
    background: #FF6B35;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.search-arrow:hover {
    background: #e55a2b;
    transform: scale(1.05);
}

/* Pulse animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 107, 53, 0.2);
    }
    100% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
}

/* =============================================
   SEARCH RESULTS DROPDOWN
   ============================================= */

.destination-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 5px;
    display: none;
    z-index: 1000;
}

.destination-result-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.destination-result-item:last-child {
    border-bottom: none;
}

.destination-result-item:hover {
    background: #f5f5f5;
}

.destination-highlight {
    color: #FF6B35;
    font-weight: 600;
}

.destination-timezone {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.destination-parent {
    color: #666;
    font-size: 0.85em;
    margin-left: 5px;
    font-weight: normal;
}

/* Loading and error states */
.searching,
.error,
.no-results {
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Prevent body scroll when results are shown */
body.results-shown {
    overflow: hidden;
}

/* =============================================
   HERO MOBILE STYLES
   ============================================= */

@media (max-width: 768px) {
    .destination-hero-container {
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        padding: 20px;
        justify-content: flex-start;
        padding-top: 60px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-price-promise {
        padding: 0 20px;
        margin-top: 15px;
    }

    .hero-price-promise h3 {
        font-size: 1.1rem;
    }

    .hero-price-promise p {
        font-size: 0.9rem;
    }

    /* Search container mobile */
    .destination-search-container {
        width: 90%;
        margin: 0 auto;
    }

    .destination-search-input {
        height: 48px;
        font-size: 16px;
        -webkit-appearance: none;
        padding: 12px 20px;
    }

    .search-instructions {
        font-size: 0.9rem;
        margin-top: 10px;
    }

    /* Prominent search mobile */
    .search-prominent {
        width: 95%;
        max-width: 95%;
    }
    
    .search-prominent .destination-search-input {
        padding: 15px 55px 15px 45px;
        font-size: 1rem;
    }
    
    .search-box-wrapper .search-icon {
        left: 15px;
        font-size: 1rem;
    }
    
    .search-arrow {
        width: 40px;
        height: 40px;
        right: 6px;
    }

    /* Search results mobile */
    .destination-search-results {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 75vh;
        height: fit-content;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .destination-result-item {
        padding: 16px 20px;
        min-height: 44px;
    }

    .destination-result-item a {
        display: block;
        padding: 8px 0;
    }

    .destination-result-item:active {
        background-color: #f0f0f0;
    }

    .destination-results-list {
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-width: 480px) {
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .destination-search-container {
        width: 95%;
    }

    .destination-search-results {
        max-height: 85vh;
    }
}