/**
 * Hero Block - Split-Screen Design
 * 
 * Left panel (60%): Background image with decorative text
 * Right panel (40%): Content panel with booking widget
 */

/* ==========================================================================
   Hero Container
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-background-dark, #4A5D4A);
}

.hero--split {
    display: block;
}

.hero__left {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__image,
.hero__video,
.hero__poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__video {
    z-index: 1;
}

.hero__poster {
    z-index: 0;
}

.hero__slideshow {
    width: 100%;
    height: 100%;
}

.hero__slideshow .splide__track,
.hero__slideshow .splide__list,
.hero__slideshow .splide__slide {
    height: 100%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(74, 93, 74, 0.3) 0%,
        transparent 30%,
        transparent 60%,
        rgba(74, 93, 74, 0.7) 100%
    );
}

/* Left panel decorative content */
.hero__left-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 10;
    color: var(--color-text-light, #ffffff);
}

.hero__left-subtitle {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero__left-tagline {
    margin: 0;
    font-family: var(--font-primary, 'Playfair Display', Georgia, serif);
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.1;
}

.booking-widget__fields {
    display: flex;
    gap: 1rem;
}

.booking-widget__field {
    flex: 1;
}

.booking-widget__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-dark, #4A5D4A);
    opacity: 0.6;
}

.booking-widget__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background-color: #ffffff;
    border: 1px solid var(--color-border-light);
    transition: border-color 0.2s ease;
}

.booking-widget__input-wrapper:focus-within {
    border-color: var(--color-accent, #8A9A6E);
}

.booking-widget__icon {
    flex-shrink: 0;
    color: var(--color-text-dark, #4A5D4A);
    opacity: 0.5;
}

.booking-widget__input,
.booking-widget__select {
    flex: 1;
    width: 100%;
    padding: 0;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-dark, #4A5D4A);
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.booking-widget__input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.booking-widget__select {
    padding-right: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5D4A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

/* Date display text */
.booking-widget__date-display {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-dark, #4A5D4A);
    cursor: pointer;
}

/* Hidden date input that overlays the display */
.booking-widget__input--hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.booking-widget__input-wrapper--date {
    position: relative;
}

/* Submit Button */
.booking-widget__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-dark, #4A5D4A);
    background-color: var(--color-accent, #8A9A6E);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.booking-widget__submit:hover,
.booking-widget__submit:focus {
    background-color: var(--color-accent-hover, #6d7d5a);
    transform: translateY(-1px);
}

.booking-widget__submit-arrow {
    transition: transform 0.2s ease;
}

.booking-widget__submit:hover .booking-widget__submit-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Animations
   ========================================================================== */

.hero__left-content {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__rating {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero__title {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__description {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.booking-widget {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */

@media (max-width: 1024px) {
    .hero__left {
        flex: 0 0 55%;
    }
    
    .hero__right {
        flex: 0 0 45%;
        padding: 5rem 2rem 2rem;
    }
    
    .hero__left-content {
        left: 2rem;
        bottom: 2rem;
    }
    
    .hero__left-tagline {
        font-size: 2.5rem;
    }
    
    .hero__title {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 768px) {
    .hero--split {
        flex-direction: column;
    }
    
    .hero__left {
        flex: none;
        min-height: 50vh;
        height: 100vh;
    }
    
    .hero__right {
        flex: none;
        min-height: auto;
        padding: 2rem 1.5rem 3rem;
    }
    
    .hero__left-content {
        left: 1.5rem;
        bottom: 1.5rem;
    }
    
    .hero__left-subtitle {
        font-size: 0.625rem;
    }
    
    .hero__left-tagline {
        font-size: 2rem;
    }
    
    .hero__title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .hero__description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .booking-widget__fields {
        flex-direction: column;
    }
    
    .booking-widget__input-wrapper {
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   Responsive - Small Mobile
   ========================================================================== */

@media (max-width: 480px) {
    .hero__left {
        height: 100vh;
        min-height: 300px;
    }
    
    .hero__left-tagline {
        font-size: 1.75rem;
    }
    
    .hero__title {
        font-size: 1.625rem;
    }
    
    .hero__right {
        padding: 1.5rem 1rem 2rem;
    }
}
