/* --- Keep original site styles intact --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', 'Noto Sans Georgian', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.hero-background {
    background-image: url('https://cdn.pixabay.com/photo/2022/05/19/08/11/plane-7206856_1280.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.feature-button {
    transition: all 0.2s ease-in-out;
}

.feature-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- REFACTORED/NEW Styles for the search form --- */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.tag {
    display: flex;
    align-items: center;
    background: #e5e7eb;
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #4b5563;
}

.tag-input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 6px;
    font-size: 16px;
    min-width: 120px;
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    width: 100%;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    z-index: 250;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    /* 12px */
    padding: 0.5rem 0.75rem;
    /* 8px 12px */
    transition: all 0.2s ease-in-out;
}

.search-input-group:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.search-input-group .icon {
    color: #6b7280;
    margin-right: 0.5rem;
}

input[type="text"].search-input,
#tripType {
    width: 100%;
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 1rem;
}

#tripType {
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    font-weight: 500;
}

/* --- End of refactored styles --- */

#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;
}