/* --- Keep original site styles intact --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', 'Noto Sans Georgian', sans-serif;
    background-color: #fcfcfd;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

.hero-background {
    background-image: url('/bghero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.45);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.feature-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-button:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

/* Scrollbar Modernization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
    border: 3px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* --- REFACTORED Tags Style --- */
.tags-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.tags-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

#destination-tags {
    overflow-x: hidden !important;
}

/* Fix for mobile: Prevent input from pushing the only allowed destination tag out of sight */
#destination-tags .tag+.tag-input {
    flex-grow: 0 !important;
    min-width: 30px !important;
    width: 30px !important;
}

.tag {
    display: flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s;
    user-select: none;
    flex-shrink: 0;
}

.tag:hover {
    transform: scale(1.02);
}

.tag-input {
    flex-grow: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 8px !important;
    font-size: 16px;
    min-width: 80px;
    font-weight: 700;
}

.suggestions-box {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 1.5rem;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 250;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    padding: 8px;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 1rem;
    color: #4b5563;
    font-weight: 600;
    transition: all 0.2s;
}

.suggestion-item:hover {
    background: #f1f5f9;
    color: #4f46e5;
    padding-left: 20px;
}

/* --- Weather Icon Animation --- */
.weather-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

#weather-forecast-widget {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: translateY(15px);
    opacity: 0;
}

#weather-forecast-widget.visible {
    transform: translateY(0);
    opacity: 1;
}

.weather-icon {
    font-size: 2.5rem;
    line-height: 1;
}

#alternativeLinksBox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

#alternativeLinksContent {
    margin-bottom: 1rem;
}

#alternativeLinksContent p {
    line-height: 1.5;
    margin-bottom: 1rem;
}

#closeAlternativeLinks {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
}

#alternativeLinksButtons button {
    margin: 0 0.5rem;
    width: auto;
    display: inline-block;
}

#installBanner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    cursor: default;
    animation: fadeSlide 0.3s ease-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Kiwi Search Results Styles */
.kiwi-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.kiwi-card-header {
    padding: 15px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kiwi-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #00a991;
}

.kiwi-nights-badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.kiwi-journey-section {
    padding: 20px;
}

.kiwi-section-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kiwi-date-label {
    color: #00a991;
    background: #e0f2f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.kiwi-segment {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.kiwi-seg-time {
    min-width: 70px;
    font-weight: 600;
    color: #111827;
    text-align: right;
    padding-right: 15px;
}

.kiwi-seg-path {
    flex-grow: 1;
    border-left: 2px solid #e5e7eb;
    padding-left: 15px;
    padding-bottom: 10px;
}

.kiwi-layover {
    margin: 5px 0 15px 85px;
    background: #fff7ed;
    color: #c2410c;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.kiwi-card-footer {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
}

.kiwi-btn-bing {
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.kiwi-btn-bing:hover {
    background: #2563eb;
}