/* Modern Search Form Styling - Completely new design */
.ofy-search-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Tab styling */
.search-tabs {
    position: relative;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    background: rgb(255, 255, 255);
    border-radius: 50px;
    max-width: 320px;
    margin: 0 auto;
    padding: 6px;
    position: relative;
    z-index: 20;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-button {
    border: none;
    background: none;
    color: #0D4E88;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.tab-button.active,
.tab-button:hover {
    background: #0D4E88 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(13, 78, 136, 0.25);
}

.tab-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: -20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form styling */
.search-form {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0 0;
}

/* Floating label styling */
.custom-dropdown {
    position: relative;
}

.dropdown-label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #666;
    font-size: 16px;
    pointer-events: none;
    transition: 0.2s ease all;
    background: transparent;
    z-index: 1;
    opacity: 0; /* Başlangıçta görünmez */
}

.custom-dropdown.has-value .dropdown-label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #0D4E88;
    background: white;
    padding: 0 4px;
    opacity: 1; /* Değer seçildiğinde görünür */
}

.form-field {
    flex: 1;
    position: relative;
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

/* Custom dropdown styling */
.custom-dropdown {
    position: relative;
    user-select: none;
}

.dropdown-trigger {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    height: 55px;
}

.dropdown-trigger:hover {
    border-color: #0D4E88;
    background-color: #f0f7ff;
}

.dropdown-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #0D4E88;
    border-bottom: 2px solid #0D4E88;
    transform: rotate(45deg);
    transition: all 0.2s ease;
    margin-left: 5px;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.custom-dropdown.open .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content {
    max-height: 300px;
    overflow-y: auto;
}

/* Location dropdown specific styling */
.region-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.region-header {
    background: #f5f5f5;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.location-list {
    padding: 5px 0;
}

.location-option {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.location-option:hover {
    background-color: #f0f7ff;
}

.location-option.selected {
    background-color: #e8f0fe;
    color: #0D4E88;
}

.location-option.indent {
    padding-left: 30px;
}

.location-option.double-indent {
    padding-left: 60px;
}

.tour-count {
    font-size: 12px;
    background: #f0f0f0;
    color: #666;
    border-radius: 20px;
    padding: 3px 8px;
    min-width: 25px;
    text-align: center;
}

/* Activities dropdown specific styling */
.activity-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.activity-option:hover {
    background-color: #f0f7ff;
}

.activity-option.selected {
    background-color: #e8f0fe;
    color: #0D4E88;
}

.loading-placeholder,
.loading-indicator,
.no-results,
.error {
    padding: 15px;
    text-align: center;
    color: #666;
}

.loading-indicator {
    color: #0D4E88;
}

.error {
    color: #d32f2f;
}

/* Search button styling */
.search-button-field {
    max-width: 80px;
    min-width: 80px;
}

.search-button {
    background: #0D4E88;
    border: none;
    color: white;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(13, 78, 136, 0.15);
}

.search-button:hover {
    background: #083b6a;
    box-shadow: 0 5px 15px rgba(13, 78, 136, 0.2);
    transform: translateY(-2px);
}

.search-button svg {
    stroke: currentColor;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-field {
        width: 100%;
    }
    
    .search-button-field {
        max-width: 100%;
    }
    
    .tab-content {
        padding: 25px 15px;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}