


.ui-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 110px 16px 16px;
    height: 100vh;
    pointer-events: none;
}

.glass-panel {
    background: var(--glass);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.9);
    pointer-events: auto;
}

button, .btn-primary, .btn-ghost, .step-btn, .fchip, .beach-book, .tf-nav-btn, .tag {
    touch-action: manipulation;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 14px;
}


.sidebar-left {
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding: 16px;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(102,178,178,.6) rgba(255,255,255,.3);
}

.sidebar-left::-webkit-scrollbar { width: 8px; }
.sidebar-left::-webkit-scrollbar-thumb {
    background: rgba(102,178,178,.6);
    border-radius: 8px;
}
.sidebar-left::-webkit-scrollbar-thumb:hover { background: rgba(102,178,178,.85); }
.sidebar-left::-webkit-scrollbar-track {
    background: rgba(255,255,255,.3);
    border-radius: 8px;
}

body.no-tops .sidebar-left { display: none; }

.grid-card, .destination-card {
    transition: transform .3s cubic-bezier(0.2,0.8,0.2,1), box-shadow .3s ease;
}

.grid-card:hover, .destination-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,.1), 0 0 20px var(--pink-soft);
}

.grid-card:active, .destination-card:active {
    transform: scale(0.96);
    transition: transform .1s ease;
}


.destination-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    cursor: pointer;
    position: relative;
}


.dc-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.card-media {
    width: 100%;
    height: 170px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
    z-index: 1;
}

.destination-card:hover .card-media img { transform: scale(1.1); }

.card-media img.missing { display: none; }

.card-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.cf-canal { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.cf-sanblas { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.cf-casco { background: linear-gradient(135deg, #fa709a, #fee140); }
.cf-selva { background: linear-gradient(135deg, #30cfd0, #330867); }
.cf-bocas { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.cf-baru { background: linear-gradient(135deg, #d299c2, #fef9d7); }
.cf-coiba { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.cf-taboga { background: linear-gradient(135deg, #fddb92, #d1fdff); }
.cf-santa { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.cf-custom { background: linear-gradient(135deg, var(--primary), #f4a261); }

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 18px var(--pink-soft);
    transition: transform .3s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-play:hover { transform: translate(-50%, -50%) scale(1.15); }

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f4a261, var(--primary));
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(244,162,97,.4);
}

.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    font-size: .62rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .3px;
    line-height: 1.3;
}

.chip-cat {
    background: rgba(229,115,115,.09);
    color: #c96060;
    border: 1px solid rgba(229,115,115,.22);
}

.chip-cat.destinations {
    background: rgba(102,178,178,.10);
    color: #4a9494;
    border-color: rgba(102,178,178,.25);
}

.chip-cat.experiences {
    background: rgba(244,162,97,.10);
    color: #c07f3a;
    border-color: rgba(244,162,97,.28);
}

.chip-badge {
    background: rgba(244,162,97,.08);
    color: #b5762a;
    border: 1px solid rgba(244,162,97,.22);
}

.chip-dur {
    background: rgba(0,0,0,.04);
    color: #888;
    border: 1px solid rgba(0,0,0,.07);
}

.dc-head {
    flex: 1;
    min-width: 0;
}

.dc-head h3 {
    font-size: 1rem;
    color: #222;
    line-height: 1.25;
}

.dc-head h3 small {
    display: block;
    font-size: .66rem;
    color: #888;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 3px;
}

.card-meta {
    display: flex;
    gap: 10px;
    font-size: .7rem;
    color: #555;
    margin-top: 5px;
    flex-wrap: wrap;
}

.card-short-desc { padding: 0 2px; }

.card-short-desc p {
    font-size: 0.74rem;
    color: #666;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.dc-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.price {
    font-weight: 900;
    color: var(--primary);
    font-size: 1.05rem;
    white-space: nowrap;
}

.price small {
    font-size: .6rem;
    color: #999;
    font-weight: 500;
}

.btn-mini {
    border: none;
    border-radius: 9px;
    padding: 7px 12px;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    margin-left: 5px;
}

.btn-mini.info { background: #eee; color: #444; }
.btn-mini.info:hover { background: #ddd; }
.btn-mini.book { background: var(--primary); color: #fff; }
.btn-mini.book:hover { background: var(--primary-dark); }


.btn-move-left, .btn-move-right {
    position: absolute;
    top: -8px;
    background: #66b2b2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 12px;
    cursor: pointer;
    z-index: 20;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: .2s;
}

.btn-move-left { left: -8px; }
.btn-move-right { left: 24px; }

.btn-move-left:hover, .btn-move-right:hover {
    transform: scale(1.2);
    background: #3d8a8a;
}

body.edit-mode .btn-move-left,
body.edit-mode .btn-move-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zone-moves {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-right: 12px;
}

.btn-zone-move {
    background: #66b2b2;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.btn-zone-move:hover {
    background: #3d8a8a;
    transform: scale(1.1);
}

body.edit-mode .zone-moves { display: flex; }

.chip-move {
    display: none;
    background: #66b2b2;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: #fff;
    transition: transform 0.2s;
    font-style: normal;
    cursor: pointer;
}

.chip-move:hover {
    transform: scale(1.2);
    background: #3d8a8a;
}

body.edit-mode .chip-move { display: flex; }


.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.contact-card {
    padding: 24px;
    text-align: center;
    font-size: .85rem;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    line-height: 1.5;
}

.contact-card .c-emoji { font-size: 2rem; }
.contact-card b { color: #222; font-size: .95rem; }
.contact-form { max-width: 640px; }

.reviews-wrap {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
    padding-bottom: 50px;
    width: 100%;
}

.review-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-form h3 {
    font-size: 1.1rem;
    color: #222;
}

.stars { display: flex; gap: 6px; }

.stars span {
    font-size: 1.8rem;
    color: #ccc;
    cursor: pointer;
    transition: .2s;
}

.stars span.on {
    color: #f4a261;
    text-shadow: 0 0 12px rgba(244,162,97,.6);
}

.stars span:hover { transform: scale(1.2); }

.rev-avg {
    background: linear-gradient(135deg, rgba(229,115,115,.12), rgba(255,182,201,.2));
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .85rem;
    font-weight: 800;
    color: #666;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
}

.rev-avg b {
    color: var(--primary);
    font-size: 1.1rem;
}

.rev-stats {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.rev-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rev-bar-row:last-child { margin-bottom: 0; }

.rev-bar-label {
    font-size: .75rem;
    font-weight: 800;
    color: #666;
    width: 24px;
}

.rev-bar {
    flex: 1;
    height: 10px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.rev-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f4a261, var(--primary));
    border-radius: 6px;
    transition: width .6s ease;
}

.rev-bar-num {
    font-size: .7rem;
    color: #999;
    width: 20px;
    text-align: right;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.review-head .who {
    font-weight: 800;
    font-size: .9rem;
    color: #222;
}

.review-head .when {
    font-size: .7rem;
    color: #999;
}

.review-tour {
    background: rgba(102,178,178,.15);
    color: #3d8a8a;
    font-size: .65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
}

.review-stars {
    color: #f4a261;
    font-size: .9rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.review-text {
    font-size: .85rem;
    color: #555;
    line-height: 1.5;
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,18,26,.72);
    z-index: 8000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    contain: layout style paint;
}

.modal-overlay.active { display: flex; }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 9999;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.96);
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.2,0.8,0.2,1), background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 4px 20px var(--pink-soft);
}

.modal-box {
    position: relative;
    width: 100%;
    transform: translate3d(0, 0, 0);
    animation: pageInSmoother .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-box.glass-panel { background: rgba(255,255,255,.98); }

.modal-scroll-area {
    max-height: 94vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border-radius: inherit;
}

.modal-scroll-area::-webkit-scrollbar { width: 0; }

.modal-note {
    font-size: .8rem;
    color: #777;
    margin-bottom: 18px;
}

.booking-box {
    max-width: 640px;
    padding: 28px;
}

.booking-box h2 {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 6px;
}


.media-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.media-track {
    display: flex;
    height: 100%;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.media-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: transparent;
    overflow: hidden;
    transform: translateZ(0);
}

.media-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transform: translateZ(0);
}

.media-slide img.missing {
    display: none;
    cursor: default;
}

.ph-cap {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.68);
    color: #fff;
    font-size: .65rem;
    padding: 4px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 20px;
    background: rgba(0,0,0,.68);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    transition: background-color .2s ease;
}

.zoom-hint:hover { background: var(--primary); }

.gal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.9);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 0 12px var(--pink-soft);
    transition: .2s;
}

.gal-nav:hover {
    background: var(--primary);
    color: #fff;
}

.gal-prev { left: 10px; }
.gal-next { right: 10px; }

.gal-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.gal-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    transition: .3s;
}

.gal-dots i.on {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.gal-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    z-index: 3;
}

#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9600;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 20px;
}

#lightbox.active { display: flex; }

#lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,.6);
}

#video-modal .modal-box {
    max-width: min(900px, 94vw, 142vh);
    display: block;
    height: auto;
    padding: 0;
    border-radius: 16px;
}

.video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.video-stage iframe, .video-stage video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-fallback {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.media-info h3 {
    font-size: 1.5rem;
    color: #222;
}

.media-info .subtitle {
    font-size: .75rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    margin: 6px 0 12px;
}

.media-info p {
    font-size: .9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.media-extra {
    font-size: .85rem;
    margin-bottom: 16px;
    background: rgba(255,255,255,.6);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px dashed var(--primary);
}

.media-extra b {
    color: var(--primary);
    font-size: .8rem;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.media-extra span {
    display: inline-block;
    background: #fff;
    padding: 5px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    margin: 0 6px 6px 0;
    font-weight: 700;
    color: #555;
    font-size: .75rem;
}

.media-hist {
    font-size: .9rem;
    line-height: 1.6;
    color: #666;
    padding-left: 14px;
    border-left: 3px solid var(--teal);
    margin-bottom: 16px;
    font-style: italic;
}

.media-meta {
    display: flex;
    gap: 18px;
    font-size: .9rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.media-meta .price { font-size: 1.3rem; }

.pkg-badge-info {
    background: linear-gradient(135deg, #f4a261, var(--primary));
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 8px;
}


.btn-primary {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .3s;
    letter-spacing: .5px;
    box-shadow: 0 4px 16px var(--pink-soft);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--pink);
}

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

.btn-ghost {
    padding: 14px 18px;
    background: transparent;
    border: 2px solid var(--teal);
    color: #3d8a8a;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    white-space: nowrap;
}

.btn-ghost:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-2px);
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid .full { grid-column: 1 / -1; }

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

.form-row > label,
.filter-group label {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.glass-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e3e6ea;
    background: #fff;
    font-size: 16px; /* Evita zoom forzado y lag de teclado en iOS Safari */
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
    color: #333;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .glass-input {
        font-size: .92rem;
    }
}

.glass-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--pink-soft);
}

.glass-input.is-invalid,
.glass-input[aria-invalid="true"] {
    border-color: #ef4444 !important;
    background-color: #fffafb !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.slot-hint {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.slot-hint.conflict {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Mensajes de error específicos campo por campo */
.field-error-msg {
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    animation: fadeInAlert .2s ease;
}

/* Feedback no intrusivo y accesible */
.form-feedback-msg {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.4;
    animation: fadeInAlert .2s ease;
}
@keyframes fadeInAlert {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spinner visual para prevenir envíos duplicados */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Botón de acceso directo a WhatsApp en confirmación */
.btn-wa-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366 !important;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-wa-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.success-ref {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin: 10px 0;
}
.success-ref strong {
    color: #059669;
    letter-spacing: 0.5px;
}

/* Fallbacks elegantes y consistentes para tarjetas y modales */
.grid-card-fallback, .beach-fallback, .transfer-img-fallback, .booking-fallback-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3.2rem;
    background: linear-gradient(135deg, rgba(2,132,199,0.08) 0%, rgba(236,72,153,0.08) 100%);
    color: #0f172a;
    user-select: none;
}
.booking-fallback-emoji {
    font-size: 4.5rem;
}

.glass-input[readonly] {
    background: rgba(229,115,115,.08);
    font-weight: 700;
    color: var(--primary);
}

.stepper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: .2s;
}

.step-btn:hover { transform: scale(1.15); }

.step-val {
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 26px;
    text-align: center;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 8px 14px;
    border-radius: 15px;
    font-size: .75rem;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    transition: .3s;
    font-weight: 700;
    background: #fff;
}

.tag.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--pink-soft);
    transform: scale(1.05);
}

.total-bar {
    margin: 20px 0 16px;
    padding: 15px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(229,115,115,.12), rgba(255,182,201,.2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px dashed var(--primary);
}

.total-bar span {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #666;
}

.total-bar strong {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 14px var(--pink-soft);
}

#book-success,
#transfer-success {
    display: none;
    text-align: center;
    padding: 30px 0;
    margin: auto;
}

#book-success .check,
#transfer-success .check {
    font-size: 4rem;
    animation: logoPop .8s cubic-bezier(.2,1.6,.4,1);
}

#book-success h3,
#transfer-success h3 {
    margin: 14px 0 8px;
    color: #222;
}

#book-success p,
#transfer-success p {
    color: #777;
    font-size: .9rem;
    margin-bottom: 20px;
}

.send-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.send-btns button {
    flex: 0 1 auto;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .3s;
    font-size: .85rem;
}

#send-wa, #tf-send-wa { background: #25d366; color: #fff; }
#send-mail, #tf-send-mail { background: #333; color: #fff; }

.send-btns button:hover { transform: translateY(-2px); }

.inline-create {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.inline-create .glass-input {
    flex: 1;
    min-width: 70px;
}

.inline-create button {
    white-space: nowrap;
    padding: 10px 14px;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-note {
    font-size: .7rem;
    color: #888;
}

.cms-box { max-width: 780px; }
.cms-scroll { padding: 24px; }

.cms-hint {
    grid-column: 1 / -1;
    color: #888;
    font-size: .85rem;
}

.cms-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}


#book-form-view {
    flex-direction: column;
    align-items: stretch;
}

#book-form-view h2 {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 6px;
}

#book-submit,
#tf-submit {
    flex: none;
    width: 100%;
}


.tf-dest-section {
    margin-bottom: 36px;
    width: 100%;
}

.tf-dest-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.tf-dest-head h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
}

.tf-dest-nav {
    display: flex;
    gap: 8px;
}

.tf-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.96);
    color: var(--teal);
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 0 12px rgba(102,178,178,.3);
    transition: transform .25s cubic-bezier(0.2,0.8,0.2,1), background-color .25s ease, color .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tf-nav-btn:hover {
    background: var(--teal);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(102,178,178,.5);
}

.tf-nav-btn:active { transform: scale(.95); }

.tf-dest-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

.tf-dest-layout .tf-dest-scroller {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.tf-dest-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 12px 4px 24px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tf-dest-scroller::-webkit-scrollbar { display: none; }

.tf-cta-card {
    flex: 0 0 300px;
    width: 300px;
    margin: 12px 0 24px;
    border-radius: 18px;
    border: 2px dashed rgba(102,178,178,.55);
    background: linear-gradient(160deg, rgba(102,178,178,.14), rgba(255,255,255,.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    transition: transform .35s cubic-bezier(0.2,0.8,0.2,1), box-shadow .35s, border-color .35s;
}

.tf-cta-card:hover {
    transform: translateY(-8px);
    border-color: var(--teal);
    box-shadow: 0 18px 40px rgba(0,0,0,.12), 0 0 24px rgba(102,178,178,.35);
}

.tf-cta-card .tf-cta-emoji {
    font-size: 2.6rem;
    line-height: 1;
}

.tf-cta-card h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.3;
}

.tf-cta-card p {
    font-size: .78rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.tf-cta-card .tf-cta-mini {
    width: 100%;
    background: linear-gradient(135deg, var(--teal), #3d8a8a);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(102,178,178,.45);
    transition: .3s;
}

.tf-cta-card .tf-cta-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(102,178,178,.7);
}

.tf-cta-card small {
    font-size: .66rem;
    color: #999;
}


.tf-dest-card {
    min-width: 300px;
    max-width: 300px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: transform .35s cubic-bezier(0.2,0.8,0.2,1), box-shadow .35s, border-color .35s;
    display: flex;
    flex-direction: column;
}

.tf-dest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12), 0 0 24px rgba(102,178,178,.35);
    border-color: var(--teal);
}

.tf-dest-img {
    height: 130px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-dest-img .tf-emoji-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--teal), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    transition: transform .6s;
}

.tf-dest-card:hover .tf-emoji-bg { transform: scale(1.08); }

.tf-dest-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform .6s;
}

.tf-dest-card:hover .tf-dest-img img { transform: scale(1.1); }

.tf-dest-body {
    padding: 18px 20px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tf-dest-body h3 {
    font-size: 1.1rem;
    color: #222;
    margin: 0;
    line-height: 1.25;
}

.tf-dest-route {
    font-size: .68rem;
    color: var(--teal);
    font-weight: 800;
    letter-spacing: .5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tf-dest-route .tf-arrow { color: #f4a261; }

.tf-dest-body p {
    font-size: .8rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.tf-dest-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(102,178,178,.05), rgba(191,229,230,.15));
}

.tf-book-mini {
    flex-shrink: 0;
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 9px 18px;
    font-size: .75rem;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 3px 10px rgba(102,178,178,.35);
}

.tf-book-mini:hover {
    background: #3d8a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,178,178,.5);
}

.tf-dest-card .btn-delete-tour {
    top: -8px;
    right: -8px;
}

.tf-dest-card .btn-edit-tour {
    top: -8px;
    right: 24px;
}


.booking-stage {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 20% 25%, #0f766e 0%, #064e3b 45%, #022c22 100%);
}

.booking-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transform: translateZ(0);
}

/* Vignette elegante para cuando la imagen esté activa */
.booking-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 44, 34, 0.9) 0%, rgba(2, 44, 34, 0.25) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Card de presentación VIP que sustituye el banner vacío con emoji */
.stage-card-wrap {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 22px;
    height: 100%;
    min-height: 280px;
    box-sizing: border-box;
    background: radial-gradient(circle at 50% 30%, rgba(20, 184, 166, 0.22) 0%, transparent 65%);
}

.stage-badge-vip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fef08a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stage-hero-icon {
    position: relative;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-icon-halo {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, transparent 70%);
}

.tf-stage-emoji,
.booking-fallback-emoji {
    font-size: 3.6rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

.stage-title-text {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.stage-route-pill {
    display: inline-block;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    max-width: 90%;
}

.stage-perks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    width: 100%;
    max-width: 310px;
    margin-bottom: 16px;
}

.stage-perk {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 10px;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.74rem;
    font-weight: 600;
    text-align: left;
}

.stage-perk span {
    font-size: 0.95rem;
}

.stage-watermark {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.stage-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 18px;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
    z-index: 5;
}

.tf-stage {
    background: radial-gradient(circle at 20% 25%, #0f766e 0%, #064e3b 45%, #022c22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}


.tf-slide-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

.tf-slides {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 12px 4px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tf-slides::-webkit-scrollbar { display: none; }

.tf-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0,0,0,.08);
    border: 2px solid transparent;
    transition: transform .35s cubic-bezier(0.2,0.8,0.2,1), box-shadow .35s, border-color .35s;
}

.tf-slide:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12), 0 0 24px rgba(102,178,178,.30);
    border-color: var(--teal);
}

.tf-slide-visual {
    flex: 0 0 38%;
    min-height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--primary-dark));
    overflow: hidden;
}

.tf-slide-visual .tf-emoji-bg { font-size: 5rem; }

.tf-slide-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.tf-slide-content {
    flex: 1;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tf-slide-content h3 { font-size: 1.35rem; color: #222; margin: 0; }
.tf-slide-content .tf-dest-route { font-size: .75rem; }
.tf-slide-content p { font-size: .88rem; color: #666; line-height: 1.6; margin: 0; }

.tf-trust-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
}

.tf-trust-list li {
    font-size: .78rem;
    color: #555;
    padding-left: 2px;
}

.tf-slide-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}


.tf-dots, .beach-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.tf-dots i, .beach-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(102,178,178,.35);
    cursor: pointer;
    transition: .3s;
}

.tf-dots i.on, .beach-dots i.on {
    background: var(--teal);
    width: 22px;
    border-radius: 4px;
}


.tf-cta-card {
    flex: 0 0 300px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 22px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(102,178,178,.35);
    background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(191,229,230,.35));
    box-shadow: 0 8px 30px rgba(0,0,0,.06), 0 0 20px rgba(102,178,178,.2);
}

.tf-cta-emoji { font-size: 2.6rem; }
.tf-cta-card h3 { font-size: 1.15rem; color: var(--primary-dark); margin: 0; }
.tf-cta-human { font-size: .82rem; color: #666; line-height: 1.55; margin: 0; }

.tf-cta-list {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    width: 100%;
}

.tf-cta-list li { font-size: .74rem; color: #555; }

.tf-cta-mini {
    width: 100%;
    background: linear-gradient(135deg, var(--teal), #3d8a8a);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102,178,178,.45);
    transition: .3s;
}

.tf-cta-mini:hover {
    box-shadow: 0 0 26px rgba(102,178,178,.7);
    transform: translateY(-2px);
}

.tf-cta-card small { font-size: .66rem; color: #999; }


/* Sidebar destination cards render immediately without staggered delay */


@media (max-width: 900px) {
    .ui-container {
        padding: 96px 10px 10px;
    }

    .sidebar-left {
        width: 100%;
        padding: 10px;
        gap: 12px;
    }

    .destination-card {
        padding: 12px;
    }

    .card-media {
        height: 150px;
    }
}


@media (min-width: 901px) {
    #explore-toggle,
    #edit-mode-btn,
    #toggle-ui-btn {
        left: 420px;
    }

    body.no-tops #explore-toggle,
    body.no-tops #edit-mode-btn,
    body.no-tops #toggle-ui-btn {
        left: 16px;
    }
}

