/* static/css/travel.css - Travel Section Styles */

/* ── Travel Filter Bar ──────────────────────────────────── */
.travel-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    background: #f0f5ee;
    padding: 12px 20px;
    border-radius: 60px;
}

.travel-filter-bar select {
    border: none;
    background: white;
    padding: 10px 18px;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: 1px solid #dce8da;
    transition: 0.2s;
    cursor: pointer;
}

.travel-filter-bar select:focus {
    outline: 2px solid var(--mt-green);
}

.travel-filter-bar input {
    border: none;
    background: white;
    padding: 10px 18px;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.9rem;
    flex: 1;
    min-width: 150px;
    outline: 1px solid #dce8da;
    transition: 0.2s;
}

.travel-filter-bar input:focus {
    outline: 2px solid var(--mt-green);
}

.travel-filter-bar button {
    background: var(--mt-green);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.travel-filter-bar button:hover {
    background: var(--mt-green-dark);
}

/* ── Search Forms ────────────────────────────────────────── */
.travel-search-form {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #eef3ea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    animation: slideDown 0.3s ease-out;
}

.travel-search-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.travel-search-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #1a2c1a;
}

.travel-search-form label i {
    color: var(--mt-green);
}

.travel-search-form select,
.travel-search-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eef3ea;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.travel-search-form select:focus,
.travel-search-form input:focus {
    outline: none;
    border-color: var(--mt-green);
}

.travel-search-form .search-btn {
    width: 100%;
    background: var(--mt-green);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.travel-search-form .search-btn:hover {
    background: var(--mt-green-dark);
    transform: translateY(-2px);
}

/* ── Travel Cards ────────────────────────────────────────── */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}

.travel-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid #e6f0e4;
    transition: all 0.2s;
}

.travel-card:hover {
    border-color: var(--mt-green);
    box-shadow: 0 8px 18px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.travel-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.travel-card.coming-soon:hover {
    transform: none;
    border-color: #e6f0e4;
    box-shadow: none;
}

.travel-icon {
    background: #e9f5e8;
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--mt-green);
    flex-shrink: 0;
}

.travel-detail {
    flex: 1;
}

.travel-detail h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.travel-detail p {
    color: #5e7a5e;
    font-size: 0.9rem;
    margin: 2px 0;
}

.travel-detail .travel-meta {
    font-size: 0.8rem;
    color: #6e8b6e;
}

.travel-price {
    font-weight: 700;
    color: var(--mt-green);
    font-size: 1.1rem;
    white-space: nowrap;
}

.coming-soon-badge {
    background: #ffc107;
    color: #856404;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 8px;
}

/* ── Spinner ──────────────────────────────────────────────── */
.travel-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--mt-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Loading ──────────────────────────────────────────────── */
.travel-loading {
    text-align: center;
    padding: 40px;
}

.travel-loading p {
    color: #6e8b6e;
    margin-top: 16px;
}

/* ── No Results ──────────────────────────────────────────── */
.travel-no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #eef3ea;
}

.travel-no-results i {
    font-size: 48px;
    color: #cce0cc;
    margin-bottom: 16px;
}

.travel-no-results h3 {
    color: #1a2c1a;
}

.travel-no-results p {
    color: #6e8b6e;
}

/* ── Coming Soon Banner ──────────────────────────────────── */
.travel-coming-soon-banner {
    grid-column: 1/-1;
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ffc107;
    text-align: center;
}

.travel-coming-soon-banner i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.travel-coming-soon-banner h3 {
    margin: 0;
}

.travel-coming-soon-banner p {
    margin: 8px 0 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .travel-filter-bar {
        border-radius: 20px;
        padding: 16px;
        flex-direction: column;
    }

    .travel-filter-bar select,
    .travel-filter-bar input {
        width: 100%;
    }

    .travel-filter-bar button {
        width: 100%;
    }

    .travel-search-form .form-grid {
        grid-template-columns: 1fr;
    }

    .travel-grid {
        grid-template-columns: 1fr;
    }

    .travel-card {
        flex-wrap: wrap;
    }

    .travel-price {
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .travel-card {
        padding: 12px;
        gap: 12px;
    }

    .travel-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .travel-detail h4 {
        font-size: 0.95rem;
    }

    .travel-detail p {
        font-size: 0.8rem;
    }
}