/**
 * Professional Search Bar Styles
 * World-Class Standards
 */

/* Search Wrapper */
.wcs-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: visible;
    margin-top: -4rem;
    z-index: 40;
}

.wcs-search-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Search Card */
.wcs-search-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Search Header */
.wcs-search-header {
    background: linear-gradient(135deg, #0066CC 0%, #0052a3 100%);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #004d99;
}

.wcs-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.wcs-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wcs-status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.wcs-search-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.wcs-search-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Listing Search */
.wcs-listing-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wcs-listing-label {
    font-size: 0.875rem;
    color: white;
    font-weight: 500;
}

.wcs-listing-input {
    width: 120px;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
}

.wcs-listing-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Search Tabs */
.wcs-search-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    padding: 0 1rem;
    background: #f9fafb;
    overflow-x: auto;
    scrollbar-width: none;
}

.wcs-search-tabs::-webkit-scrollbar {
    display: none;
}

.wcs-tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.wcs-tab-button:hover {
    color: #0066CC;
    background: rgba(0, 102, 204, 0.05);
}

.wcs-tab-button.active {
    color: #0066CC;
    border-bottom-color: #0066CC;
    background: white;
}

.wcs-tab-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Form Container */
.wcs-form-container {
    padding: 1.5rem;
}

.wcs-search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

/* Form Field */
.wcs-form-field {
    position: relative;
}

.wcs-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.wcs-input-wrapper {
    position: relative;
}

.wcs-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: #9ca3af;
    pointer-events: none;
    z-index: 10;
}

/* Input & Select Styles */
.wcs-search-input,
.wcs-search-select {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #111827;
    background: white;
    transition: all 0.2s;
}

.wcs-search-input:focus,
.wcs-search-select:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.wcs-search-input::placeholder {
    color: #9ca3af;
}

/* Guest Selector */
.wcs-guest-selector {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #111827;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.wcs-guest-selector:hover {
    border-color: #0066CC;
}

/* Guest Dropdown */
.wcs-guest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    padding: 1rem;
}

.wcs-guest-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.wcs-guest-section:last-child {
    border-bottom: none;
}

.wcs-guest-info {
    display: flex;
    flex-direction: column;
}

.wcs-guest-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}

.wcs-guest-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
}

.wcs-guest-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wcs-guest-counter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    color: #111827;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wcs-guest-counter:hover:not(:disabled) {
    border-color: #0066CC;
    color: #0066CC;
}

.wcs-guest-counter:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wcs-guest-count {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    min-width: 2rem;
    text-align: center;
}

/* Child Ages */
.wcs-child-ages {
    padding-top: 1rem;
    margin-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.wcs-child-age-item {
    display: flex;
    align-items: center;
    justify-between;
    margin-bottom: 0.75rem;
}

.wcs-child-age-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.wcs-child-age-select {
    width: 120px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #111827;
}

/* Search Button */
.wcs-search-button-wrapper {
    display: flex;
    align-items: flex-end;
}

.wcs-search-button {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0066CC 0%, #0052a3 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wcs-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.wcs-search-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Form Footer */
.wcs-form-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.wcs-footer-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

/* Responsive */
@media (max-width: 1023px) {
    .wcs-search-form {
        grid-template-columns: 1fr;
    }
    
    .wcs-search-wrapper {
        margin-top: -2rem;
    }
}

@media (max-width: 767px) {
    .wcs-search-wrapper {
        margin-top: 0;
        padding-top: 1rem;
    }
    
    .wcs-search-card {
        border-radius: 0.75rem;
    }
    
    .wcs-search-header {
        padding: 0.75rem 1rem;
    }
    
    .wcs-header-left {
        flex: 1;
    }
    
    .wcs-listing-search {
        width: 100%;
        justify-content: flex-end;
    }
    
    .wcs-form-container {
        padding: 1rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

