/* General styles */
:root{
    --fondo: #F2F5F9;
    --fondo-onboarding: linear-gradient(135deg, #ffffff 0%, #d6e9ff 50%, #aad4ff 100%);
    --primary-text: #1F2937;
    --secondary-text: #9CA3AF;
    --button-color: #9CA3AF;
    --button-text: #9CA3AF;
    --button-menu-color: #9CA3AF;
    --button-menu-hover: #9CA3AF;
    --safe-top: env(safe-area-inset-top, 0px);
    --primary-gradient: linear-gradient(135deg, #00C6FB 0%, #005BEA 100%);
    --accent-blue: #0084FF;
    --accent-blue-aux: #0084ff70;


    --bg: #0b1020;
    --muted: #b5c0d0;
    --card: #12172a;
    --accent: #5b7cff;
    --ok: #12b981;
    --warn: #f59e0b;
    --err: #ef4444;

    /* --- Estados --- */
    --success-green: #10B981; /* Verde esmeralda para "Completado" */
    --pending-orange: #F59E0B; /* Naranja suave para "Pendiente" */

    /* --- Sombras (Clave para el efecto 3D suave) --- */
      --shadow-soft: 0 10px 25px -5px rgba(0, 132, 255, 0.15);
      --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);


    /* --- Tipografía --- */
      /* Recomiendo 'Inter' o 'DM Sans' de Google Fonts */
      --font-family: 'Inter', system-ui, -apple-system, sans-serif;

}

.flash-message {
    transition: opacity 0.5s ease-out;
}


/* 1) Quitar el highlight azul al tocar (Android/iOS/Chrome/Safari) */
* {
  -webkit-tap-highlight-color: transparent;
}

/* 2) Evitar la selección de texto y el menú de “copiar/definir” al mantener pulsado */
html, body, .no-select, [data-no-select] {
  user-select: none;
  -webkit-user-select: none; /* Safari/iOS */
  -ms-user-select: none;     /* IE/Edge antiguo */
  -webkit-touch-callout: none; /* iOS: desactiva el “callout” al mantener pulsado */
}

/* 3) Mantener la selección habilitada en inputs/áreas editables (importante) */
input, textarea, [contenteditable="true"], .selectable, [data-selectable] {
  user-select: text !important;
  -webkit-user-select: text !important;
  -webkit-touch-callout: default !important;
}

/* 4) Evitar arrastrar imágenes/links (reduce efectos raros en WebView) */
img, a img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* 5) Mantener accesibilidad: quitar contorno sólo para ratón/touch, no para teclado */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid #3b82f6; /* o tu color de foco del diseño */
  outline-offset: 2px;
}


body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: var(--fondo-onboarding);
    height: 100vh;
    color: var(--button-menu-color);
    overflow: hidden;
    display: none;
}

.structure{
    position: fixed;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
}

#landscape-warning {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background: rgba(0, 0, 0, 0.9); /* Fondo oscuro */
    color: white;
    font-size: 1.5em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que esté encima de todo */
    padding: 20px;
    overflow: hidden;
}

/* Estilos para navegadores basados en WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px; /* Ancho del scrollbar */
}

::-webkit-scrollbar-track {
    background: transparent; /* Fondo transparente (sin pista visible) */
}

::-webkit-scrollbar-thumb {
    background: #888; /* Color de la barra */
    border-radius: 4px; /* Esquinas redondeadas */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--button-menu-color); /* Color de la barra al pasar el mouse */
}

/* Ocultar flechas del scrollbar en WebKit */
::-webkit-scrollbar-button {
    display: none; /* Oculta las flechas */
}

/* Estilos para Firefox */
* {
    scrollbar-width: thin; /* Ancho del scrollbar */
    scrollbar-color: #888 transparent; /* Color de la barra y fondo transparente */
}

.logo{
    z-index: 100;
    position: fixed;
    margin: 20px;
    top:0;
}

.logo img {
    height: 60px;
}

.notification-icon {
    position: relative;
    cursor: pointer;
}

.notification-icon i {
    color: var(--button-menu-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--ms-danger, #e53935);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8em;
    display: none;
}

.notification-list-father{
    display: flex;
    position: absolute;
    justify-content: center;
    width: 100%;
}

/* Lista desplegable */
.notification-list {
    position: relative;
    top: 50px;
    width: 300px;
    max-height: 90vh;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: none;
    justify-content: center;
    z-index: 1000;
    color: black;
}

.notification-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.notification-list li:hover {
    background: var(--fondo);
}

.user-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;   
    padding-top: 10px;
}

/* Contenedor para los iconos del menú */
.menu-icons {
    display: flex;
    align-items: center;
    gap: 30px; /* Espacio entre los iconos */
    font-size: 28px;
}

/* Icono de usuario */
.user-icon i {
    color: var(--button-menu-color);
    cursor: pointer;
}

.menu-icon i {
    font-size: 1.3em;        /* también relativo */
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 999;
    min-width: 150px;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #f0f8ff;
}

.user-icon.open .dropdown-content {
    display: block;
}


/* Icono de puntos blancos */
.grid-icon img {
    width: 1.5em; /* Más pequeño que el usuario */
    cursor: pointer;
    margin-top: 4px;
}

/* Zona central */
.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.content {
    position: absolute;
    max-width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    align-items: center;
    overflow: hidden;
}

.content.show{
    opacity: 1;
    transform: scale(1);
}

/* Menú inferior */
.bottom-menu {
    position: relative;
    display: none;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    background: transparent;
    padding: 10px 0;
    z-index: 999;
    margin-top: -30px;
}


.line-menu{
    display: none;
    justify-content: center;
    width: 90%;
    max-width: 90%;
    min-width: 90%;
    background: white;
    flex-direction: column;
    padding-bottom: 15px;
    box-shadow: var(--shadow-soft);
    z-index: 999;
    border-radius: 30px;
    margin-left: 5%;
    margin-top: -50px;
}

.bottom-menu::before {
    filter: blur(10px); /* Aplica el blur al fondo */
    z-index: -1;
}

.menu-label {
    display: block;
    font-size: 1em;
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;
    transition: opacity 0.3s ease;
    font-family: var(--font-family);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding-top: 5px;
    width: 160px;
    background: var(--primary-gradient);
    height: 60px;
    border-radius: 10px;
    gap: 8px;
    box-shadow: var(--shadow-soft);
    font-size: clamp(20px, 1.5vw, 18px);
}

#chat-header-info {
    display: none;
    align-items: center;
    padding: 10px;
    background-color: var(--fondo);
    border-bottom: 1px solid #ddd;
    position: relative;
    top: 0;
}

.chat-header-img {
    width: 40px;
    height: 40px;
    border-radius: 10%;
    margin-right: 10px;
    object-fit: cover;
}

#chat-header-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}


/* Botón flotante */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
}

#chat-button img{
    width: 35px;
}

/* Ventana del chat */
#chat-popup {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 600px;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    padding-top: env(safe-area-inset-top, 0);
}

/* Chat oculto */
.hidden {
    display: none !important;
}

/* Header del chat */
#chat-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 8px 8px;
    padding-top: 40px;
}

/* Pestañas */
#chat-tabs {
    display: flex;
    justify-content: space-around;
    background-color: var(--fondo);
    border-bottom: 1px solid #ddd;
}

#chat-tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    color: black;
    border-radius: 8px 8px 8px 8px;
    font-size: 1.2em;
}

#chat-tabs button.active {
    background: var(--primary-gradient);
    color: white;

}

/* Contenido */
#chat-content {
    flex: 1;
    color: var(--button-color);
    display: flex;
    flex-direction: column;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Lista de amigos */
#friends-list {
    list-style: none;
    padding: 0;
}

#friends-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
    color: var(--button-color);
}

#friends-list li:hover {
    background-color: #f9f9f9;
}

/* Lista de amigos */
#chats-list {
    list-style: none;
    padding: 0;
}

#chats-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
    color: var(--button-color);
}

#chats-list li:hover {
    background-color: #f9f9f9;
}

#friends-list button {
    color: black;
    cursor: pointer;
}

#chat-close {
    cursor: pointer;
}

/* Mostrar el contenedor de mensajes cuando no está oculto */
#chat-messages-container {
    color: var(--button-color);
    overflow-y: auto;
    flex-grow: 1;
    height: 100px;
}

#chat-messages-header {
    padding: 10px;
    background-color: var(--fondo);
    border-bottom: 1px solid #ddd;
}

#back-to-friends {
    background: none;
    border: none;
    color: var(--button-color);
    cursor: pointer;
    font-size: 16px;
}

#chat-messages {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* Estilos para el área de entrada de mensajes */
.message-input {
    display: none;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1; /* Asegurar que esté por encima del contenido */
}

/* Estilos para el campo de entrada de texto */
#message-content {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    margin-right: 10px;
    transition: border-color 0.3s ease;
}

#message-content:focus {
    border-color: var(--button-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Estilos para el botón de enviar */
#send-message {
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#send-message:hover {
    background-color: var(--button-menu-hover);
}

#send-message:active {
    background-color: #004080;
}

/* Estilo general del mensaje */
.message {
    max-width: 70%;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    font-size: 14px;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
}

/* Mensajes enviados por el usuario */
.message.sent {
    align-self: flex-end;
    background-color: var(--button-color);
    color: white;
}

/* Mensajes recibidos del amigo */
.message.received {
    align-self: flex-start;
    background-color: var(--fondo);
    color: black;
}

/* Contenido del mensaje */
.message-content {
    display: flex;
    flex-direction: column;
}

/* Estilo del texto dentro del mensaje */
.message-content p {
    margin: 5px 0 0;
    font-size: 14px;
}

/* Nombre del remitente en negrita */
.message-content strong {
    font-size: 12px;
    color: #333;
}

#chat-notification {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--ms-danger, #e53935);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.chat-item-container {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-item-container:hover {
    background-color: #f9f9f9;
}

.chat-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 10%;
    overflow: hidden;
    margin-right: 10px;
}

.chat-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Estilos generales para cada chat */
.chat-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.chat-item:hover {
    background-color: #f9f9f9;
}

/* Primera línea: Nombre del usuario a la izquierda y la hora a la derecha */
.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nombre del usuario */
.chat-nameUser {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

/* Hora del último mensaje */
.chat-time {
    font-size: 12px;
    color: #999;
}

/* Segunda línea: Último mensaje a la izquierda y número de mensajes no leídos a la derecha */
.chat-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

/* Último mensaje */
.chat-last-message {
    font-size: 14px;
    color: var(--button-menu-color);
    flex: 1; /* Ocupa el máximo espacio disponible */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contador de mensajes no leídos */
.chat-unread {
    background-color: var(--button-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    margin-left: 10px;
}

.chat-unread.visible {
    visibility: visible;
}


/* Estilos generales para el contenedor de restaurantes */
.recommendationsOptions {
    display: flex;
    gap: 15px;
    border-radius: 10px;
    align-items: stretch;
}

/* Resultados de recomendaciones */
.recommendationsResults {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 90px;
    padding-top: 20px;
}

/* Imagen de la propiedad */
.recommendation-image {
    flex: 0 0 250px; /* Ancho fijo para la imagen */
    height: 100%;
    overflow: hidden;
}

/* Imagen de la propiedad */
.recommendation-image-task {
    flex: 0 0 250px; /* Ancho fijo para la imagen */
    overflow: hidden;
}

.recommendation-image img {
    width: 90%;
    height: 100%;
    object-fit: cover; /* La imagen cubrirá el espacio sin deformarse */
}

.recommendation-image-task img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubrirá el espacio sin deformarse */
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Información de la propiedad */
.recommendation-info {
    flex: 1;
}

.recommendation-info h3 {
    margin: 0 0 10px;
    color: var(--primary-text);
    font-size: 1.2rem;
    text-align: left;
}

.recommendation-info p {
    margin: 5px 0;
    color: var(--primary-text);
    font-size: 0.95rem;
    text-align: left;
}

.rating {
    display: inline-block;
    color: var(--button-text);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.city-form {
    position: absolute !important;
    top: 150px !important;
    left: 20px !important;
    margin: 0 !important;
    padding: 10px !important;
    max-width: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
}

.city-form label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.city-form input {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.city-form button {
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    background-color: var(--button-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.city-form button:hover {
    background-color: var(--button-menu-hover);
}

.maps-button {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 15px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    font-size: 20px;
    font-weight: bold;
    font-family: var(--font-family);
}

.maps-button:hover {
    background-color: var(--button-color);
}

/* Modal container */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal content */
.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 100%;
    position: relative;
    margin-top: 200px;
    overflow-y: auto;
}

/* Close button */
.modal .close {
    color: #000;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.modal .close:hover,
.modal .close:focus {
    color: #000;
    text-decoration: none;
}

.close{
    color: black;
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.options-section {
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.button-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 90px;

}

.search-input-div{
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Barra de búsqueda */
#search-input {
    width: 40%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    top:0;
    margin-top: 60px;
    margin-bottom: 20px;
}

#search-input:focus {
    border-color: var(--button-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 80%;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;

}

.button-item {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    width: 130px;
    box-shadow:var(--shadow-card)
}

/*.button-item:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.4),
        inset 0 -2px 6px rgba(0,0,0,0.25),
        0 6px 14px rgba(0,0,0,0.15);
}*/

.button-item i {
    font-size: 2em;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.button-item span {
    font-size: 1em;
    color: var(--primary-text);
    text-align: center;
    font-weight: bold;
}

@media screen and (min-width: 768px) {
    #landscape-warning {
        display: none !important; /* Oculto por defecto */
    }
}

@media (min-width: 800px) {
    #imageTop {
      height: 200px !important;
    }

    .bottom-menu{
        padding: 0 !important;
    }

    .menu-icons {
        font-size: 22px !important;
    }

    .custom-task-creator button{
        font-size: 14px !important;
        padding: 10px 15px !important;
    }

    #tasksResults div button{
        font-size: 14px !important;
        padding: 10px 15px !important;
        width: auto !important;
    }

    .dropdown-content{
        position: fixed !important;
        right: auto !important;
    }

    .results{
        font-size: 14px !important;
    }

    .back-button {
      top: 50% !important; /* A media altura */
    }

    .type3 {
      max-width: 600px !important;
    }

    #tasksResults{
        gap: 0px !important;
    }

    .task-header{
        font-size: 12px !important;
        padding: 0px 20px !important;
    }

    #divPlanning{
        max-width: none !important;
    }

    .recommendation-image-task{
        flex: 0 0 200px !important;
    }

    .property-image-task{
        flex: 0 0 200px !important;
    }

    .line-menu{
        padding-bottom: 10px !important;
    }

    .results{
        margin-bottom: 0px !important;
    }

    .skeleton-screen{
        top: 20% !important;
        left: 10% !important;
        width: 80% !important;
        height: 80% !important;
    }

    .property-image{
        flex: 0 0 200px !important;
    }

    .recommendation-image{
        flex: 0 0 200px !important;
    }

    .maps-button{
        font-size: 12px !important;
        padding: 10px !important;
    }

    .details-btn{
        font-size: 12px !important;
        padding: 10px !important;
    }

    .property-info p{
        font-size: 12px !important;
        font-weight: normal !important;
        text-align: left !important;
    }

    .recommendationsResults{
        margin-bottom: 0px !important;
    }

    .recommendation-info{
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    #chat-header{
        border-radius: 8px !important;
    }

    #gettingThere{
        margin-bottom: 0px !important;
    }

    .documentation{
        gap: 10px !important;
    }

    .documentation-item p{
        font-size: 12px !important;
    }

    .type4{
        margin-top: 30px !important;
    }

    .edit-button{
        font-size: 15px !important;
        padding: 15px 20px !important;
    }

    .type2{
        margin-top: 30px !important;
    }

    .profileUser-section{
        margin-top: 30px !important;
    }

    .profile-info{
        font-size: 15px !important;
    }

    .dropdown-content a{
        font-size: 15px !important;
    }

    .modal-content4, .modal-content3, .modal-content2, .modal-content1, .modal-content{
        max-width: 400px !important;
        border-radius: 20px !important;
        font-size: 12px !important;
    }

    .modal1, .modal2, .modal{
        align-items: center !important;
        justify-content: center !important;

    }

    .documentation-item p{
        font-size: 12px !important;
    }

    .carousel-slide{
        max-height: 250px !important;
    }

    .modal-buttons button{
        padding: 10px !important;
        font-size: 15px !important;
    }

}

/* Media Queries para móviles (hasta 767px) */
@media screen and (max-width: 768px) {

    #chat-close {
        cursor: pointer;
        font-size: x-large;
    }
    /* Zona central */
    .container {
        margin: 0;
        height: calc(90vh - 120px);

    }


    .logo img {
        height: 40px;
    }

    #chat-button {
        bottom: 90px;
        right: 10px;
        width: 60px;
        height: 60px;
    }

    #chat-button i {
        font-size: 1.2em;
    }

    #chat-popup {
        width: 100%;
        height: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;


    }

    .dropdown-content a{
        font-size: 15px !important;
    }

    .recommendationsOptions {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .recommendation-image {
        width: 100%;
        height: 150px; /* Altura ajustada para móviles */
        flex: none;
    }

    .recommendation-image-task {
        width: 100%;
        height: 200px; /* Altura ajustada para móviles */
        flex: none;
    }

    .recommendation-image img {
        border-radius: 10px;
    }

    .recommendation-image-task img {
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0px;
    }

    .recommendation-info {
        align-items: center;
        text-align: center;
        padding: 10px;
        padding-left: 5%;
        padding-right: 5%;
    }

    .recommendation-info h3 {
        font-size: 20px;
    }

    .city-form {
        top: 100px !important;
        left: 10px !important;
        max-width: 300px !important;
        padding: 8px !important;
    }

    .city-form input {
        width: 90%;
        padding: 8px;
        font-size: 14px;
    }

    .city-form button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .button-item {
        padding: 25px;
    }

    .button-item i {
        font-size: 2em;
    }

    #search-input {
        width: 50%;
        margin-top: 0;
    }

    .matrix-section {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 20px;
        overflow-y: auto;
        width: 100%;
        margin-top: 20%;
        height: 90%;
    }

    .matrix-grid {
        display: flex;
        flex-wrap: wrap;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        max-width: 100%;
        width: 100%;
        margin: 0;
        justify-content: center;

    }

    .matrix {
        display: flex;
        flex-direction: column !important;
        width: 30% !important;
        max-width: 30% !important;
    }

    .options-section{
        padding: 0;
    }

    .type4 {
        margin: 0 !important;
        width: 100%;
        height: 100%;
        padding-top: 30px;
    }

    .type3 {
        margin: 0 !important;
        width: 100%;
    }

    .type2 {
        margin: 0 !important;
        width: 100%;
    }

    .type1 {
        margin: 0;
        width: 100%;
    }

    .back-button{
        left: 7% !important;
        top: 240px;
        background-color: transparent !important;
        color: #666 !important;
        border-radius: none !important;
        box-shadow: none !important;
        transition: none !important;
    }

    .back-button:hover {
      background-color: transparent !important; /* Cambiar color de fondo */
    }

    .task-header H2{
        font-size: 18px !important;
        font-weight: 600;
    }

}

.type3, .type4, .type2, .type1 H2 {
    color: #333;
    font-size: 20px;
    text-align: center;
}

#list-title{
    color: white;
}

/* Mensajes Flash */
.alert {
    padding: 15px;
    margin: 0 auto; /* Centrar horizontalmente */
    position: fixed; /* Fijar en la pantalla */
    top: 50px; /* Distancia desde la parte superior */
    left: 50%; /* Centrar horizontalmente */
    transform: translateX(-50%); /* Ajuste para centrar completamente */
    z-index: 1002; /* Asegurarse de que esté sobre otros elementos */
    width: 80%; /* Ajustar ancho relativo al tamaño de la pantalla */
    max-width: 500px; /* Limitar el ancho máximo */
    text-align: center;
    font-size: 1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Añadir sombra para destacar */
    border-radius: 8px; /* Bordes redondeados */
}

/* Éxito */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Error */
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.grecaptcha-badge {
    visibility: hidden;
}

.type4 {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px;
    flex-grow: 1;
    overflow-y: auto;
}

.type3 {
    max-width: 800px;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.type2 {
    width: 80%;
    margin: 0 auto;
    margin-top: 100px;
    flex-grow: 1;
}

.type1 {
    width: 100%;
    max-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    flex-grow: 1;
    flex-direction: column;
}

/* Estilos para el botón de emojis */
.emoji-btn {
    background: none !important;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 5px;
    transition: transform 0.2s;
}

.emoji-btn:hover {
    transform: scale(1.1);
}

/* Estilos para el selector de emojis */
.emoji-picker-hidden {
    display: none !important;
}

.emoji-picker {
    position: absolute;
    bottom: 50px;
    left: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 250px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1002;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.emoji-picker1 {
    position: absolute;
    left: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 250px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1002;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.emoji-picker button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.emoji-picker button:hover {
    transform: scale(1.2);
    background-color: #f0f0f0;
    border-radius: 4px;
}

/* Estilos del botón de atrás */
.back-button {
  position: fixed; /* Posición fija */
  left: 20px; /* A la izquierda de la pantalla */
  transform: translateY(-50%); /* Centrar verticalmente */
  background-color: var(--button-menu-hover); /* Color de fondo */
  color: white; /* Color del icono */
  border: none; /* Sin borde */
  border-radius: 50%; /* Forma circular */
  width: 50px; /* Ancho */
  height: 50px; /* Alto */
  font-size: 20px; /* Tamaño del icono */
  cursor: pointer; /* Cursor de puntero */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra */
  transition: background-color 0.3s ease; /* Transición suave */
  z-index: 399;
  display: none;
}

/* Efecto al pasar el ratón sobre el botón */
.back-button:hover {
  background-color: var(--button-menu-hover); /* Cambiar color de fondo */
}

#loading1{
    position: fixed;
    width: 100%;
    height: 100%;
    align-content: center;
    justify-content: center;
    display: none;
    background: transparent;
    border: none;
    flex-wrap: wrap;
}

.imgLoading{
    width: 100px;

}

.filter-button {
    padding: 10px 15px;
    background-color: var(--button-menu-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
    align-self: center;
    margin-bottom: 5px;
    display: none;
}

.filter-button:hover {
    background-color: var(--button-menu-hover);
}

.search-container {
    width: 100%;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.search-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10%;
    flex-direction: column;
}

.search-bar input {
    padding: 10px;
    width: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-bar button {
    padding: 10px 15px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

/* flights */

.flights{
    overflow-y: auto;
    font-size: small;
    padding: 10px;
}

.flight-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    margin: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: column;

}

.flight-item-task {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.flight-info {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.origin, .destination {
    flex: 1;
    min-width: 33%;
}

.origin{
    text-align: left;
}

.destination{
    text-align: right;
}

.linePlane{
    min-width: 33%;
    background-color: #c1c7cf;
    border-radius: .5rem;
    display: block;
    height: .125rem;
    line-height: 0;
    margin: .25rem auto;
    padding: 0;
    position: relative;
    text-align: center;
    margin-top: 20px;
}

.duration {
    flex: 0.5;
    text-align: center;
    min-width: 50%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.price{
    flex: 0.5;
    text-align: center;
    min-width: 50%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.carrier{
    min-width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carrier img{
    width: 30px;
    border-radius: 10%;
}

.flight-info h3 {
    margin: 0 0 10px;
    color: var(--button-color);
    font-size: 1rem;
}

.flight-info p {
    margin: 5px 0;
    color: var(--primary-text);
    font-size: 0.95rem;
}

/* lookingForJobs  */
.job-search-container {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.job-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.job-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.job-header h3 {
    margin: 0;
    color: var(--button-color);
}

.company {
    font-weight: bold;
    color: var(--primary-text);
}

.location, .salary {
    font-size: 14px;
    color: var(--button-menu-color);
}

.salary{
    text-align: left;
}

.apply-btn {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: var(--button-menu-hover);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.apply-btn:hover {
    background: var(--button-color);
}


/* flats  */
/* Contenedor principal de búsqueda */
.property-search-container {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

/* Barra de búsqueda */
.search-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.search-bar input, .search-bar select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-bar button {
    padding: 10px 15px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-bar button:hover {
    background: var(--primary-gradient);
}

/* Resultados de propiedades */
.property-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    flex-grow: 1;
    overflow-y: auto;
    padding: 3%;
}

/* Tarjeta de propiedad */
.property-card {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    align-items: stretch;
}

/* Imagen de la propiedad */
.property-image {
    flex: 0 0 250px; /* Ancho fijo para la imagen */
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* Imagen de la propiedad */
.property-image-task {
    flex: 0 0 250px; /* Ancho fijo para la imagen */
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubrirá el espacio sin deformarse */
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.property-image-task img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubrirá el espacio sin deformarse */
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Información de la propiedad */
.property-info {
    flex: 1;
    display: flex;
    padding: 15px;
    align-content: flex-start;
    flex-wrap: wrap;
    flex-direction: column;
    width: 90%;
}

.property-info h3 {
    margin: 0 0 10px;
    color: var(--primary-text);
    font-size: 1.2rem;
}

.property-info p {
    margin: 5px 0;
    color: var(--primary-text);
    font-size: 20px;
}

/* Botón de detalles */
.details-btn {
    display: inline-block;
    padding: 10px 15px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    font-family: var(--font-family);
    border: none;
    cursor: pointer;
}

.details-btn:hover {
    background: var(--button-menu-hover);
}

/* Responsive para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .property-card {
        flex-direction: column;
        align-items: center;
    }

    .property-image {
        width: 100%;
        height: 200px; /* Altura ajustada para móviles */
        flex: none;
    }

    .property-image-task {
        width: 100%;
        height: 200px; /* Altura ajustada para móviles */
        flex: none;
    }

    .property-image img {
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0px;
    }

    .property-image-task img {
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0px;
    }

    .property-info {
        text-align: left;
    }

    .property-info h3 {
        font-size: 20px;
        text-align: center;
    }

    .documentation-item p{
        font-size: 18px !important;
    }

}


/* documentation  */
.documentation{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 90px;
    gap: 10px;
}

.documentation1{
    width: 30%;
    display: flex;
}

.documentation-item{
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    color: black;
    width: 100%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.documentation-item-task{
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: black;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.documentation-item H3{
    margin: 0 0 10px;
    color: var(--primary-text);
    font-size: 10px 15px;

}

.documentation-item-task H3{
    margin: 0 0 10px;
    color: var(--button-color);
    font-size: 1.2rem;

}

.documentation-item p{
    margin: 5px 0;
    color: var(--primary-text);
    font-family: var(--font-family);
}


/* Media Queries para móviles (hasta 767px) */
@media screen and (max-width: 768px) {

    .documentation1{
        max-width: 100%;
        min-width: 100%;
    }   

}

/* tasks */
#tasksResults {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 20px;
    padding-bottom: 90px;
}

/* Contenedor principal de cada categoría padre */
.task-section {

}

/* Botón estilo moderno para secciones de tareas */
.task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 20px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    border: none;
    border-radius: 20px;
    background: white;
    color: #004466;
    box-shadow: 0 2px 6px rgba(0, 166, 255, 0.15);
    transition: all 0.25s ease-in-out;
    margin-right: 10px;
    margin-left: 10px;
}

.task-header:hover {

}

.task-header:active {

}

.task-header.expanded {
    color: var(--button-text);
    box-shadow: 0 4px 10px rgba(0, 166, 255, 0.3);
    transform: scale(0.98);
    transform: translateY(-1px);
}


/* Flechita */
.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Contenido plegable */
.task-content {
    overflow: hidden;
    max-height: 0;
    padding: 0 16px;
}

.task-content.expanded {
    max-height: 5000px; /* suficiente para mostrar contenido */
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Subsecciones anidadas dentro del contenedor padre */
.task-section > .task-section {
    margin: 5px 0 5px 10px;  /* Sangría hacia la derecha */
    border: none;
    background: var(--button-text);
    border-left: 4px solid #d4d4d4;
}

/* Subheader (subsección) más sutil */
.task-section > .task-section .task-header {
    background-color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.city-suggestions {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: grey;
    position: static;
}

.city-suggestions li {
    padding: 10px;
    cursor: pointer;
}

.city-suggestions li:hover {
    background: #ddd;
}

.advanced-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.advanced-filters select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  min-width: 120px;
}

.checkbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.checkbox-filters label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
}

/* Oculta el checkbox original, pero mantiene accesibilidad y funcionalidad */
input[type="checkbox"] {
  position: relative;
  width: 50px;
  height: 26px;
  -webkit-appearance: none;
  background: #ccc;
  outline: none;
  border-radius: 50px;
  transition: background 0.3s;
  cursor: pointer;
  margin: 6px;
}

input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: white;
  transition: 0.3s;
}

/* Cuando está marcado (activado) */
input[type="checkbox"]:checked {
  background: var(--primary-gradient, #4cd964); /* verde tipo iOS o tu gradiente */
}

input[type="checkbox"]:checked::before {
  transform: translateX(24px);
}


.modal1 {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: flex-end; /* cambia a fondo inferior */
  transition: opacity 0.3s ease;
}

.modal-content3 {
  background-color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  text-align: center;
  max-width: 100%;
  width: 100%;
  height: 80vh;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-size: 20px;
  font-family: var(--font-family);
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

.modal1.active {
  display: flex;
}

.modal1.active .modal-content1 {
  transform: translateY(0); /* desliza hacia arriba */
}

.modal1.active .modal-content3 {
  transform: translateY(0);
}

.modal1.active .modal-content4 {
  transform: translateY(0); /* desliza hacia arriba */
}



.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.modal-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    font-family: var(--font-family);
}

.amenity-tag {
  background-color: #f1f1f1;
  border-radius: 10px;
  padding: 4px 10px;
  margin: 3px;
  display: inline-block;
  font-size: 14px;
}


.modal-content1 {
  background-color: #fff;
  padding: 20px 30px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  text-align: center;
  max-width: 100%;
  width: 100%;
  height: 50vh;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-size: 20px;
  font-family: var(--font-family);
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.modal-content4 {
  background-color: #fff;
  padding: 20px 30px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  text-align: center;
  max-width: 100%;
  width: 100%;
  height: 80vh;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-size: 20px;
  font-family: var(--font-family);
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

#confirmDeleteBtn {
    background-color: var(--ms-danger, #e53935);
    color: white;
}

#cancelDeleteBtn {
    background-color: #ccc;
}

#confirmDeleteFavoriteBtn {
    background-color: var(--ms-danger, #e53935);
    color: white;
}

#cancelDeleteFavoriteBtn {
    background-color: #ccc;
}


.buttonAux{
    margin-bottom: 10px;
    padding: 10px 15px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 6px;
    height: auto;
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow:var(--shadow-soft);
    font-family: var(--font-family); 
    text-decoration: none;
}

#tasksResults div button {
    margin-bottom: 10px;
    padding: 15px 20px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 15px;
    height: auto;
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow:var(--shadow-soft);
    margin-top: 20px;
    font-family: var(--font-family);
}

#tasksResults div button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.4),
        inset 0 -2px 6px rgba(0,0,0,0.25),
        0 6px 14px rgba(0,0,0,0.15);
}

.custom-task-creator button {
    padding: 15px 20px;
    margin-top: 10px;
    background: #d7e8ff;
    border: none;
    border-radius: 15px;
    height: auto;
    color: #016fd5;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: var(--font-family);
}

.custom-task-creator button:hover  {
    filter: brightness(1.05);
    box-shadow: 0;
}

.custom-task-creator textarea {
    width: 100%;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.custom-task-creator input {
    width: 80%;
    padding: 6px;
    border-radius: 4px;
    border: 2px solid var(--button-menu-hover);
}

.custom-task-creator select {
    padding: 6px;
    border-radius: 4px;
    border: 2px solid var(--button-menu-hover);
    width: 80%;
    height: 40px;
    margin-bottom: 10px;
}

.skeleton-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  gap: 16px;
  animation: fadeIn 0.2s ease-in;
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  background: var(--fondo);
}

.skeleton-screenPlanning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: var(--fondo);
}



.skeleton-screenChat {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  gap: 16px;
  animation: fadeIn 0.2s ease-in;
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  background: white;
  min-height: 100%;
}

.skeleton-screenSubs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  gap: 16px;
  animation: fadeIn 0.2s ease-in;
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  background: var(--fondo);
}

.skeleton-header {
  width: 60%;
  height: 24px;
  border-radius: 6px;
  background-color: #e0e0e0;
}

.skeleton-item {
  width: 90%;
  height: 100px;
  border-radius: 6px;
  background-color: #e0e0e0;
}

.shimmer {
  background: linear-gradient(
    to right,
    #e0e0e0 0%,
    #f5f5f5 50%,
    #e0e0e0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#customTaskText{
    width:80%; 
    margin-top:5px;
    border: 2px solid var(--button-menu-hover);
    height: 150px;
}

input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #f9f9f9;
    color: #333;
    padding: 10px 14px;
    border: 1px solid #007bff;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-family);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
}

input[type="date"]:focus {
    border-color: black;
    background-color: #fff;
}

/* Dark mode compatible (si usas prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
    input[type="date"] {
        background-color: #1e1e1e;
        color: #eee;
        border-color: #444;
    }

    input[type="date"]:focus {
        border-color: #66aaff;
        box-shadow: 0 0 0 3px rgba(102, 170, 255, 0.3);
        background-color: #2c2c2c;
    }
}

/* Estilo personalizado para el ícono del calendario en navegadores compatibles */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: url("data:image/svg+xml,%3Csvg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E") no-repeat center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}



/* subscriptions.css */
.subs {
  display: grid;
  gap: 14px;
  font-family: var(--font-family);
  color: #e5e7eb;
  margin-top: 40px;
}

.subs .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subs .hint {
  font-size: 0.9rem;
  color: var(--primary-text);
}

.subs .row {
  display: grid;
  gap: 10px;
}

.subs .card {
  border-radius: 16px;
  background: var(--card);
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.subs .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.subs .title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
}

.subs .desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.subs .price {
  font-weight: 700;
}

.subs .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subs button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  color: white;
  background: #1f2937;
  cursor: pointer;
}

.subs button.primary {
  background: var(--accent);
}

.subs button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.subs .status {
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f1324;
  border: 1px dashed rgba(255,255,255,0.08);
}

.subs .status.ok { border-color: rgba(18,185,129,0.45); color: #bbf7d0; }
.subs .status.warn { border-color: rgba(245,158,11,0.45); color: #fde68a; }
.subs .status.err { border-color: rgba(239,68,68,0.45); color: #fecaca; }

.subs .toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.subs .small {
  font-size: 0.85rem;
  color: var(--muted);
}

.subs .tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0f1324;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}


/*--pllaning--*/

:root {
  --background-color: #f3f6f9;
  --text-color: #333;
  --button-color: #0077ff;
  --card-radius: 12px;
  --focus-outline: 2px solid #000;
}

.trip-planning-container {
  color: var(--text-color);
  padding: 1rem;
  font-family: var(--font-family);
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.day-view {
    display: flex;
    overflow-x: hidden;
}

/* ---------- Tabs ---------- */
.trip-header {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 1rem;
}
.trip-header button {
  border: none;
  padding: 0.75rem 1rem;
  font-weight: bold;
  cursor: pointer;
font-size: 20px;
font-family: var(--font-family);
border-radius: 15px;
color: #016fd5;
background: #d7e8ff;
}

#newPlanning{
    border: none;
    border-radius: 15px;
    color: #016fd5;
}

.trip-header [role="tab"][aria-selected="true"] {
  color: var(--accent-blue);
}


/* ---------- Columnas ---------- */
#columns-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.column {
  min-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
}

.column-header {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--secondary-text);
}

.column-activities {
  overflow-y: auto;
  flex-grow: 1;
  min-height: 56px;
  margin-bottom: 50px;
  font-family: var(--font-family);
}

/* ---------- Actividades ---------- */
.activities-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-card {
  background: #fff;
  color: var(--primary-text);
  font-weight: bold;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding-left: 15px;
  margin-bottom: 0.75rem;
  position: relative;
  cursor: grab;
  user-select: none;
  list-style: none;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.activity-header H3{
  font-size: 1em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* máximo 2 líneas */
  line-clamp: 3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.activity-details {
  display: none;
  margin-top: 0.75rem;
}
.activity-card[aria-expanded="true"] .activity-details {
  display: block;
}

.activity-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.activity-actions button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  color: white;
}
.activity-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

/* ---------- Drag Visuals ---------- */

.drag-ghost,
.sortable-ghost,
.drag-chosen {
  opacity: 0 !important;
  visibility: hidden !important;
}

.sortable-fallback {
  opacity: 1 !important;
  transform: scale(1.03);
  z-index: 9999;
  pointer-events: none;              /* no bloquea el drop */
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  border-radius: var(--card-radius);
}

.dragging {
  opacity: 0 !important;
  transform: scale(1.05);
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#propertieModal{
    justify-content: flex-start;
}

/* ---------- Modal ---------- */
.modal2 {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-content2 {
  background: white;
  padding: 1.5rem;
  border-radius: var(--card-radius);
  width: 90%;
  max-width: 400px;
  overflow-y: auto;
}

.modal-content2 input,
.modal-content2 textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: 1rem;
}

.modal-content2 button {
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
}

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, var(--button-color), #00d4ff);
  color: white;
  font-size: 1.8rem;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10;
}
.fab:focus {
  outline: var(--focus-outline);
}

/* ---------- Mapa ---------- */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--card-radius);
  margin-bottom: 1rem;
}
.export-map-btn {
  background: linear-gradient(135deg, var(--button-color), #00d4ff);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* ---------- Accesibilidad ---------- */
[hidden] {
  display: none !important;
}
[aria-live] {
  min-height: 1.5rem;
  display: block;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: var(--focus-outline);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .column {
    min-width: 90%;
    max-width: 90%;
    width: 90%;
  }
}

.no-horizontal-scroll {
  overflow-x: hidden !important;
  overscroll-behavior-x: none !important;
  touch-action: pan-y !important; /* ← muy importante para evitar swipe lateral */
}

#quick-section,
#detailed-section {
  margin-bottom: 2rem;
  transition: all 0.3s ease-in-out;
}

.trip-planning-container label {
  font-weight: bold;
  margin-bottom: 0.25rem;
  display: block;
  font-size: 20px;
  font-family: var(--font-family);
}

.trip-planning-container textarea {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: vertical;
  width: 100%;
  font-size: 1rem;
  min-height: 80px;
  transition: border 0.2s ease;
}
.trip-planning-container textarea:focus {
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
  outline: none;
}


.button-planning{
    padding: 15px;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    width: auto;
    height: auto;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow-card)
}

.inputs-planning{
    padding: 15px;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 5px;
    border: 2px solid #007bff;
    font-size: 20px;
    font-family: var(--font-family);
    width: 80%;
    margin-bottom: 10px;
}

.trip-planning-container select {
  appearance: none;
  background-color: #f9f9f9;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23007bff' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding: 10px 2.5rem 10px 1rem;
  border: 2px solid var(--button-color);
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.trip-planning-container select:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
  outline: none;
}


.map-marker {
  width: 28px; height: 28px; border-radius: 999px;
  background: #53b3ff; color: #000; font-weight: 800;
  display: grid; place-items: center; border: 2px solid rgba(0,0,0,.6);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.map-marker.walk { background:#8dd3c7; }
.map-marker.drive { background:#ffd166; }
.map-marker.cycle { background:#c2aff0; }
.map-marker.straight { background:#a8dadc; }
.map-legend, .map-kpis {
  display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:6px 0;
}
.map-badge { font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid #243140; color:#b9c9da; display:inline-flex; gap:6px; align-items:center; }
.map-badge .dot { width:10px; height:10px; border-radius:50%; display:inline-block; }
.map-instructions { display:none; max-height:220px; overflow:auto; border:1px solid #1e2734; border-radius:12px; padding:8px; background:#0d1420; }
.map-instructions.show { display:block; }

.myTripsNew {
    margin-top: 40px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 10px;
    padding: 15px;
    background: transparent;
    border: 3px solid var(--accent-blue);
    border-radius: 12px;
    width: auto;
    height: auto;
    color: var(--accent-blue);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: var(--font-family);

    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.3),  /* luz desde arriba */
        inset 0 -2px 4px rgba(0,0,0,0.2),       /* sombra inferior */
        0 4px 10px rgba(0,0,0,0.1);             /* sombra general */
}

.myTripsNew:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.4),
        inset 0 -2px 6px rgba(0,0,0,0.25),
        0 6px 14px rgba(0,0,0,0.15);
}

#myTrips{
    overflow-y: auto;
    padding-bottom: 90px;
}

.myTrips{
    padding: 15px;
    margin: 20px;
    background: white;
    border: none;
    border-radius: 12px;
    width: auto;
    height: auto;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    /* Efecto acolchado */
    box-shadow:var(--shadow-card)
}

.myTrips:hover  {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.4),
        inset 0 -2px 6px rgba(0,0,0,0.25),
        0 6px 14px rgba(0,0,0,0.15);
}

.cancelOnboarding{
    padding: 15px;
    bottom: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 7px;
    width: auto;
    height: auto;
    color: white;
    font-size: 20px;
    font-weight: bold;
    font-family: var(--font-family);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow:var(--shadow-card)
}

#accessOnboarding{
    padding: 15px;
    z-index: 999;
    margin-top: 50px;
    width: auto;
    height: auto;
    display: none;
    flex-wrap: nowrap;
    gap: 10px;
}

.access1Onboarding{
    background: var(--primary-gradient);
    border: none;
    border-radius: 7px;
    width: auto;
    height: auto;
    color: white;
    font-size: 20px;
    font-weight: bold;
    font-family: var(--font-family);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow:var(--shadow-card)
}

.cancelOnboarding:hover  {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.4),
        inset 0 -2px 6px rgba(0,0,0,0.25),
        0 6px 14px rgba(0,0,0,0.15);
}

.trip-button {
  background: var(--primary-gradient);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: bold;
  padding: 10px 30px;
  margin: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.1s ease;
  backdrop-filter: blur(4px);
}

.trip-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.trip-button:active {
  transform: scale(0.97);
}

.trip-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  color: var(--primary-text);
  font-family: var(--font-family);
  font-size: 16px;
}

.trip-meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--secondary-text);
  padding: 4px 0;
}

.trip-meta-label {
  opacity: 0.8;
  font-weight: 500;
}

.trip-meta-value {
  font-weight: 600;
}

.trip-origin{
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f9f9f9;
    color: #333;
    padding: 10px 14px;
    border: 1px solid #007bff;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-family);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
}

.range-buttons-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.range-buttons-group button {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--button-color);
  background: white;
  color: var(--button-color);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.range-buttons-group button.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow:var(--shadow-card);
}
input[type="range"].hidden-range {
  display: none;
}

.question-block {
  margin-bottom: 40px;
  margin-top: 40px;
  transition: background 0.3s ease;
}

.question-block label,
.question-block legend {
  font-weight: bold;
  font-size: 20px;
  font-family: var(--font-family);
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
}

.question-block select,
.question-block input[type="text"],
.question-block input[type="range"],
.question-block textarea {
  width: 90%;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  font-size: 20px;
  font-family: var(--font-family);
  box-shadow: var(--shadow-card);
}

.question-block select:focus,
.question-block input[type="text"]:focus,
.question-block input[type="range"]:focus,
.question-block textarea:focus {
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
  outline: none;
}

.question-block fieldset {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  margin: 0;
  background: #f9f9f9;
}

.question-block legend {
  font-weight: bold;
  padding: 0 0.5rem;
  margin-bottom: 0.75rem;
}

.documentation-item-task {
    position: relative;
    padding: 10px;
}

.documentation-item-task i.fa-pen {
    position: absolute;
    top: 10px;
    right: 10px;
}

.results{
    font-size: 20px;
    color: var(--primary-text);
    font-family: var(--font-family);
    padding-bottom: 90px;
}

.flight-stops {
  font-size: 14px;
  font-weight: bold;
  color: #555;
  margin-bottom: 10px;
}

#imageTop {
  transition: height 0.3s ease-in-out;
  overflow: hidden; /* opcional si hay contenido que se expande */
  width: 100%;
  height: 230px;
  overflow: hidden;
  position: relative;
  background: var(--primary-gradient);
  display: none;
}

#bottom-menu {
  transition: 
    margin-top 0.3s ease-in-out,
    bottom 0.3s ease-in-out;
}

#city-name-display{
    margin-top: 50px;
  transition: 
    font-size 0.3s ease-in-out;
}

#magicMap{
    font-size: 35px;
    margin-top: 10px;
    margin-right: 20px;
}

.carousel-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  min-height: 200px;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0; /* Fondo estético si sobra espacio */
  box-sizing: border-box;
  padding: 10px;
max-height: 350px;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  background: white; /* Fondo interno si la imagen no llena */
  border-radius: 8px;
}

.modal-link{
    text-decoration: none;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    font-family: var(--font-family);
    color: white;
    background: var(--primary-gradient);
}


/* ===== Getting There ===== */

#gettingThere {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  padding-bottom: 90px;
  background-color: var(--fondo, #F2F5F9);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding-bottom: 90px;
}

.gettingThere-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gettingThere-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1A1F36;
  letter-spacing: -0.01em;
}

.gettingThere-sub {
  margin: 4px 0 0 0;
  color: #6B7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.gettingThere-btn {
  border: none;
  background: var(--primary-gradient, linear-gradient(135deg, #00C6FB 0%, #005BEA 100%));
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 8px;
  align-self: flex-start;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 91, 234, 0.2);
  letter-spacing: 0.01em;
}

.gettingThere-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 91, 234, 0.25);
}

.gettingThere-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 91, 234, 0.2);
}

.gettingThere-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6B7280;
  font-size: 15px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

.gettingThere-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.gettingThere-seg {
  border: 1px solid #E5E7EB;
  background: white;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.gettingThere-seg:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: #D1D5DB;
}

.gettingThere-segHead {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.gettingThere-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 198, 251, 0.08) 0%, rgba(0, 91, 234, 0.08) 100%);
  border: 1px solid rgba(0, 91, 234, 0.12);
  font-size: 20px;
  flex-shrink: 0;
}

.gettingThere-main {
  flex: 1;
  min-width: 0;
}

.gettingThere-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.gettingThere-fromto {
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.gettingThere-meta {
  margin-top: 4px;
  color: #6B7280;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gettingThere-desc {
  margin-top: 16px;
  color: #4B5563;
  font-size: 15px;
  line-height: 1.5;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 12px;
  border-left: 3px solid #00C6FB;
}

.gettingThere-steps {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gettingThere-step {
  color: #374151;
  margin: 0;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-size: 14.5px;
  line-height: 1.5;
  border: 1px solid transparent;
  background: white;
  display: block;
}

.gettingThere-step:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
  transform: translateX(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gettingThere-step:active {
  transform: translateX(0);
}

.gettingThere-alts {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gettingThere-altBtn {
  border: 1px solid #D1D5DB;
  background: transparent;
  color: #374151;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gettingThere-altBtn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gettingThere-altBtn:active {
  transform: translateY(0);
}

.gettingThere-connector {
  height: 20px;
  width: 2px;
  background: #E5E7EB;
  margin-left: 24px;
  border-radius: 999px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.gettingThere-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pill-stable {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #065F46;
}

.pill-conditioned {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #92400E;
}

.pill-risk {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #991B1B;
}


.activity-thumb {
  width: 100px;
  height: 64px;
  min-width: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  padding-bottom: 10px;
}

.activity-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.activity-details {
  font-weight: normal;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .activity-card {
    flex-direction: row;
  }

  .activity-thumb {
    width: 100%;
    height: 120px;
  }
}

/* ---------- Activity card with left thumbnail ---------- */

.activity-card {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

/* Miniatura izquierda */
.activity-thumb {
  width: 100px;
  min-width: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  margin-top: 20px;
  margin-bottom: 5px;
}

.activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contenido principal */
.activity-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; /* 🔴 CRÍTICO para evitar overflow */
}

/* Header mantiene comportamiento anterior */
.activity-main .activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Meta info */
.activity-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  padding-bottom: 10px;
}

/* Detalles (accordion) */
.activity-details {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Mobile tweaks */
@media (max-width: 760px) {
  .activity-thumb {
    width: 100px;
    min-width: 100px;

  }
}

.modal-description{
    text-align: left;
}

.modal-address{
    text-align: left;
}

.modal-title{
    color: #333;
    font-size: 22px;
}

#planning-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #007bff;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    z-index: 100;
}

  #onboardingImages {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 9999;
    display: none;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  #onboardingImages.active {
    display: block;
    opacity: 1;
  }

  .onboardingImages-slide {
      position: absolute;
      width: 100%;
      height: 100%;
      background-size: cover; /* Cambiado de 100% 100% */
      background-position: center center; /* Centrado vertical y horizontal */
      background-repeat: no-repeat;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: opacity 0.3s ease;
      opacity: 0;
  }

  .onboardingImages-slide.active {
    opacity: 1;
    z-index: 1;
  }

  .onboardingImages-text {
    text-align: center;
    margin-top: 10%;
    color: #333;
    font-size: 30px;
    font-weight: bold;
    padding-left: 20px;
    padding-right: 20px;
  }

  .onboardingImages-textH {
    text-align: center;
    margin-top: 50%;
    color: #333;
    font-size: 30px;
    font-weight: bold;
    padding-left: 20px;
    padding-right: 20px;
  }

  .onboardingImages-button {
    margin-bottom: 10%;
    align-self: center;
    padding: 12px 24px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #00C6FB 0%, #005BEA 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: Inter;
    font-weight: bold;
    font-size: 22px;
  }

  .onboardingImages-button:hover {
    opacity: 0.9;
  }

.languages-container {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.language {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

.language1{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto !important; 
    align-content: center;
}

.language1 p{
    margin:0;
    display: inline-block;
    text-align: center;
}

.language-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.backgroundButton{
    background: var(--primary-gradient);
}

.customSearch{
    width: 100%;
    display: none;
    justify-content: center;
    flex-direction: column;
}

.customSearch1{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}











/* ===== VARIABLES PARA EL SISTEMA DE MODALES ===== */
.modal-system {
  --ms-primary: #009ee3;
  --ms-primary-dark: #0080c3;
  --ms-danger: #e53935;
  --ms-danger-dark: #c62828;
  --ms-success: #4caf50;
  --ms-neutral: #757575;
  --ms-neutral-light: #f5f5f5;
  --ms-border: #e1e5e9;
  --ms-text: #2c3e50;
  --ms-text-light: #546e7a;
  --ms-text-lighter: #90a4ae;
  --ms-bg: #ffffff;
  --ms-radius: 12px;
  --ms-radius-lg: 16px;
  --ms-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --ms-font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --ms-spacing-xs: 8px;
  --ms-spacing-sm: 12px;
  --ms-spacing-md: 16px;
  --ms-spacing-lg: 20px;
  --ms-spacing-xl: 24px;
}

/* ===== SISTEMA DE TEXTO ===== */
.ms-title {
  color: var(--ms-text, #2c3e50);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--ms-spacing-md, 16px);
  text-align: center;
  font-family: var(--ms-font-family);
}

.ms-subtitle {
  color: var(--ms-text, #2c3e50);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 var(--ms-spacing-md, 16px);
  text-align: center;
  font-family: var(--ms-font-family);
}

.ms-text {
  color: var(--ms-text-light, #546e7a);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 var(--ms-spacing-md, 16px);
  text-align: center;
  font-family: var(--ms-font-family);
}

.ms-text-small {
  color: var(--ms-text-lighter, #90a4ae);
  font-size: 14px;
  line-height: 1.4;
  margin: var(--ms-spacing-xs, 8px) 0;
  font-family: var(--ms-font-family);
}

/* ===== FORMULARIO Y CONTROLES ===== */
.ms-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--ms-spacing-md, 16px);
}

.ms-input-group {
  width: 100%;
  margin-bottom: var(--ms-spacing-sm, 12px);
}

.ms-input,
.ms-textarea,
.ms-select {
  width: 100%;
  padding: 14px var(--ms-spacing-md, 16px);
  border: 2px solid var(--ms-border, #e1e5e9);
  border-radius: var(--ms-radius, 12px);
  background-color: var(--ms-bg, #ffffff);
  color: var(--ms-text, #2c3e50);
  font-size: 16px;
  font-family: var(--ms-font-family);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ms-input:focus,
.ms-textarea:focus,
.ms-select:focus {
  outline: none;
  border-color: var(--ms-primary, #009ee3);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 158, 227, 0.1);
}

.ms-input::placeholder,
.ms-textarea::placeholder {
  color: var(--ms-text-lighter, #90a4ae);
}

.ms-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.ms-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--ms-spacing-md, 16px) center;
  background-size: 16px;
  padding-right: 44px;
}

/* ===== SISTEMA DE BOTONES ===== */
.ms-actions {
  width: 100%;
  display: flex;
  gap: var(--ms-spacing-sm, 12px);
  margin-top: var(--ms-spacing-lg, 20px);
}

.ms-button {
  flex: 1;
  padding: 14px var(--ms-spacing-md, 16px);
  border: none;
  border-radius: var(--ms-radius, 12px);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--ms-font-family);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ms-button-primary {
  background: var(--primary-gradient, #009ee3);
  color: white;
}

.ms-button-primary:hover {
  background: var(--primary-gradient, #0080c3);
  transform: translateY(-1px);
  box-shadow: var(--ms-shadow);
}

.ms-button-danger {
  background-color: var(--ms-danger, #e53935);
  color: white;
}

.ms-button-danger:hover {
  background-color: var(--ms-danger-dark, #c62828);
  transform: translateY(-1px);
  box-shadow: var(--ms-shadow);
}

.ms-button-secondary {
  background-color: var(--ms-neutral-light, #f5f5f5);
  color: var(--ms-text-light, #546e7a);
  border: 2px solid var(--ms-border, #e1e5e9);
}

.ms-button-secondary:hover {
  background-color: var(--ms-border, #e1e5e9);
  transform: translateY(-1px);
}

.ms-button-outline {
  background-color: transparent;
  color: var(--ms-primary, #009ee3);
  border: 2px solid var(--ms-primary, #009ee3);
}

.ms-button-outline:hover {
  background-color: rgba(0, 158, 227, 0.05);
}

/* ===== BOTONES CON ÍCONOS ===== */
.ms-button-group {
  display: flex;
  gap: var(--ms-spacing-md, 16px);
  justify-content: center;
  margin: var(--ms-spacing-lg, 20px) 0;
}

.ms-button-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ms-neutral-light, #f5f5f5);
  border: 2px solid var(--ms-border, #e1e5e9);
  color: var(--ms-text-light, #546e7a);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ms-button-icon:hover {
  background-color: var(--ms-primary, #009ee3);
  border-color: var(--ms-primary, #009ee3);
  color: white;
  transform: translateY(-2px);
}

/* ===== COMPONENTES ESPECÍFICOS ===== */
.ms-progress {
  width: 100%;
  height: 4px;
  background-color: var(--ms-border, #e1e5e9);
  border-radius: 2px;
  overflow: hidden;
  margin: var(--ms-spacing-md, 16px) 0;
}

.ms-progress-bar {
  height: 100%;
  background-color: var(--ms-primary, #009ee3);
  width: 0%;
  transition: width 0.3s ease;
}

.ms-meta {
  display: flex;
  gap: var(--ms-spacing-md, 16px);
  align-items: center;
  justify-content: center;
  margin: var(--ms-spacing-sm, 12px) 0 var(--ms-spacing-md, 16px);
  color: var(--ms-text-lighter, #90a4ae);
  font-size: 18px;
}

.ms-rating {
  color: #ffb400;
  font-weight: 600;
}

.ms-duration {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ms-address {
  font-size: 18px;
  margin: var(--ms-spacing-sm, 12px) 0;
  line-height: 1.4;
}

.ms-link {
  color: var(--ms-primary, #009ee3);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
  display: inline-block;
  margin-top: var(--ms-spacing-sm, 12px);
}

.ms-link:hover {
  color: var(--ms-primary-dark, #0080c3);
  text-decoration: underline;
}

.ms-carousel {
  width: 100%;
  height: 200px;
  border-radius: var(--ms-radius-lg, 16px);
  background-color: var(--ms-neutral-light, #f5f5f5);
  margin-bottom: var(--ms-spacing-lg, 20px);
  overflow: hidden;
}

/* ===== UTILIDADES ===== */
.ms-error {
  color: var(--ms-danger, #e53935);
  font-size: 14px;
  margin-top: var(--ms-spacing-xs, 8px);
  text-align: left;
  display: none;
}

.ms-error.show {
  display: block;
}

.ms-divider {
  height: 1px;
  background-color: var(--ms-border, #e1e5e9);
  margin: var(--ms-spacing-lg, 20px) 0;
  width: 100%;
}

.ms-spacer {
  flex: 1;
}

.ms-center {
  text-align: center;
}

.ms-icon-menu {
  font-size: 24px;
  color: var(--ms-text-lighter, #90a4ae);
  position: inherit;
  right: var(--ms-spacing-lg, 20px);
  top: var(--ms-spacing-lg, 20px);
  cursor: pointer;
  margin-left: 45%;
}

/* ===== RESPONSIVE PARA DESKTOP ===== */
@media (min-width: 768px) {
  .ms-title {
    font-size: 22px;
  }
  
  .ms-text {
    font-size: 17px;
  }
  
  .ms-button {
    min-height: 52px;
    font-size: 17px;
  }
  
  .ms-input,
  .ms-textarea,
  .ms-select {
    padding: 16px var(--ms-spacing-lg, 20px);
    font-size: 17px;
  }
}

#youtubeResults{
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 90px;
}

/* Contenedor principal */
#myTrips {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Tarjeta de viaje */
.trip-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  transition: box-shadow 0.2s ease;
  margin: 10px;
}

.trip-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.trip-card.active-trip {
  border-left: 4px solid var(--button-color);
}

/* Foto de la ciudad */
.trip-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  position: relative;
}

.trip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.active-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary-gradient);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(74, 108, 247, 0.3);
}

/* Información del viaje */
.trip-info {
  flex: 1;
  min-width: 0; /* Para que el texto no desborde */
}

/* Cabecera con nombre y botón compartir */
.trip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.trip-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  max-width: calc(100% - 36px); /* Deja espacio para el botón */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.share-btn:hover {
  background: #f5f5f5;
  color: #4a6cf7;
}

.share-btn i {
  font-size: 14px;
}

/* Fechas */
.trip-dates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-label {
  font-size: 12px;
  color: #666;
  width: 60px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.date-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Botones de acción */
.trip-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-size: 20px;
  font-weight: bold;
  font-family: Inter;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.primary-btn {
  background: var(--primary-gradient);
  color: white;
}

.primary-btn:hover {
  background: #3a5ce5;
  transform: translateY(-1px);
}

.secondary-btn {
  background: white;
  color: var(--button-color);
  border: 1px solid #d0d0d0;
}

.secondary-btn:hover {
  background: #f5f7ff;
  border-color: #4a6cf7;
}

/* Responsive */
@media (max-width: 768px) {
  .trip-card {
    padding: 12px;
    gap: 12px;
  }
  
  .trip-photo {
    width: 70px;
    height: 70px;
  }
  
  .trip-header h3 {
    font-size: 22px;
  }
  
  .action-btn {
    padding: 7px 12px;
    font-size: 20px;
    font-weight: bold;
    font-family: Inter;
  }
  
  .date-label {
    width: 50px;
    font-size: 11px;
  }
  
  .date-value {
    font-size: 13px;
  }
}

/* Estilo para foto por defecto */
.trip-photo img[src*="default-city.jpg"] {
  background: linear-gradient(135deg, #f5f7ff, #e3e6ff);
  opacity: 0.8;
}

/* Añade estos estilos al CSS existente */

/* Estilos para cuando la tarjeta está en modo edición */
.trip-card.editing {
  background: #f9f9ff;
  border-color: #4a6cf7;
}

/* Estilos para los inputs en modo edición */
.trip-dates input[type="date"] {
  padding: 4px 8px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  width: 140px;
}

.trip-dates input[type="text"] {
  padding: 4px 8px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
  max-width: 100%;
}

.trip-dates > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  justify-content: space-around;
}

.trip-dates > div > span {
  font-size: 16px;
  color: #666;
  width: 60px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Estilos para el botón Save en modo edición */
.trip-actions .trip-button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trip-actions .trip-button:hover {
  background: #3a5ce5;
  transform: translateY(-1px);
}

.introjs-tooltip{
    border-radius: 10px !important;
    color: #333 !important;
    font-size: 22px !important;
    font-family: Intro !important;
    min-width: 300px !important;

}

.introjs-button{
    font-size: 20px !important;
    font-weight: bold !important;
    text-shadow: none !important;
}

.introjs-nextbutton{
    float: right !important;
    background: var(--primary-gradient) !important;
    color: white !important;
}

.auxCity{
    display: flex;
    flex-direction: column;
}

.flat-marker {
  display: inline-block;
  background: #0084FF;
  color: white;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.1s ease;
}
.flat-marker:hover {
  transform: scale(1.05);
}

#property-resultsMap, 
#propertyRooms-resultsMap, 
#hotels-resultsMap, 
#cultureResultsMap, 
#barsResultsMap, 
#restaurantsResultsMap, 
#eventsResultsMap, 
#discosResultsMap, 
#customsearchResultsMap {
    height: 250px;
    min-height: 250px;
    width: 100%;
    flex: 1 1 auto;
    transition: height 0.3s ease, min-height 0.3s ease;
}

.dropdown-menu div:hover {
  background-color: #f0f0f0;
}

#hotelsFilterButton{
    display: none;
}

#suscriptionButtonMenu{
    display: none;
}

#transparentModal{
    display: none;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    position: absolute;
    z-index: 999;
    background: transparent;
}

.skeleton-img {
  width: 90%;
  height: 150px;
  margin-left: 5%;
  border-radius: 10px;
  background-color: #dcdcdc;
  position: relative;
  overflow: hidden;
}

.shimmer-diagonal::after {
  content: "";
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    135deg,
    rgba(220,220,220,0) 40%,
    rgba(245,245,245,0.8) 50%,
    rgba(220,220,220,0) 60%
  );
  animation: shimmerDiagonal 1.5s infinite;
}

@keyframes shimmerDiagonal {
  0% {
    transform: translateX(-50%) translateY(-50%);
  }
  100% {
    transform: translateX(50%) translateY(50%);
  }
}

.flight-loader {
  width: 80%;
  height: 80px;
  align-items: center;
  justify-content: center;
  margin-left: 10%;
  margin-top: 50px;
}

.flight-track {
  position: relative;
  width: 100%;
  height: 20px;
  background: #e0e0e0; /* gris */
  border-radius: 10px;
  overflow: visible;
}

.flight-progress {
  height: 100%;
  width: 0%;
  background: #0084ff; /* azul */
  border-radius: 10px;
  transition: width 0.05s linear;
}

.plane {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 90px;
  transform: translate(-50%, -50%);
  transition: left 0.05s linear;
}


.flight-loader1 {
    width: 100%;
    display: none;
    justify-content: center;
    position: fixed;
    flex-direction: column;
}

#loadinggettingThere{
    align-content: flex-start !important;
    padding-top: 50px !important;
}

.carousel-wrapper1 {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
  max-width: 100%;
  margin-top: 40px;
}

.carousel-item {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.carousel-item img {
  width: 80%;
  margin: 0 10%;
  display: block;
  border-radius: 12px; /* opcional */
}
