:root {
    /* Voyager - Premium Ultra-Dark Theme */
    --primary: #64ffda;      /* Vibrant Electric Teal */
    --primary-dim: rgba(100, 255, 218, 0.12);
    --secondary: #0a192f;    /* Deep Midnight */
    --accent: #e9c349;       /* Login Gold */
    --bg-dark: #0d1117;
    --bg-card: rgba(18, 20, 20, 0.45);
    --text-main: #e2e2e2;
    --text-dim: #bfc8c8;
    --white: #ffffff;
    --success: #86c5b3;      /* Matching Login Booking color */
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-border: rgba(100, 255, 218, 0.18);
    --shadow-premium: 0 20px 50px -15px rgba(2, 12, 27, 0.82);
    --glow: 0 0 25px rgba(100, 255, 218, 0.28);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;600&display=swap');


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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0d1117;
    position: relative;
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}


/* Global Background Slider */
.global-bg-slider {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: #000;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.7) saturate(1.1);
    transform: scale(1.05);
}

.bg-slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 3s ease, transform 12s linear;
}

.bg-gradient-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(100, 255, 218, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 85% 85%, rgba(233, 195, 73, 0.08) 0%, transparent 40%),
                linear-gradient(to bottom, rgba(13, 17, 23, 0.2) 0%, rgba(13, 17, 23, 0.5) 100%);
    z-index: -1;
    pointer-events: none;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(18, 20, 20, 0.45);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 60px;
    border-radius: 40px;
    margin: 40px 0 50px 0;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.header h1 {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -3px;
    color: #e9c349;
    text-shadow: 0 0 30px rgba(233, 195, 73, 0.3);
}

.header p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Main Content Area */
.main-content {
    background: transparent;
    border-radius: 24px;
    overflow: visible;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 6px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-premium);
    gap: 8px;
}

.nav-tab {
    flex: 1;
    min-width: 150px;
    padding: 16px;
    background: transparent;
    border: none;
    border-radius: 999px; /* Pill shape like login buttons */
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.4s ease;
}

.nav-tab:hover {
    color: var(--primary);
    background: var(--primary-dim);
}

.nav-tab.active {
    background: linear-gradient(to bottom right, #e9c349, #554200);
    color: #3c2f00;
    box-shadow: 0 10px 25px rgba(233, 195, 73, 0.2);
}


.nav-tab i {
    margin-right: 8px;
}

/* Content Sections */
.content-section {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 999px; /* Pill shape */
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-dim);
    transform: translateY(-3px);
}

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

.btn-danger {
    background: rgba(255, 77, 77, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: var(--white);
}


.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
}

/* Forzar contraste en select nativos - los navegadores ignoran muchos estilos
   excepto background-color y color en los <option> */
select.form-control {
    background-color: #0d2137 !important;   /* Azul oscuro sólido */
    color: #e6f1ff !important;
    cursor: pointer;
    /* Flecha personalizada en blanco */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2364ffda' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
}

/* Las opciones del desplegable nativo */
select.form-control option {
    background-color: #0a192f !important;
    color: #e6f1ff !important;
    padding: 10px !important;
}

select.form-control option:hover,
select.form-control option:focus,
select.form-control option:checked {
    background-color: #1a3a5c !important;
    color: #64ffda !important;
}

/* Input number sin flechas feas */
input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button {
    opacity: 0.5;
    filter: invert(1) sepia(1) saturate(3) hue-rotate(120deg);
}



.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.15);
}

.form-control::placeholder {
    color: var(--text-dim);
    opacity: 0.5;
}

/* Clear Button Icon */
.clear-input {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
    border: none;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

.clear-input:hover {
    background: var(--danger);
    color: var(--white);
    transform: scale(1.1);
}

.input-wrapper:hover .clear-input,
.input-wrapper:focus-within .clear-input {
    opacity: 1;
    pointer-events: auto;
}


select.form-control {
    cursor: pointer;
}

/* Trip Cards */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ============== DISEÑO DE PANTALLA DIVIDIDA (RESULTADOS + MAPA) ============== */
.places-modal-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
}

.places-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-dark);
}

.places-results-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.places-modal-map {
    flex: 0 0 450px;
    height: 100%;
    border-left: 1px solid var(--glass-border);
    position: relative;
    background: var(--bg-card);
}

#placesSearchMap {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .places-modal-main {
        flex-direction: column; 
    }
    .places-modal-map {
        flex: 0 0 180px; /* Mapa más bajito para ver fichas */
        min-height: 180px;
        max-height: 250px;
        border-left: none;
        border-bottom: 2px solid var(--primary);
    }
    .places-modal-body {
        flex: 1; /* El listado ocupa lo que sobra, verticalmente */
        overflow-y: auto;
        padding: 12px;
        background: var(--bg-dark);
    }
    .places-results-grid-full {
        display: grid; /* Volvemos a vertical para ver varias fichas */
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .place-card {
        height: auto !important; /* Altura natural */
        min-height: 130px;
    }
}

.place-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    scroll-margin-top: 20px;
    position: relative; /* ← Necesario para que el slideshow absoluto cubra la ficha */
}

.place-card.highlighted {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.5);
    transform: translateY(-8px) scale(1.02);
    background: rgba(74, 144, 226, 0.1);
    z-index: 10;
}

.place-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.place-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.place-card-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.place-card-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 3rem;
}
.trip-card {
    background: rgba(18, 20, 20, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 35px;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trip-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(100, 255, 218, 0.25);
    background: rgba(16, 33, 65, 0.85);
}

.trip-card:hover::before {
    opacity: 0.3;
}

.trip-card h3 {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e9c349;
    margin-bottom: 10px;
}


.trip-dates {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.trip-date-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trip-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light);
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.trip-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Day Timeline */
.days-timeline {
    margin-top: 20px;
}

.day-card {
    background: rgba(18, 20, 20, 0.35);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6);
    position: relative;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.day-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.day-date {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 4px;
}


/* Event Items */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 24px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.edit-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.event-item:hover .edit-indicator {
    opacity: 1;
    transform: scale(1);
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(12px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5), var(--glow);
}


.event-item.transport {
    border-left-color: #3498DB;
}

.event-item.accommodation {
    border-left-color: #9B59B6;
}

.event-item.activity {
    border-left-color: #E67E22;
}

.event-item.rental {
    border-left-color: #16A085;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.event-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-main);
}


.event-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
}

.badge-transport { background: linear-gradient(135deg, #3498db, #2980b9); }
.badge-accommodation { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.badge-activity { background: linear-gradient(135deg, #e67e22, #d35400); }
.badge-rental { background: linear-gradient(135deg, #16a085, #1abc9c); }

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.event-detail {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-detail i {
    color: var(--primary);
}

.event-map-thumbnail {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ícono de fondo sutil solo cuando hay imagen cargando */
.event-map-thumbnail:not(.event-map-placeholder)::before {
    content: '\f5a0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: var(--glass-border);
    position: absolute;
    z-index: 1;
}

/* Placeholder de texto/icono cuando no hay clave de API */
.event-map-placeholder {
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(135deg, rgba(100,255,218,0.05) 0%, rgba(10,25,47,0.8) 100%);
    border: 1px dashed var(--glass-border);
}

.event-map-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.event-item:hover .event-map-thumbnail img {
    transform: scale(1.15);
}

/* ===== LAYOUT DOS COLUMNAS PARA TRAYECTOS ===== */
.event-transport-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
    align-items: stretch;
    margin-top: 12px;
}

.event-transport-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* .event-transport-map: la miniatura ocupa toda la columna derecha */

.event-transport-map .event-map-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 160px;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Iframe del mapa dentro de la columna derecha */
.event-transport-map .event-map-thumbnail iframe {
    width: 100%;
    height: 100%;
    min-height: 160px;
    border: none;
    display: block;
}

.event-transport-map .event-map-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.event-item:hover .event-transport-map .event-map-thumbnail img {
    transform: scale(1.05);
}

/* En pantallas pequeñas volvemos a layout apilado */
@media (max-width: 768px) {
    .event-transport-layout {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .event-transport-map {
        order: 2; /* Asegurar que el mapa va abajo */
    }
    .event-transport-map .event-map-thumbnail {
        height: 120px; /* "en pequeñito" para móvil */
        min-height: 120px;
        width: 100%;
        max-width: 100%;
    }
}

/* ===== BOTÓN BUSCAR EN DÍA (outline) ===== */
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    transition: background 0.2s, color 0.2s;
}
.btn-outline-primary:hover {
    background: var(--primary-dim);
    color: var(--primary);
}

/* ===== MODAL BUSCAR LUGARES CERCANOS ===== */
.places-search-bar {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.places-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.place-filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.place-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

.place-filter-btn.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.places-status {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.places-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 4px;
}

.place-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.2s;
}

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

.place-card-img {
    height: 140px;
    overflow: hidden;
    background: var(--bg-card);
}

.place-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.place-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--glass-border);
    font-size: 2rem;
}

.place-card-body {
    padding: 12px 14px;
    flex: 1;
}

.place-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-address {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-address i {
    color: var(--primary);
    margin-right: 4px;
}

.place-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.place-card-add-btn {
    margin: 0 14px 14px;
    width: calc(100% - 28px);
    justify-content: center;
}



/* ===== COMBUSTIBLE - BANNER EN HEADER ===== */
.fuel-price-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(100, 255, 218, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    flex-wrap: wrap;
}

.fuel-banner-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.fuel-banner-item i {
    color: var(--primary);
}

.fuel-type-label {
    color: var(--text-dim);
}

.fuel-price-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
}

.fuel-unit {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.fuel-banner-sep {
    width: 1px;
    height: 20px;
    background: var(--glass-border);
}

/* ===== COMBUSTIBLE - MODAL CARDS ===== */
.fuel-price-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s;
}

.fuel-price-card.active-fuel {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.fuel-price-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.fuel-price-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin: 6px 0 4px;
}

.fuel-price-card-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Preview de cálculo en modal */
.fuel-calc-preview {
    background: rgba(100,255,218,0.08);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.fuel-calc-preview i {
    color: var(--primary);
    font-size: 1rem;
}

/* Badge de coste de combustible en ficha evento */
.fuel-cost-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 8px;
}

.fuel-cost-badge i {
    color: var(--accent);
}


.status-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.status-reserved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}


.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 8, 19, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: none;
    z-index: 3000;
    overflow-y: auto;
    animation: fadeIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active {
    display: block; /* block para que el scroll funcione correctamente desde arriba */
}

.modal-content {
    background: rgba(18, 20, 20, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 48px;
    padding: 50px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9);
    margin: 60px auto;
    animation: slideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}


.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--light);
    color: var(--danger);
}

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

/* URL Preview */
.url-preview {
    margin-top: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
}

.url-preview iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

#routeMap,
#editRouteMap {
    width: 100%;
    height: 100%;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light) 0%, #D5DBDB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.1rem;
}

.route-info-panel {
    background: rgba(18, 20, 20, 0.4);
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
    border-left: 4px solid #e9c349;
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.route-info-item strong {
    color: var(--primary);
    min-width: 80px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Footers */
.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    flex-wrap: wrap;
}

.modal-footer.footer-between {
    justify-content: space-between;
}

.footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }

    .header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .content-section {
        padding: 15px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .nav-tab {
        min-width: 120px;
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 15px;
        margin: 5px;
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        margin-bottom: 4px;
        font-size: 0.9rem;
    }

    .form-control {
        padding: 10px;
        font-size: 0.95rem;
    }

    .modal-footer {
        margin-top: 15px;
        padding-top: 15px;
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}

/* Google Places Autocomplete Styling - Tema Oscuro */
.pac-container {
    background: #0a192f !important;            /* --secondary / Deep Midnight */
    border: 1px solid rgba(100, 255, 218, 0.3) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    font-family: 'Inter', sans-serif !important;
    margin-top: 6px !important;
    z-index: 99999 !important;
    overflow: hidden;
}

/* ============== PANELES DE INFORMACIÓN DE RUTA (NO FONDOS BLANCOS) ============== */
.route-info-panel {
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
    color: var(--text-main);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary);
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-main);
}

.route-info-item:last-child {
    margin-bottom: 0;
}

.route-info-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.route-info-item strong {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 100px;
}

.route-info-item span {
    color: var(--text-main);
    font-weight: 400;
}

/* Quitar el logo de Google del pie del desplegable */
.pac-container:after {
    display: none !important;
}

.pac-item {
    padding: 12px 16px !important;
    cursor: pointer !important;
    border-top: 1px solid rgba(100, 255, 218, 0.1) !important;
    color: #e6f1ff !important;             /* --text-main */
    background: transparent !important;
    transition: background 0.2s ease;
}

.pac-item:first-child {
    border-top: none !important;
}

.pac-item:hover,
.pac-item.pac-item-selected {
    background: rgba(100, 255, 218, 0.1) !important;  /* --primary-dim */
}

.pac-item-query {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #64ffda !important;             /* --primary / Electric Teal */
}

.pac-matched {
    color: #ffd700 !important;             /* --accent / Sunlit Gold */
    font-weight: 700 !important;
}

/* Texto secundario de la sugerencia (país, ciudad...) */
.pac-item span:not(.pac-item-query):not(.pac-matched) {
    color: #8892b0 !important;             /* --text-dim */
    font-size: 0.85rem !important;
}

.pac-icon {
    /* Forzar el ícono de pin a un color acorde */
    filter: invert(1) sepia(1) saturate(3) hue-rotate(120deg) !important;
    margin-right: 12px !important;
}


/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Cost Summary */
.cost-summary {
    background: rgba(18, 20, 20, 0.45);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 48px;
    margin-top: 60px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.cost-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.cost-summary h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.cost-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.cost-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
}

.cost-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #e9c349; /* Gold */
    text-shadow: 0 0 30px rgba(233, 195, 73, 0.3);
}

/* =====================================================
   BOTÓN OUTLINE PRIMARIO (Buscar en día)
   ===================================================== */
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    transition: background 0.2s, color 0.2s;
}
.btn-outline-primary:hover {
    background: var(--primary-dim);
}

/* =====================================================
   MODAL BUSCAR LUGARES - PANTALLA COMPLETA
   ===================================================== */

/* Overlay que cubre toda la pantalla */
.modal.places-modal-fullscreen.active {
    display: flex !important; /* Sobrescribe el display: block genérico de .modal.active */
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden !important; /* Impide el scroll en el wrapper externo, el scroll va dentro */
}

/* Contenedor interno que ocupa toda la pantalla y usa flexbox column */
.places-modal-inner {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;   /* ← solo el body interno scrollea */
    border-radius: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .modal.places-modal-fullscreen.active {
        padding: 40px !important; /* Margen superior e inferior en ordenador */
    }
    .places-modal-inner {
        width: 100%;
        height: 100%;
        max-width: 1200px; /* Evita que sea demasiado ancho en pantallas ultrawide */
        max-height: calc(100vh - 80px);
        border-radius: 20px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
        border: 1px solid var(--glass-border);
    }
}

/* Cabecera del modal (fija) - Optimizada para búsqueda integrada */
.places-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--glass-border);
    flex: 0 0 auto;
    min-height: 52px;
}

.places-modal-search-compact {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: center;
}

.places-modal-search-compact .form-control {
    flex: 1;
    margin-bottom: 0;
    height: 34px;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.2);
}

.places-modal-search { display: none; } /* Ocultamos la barra antigua */

.places-modal-search .form-control {
    flex: 1;
    margin-bottom: 0;
}

/* Filtros de categoría (fijos) */
.places-modal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--glass-border);
    flex: 0 0 auto;
    align-items: center;
    position: relative;
    max-height: 200px;
    transition: max-height 0.3s ease;
    overflow: hidden;
}

/* Estado colapsado para móvil */
.places-modal-filters.is-collapsed {
    max-height: 52px; /* Una sola línea aproximadamente */
}

.places-modal-filters.is-collapsed .place-filter-btn {
    display: none;
}
.places-modal-filters.is-collapsed .place-filter-btn.active {
    display: inline-flex !important;
}

.toggle-filters-btn {
    background: rgba(100, 255, 218, 0.1);
    border: 1px dashed var(--primary);
    color: var(--primary);
    display: none; /* Solo se muestra cuando está colapsado o en móvil */
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
}

.places-modal-filters.is-collapsed .toggle-filters-btn {
    display: inline-flex;
}

/* Barra de estado/loading (fija) */
.places-status-bar {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    background: rgba(100, 255, 218, 0.06);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-dim);
    flex: 0 0 auto;
    gap: 8px;
}

/* Área de resultados SCROLLABLE */
.places-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 24px;
}

/* Grid multi-columna de resultados - ocupa todo el ancho */
.places-results-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
}

/* ── Filtros de categoría (botones) ── */
.place-filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.place-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}
.place-filter-btn.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* ── Cards de lugares ── */
.place-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.place-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}
.place-card.highlighted {
    border-color: var(--primary) !important;
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.3) !important;
    background: rgba(100, 255, 218, 0.05) !important;
    transform: scale(1.02) !important;
    z-index: 5;
}

/* El slideshow ahora se activa al hacer CLICK y cubre toda la ficha */
.hotel-photo-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    background: var(--bg-dark);
    pointer-events: auto; /* Permite click para cerrar */
    border-radius: 20px;
}

.hotel-photo-slideshow.active {
    display: block;
}

.hotel-fixed-thumbnail {
    width: 110px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.hotel-photo-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: hotelFastFade 4s infinite linear; /* 1 segundo por foto si hay 4 */
}

@keyframes hotelFastFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.place-card-img {
    height: 150px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
}
.place-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.place-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--glass-border);
    font-size: 2.5rem;
}

.place-card-body {
    padding: 12px 14px;
    flex: 1;
}
.place-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 5px;
    /* Máximo 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.place-card-address {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.place-card-address i { color: var(--primary); margin-right: 3px; }

.place-card-rating {
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* Badge abierto / cerrado */
.place-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}
.place-open-badge.open  { color: var(--success); background: rgba(46,204,113,0.12); }
.place-open-badge.closed { color: var(--danger);  background: rgba(231,76,60,0.12);  }
.place-open-badge i { font-size: 0.45rem; }

/* Botones de acción de la card */
.place-card-actions {
    display: flex;
    gap: 6px;
    padding: 0 14px 14px;
    flex-wrap: wrap;
}
.place-card-add-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.82rem;
}
.place-card-book-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.82rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: background 0.2s;
}
.place-card-book-btn:hover {
    background: rgba(255,215,0,0.1);
}

/* =====================================================
   CONFIGURACIÓN DE VIAJEROS
   ===================================================== */
.travelers-config-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
}
.travelers-config-row i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.travelers-config-label {
    flex: 1;
    color: var(--text-main);
    font-size: 0.95rem;
}
.travelers-count-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.travelers-count-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: var(--primary-dim);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

/* ============== HOTEL DETAIL SIDEBAR ============== */
.hotel-details-sidebar {
    position: fixed;
    top: 0;
    left: -450px; /* Oculto inicialmente */
    width: 450px;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 10000;
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    overflow-y: auto;
    border-right: 1px solid var(--glass-border);
}

.hotel-details-sidebar.active {
    left: 0;
}

.close-sidebar {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.sidebar-loading {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-dim);
    text-align: center;
}

.sidebar-hero {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px 20px;
    background-color: var(--bg-card);
}

.sidebar-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.sidebar-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
}

.sidebar-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.sidebar-body {
    padding: 20px;
}

.sidebar-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.sidebar-tag {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-main);
}

.sidebar-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 25px 0;
}

.sidebar-price-card {
    background: linear-gradient(135deg, rgba(74,144,226,0.15), rgba(74,144,226,0.05));
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.price-header {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin: 10px 0;
}

.sidebar-book-btn {
    width: 100%;
    margin-top: 20px;
    font-size: 1rem;
    padding: 12px;
}

.sidebar-gallery-title {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.sidebar-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-img {
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .hotel-details-sidebar {
        width: 100%;
        left: -100%;
    }
}

/* ============== HOTEL SEARCH MODAL ADDITIONS ============== */
.hotel-search-options {
    background: var(--bg-card);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 25px;
}

.place-results-price, .index-badge {
    background: var(--primary);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
}

.index-badge {
    position: static; /* Quitamos absolute para el grid */
}

.place-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.25;
}

.place-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hotel-search-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: rgba(100, 255, 218, 0.03);
    padding: 10px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.hotel-nights-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotel-nights-input label {
    margin-bottom: 0;
    white-space: nowrap;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.hotel-nights-input input {
    width: 60px;
    text-align: center;
    padding: 4px 8px;
    height: 32px;
}

.hotel-dates-summary {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.85rem;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .hotel-search-row {
        gap: 10px;
        padding: 8px 15px;
    }
    
    .hotel-nights-input input {
        width: 50px;
        font-size: 0.85rem;
    }
    
    .hotel-dates-summary {
        font-size: 0.8rem;
        order: 2; /* Para que salga debajo si no cabe, o se ajuste */
    }
    
    #hotelsApiSearchBtn {
        width: 100%;
        order: 3;
        margin-top: 5px;
    }
}

/* ============== */
.travelers-count-btn:hover { background: rgba(100,255,218,0.2); }
.travelers-count-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
    min-width: 28px;
    text-align: center;
}

/* ============== TRIP ACTION BUTTONS RESPONSIVE ============== */
.trip-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .trip-action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 10px;
    }
    
    .trip-action-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 5px;
        font-size: 0.85rem;
    }
}

/* Social Login Buttons */
.social-login-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.social-label {
    font-size: 0.82rem;
    color: #a0a0a0;
    margin-bottom: 18px;
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-social i, .btn-social img {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.btn-google {
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #e0e0e0;
}
.btn-google:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-booking {
    background: #003580;
    color: #ffffff;
    border: none;
}
.btn-booking:hover {
    background: #004ea6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,53,128,0.3);
}

.btn-social:active {
    transform: scale(0.97);
}

/* Welcome Screen - Stitch Premium Design */
#welcomeScreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none; /* Changed by JS */
    align-items: center;
    justify-content: center;
    background: transparent;
    font-family: 'Manrope', sans-serif;
}

/* .bg-image and .bg-gradient removed in favor of global-bg-slider */

.welcome-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    margin: 0 24px;
    background: rgba(18, 20, 20, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3.5rem 2rem;
    box-shadow: 0px 20px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #e2e2e2;
}

.welcome-logo h1 {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: 3rem;
    color: #e9c349;
    font-style: italic;
    margin: 0;
    letter-spacing: -0.025em;
    text-shadow: 0 0 20px rgba(233, 195, 73, 0.3);
}

.welcome-subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.welcome-subtitle-line {
    height: 1px;
    width: 24px;
    background: rgba(233, 195, 73, 0.3);
}

.welcome-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #bfc8c8;
    font-weight: 300;
    margin: 0;
}

/* Elongated Social Buttons - Stitch Style */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 9999px; /* full rounded */
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-social:active {
    transform: scale(0.95);
}

.btn-google {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e2e2;
}
.btn-google:hover {
    background: rgba(255,255,255,0.1);
}

.btn-booking {
    background: #0b5345;
    color: #86c5b3;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
.btn-booking:hover {
    filter: brightness(1.1);
    color: #86c5b3;
}

.btn-email-auth {
    background: linear-gradient(to bottom right, #e9c349, #554200);
    color: #3c2f00;
    border: none;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(85, 66, 0, 0.3);
}
.btn-email-auth:hover {
    filter: brightness(1.1);
    color: #3c2f00;
}

.auth-form-container {
    display: none;
    width: 100%;
    margin-top: 1rem;
    text-align: left;
    animation: slideUp 0.5s ease;
}

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

.welcome-footer {
    margin-top: 3rem;
    opacity: 0.6;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.welcome-footer span {
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.2s;
}
.welcome-footer span:hover {
    color: #e9c349;
}

.back-to-social {
    display: block;
    margin-top: 20px;
    color: #e9c349;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
}

/* Hide Main Content while not logged in */
.auth-locked {
    filter: blur(20px);
    pointer-events: none;
}
/* =====================================================
   MOBILE RESPONSIVE TWEAKS (Cost Summary & Day Cards)
   ===================================================== */
.cost-items.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.day-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    /* Compact Cost Summary */
    .cost-summary {
        padding: 24px;
        margin-top: 30px;
        border-radius: 24px;
    }
    .cost-summary h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    .cost-items.grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cost-item {
        padding: 16px;
        text-align: center;
        border-radius: 16px;
    }
    .cost-label {
        font-size: 0.75rem;
    }
    .cost-value {
        font-size: 1.8rem;
    }

    /* Stacked & Smaller Day Action Buttons */
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .day-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    .day-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .day-card {
        padding: 20px;
        margin-bottom: 30px;
        border-radius: 20px;
    }
    .day-title {
        font-size: 1.3rem;
    }
}
