:root {
    --primary: #ffcc00; /* Amber from Mexico logos */
    --accent: #00d4ff;  /* Cyan from Costa Rica */
    --bg: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --radius: 16px;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-back:hover {
    color: var(--primary);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

/* Header */
.header {
    padding: 4rem 0;
    text-align: center;
}

.header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.header h1 span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.4rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--primary);
    color: #000;
}

.search-wrap input {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    width: 300px;
    font-family: inherit;
}

/* Grid & Cards */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.tour-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.tour-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.tour-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.tour-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
}

.tour-content {
    padding: 1.5rem;
}

.tour-meta {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.tour-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.tour-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.btn-book {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary);
    transition: opacity 0.3s;
}

.btn-book:hover {
    opacity: 0.7;
}

/* Error/Loader */
.loader, .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specialized Layouts */
.airline-info {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.flight-card {
    border-left: 4px solid var(--accent);
}

.package-card {
    border-left: 4px solid var(--primary);
}

.package-card .offer-tag {
    background: var(--primary);
}

/* Member Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.user-info span {
    font-weight: 600;
    color: var(--primary);
}

.btn-logout {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #ff4d4d;
    color: #fff;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    .search-wrap input {
        width: 100%;
    }
}
