/* ======================================
   JAMM TRAVEL – APP.CSS (global)
   Arquitectura:
   1. Variables (colores, sombras, radios)
   2. Tipografía y body
   3. Layout: header, footer, page-main
   4. Componentes reutilizables (botones, cards)
   5. Tour List (grid + responsive)
   6. Tour Detail (hero + tabs)
   7. Booking Form (UX mejorado)
   8. Dashboard Cliente
   9. Utilidades
   10. Responsive
   ====================================== */


/* ======================================
   1. VARIABLES
   ====================================== */
:root {
    --color-primary: #b97c3f;
    --color-primary-dark: #9c6633;
    --color-secondary: #002e2c;

    --color-bg: #f5f5f7;
    --color-light: #ffffff;
    --color-gray: #e1e1e1;
    --color-gray-dark: #555;

    --color-text: #222;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 5px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.12);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.15);

    --transition: 0.25s ease;
}


/* ======================================
   2. TIPOGRAFÍA & BODY
   ====================================== */
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin: 0 0 10px;
}

p {
    line-height: 1.6;
}


/* ======================================
   3. LAYOUT GLOBAL
   ====================================== */

.page-main {
    padding: 110px 20px 40px;
}


/* HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--color-light);
    padding: 12px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 99;
}

header .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
}

header nav a {
    text-decoration: none;
    margin-left: 18px;
    color: var(--color-secondary);
    font-weight: 600;
}


/* FOOTER */
footer {
    background: var(--color-light);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    color: var(--color-gray-dark);
    font-size: 14px;
}

svg {
    display: inline-block !important;
}


/* ======================================
   4. COMPONENTES
   ====================================== */

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #fff;
}

.btn-secondary:hover {
    opacity: .85;
}

.badge {
    padding: 4px 10px;
    border-radius: var(--radius-lg);
    background: var(--color-gray);
    font-size: 12px;
    display: inline-block;
}


/* CARDS */
.card {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}


/* ======================================
   5. TOUR LIST (GRID + RESPONSIVE)
   ====================================== */

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.tour-card {
    background: var(--color-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tour-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.tour-card .tour-info {
    padding: 15px;
}

.tour-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}


/* ======================================
   6. TOUR DETAIL (HERO + TABS + SIDEBAR)
   ====================================== */

.tour-detail-container {
    max-width: 100%;
    margin: auto;
}

.tour-hero {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

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

.tour-hero-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    padding: 20px;
}

.tour-info {
    background: var(--color-light);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

/* Sidebar Fechas */
.availability-box {
    background: var(--color-light);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.availability-list li {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-gray);
}


/* ======================================
   7. FORMULARIO DE RESERVA
   ====================================== */

.booking-form {
    max-width: 640px;
    margin: auto;
    background: var(--color-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.booking-form label {
    font-weight: 600;
}

.booking-form .form-control {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray);
    margin-bottom: 15px;
}

.total-box {
    background: #fff6e8;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 16px;
    font-weight: 600;
}


/* ======================================
   8. DASHBOARD CLIENTE
   ====================================== */

.client-dashboard {
    max-width: 900px;
    margin: auto;
}

.reservation-item {
    background: var(--color-light);
    padding: 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}


/* ======================================
   9. UTILIDADES
   ====================================== */

.u-flex { display:flex; }
.u-between { justify-content:space-between; align-items:center; }
.u-center { text-align:center; }
.u-mt-20 { margin-top:20px; }
.u-mb-20 { margin-bottom:20px; }
.u-hidden { display:none !important; }
.text-muted { color: var(--color-gray-dark); font-size: 11px; }


/* ======================================
   10. RESPONSIVE
   ====================================== */

@media (max-width: 900px){
    .tour-info,
    .availability-box {
        margin-top: 20px;
    }

    .tour-detail-container {
        padding: 0 10px;
    }
}

@media (max-width: 600px){
    .tour-hero { height: 220px; }

    .tabs { flex-wrap:wrap; }

    .booking-form { padding: 20px 16px; }
}