/**
 * Hero Search Widget Styles
 * Responsive hero section with animated text and rotating backgrounds
 */

/* Container */
.hero-search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

/* Background images container */
.hero-search-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Individual background image */
.hero-search-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-search-bg.active {
    opacity: 1;
}

/* Overlay */
.hero-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Content wrapper */
.hero-search-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

/* Main heading */
.hero-search-heading {
    margin: 0 0 16px 0;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subheading */
.hero-search-subheading {
    margin: 0 0 24px 0;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Animated text container */
.hero-animated-text {
    margin-bottom: 32px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Animated prefix text */
.hero-animated-prefix {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Animated word */
.hero-animated-word {
    display: inline-block;
    min-width: 150px;
    text-align: left;
    font-weight: 700;
}

/* Blinking cursor */
.hero-animated-cursor {
    display: inline-block;
    color: inherit;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Search form */
.hero-search-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Form inner container */
.hero-search-form-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Input wrapper */
.hero-search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    flex: 1;
}

/* Search icon */
.hero-search-icon {
    flex-shrink: 0;
    margin-right: 12px;
    color: #6b7280;
}

/* Input field */
.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1f2937;
    outline: none;
    width: 100%;
}

.hero-search-input::placeholder {
    color: #9ca3af;
}

/* Search button */
.hero-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.hero-search-button:hover {
    transform: translateY(-1px);
}

.hero-search-button:active {
    transform: translateY(0);
}

/* Responsive styles - Tablet and up */
@media (min-width: 768px) {
    .hero-search-form-inner {
        flex-direction: row;
        gap: 0;
    }

    .hero-search-input-wrapper {
        border-radius: 0;
    }

    .hero-search-input-wrapper:first-child {
        border-radius: 6px 0 0 6px;
    }

    .hero-search-main-input {
        border-right: 1px solid #e5e7eb;
    }

    .hero-search-location-input {
        border-right: 1px solid #e5e7eb;
    }

    .hero-search-button {
        border-radius: 0 6px 6px 0;
        padding: 14px 24px;
    }

    .hero-animated-word {
        min-width: 200px;
    }
}

/* Responsive styles - Mobile */
@media (max-width: 767px) {
    .hero-search-content {
        padding: 0 16px;
    }

    .hero-search-heading {
        font-size: 32px !important;
    }

    .hero-search-subheading {
        font-size: 16px !important;
    }

    .hero-animated-text {
        font-size: 20px !important;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        white-space: nowrap;
    }

    .hero-animated-word {
        min-width: auto;
        text-align: left;
    }

    .hero-search-form {
        padding: 12px;
    }

    .hero-search-button {
        width: 100%;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-search-heading {
        font-size: 28px !important;
    }

    .hero-animated-text {
        font-size: 18px !important;
    }
}
