/* ============================================
   NICETrip - Estilo principal
   Autores: Keying Zhu, Zhengxin Liu
   Fecha: 19/03/2026
   ============================================ */

/* ---------- RESET Y BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2E86DE;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 3px solid #2ECC71;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.3rem;
    color: #2ECC71;
}

header {
    background-color: #2E86DE;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    border-bottom-color: #2ECC71;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.meta {
    color: #777;
    font-size: 0.9rem;
    border-left: 4px solid #2ECC71;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card h3 {
    padding: 1rem 1rem 0 1rem;
}

.card p {
    padding: 0 1rem 1rem 1rem;
    color: #555;
}

.card .precio {
    color: #2ECC71;
    font-weight: bold;
    padding: 0 1rem 1rem 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

caption {
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: left;
    color: #2E86DE;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #2E86DE;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.newsletter {
    background-color: #f0f7ff;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

.newsletter input {
    padding: 0.75rem;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-right: 0.5rem;
}

.btn {
    background-color: #2ECC71;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #27ae60;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: #2ECC71;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ============================================
   搜索框样式（简单版）
   ============================================ */

/* 页眉搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 5px 10px;
}

.search-box input {
    border: none;
    padding: 8px;
    font-size: 0.9rem;
    width: 160px;
    outline: none;
    border-radius: 20px;
}

.search-box button {
    background: #2ECC71;
    border: none;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.search-box button:hover {
    background: #27ae60;
}

/* 机票搜索区域 (El billete) 简单版 */
.billete-section {
    background: #f0f7ff;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}

.billete-section h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.billete-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.billete-tabs a {
    color: #555;
    text-decoration: none;
    padding: 5px 0;
}

.billete-tabs a:hover {
    color: #2E86DE;
    text-decoration: underline;
}

.billete-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 140px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #2E86DE;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: #2ECC71;
}

.billete-btn {
    background: #2ECC71;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.billete-btn:hover {
    background: #27ae60;
}

/* 响应式 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .grid-cards {
        grid-template-columns: 1fr;
    }
    
    .newsletter input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .search-box input {
        width: 120px;
    }
    
    .billete-form {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
}