/**
 * Hero Search Styles
 * Place this file in public/css/turf-booking-hero-search.css
 */

/* Hero Section */
.tb-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Video Container */
.tb-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tb-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-video-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2c3e50);
}

/* Overlay */
.tb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* Content */
.tb-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    color: #fff;
    text-align: center;
    z-index: 3;
}

.tb-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #fff;
    line-height: 1.2;
}

/* Search Container */
.tb-search-container {
    background: #fff;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    margin: 0 auto;
    max-width: 900px;
    overflow: hidden;
    height: 80px;
    align-items: center;
}

.tb-search-box {
    display: flex;
    flex: 1;
    max-width: 100%;
    height: 100%;
}

.tb-search-item {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    border-right: 1px solid #EAEDF0;
    height: 100%;
    padding: 0 15px;
}

.tb-search-item:last-child {
    border-right: none;
}

.tb-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f9f9f9;
    border-radius: 50%;
    margin-right: 12px;
    color: #666;
    flex-shrink: 0;
}

.tb-search-icon i {
    font-size: 16px;
}

.tb-search-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: none;
    justify-content: center;
}

.tb-search-input label {
    display: block;
    font-size: 12px;
    color: #7A7A7A;
    margin-bottom: 3px;
    text-align: left;
    font-weight: 500;
}

.tb-search-input select,
.tb-search-input input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    outline: none;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.tb-search-input select {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" fill="none" viewBox="0 0 12 6"><path fill="%23666" d="M0 0h12L6 6 0 0z"/></svg>') no-repeat right center;
    padding-right: 20px;
}

.tb-search-button {
    background: #eeee22;
    color: #000;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 20px;
    box-shadow: none;
}

.tb-search-button:hover {
    background: #dddd11;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Date picker customization */
.ui-datepicker {
    background-color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 300px;
}

.ui-datepicker .ui-datepicker-header {
    background: none;
    border: none;
    padding: 5px 0;
}

.ui-datepicker .ui-datepicker-title {
    font-weight: 600;
    color: #333;
}

.ui-datepicker th {
    color: #666;
    font-weight: 500;
    font-size: 12px;
}

.ui-datepicker td {
    padding: 3px;
}

.ui-datepicker td span, 
.ui-datepicker td a {
    text-align: center;
    border-radius: 50%;
    padding: 8px;
    transition: all 0.2s;
}

.ui-datepicker td a.ui-state-default {
    background: none;
    border: none;
    color: #333;
}

.ui-datepicker td a.ui-state-default.ui-state-active {
    background-color: #eeee22;
    color: #000;
}

.ui-datepicker td a.ui-state-default.ui-state-highlight {
    background-color: #f9f9f9;
    border: 1px solid #eeee22;
}

.ui-datepicker td a.ui-state-default:hover {
    background-color: #f5f5f5;
}

.ui-datepicker .ui-datepicker-prev, 
.ui-datepicker .ui-datepicker-next {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    top: 7px;
}

.ui-datepicker .ui-datepicker-prev {
    left: 5px;
}

.ui-datepicker .ui-datepicker-next {
    right: 5px;
}

.ui-datepicker .ui-icon {
    background-image: none;
}

/* Loading animation */
.tb-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #eeee22;
    border-radius: 50%;
    animation: tb-spin 1s linear infinite;
    margin-right: 5px;
    vertical-align: middle;
}

@keyframes tb-spin {
    to { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 992px) {
    .tb-search-container {
        border-radius: 20px;
        height: auto;
        flex-direction: column;
        padding: 10px;
    }
    
    .tb-search-box {
        flex-direction: column;
        width: 100%;
    }
    
    .tb-search-item {
        border-right: none;
        border-bottom: 1px solid #EAEDF0;
        padding: 15px;
        width: 100%;
    }
    
    .tb-search-item:last-child {
        border-bottom: none;
    }
    
    .tb-search-button {
        margin: 15px auto 5px;
    }
}

@media (max-width: 768px) {
 .tb-content {
    top: auto;
    left: auto;
    transform: none;
    bottom: 2rem;
}
    .tb-heading {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .tb-heading {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .tb-search-container {
        border-radius: 15px;
    }
}