.search-container {
    position: relative;
    max-width: min(600px, 90%);
    margin: 0 auto;
    z-index: 100;
    background: #ffffff;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.search-modal .search-container {
    background: var(--white);
    box-shadow: none;
    border: 1px solid var(--border);
}

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.search-modal {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 90%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.search-input i {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 1.125rem;
    pointer-events: none;
}

.search-input input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: none;
    font-size: 1rem;
    background: transparent;
    color: #1e293b;
}

.search-input input:focus {
    outline: none;
}

.btn-search {
    padding: 12px 24px;
    background: var(--success);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.btn-search:hover {
    background: #0D9488;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.search-results {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 350px;
    overflow-y: auto;
    z-index: 98;
    border-top: 1px solid rgba(226, 232, 240, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.search-container.with-results {
    border-radius: 24px 24px 0 0;
}

.search-container.with-results .search-results {
    opacity: 1;
    visibility: visible;
}

.search-group {
    border-bottom: 1px solid #e2e8f0;
}

.search-group:last-child {
    border-bottom: none;
}

.search-group-title {
    padding: 12px 20px 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(248, 250, 252, 0.8);
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.search-result {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #1e293b;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.search-result:hover {
    background-color: #f1f5f9;
}

.search-result i {
    font-size: 1rem;
    color: #3b82f6;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.hotel-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    align-items: start;
}

.city-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hotel-name, .city-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
}

.hotel-rating {
    color: #eab308;
    font-size: 0.75rem;
    line-height: 1;
}

.result-icon {
    color: #3b82f6;
    font-size: 1.125rem;
    opacity: 0.9;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.result-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-stars {
    color: #ffd700;
    font-size: 0.875rem;
}

.result-location {
    font-size: 0.8125rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-arrow {
    color: #94a3b8;
    font-size: 0.875rem;
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
    color: #64748b;
}

.no-results-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.9;
    background: #f1f5f9;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.no-results-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #64748b;
}

.search-loading {
    padding: 16px;
}

.search-skeleton {
    height: 24px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.search-skeleton:last-child {
    margin-bottom: 0;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.nav-search {
    position: relative;
    width: 100%;
}

.nav-search .search-input {
    width: 100%;
}

.nav-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

@media (max-width: 768px) {
    .search-container {
        position: relative;
        max-width: calc(100% - 32px);
        margin: var(--spacing-md) auto;
        border-radius: 20px;
    }

    .search-input {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
        padding: var(--spacing-sm);
    }

    .search-input-wrapper {
        width: 100%;
    }

    .btn-search {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .search-container.with-results {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .search-results {
        top: calc(100% - 8px);
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
        margin-top: 0;
    }

    .nav-search-results {
        position: fixed;
        top: 64px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 80px);
        border-radius: 24px;
    }
    
    .search-container {
        max-width: 100%;
        margin: 16px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .search-container {
        max-width: calc(100% - 24px);
    }

    .btn-search {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }
}