/* ============================
   Variables base
   ============================ */

   :root {
    --text-main: #222222;
    --text-muted: #6b7280;
    --bg-page: #f7f5f2;
    --bg-card: #ffffff;
    --border-subtle: #e5e5ea;
    --radius-sm: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --primary-color: #BE89A6;
    --primary-dark: #BE89A6;
    --primary-soft: #f3e7ef;
    --shadow-xs: 0 8px 18px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 6px 14px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.05);
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.06);
    --shadow-stat: 0 12px 28px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.08);
    --hero-h: 320px;
    --hero-h-mobile: 220px;
}

/* ============================
   Layout base
   ============================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* Pantalla de carga entre navegaciones */
.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(245, 245, 247, 0.9);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
    z-index: 9999;
}

body.page-loading .page-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loader-logo {
    width: min(82vw, 420px);
    height: auto;
    display: block;
    animation: page-loader-pulse 900ms ease-in-out infinite;
}

@keyframes page-loader-pulse {
    0% {
        opacity: 0.92;
        transform: scale(0.985);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.92;
        transform: scale(0.985);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader {
        transition: none;
    }

    .page-loader-logo {
        animation: none;
    }
}

/* ============================
   Tema HOME (planificador)
   ============================ */

   body.home {
    --primary-color: #BE89A6;
    --primary-dark: #BE89A6;

    --bg-page: #f5f5f7;         /* mismo fondo que body.activities */
    --bg-card: #ffffff;

    background-color: var(--bg-page);
    color: var(--text-main);
}

/* ============================
   Tema ACTIVITIES (listado)
   ============================ */

body.activities {
    --primary-color: #BE89A6;
    --primary-dark: #BE89A6;
    --primary-soft: #f3e7ef;

    --bg-page: #f5f5f7;
    --bg-card: #ffffff;
    --border-subtle: #e5e5ea;
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.04);

    background-color: var(--bg-page);
    color: var(--text-main);
}

/* ============================
   Estilos comunes
   ============================ */

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

a:hover {
    text-decoration: underline;
}

/* HEADER COMÚN */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(245, 245, 247, 0.96); /* mismo tono que usabas en activities */
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 229, 234, 0.9);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
}

.brand-name,
.brand-text-main {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.brand-subtitle,
.brand-text-sub {
    font-size: 0.78rem;
    color: #77716a;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
}

/* Link seleccionado (botón principal) - rosa plano */
nav a.nav-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(190, 137, 166, 0.25);
    text-decoration: none;
}

nav a.nav-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Link secundario (fantasma) */
nav a.nav-ghost {
    color: var(--text-main);
    background-color: transparent;
}

nav a.nav-ghost:hover {
    background-color: rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

/* MAIN y FOOTER COMUNES */

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
}

body.activities main {
    max-width: 1140px;
    padding: 1.7rem 1.25rem 2.8rem;
}

footer {
    border-top: 1px solid #e4e1dd;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    text-align: center;
    color: #6f6a63;
}

.footer-links {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-version {
    display: block;
    margin-top: 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    opacity: 0.75;
}

body.activities footer {
    border-top: 1px solid rgba(229, 229, 234, 0.9);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================
   HOME / PLANIFICADOR (index.html)
   ============================ */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #e1ddd9;
    background-color: var(--bg-card);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background-color: #f1ece6;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5e574f;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: var(--primary-color);
}

.section-title {
    font-size: 1.4rem;
    margin: 0 0 0.75rem;
}

.layout-main-card .section-title {
    margin-top: 0;
}

.section-text {
    font-size: 0.98rem;
    max-width: 48rem;
    color: #4b4741;
}

.hero-form-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
}

.hero-form-title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.hero-form-intro {
    font-size: 0.85rem;
    margin: 0 0 0.9rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-group {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.helper-text {
    font-size: 0.78rem;
    color: #7b746b;
    margin-top: 0.15rem;
}

input[type="number"],
input[type="date"],
input[type="text"],
select {
    border-radius: var(--radius-sm);
    border: 1px solid #d5d0c9;
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
    font-family: inherit;
}

input[type="number"]:focus,
input[type="date"]:focus,
input[type="text"]:focus,
select:focus {
    outline: 2px solid rgba(190, 137, 166, 0.25);
    border-color: var(--primary-color);
}

/* Grupo de intereses como “pills” */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

/* Botones de acción compartidos */
.primary-button,
.secondary-button {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    border-radius: 999px;
    padding: 0.56rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease,
                color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.primary-button {
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(190, 137, 166, 0.22);
}

.primary-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.secondary-button {
    border: 1px solid rgba(190, 137, 166, 0.45);
    background-color: var(--bg-card);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.secondary-button:hover {
    background-color: #fff0f4;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(190, 137, 166, 0.16);
    text-decoration: none;
    transform: translateY(-1px);
}

.form-message {
    margin-top: 0.5rem;
    font-size: 0.83rem;
    color: #734c00;
}

.section {
    margin-bottom: 2.5rem;
}

.coming-soon-section {
    margin-top: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 0.75rem;
}

.feature-item {
    background-color: var(--card-bg, #ffffff);
    border-radius: var(--radius-lg);
    padding: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.feature-item h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.feature-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.faq-section {
    margin-top: 0.75rem;
}

.faq-section details {
    background-color: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.03);
}

.faq-section summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

.faq-section p {
    font-size: 0.9rem;
    color: #4b4741;
}

.example-itinerary {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.4rem;
}

.example-card,
.itinerary-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--primary-color);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.example-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.example-card ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.example-sidebar {
    font-size: 0.88rem;
    color: #4b4741;
}

.example-sidebar strong {
    font-weight: 600;
}

.itinerary-header {
    margin-bottom: 1rem;
}

.itinerary-summary {
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.itinerary-day {
    border-top: 1px dashed #e0ddd8;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.itinerary-day-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.itinerary-subtitle {
    font-size: 0.86rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.itinerary-meta {
    font-size: 0.85rem;
    color: #6f6a63;
    margin-bottom: 0.3rem;
}

.itinerary-list {
    padding-left: 1.1rem;
    margin: 0.2rem 0 0.4rem;
}

.booking-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.booking-link {
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-card);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.booking-link span.icon {
    font-size: 1rem;
}

/* Conversor EUR → JPY */

.converter-rate {
    font-size: 0.8rem;
    color: #5e574f;
    margin-top: 0.25rem;
}

/* ============================
   ACTIVITIES (activities-grid.php)
   ============================ */

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    margin-bottom: 1.9rem;
}

body.activities h1.hero-title {
    margin: 0.65rem 0 0.4rem;
    font-size: clamp(1.9rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
}

body.activities .hero-subtitle {
    margin: 0;
    font-size: 0.97rem;
    color: var(--text-muted);
}

.hero-highlight {
    font-weight: 600;
    color: var(--primary-dark);
}

/* GUIAS DE CIUDAD */

.guide-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
}

.guide-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(190, 137, 166, 0.45);
    background: repeating-linear-gradient(
        -45deg,
        #f8f1f6 0,
        #f8f1f6 12px,
        #ffffff 12px,
        #ffffff 24px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
}

.guide-image {
    width: 100%;
    max-height: 260px;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-lg);
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(229, 229, 234, 0.9);
}

.guide-image-placeholder span {
    color: #7d586f;
    font-size: 0.9rem;
    font-weight: 600;
}

.guide-side-card {
    border-radius: var(--radius-lg);
}

.guide-side-card h2 {
    margin-top: 0;
    margin-bottom: 0.45rem;
    font-size: 1.15rem;
}

.guide-side-card p {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.guide-side-list {
    margin: 0;
    padding-left: 1.05rem;
    font-size: 0.88rem;
    color: #4b5563;
}

.guide-side-list li + li {
    margin-top: 0.32rem;
}

.guide-zone-grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.guide-zone-card {
    padding: 0.95rem;
    border-top: 3px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

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

.guide-zone-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.guide-zone-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* City link cards (other-cities grid in city guide template) */
.city-link-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.city-link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.city-link-name {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.city-link-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.guide-zone-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 14px;
    border: 1px dashed rgba(190, 137, 166, 0.4);
    background: #fbf7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.guide-zone-image {
    width: 100%;
    max-height: 180px;
    aspect-ratio: 3 / 2;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(229, 229, 234, 0.9);
}

.guide-zone-placeholder span {
    font-size: 0.78rem;
    color: #7d586f;
}

.guide-activities-cta {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* LANDING SEO: HORA EN JAPON */
/* Estilos especificos de esta landing al final del archivo */

@media (max-width: 900px) {
    .guide-zone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .guide-zone-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Card contenedor principal */

.layout-main-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.3rem 1.5rem;
    border: 1px solid rgba(229, 229, 234, 0.9);
}

.layout-main-header {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

/* FILTROS */

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    align-items: center;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    flex: 1 1 0;
    min-width: 220px;
}

.filter-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.search-input-wrapper {
    width: 100%;
    max-width: none;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.45rem 0.9rem 0.45rem 2.1rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    outline: none;
    background-color: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 2px rgba(190, 137, 166, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
}

.filter-select {
    width: 100%;
    min-width: 0;
    padding: 0.38rem 2rem 0.38rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    background-color: #fafafa;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: calc(100% - 0.7rem) 50%;
    background-size: 12px 12px;
    background-repeat: no-repeat;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 2px rgba(190, 137, 166, 0.2);
}

/* CARDS GRID ACTIVIDADES */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.85rem;
}

@keyframes rj-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.activity-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 229, 234, 0.9);
    padding: 0.95rem 0.95rem 0.9rem;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(190, 137, 166, 0.35);
}

/* Image header — bleeds to card edges, shimmer until loaded */
.activity-card-image {
    margin: -0.95rem -0.95rem 0;
    height: 160px;
    border-radius: 21px 21px 0 0;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        #efefef 25%,
        #e3e3e3 37%,
        #efefef 63%
    );
    background-size: 1200px 100%;
    animation: rj-shimmer 1.6s ease infinite;
    flex-shrink: 0;
}

.activity-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.activity-card-image img.rj-loaded {
    opacity: 1;
}

.activity-card-image--placeholder {
    background: var(--primary-soft);
    animation: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-card-image--placeholder img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.activity-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.activity-description {
    margin: 0;
    font-size: 0.87rem;
    color: var(--text-muted);
    flex: 1;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin-top: 0.1rem;
}

.activity-meta-sep {
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 0.76rem;
}

.activity-chip {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.activity-price-chip {
    color: var(--primary-dark);
}

.activity-city-chip {
    color: #1a56db;
}

.activity-links-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.activity-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.no-results {
    margin-top: 0.8rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* AdSense slot wrapper — use around <ins class="adsbygoogle"> blocks */
.ad-slot {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    min-height: 90px;
    text-align: center;
    overflow: hidden;
}

.ad-slot--inline {
    margin: 1.5rem auto;
}

/* Empty / error states (shared across error pages, empty grids, 404) */
.empty-state {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem 1.5rem;
    text-align: center;
    max-width: 520px;
    margin: 2rem auto;
}

.empty-state-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin: 0 0 0.6rem;
}

.empty-state-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

/* Botones de enlaces de actividades (Reservar / Google Maps) */
.activity-action-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.activity-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 38px;
    padding: 0.42rem 0.9rem;
    border: 1px solid rgba(190, 137, 166, 0.45);
    background-color: var(--bg-card);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease, transform 0.12s ease;
}

.activity-action-button:hover {
    background-color: #fff0f4;
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(190, 137, 166, 0.14);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ============================================================
   ACTIVITIES EDITOR
   ============================================================ */

/* Card header with edit toggle */
.itinerary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}

.itinerary-card-header h2 {
    margin-bottom: 0;
}

.activities-edit-toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(190, 137, 166, 0.5);
    background: var(--bg-card);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
}

.activities-edit-toggle-button:hover {
    background: #fff0f4;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(190, 137, 166, 0.14);
}

.activities-edit-toggle-button[aria-pressed="true"] {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Drag handle — hidden until edit mode */
.activity-drag-handle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    color: var(--text-muted);
    cursor: grab;
    padding: 0 2px;
    opacity: 0.55;
    transition: opacity 0.15s;
}

.activity-drag-handle:hover {
    opacity: 1;
}

/* Remove button — hidden until edit mode */
.activity-remove-button {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    margin-left: auto;
}

.activity-remove-button:hover {
    background: #fde8ef;
    color: #c0392b;
}

/* Edit mode: show controls, enable drag cursor */
.is-activities-edit-mode .activity-drag-handle,
.is-activities-edit-mode .activity-remove-button {
    display: flex;
}

@media (hover: none) and (pointer: coarse) {
    /* Touch: enlarge tap targets and drag handle */
    .is-activities-edit-mode .activity-drag-handle {
        width: 36px;
        height: 36px;
        cursor: grab;
    }

    .activity-remove-button {
        width: 36px;
        height: 36px;
    }
}

.is-activities-edit-mode .activity-item {
    cursor: default;
}

.is-activities-edit-mode .activity-item[draggable="true"] {
    cursor: grab;
}

.activity-item.is-dragging {
    opacity: 0.45;
}

.is-drag-over {
    outline: 2px dashed var(--primary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

/* "No activities" placeholder */
.segment-day-no-activities {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0.4rem 0;
}

/* Add-activity row — hidden until edit mode */
.activity-add-row {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.6rem;
    position: relative;
}

.is-activities-edit-mode .activity-add-row {
    display: flex;
}

.activity-add-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.activity-add-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    border: 1px dashed rgba(190, 137, 166, 0.6);
    background: transparent;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    align-self: flex-start;
}

.activity-add-button:hover {
    background: #fff0f4;
    border-color: var(--primary-color);
    border-style: solid;
}

.activity-add-button--custom {
    border-color: rgba(107, 114, 128, 0.45);
    color: var(--text-muted);
}

.activity-add-button--custom:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-style: solid;
}

/* Custom activity panel */
.activity-custom-panel {
    background: var(--bg-card);
    border: 1px solid rgba(190, 137, 166, 0.35);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}

/* Add-activity picker panel */
.activity-add-picker {
    background: var(--bg-card);
    border: 1px solid rgba(190, 137, 166, 0.35);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}

/* Picker tabs */
.picker-tabs {
    display: flex;
    border-bottom: 1px solid rgba(190, 137, 166, 0.2);
}

.picker-tab {
    flex: 1 1 0;
    padding: 0.5rem 0.6rem;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, box-shadow 0.15s;
}

.picker-tab.is-active {
    color: var(--primary-color);
    box-shadow: inset 0 -2px 0 var(--primary-color);
}

.picker-tab:hover:not(.is-active) {
    color: var(--primary-color);
    background: rgba(190, 137, 166, 0.05);
}

/* Custom activity form */
.custom-activity-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0.7rem 0.7rem;
}

.custom-activity-input {
    width: 100%;
    padding: 0.38rem 0.6rem;
    border: 1px solid rgba(190, 137, 166, 0.35);
    border-radius: 6px;
    font-size: 0.84rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.custom-activity-input:focus {
    border-color: var(--primary-color);
}

.custom-activity-input--short {
    max-width: 160px;
}

.custom-activity-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.custom-activity-error {
    margin: 0;
    font-size: 0.78rem;
    color: #b91c1c;
}

.custom-activity-submit {
    align-self: flex-start;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.custom-activity-submit:hover {
    background: #a8698e;
    box-shadow: 0 4px 10px rgba(190, 137, 166, 0.3);
}

/* Custom activity badge on activity row */
.day-activity-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.activity-custom-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(190, 137, 166, 0.12);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.activity-picker-search-row {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid rgba(190, 137, 166, 0.2);
}

.activity-picker-search {
    width: 100%;
    padding: 0.38rem 0.6rem;
    border: 1px solid rgba(190, 137, 166, 0.35);
    border-radius: 6px;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.15s;
}

.activity-picker-search:focus {
    border-color: var(--primary-color);
}

.activity-picker-list {
    list-style: none;
    margin: 0;
    padding: 0.3rem 0;
    max-height: 240px;
    overflow-y: auto;
}

.activity-picker-item {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    cursor: pointer;
    font-size: 0.84rem;
    transition: background 0.12s;
    flex-wrap: wrap;
}

.activity-picker-item:hover {
    background: #fff0f4;
}

.activity-picker-item-name {
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    flex: 1 1 auto;
}

.activity-picker-item-district {
    font-size: 0.76rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.activity-picker-item-cost {
    font-size: 0.76rem;
    color: var(--primary-color);
    font-weight: 600;
    flex-shrink: 0;
}

.activity-picker-empty {
    padding: 0.65rem 0.85rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* PAGINACIÓN */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.1rem;
    font-size: 0.84rem;
}

.pagination-info {
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.page-link,
.page-link-disabled {
    min-width: 1.8rem;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    text-align: center;
    border: 1px solid transparent;
}

.page-link {
    color: var(--text-main);
    background-color: transparent;
}

.page-link:hover {
    border-color: rgba(209, 213, 219, 0.9);
    background-color: rgba(249, 250, 251, 0.9);
    text-decoration: none;
}

/* página activa plana rosa */
.page-link-active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(190, 137, 166, 0.25);
}

.page-link-disabled {
    color: #b0b3c0;
    background-color: #f4f4f5;
}

/* Pills de intereses (para .interest-pills / .interest-pill) */
.interest-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

/* El label es solo contenedor; el aspecto de la pastilla va en el span */
.interest-pill {
    position: relative;
    display: inline-block;
}

/* La pastilla visual */
.interest-pill span {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #e1ddd9;
    background-color: var(--bg-card);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease,
                border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Ocultamos el checkbox nativo, pero sigue recibiendo el click */
.interest-pill input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

/* Estado seleccionado: pintamos la pill rosa */
.interest-pill input[type="checkbox"]:checked + span {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}


/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .example-itinerary {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .filters-form {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row-2,
    .form-row-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

header {
    position: relative;
    z-index: 30;
}

/* Botón hamburguesa (oculto en escritorio) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.35rem 0.6rem;
    margin-left: auto;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.nav-toggle:focus-visible {
    outline: 2px solid #BE89A6;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.62rem 0.9rem;
        gap: 0.5rem;
        align-items: center;
    }

    /* La marca ocupa todo el ancho del header en móvil
       para que el icono llegue al borde derecho */
    .brand {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .brand-link > div {
        flex: 0 0 auto;
    }

    .brand-logo {
        height: 34px;
    }

    .brand-name,
    .brand-text-main {
        font-size: 0.86rem;
        letter-spacing: 0.05em;
    }

    .brand-subtitle,
    .brand-text-sub {
        font-size: 0.73rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    header nav {
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        margin-top: 0.4rem;
        padding: 0.6rem 0.8rem;
        border-radius: var(--radius-lg);
        background-color: var(--bg-card);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
        display: none;
        flex-direction: column;
        gap: 0.3rem;
    }

    header nav a {
        width: 100%;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.5rem 0.8rem;
    }

    header nav a.nav-primary {
        box-shadow: none;
    }

    /* Cuando el menú está abierto en móvil */
    body.nav-open header nav {
        display: flex;
    }
}

@media (min-width: 769px) {
    header nav {
        display: flex;
    }
}

.hero-banner-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #020617;
    max-height: 260px;
}

.hero-banner-visual img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
    transform: none;
    transition: none;
}

.hero-banner-visual:hover img {
    transform: none;
}

@media (max-width: 768px) {
    .hero-banner-visual {
        margin-bottom: 1rem;
        max-height: 220px;
    }

    .hero-banner-visual img {
        max-height: 220px;
    }
}

/* Inputs deshabilitados (como el de presupuesto en yenes) */
.form-group input[disabled],
.form-group input[disabled]:hover {
    background-color: #f3f4f6;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Timeline ejemplo Tokio → Kioto → Osaka */
.route-timeline {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.route-stage {
    text-align: center;
    padding: 1.1rem 1rem 1.2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-card);
}

.route-stage-avatar {
    width: 100%;
    height: 150px;
    margin: 0 0 0.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

.route-stage-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.route-stage-city {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.route-stage-days {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
}

.route-stage-guide-link {
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
}

.route-stage-guide-link a {
    color: #BE89A6;
    text-decoration: none;
    font-weight: 500;
}

.route-stage-guide-link a:hover {
    text-decoration: underline;
}

.route-stage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.87rem;
    color: #4b5563;
}

.route-stage-list li + li {
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .route-timeline {
        grid-template-columns: minmax(0, 1fr);
    }

    .route-stage {
        text-align: left;
    }

    .route-stage-avatar {
        width: 100%;
        height: 180px;
        margin: 0 0 0.7rem;
        border-radius: var(--radius-lg);
    }
}

.quick-links {
    margin: 1.25rem 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-top: 3px solid var(--primary-color, #BE89A6);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.quick-link-title {
    font-weight: 800;
    font-size: 0.98rem;
    margin: 0 0 0.2rem;
}

.quick-link-text {
    margin: 0;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.35;
    flex: 1;
}

.quick-link-cta {
    margin-top: 0.45rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #BE89A6;
}

@media (max-width: 900px) {
    .quick-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Banner de cookies */
.cookie-banner {
    position: fixed;
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    z-index: 70;
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    padding: 0.9rem 1rem;
    max-height: min(78vh, 520px);
    overflow: auto;
}

.cookie-banner-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.45;
}

.cookie-banner-actions {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    padding: 0.34rem 0.9rem;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
}

.cookie-button-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.cookie-button-primary:hover {
    filter: brightness(0.95);
}

.cookie-button-secondary {
    background-color: var(--bg-card);
    color: var(--primary-color);
}

.cookie-button-secondary:hover {
    background-color: #f7f3f5;
}

.cookie-policy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.34rem 0.75rem;
    font-size: 0.82rem;
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-policy-link:hover {
    border-color: rgba(190, 137, 166, 0.25);
    background: #f7f3f5;
    text-decoration: none;
}

.cookie-page-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-md);
}

.cookie-page-card .section-title {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
}

.cookie-page-list {
    padding-left: 1.15rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.cookie-page-list li + li {
    margin-top: 0.35rem;
}

.cookie-preferences-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-card);
    padding: 0.35rem 0.9rem;
    font-size: 0.84rem;
    font-family: inherit;
    cursor: pointer;
}

.cookie-preferences-link:hover {
    background: #f7f3f5;
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 0.8rem 0.85rem;
        left: max(0.5rem, env(safe-area-inset-left));
        right: max(0.5rem, env(safe-area-inset-right));
        bottom: max(0.5rem, env(safe-area-inset-bottom));
    }

    .cookie-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-button,
    .cookie-policy-link {
        width: 100%;
    }
}

/* Pagina de cookies */
.cookie-main {
    padding-top: 1rem;
}

.cookie-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.cookie-hero-main {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-md);
}

.cookie-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    font-weight: 700;
}

.cookie-hero-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3.2vw, 1.95rem);
    line-height: 1.12;
}

.cookie-hero-actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-types-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.cookie-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.95rem 1rem;
    box-shadow: var(--shadow-xs);
}

.cookie-type-title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
}

.cookie-type-text {
    margin: 0;
    font-size: 0.86rem;
    color: #4b5563;
    line-height: 1.45;
}

.cookie-compact-note {
    margin: -0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .cookie-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cookie-types-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ============================
   Mobile cleanup
   ============================ */
@media (max-width: 768px) {
    main {
        padding: 0 0.9rem 1.9rem;
    }

    body.activities main {
        padding: 1.05rem 0.9rem 2rem;
    }

    .hero {
        gap: 1.2rem;
        margin-bottom: 1.8rem;
    }

    .hero-form-card {
        padding: 1.05rem;
    }

    .section {
        margin-bottom: 1.85rem;
    }

    .layout-main-card {
        padding: 1rem 0.95rem 1.05rem;
    }

    .activity-card {
        border-radius: 16px;
        padding: 0.82rem 0.82rem 0.8rem;
    }

    .activity-links-row {
        justify-content: flex-start;
    }

    .activity-action-links {
        width: 100%;
    }

    .activity-action-button {
        flex: 1 1 calc(50% - 0.3rem);
    }

    .pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-controls {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    main {
        padding: 0 0.78rem 1.6rem;
    }

    body.activities main {
        padding: 0.95rem 0.78rem 1.75rem;
    }

    .hero-title {
        font-size: clamp(1.72rem, 8vw, 2.05rem);
    }

    .hero-subtitle {
        font-size: 0.94rem;
    }

    .hero-form-title {
        font-size: 1.05rem;
    }

    .section-title {
        margin: 0 0 0.55rem;
        font-size: 1.18rem;
    }

    .section-text {
        font-size: 0.92rem;
    }

    .route-stage {
        padding: 0.9rem;
    }

    .route-stage-avatar {
        height: 154px;
    }

    .quick-link-card {
        gap: 0.7rem;
        padding: 0.82rem 0.85rem;
    }

    .filter-group {
        min-width: 0;
    }

    .search-input {
        font-size: 0.84rem;
    }

    .filter-select {
        font-size: 0.8rem;
    }

    .activity-action-button {
        flex: 1 1 100%;
    }

    .cookie-hero-main,
    .cookie-page-card {
        padding: 0.9rem 0.95rem;
    }

    .cookie-hero-actions > * {
        width: 100%;
        justify-content: center;
    }
}

/* ============================
   Pagina hora en Japon
   ============================ */

body.activities.japan-time-page .hero-layout {
    margin-bottom: 1.15rem;
}

body.activities.japan-time-page .japan-time-card {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body.activities.japan-time-page .japan-time-display {
    max-width: 760px;
    margin: 0 auto;
    padding: 0.95rem 1rem 1.05rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background-color: #fafafa;
}

body.activities.japan-time-page .japan-time-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

body.activities.japan-time-page .japan-time-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

body.activities.japan-time-page .japan-time-zone {
    margin: 0;
    font-size: 0.83rem;
    font-weight: 600;
    color: #4b5563;
}

body.activities.japan-time-page .japan-time-value {
    margin: 0;
    font-size: clamp(2.7rem, 8vw, 4.5rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: #111827;
}

body.activities.japan-time-page .japan-time-date {
    margin: 0.35rem 0 0;
    font-size: 0.96rem;
    color: #4b5563;
    text-transform: capitalize;
}

body.activities.japan-time-page .japan-time-meta {
    margin: 0.5rem auto 0;
    max-width: 760px;
    color: #4b5563;
    font-size: 0.92rem;
}

body.activities.japan-time-page .japan-time-meta-emphasis {
    margin-top: 0.6rem;
    font-weight: 600;
    color: #1f2937;
}

body.activities.japan-time-page .japan-time-note {
    margin-top: 0.7rem;
}

body.activities.japan-time-page .japan-time-cta {
    justify-content: center;
    margin-top: 0.95rem;
}

body.activities.japan-time-page .japan-time-cta .primary-button {
    border-radius: 12px;
}

body.activities.japan-time-page .japan-time-cta .primary-button:hover {
    transform: translateY(-1px);
}

body.activities.japan-time-page .japan-time-cta .secondary-button {
    border-radius: 12px;
}

body.activities.japan-time-page .japan-time-cta .secondary-button:hover {
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    body.activities.japan-time-page .japan-time-card {
        padding: 0;
    }

    body.activities.japan-time-page .japan-time-display {
        padding: 0.82rem 0.78rem 0.9rem;
    }

    body.activities.japan-time-page .japan-time-head {
        margin-bottom: 0.35rem;
    }

    body.activities.japan-time-page .japan-time-meta {
        font-size: 0.9rem;
    }

    body.activities.japan-time-page .japan-time-cta .primary-button,
    body.activities.japan-time-page .japan-time-cta .secondary-button {
        width: auto;
    }
}

/* ============================================================
   planificador-final — itinerary output page
   ============================================================ */

        .itinerary-hero-section {
            margin-top: 1.2rem;
            margin-bottom: 1.8rem;
        }

        .itinerary-hero-panel {
            position: relative;
            border-radius: var(--radius-lg);
            padding: 1.35rem 1.35rem 1.2rem;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            box-shadow: var(--shadow-card);
        }

        .itinerary-hero-panel::after {
            content: none;
        }

        .hero-top-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
        }

        .hero-top-main {
            flex: 1 1 auto;
            min-width: 0;
            max-width: 62ch;
        }

        .itinerary-hero-panel .hero-title {
            margin: 0 0 0.5rem;
            line-height: 1.08;
            font-size: clamp(2.05rem, 3.5vw, 2.65rem);
            letter-spacing: -0.02em;
        }

        .itinerary-hero-panel .section-text {
            margin: 0;
            color: #5b4c52;
            font-size: 0.95rem;
        }

        .hero-widgets {
            margin-top: 1rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
            gap: 0.75rem;
            align-items: start;
        }

        .hero-collapsible-card.is-collapsed-trip,
        .checklist-card.checklist-card-hero.is-collapsed-checklist {
            min-height: 64px;
        }

        .hero-collapsible-card {
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            background: var(--bg-card);
            padding: 0.75rem;
        }

        .hero-collapsible-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            margin-bottom: 0.55rem;
        }

        .hero-collapsible-title {
            margin: 0;
            font-size: 0.93rem;
            color: #2f1b22;
            letter-spacing: -0.01em;
        }

        .hero-collapsible-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px solid rgba(190, 137, 166, 0.4);
            padding: 0;
            background: var(--bg-card);
            color: var(--primary-color);
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
            flex-shrink: 0;
        }

        .hero-collapsible-toggle:hover {
            background: #fff0f4;
            border-color: var(--primary-color);
            transform: translateY(-1px);
        }

        .hero-collapsible-toggle:active {
            transform: translateY(0);
        }

        .hero-collapsible-toggle-icon {
            width: 10px;
            height: 10px;
            transition: transform 0.2s ease;
        }

        .hero-collapsible-content {
            display: block;
        }

        .hero-collapsible-card.is-collapsed-trip .hero-collapsible-content {
            display: none;
        }

        .hero-collapsible-card.is-collapsed-trip .hero-collapsible-header {
            margin-bottom: 0;
        }

        .hero-collapsible-card.is-collapsed-trip .hero-collapsible-toggle-icon {
            transform: rotate(-180deg);
        }

        .hero-metrics {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.5rem;
        }

        .hero-metric {
            min-width: 0;
            border: 1px solid var(--border-subtle);
            border-radius: 11px;
            padding: 0.5rem 0.6rem;
            background: var(--bg-card);
        }

        .hero-metric-label {
            display: block;
            font-size: 0.68rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #7d6870;
            margin-bottom: 0.16rem;
        }

        .hero-metric-value {
            display: block;
            font-size: 0.9rem;
            font-weight: 700;
            color: #2f1b22;
            line-height: 1.24;
        }

        .itinerary-share-box {
            flex: 0 1 min(360px, 100%);
            margin-left: auto;
            align-self: center;
            padding: 0.72rem 0.78rem 0.8rem;
            border-radius: 16px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
            box-shadow: none;
        }

        .itinerary-share-label {
            display: block;
            margin: 0;
            color: #0f172a;
            font-size: 0.92rem;
            font-weight: 700;
            line-height: 1.25;
            text-align: center;
        }

        .itinerary-share-input-row {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            margin-top: 0.62rem;
        }

        .itinerary-share-input {
            flex: 1 1 auto;
            min-width: 0;
            height: 50px;
            border-radius: 999px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
            color: #0f172a;
            font-size: 0.82rem;
            font-weight: 700;
            line-height: 1.15;
            text-align: left;
            letter-spacing: 0.01em;
            padding: 0 0.95rem;
            font-family: inherit;
        }

        .itinerary-share-input:focus {
            outline: none;
            border-color: rgba(190, 137, 166, 0.48);
            box-shadow: 0 0 0 2px rgba(190, 137, 166, 0.2);
        }

        .itinerary-name-save-status {
            margin: 0.32rem 0 0;
            min-height: 1em;
            font-size: 0.72rem;
            color: #6c5a61;
            text-align: left;
        }

        .itinerary-name-save-status:empty {
            display: none;
        }

        .itinerary-name-save-status.is-error {
            color: #b91c1c;
        }

        .itinerary-name-save-status.is-ok {
            color: #4b5563;
        }

        .itinerary-share-copy-button,
        .itinerary-share-qr-button {
            flex: 0 0 auto;
            width: 64px;
            height: 50px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
            color: #0f172a;
            border-radius: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.08rem;
            font-size: 0.7rem;
            font-weight: 600;
            line-height: 1;
            cursor: pointer;
            padding: 0.18rem 0.2rem 0.16rem;
            transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
        }

        .itinerary-share-copy-button:hover,
        .itinerary-share-qr-button:hover {
            background: #fff0f4;
            border-color: rgba(190, 137, 166, 0.45);
            transform: translateY(-1px);
        }

        .itinerary-share-copy-button:active,
        .itinerary-share-qr-button:active {
            transform: translateY(0);
        }

        .itinerary-share-button-icon {
            width: 16px;
            height: 16px;
            display: block;
        }

        .itinerary-share-button-icon--qr {
            width: 15px;
            height: 15px;
        }

        .itinerary-share-button-text {
            display: block;
            font-size: 0.56rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            line-height: 1;
            text-transform: lowercase;
        }

        .itinerary-share-qr-button .itinerary-share-button-text {
            text-transform: uppercase;
        }

        .itinerary-share-error {
            margin-top: 0.95rem;
            padding: 0.65rem 0.75rem;
            border-radius: 12px;
            border: 1px solid #fecaca;
            background: #fff1f2;
            color: #b91c1c;
            font-size: 0.82rem;
        }

        .share-qr-backdrop {
            position: fixed;
            inset: 0;
            z-index: 1300;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(15, 23, 42, 0.38);
            padding: 0.9rem;
        }

        .share-qr-backdrop.is-open {
            display: flex;
        }

        .share-qr-dialog {
            width: min(360px, 100%);
            border: 1px solid var(--border-subtle);
            border-radius: 16px;
            background: var(--bg-card);
            box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
            padding: 0.72rem 0.72rem 0.78rem;
        }

        .share-qr-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .share-qr-title {
            margin: 0;
            font-size: 0.95rem;
            color: #2f1b22;
            letter-spacing: -0.01em;
        }

        .share-qr-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px solid rgba(190, 137, 166, 0.42);
            background: var(--bg-card);
            color: var(--primary-color);
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
            padding: 0;
            flex-shrink: 0;
        }

        .share-qr-close:hover {
            background: #fff0f4;
            border-color: var(--primary-color);
            transform: translateY(-1px);
        }

        .share-qr-close:active {
            transform: translateY(0);
        }

        .share-qr-close-icon {
            width: 10px;
            height: 10px;
        }

        .share-qr-note {
            margin: 0.3rem 0 0;
            font-size: 0.8rem;
            color: #5b4c52;
            line-height: 1.3;
        }

        .share-qr-image-wrap {
            margin-top: 0.56rem;
            border: 1px solid var(--border-subtle);
            border-radius: 12px;
            background: var(--bg-card);
            padding: 0.6rem;
            display: flex;
            justify-content: center;
        }

        .share-qr-image {
            width: min(250px, 100%);
            aspect-ratio: 1 / 1;
            display: block;
            border-radius: 8px;
            background: var(--bg-card);
            object-fit: contain;
        }

        body.share-qr-open {
            overflow: hidden;
        }

        .itinerary-main-section {
            margin-top: 0;
        }

        .itinerary-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 1.2rem;
            align-items: start;
        }

        .summary-card {
            position: sticky;
            top: 86px;
            background: var(--bg-card);
            border-radius: 16px;
            padding: 1.2rem;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-subtle);
            font-size: 0.9rem;
        }

        .summary-card h2 {
            margin-top: 0;
            margin-bottom: 0.55rem;
            font-size: 1.18rem;
            letter-spacing: -0.01em;
        }

        .summary-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.5rem;
            margin-top: 0.6rem;
        }

        .summary-grid > div {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: 12px;
            padding: 0.5rem 0.55rem;
        }

        .summary-item-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #7d6870;
            margin-bottom: 0.12rem;
        }

        .summary-item-value {
            font-weight: 700;
            font-size: 0.89rem;
            color: #2f1b22;
        }

        .tags-row {
            margin-top: 0.8rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.38rem;
        }

        .tags-row-compact {
            margin-top: 0.38rem;
        }

        .tag-pill {
            font-size: 0.75rem;
            padding: 0.2rem 0.65rem;
            border-radius: 999px;
            background: #fef2f6;
            border: 1px solid rgba(190, 137, 166, 0.22);
            color: var(--primary-color);
        }

        .itinerary-final-card {
            background-color: var(--bg-card);
            border-radius: 16px;
            padding: 1.15rem;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-subtle);
            font-size: 0.9rem;
        }

        .itinerary-final-card h2 {
            margin-top: 0;
            margin-bottom: 0.3rem;
            font-size: 1.26rem;
            letter-spacing: -0.01em;
        }

        .itinerary-intro {
            margin-top: 0;
            margin-bottom: 0.95rem;
            color: #5b4c52;
            font-size: 0.9rem;
            max-width: 66ch;
        }

        .transition-days-item {
            display: block;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            background: #fffafc;
            padding: 0.45rem 0.55rem;
        }

        .transition-days-item-title {
            font-size: 0.86rem;
            font-weight: 700;
            color: #2f1b22;
            line-height: 1.2;
        }

        .transition-days-item-meta {
            margin-top: 0.08rem;
            font-size: 0.78rem;
            color: #6c5a61;
            line-height: 1.2;
        }

        .transition-days-item-route {
            margin-top: 0.12rem;
            font-size: 0.78rem;
            font-weight: 600;
            letter-spacing: 0;
            color: #7b3c52;
            line-height: 1.2;
        }

        .transition-days-item-between {
            margin-top: 0.8rem;
            margin-bottom: 0.08rem;
        }

        .transition-days-item-between + .itinerary-day {
            margin-top: 0.55rem;
        }

        .checklist-card {
            margin: 0;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            background: var(--bg-card);
            padding: 0.75rem;
            box-shadow: var(--shadow-xs);
        }

        .checklist-card-hero {
            box-shadow: none;
            padding: 0.62rem;
        }

        .checklist-card-hero .checklist-header {
            margin-bottom: 0.4rem;
        }

        .checklist-card-hero .checklist-collapsible-content {
            display: flex;
            flex-direction: column;
            max-height: 170px;
            overflow: hidden;
        }

        .checklist-card-hero .checklist-list {
            flex: 1 1 auto;
            min-height: 0;
            max-height: none;
            overflow-y: auto;
            gap: 0.3rem;
        }

        .checklist-card-hero .checklist-form {
            gap: 0.35rem;
            margin-bottom: 0.3rem;
        }

        .checklist-card-hero .checklist-input {
            padding: 0.4rem 0.55rem;
            font-size: 0.84rem;
        }

        .checklist-card-hero .checklist-add-button {
            min-height: 34px;
            padding: 0.36rem 0.75rem;
            font-size: 0.8rem;
        }

        .checklist-card-hero .checklist-item {
            padding: 0.32rem 0.42rem;
        }

        .checklist-card-hero .checklist-item-text {
            font-size: 0.82rem;
            line-height: 1.22;
        }

        .checklist-card-hero .checklist-delete-button {
            padding: 0.3rem 0.56rem;
            font-size: 0.72rem;
        }

        .checklist-card-hero .checklist-save-status {
            margin-top: 0.22rem;
            min-height: 0;
        }

        .checklist-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.6rem;
            flex-wrap: wrap;
            margin-bottom: 0.55rem;
        }

        .checklist-title {
            margin: 0;
            font-size: 0.96rem;
            color: #2f1b22;
            letter-spacing: -0.01em;
        }

        .checklist-count {
            font-size: 0.75rem;
            color: #6c5a61;
            font-weight: 700;
        }

        .checklist-card-hero .checklist-count {
            display: none;
        }

        .checklist-header-actions {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin-left: auto;
        }

        .checklist-toggle-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px solid rgba(190, 137, 166, 0.4);
            padding: 0;
            background: var(--bg-card);
            color: var(--primary-color);
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
            flex-shrink: 0;
        }

        .checklist-float-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px solid rgba(190, 137, 166, 0.4);
            padding: 0;
            background: var(--bg-card);
            color: var(--primary-color);
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
            flex-shrink: 0;
        }

        .checklist-toggle-button:hover {
            background: #fff0f4;
            border-color: var(--primary-color);
            transform: translateY(-1px);
        }

        .checklist-float-button:hover {
            background: #fff0f4;
            border-color: var(--primary-color);
            transform: translateY(-1px);
        }

        .checklist-toggle-button:active {
            transform: translateY(0);
        }

        .checklist-float-button:active {
            transform: translateY(0);
        }

        .checklist-toggle-icon {
            width: 10px;
            height: 10px;
            transition: transform 0.2s ease;
        }

        .checklist-float-icon {
            width: 12px;
            height: 12px;
            transition: transform 0.2s ease;
        }

        .checklist-card.is-floating-checklist .checklist-float-icon {
            transform: rotate(180deg);
        }

        .checklist-float-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.34);
            z-index: 1200;
            display: none;
        }

        .checklist-float-backdrop.is-open {
            display: block;
        }

        body.checklist-floating-open {
            overflow: hidden;
        }

        .checklist-card.is-floating-checklist {
            position: fixed;
            top: clamp(10px, 3vh, 28px);
            left: 50%;
            transform: translateX(-50%);
            width: min(720px, calc(100vw - 20px));
            max-height: calc(100vh - 20px);
            z-index: 1250;
            padding: 0.85rem;
            border-radius: var(--radius-lg);
            box-shadow: 0 22px 44px rgba(15, 23, 42, 0.24);
        }

        .checklist-card.checklist-card-hero.is-floating-checklist .checklist-header {
            margin-bottom: 0.5rem;
        }

        .checklist-card.checklist-card-hero.is-floating-checklist .checklist-collapsible-content {
            max-height: none;
            overflow: visible;
        }

        .checklist-card.checklist-card-hero.is-floating-checklist .checklist-form {
            gap: 0.45rem;
            margin-bottom: 0.5rem;
        }

        .checklist-card.checklist-card-hero.is-floating-checklist .checklist-input {
            padding: 0.46rem 0.6rem;
            font-size: 0.86rem;
        }

        .checklist-card.checklist-card-hero.is-floating-checklist .checklist-add-button {
            min-height: 36px;
            padding: 0.42rem 0.82rem;
            font-size: 0.82rem;
        }

        .checklist-card.checklist-card-hero.is-floating-checklist .checklist-list {
            gap: 0.38rem;
            max-height: calc(100vh - 210px);
        }

        .checklist-card.checklist-card-hero.is-floating-checklist .checklist-item {
            padding: 0.42rem 0.5rem;
        }

        .checklist-card.checklist-card-hero.is-floating-checklist .checklist-item-text {
            font-size: 0.85rem;
            line-height: 1.3;
        }

        .checklist-collapsible-content {
            display: block;
        }

        .checklist-card.is-collapsed-checklist .checklist-collapsible-content {
            display: none;
        }

        .checklist-card.is-collapsed-checklist .checklist-header {
            margin-bottom: 0;
        }

        .checklist-card.is-collapsed-checklist .checklist-toggle-icon {
            transform: rotate(-180deg);
        }

        .checklist-form {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            margin-bottom: 0.55rem;
        }

        .checklist-input {
            flex: 1 1 auto;
            min-width: 0;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            color: #2f1b22;
            font-size: 0.86rem;
            padding: 0.48rem 0.6rem;
        }

        .checklist-input:focus {
            outline: none;
            border-color: rgba(190, 137, 166, 0.5);
            box-shadow: 0 0 0 2px rgba(190, 137, 166, 0.18);
        }

        .checklist-add-button {
            flex: 0 0 auto;
            min-height: 38px;
            border-radius: 999px;
            border: 1px solid rgba(190, 137, 166, 0.45);
            padding: 0.45rem 0.9rem;
            background: var(--bg-card);
            color: var(--primary-color);
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
        }

        .checklist-add-button:hover {
            background: #fff0f4;
            border-color: var(--primary-color);
            transform: translateY(-1px);
        }

        .checklist-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 0.4rem;
            padding-right: 0.2rem;
        }

        .checklist-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            padding: 0.45rem 0.5rem;
        }

        .checklist-item-main {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            flex: 1 1 auto;
            min-width: 0;
        }

        .checklist-item-main input[type="checkbox"] {
            width: 16px;
            height: 16px;
            margin: 0;
            accent-color: var(--primary-color);
        }

        .checklist-item-text {
            font-size: 0.85rem;
            color: #3a2a30;
            line-height: 1.3;
            word-break: break-word;
        }

        .checklist-item.is-done .checklist-item-text {
            text-decoration: line-through;
            color: #8c7b83;
        }

        .checklist-delete-button {
            flex: 0 0 auto;
            border: 1px solid rgba(190, 137, 166, 0.35);
            border-radius: 999px;
            background: var(--bg-card);
            color: #7b3c52;
            font-size: 0.73rem;
            font-weight: 700;
            line-height: 1;
            padding: 0.35rem 0.65rem;
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease;
        }

        .checklist-delete-button:hover {
            background: #fff0f4;
            border-color: var(--primary-color);
        }

        .checklist-empty {
            margin: 0.22rem 0 0;
            font-size: 0.82rem;
            color: #6c5a61;
        }

        .checklist-save-status {
            margin-top: 0.45rem;
            font-size: 0.74rem;
            color: #6c5a61;
            min-height: 1.1em;
        }

        .checklist-save-status:empty {
            display: none;
        }

        .checklist-save-status.is-error {
            color: #b91c1c;
        }

        .checklist-save-status.is-ok {
            color: #4b5563;
        }

        .itinerary-day {
            position: relative;
            margin-top: 0.9rem;
            padding: 0.95rem;
            border-radius: var(--radius-lg);
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            box-shadow: var(--shadow-xs);
            overflow: hidden;
            animation: fade-up 280ms ease both;
        }

        .itinerary-day::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--primary-color);
        }

        .segment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.8rem;
            margin-bottom: 0.65rem;
        }

        .segment-header-main {
            flex: 1 1 auto;
            min-width: 0;
        }

        .segment-header-actions {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            margin-left: auto;
            flex-shrink: 0;
        }

        .segment-title {
            font-weight: 750;
            font-size: 1rem;
            color: #2f1b22;
        }

        .segment-meta {
            font-size: 0.82rem;
            color: #6c5a61;
        }

        .segment-toggle-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 999px;
            border: 1px solid rgba(190, 137, 166, 0.45);
            padding: 0;
            background-color: var(--bg-card);
            color: var(--primary-color);
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
        }

        .segment-toggle-button:hover {
            background: #fff0f4;
            border-color: var(--primary-color);
            transform: translateY(-1px);
        }

        .segment-toggle-button:active {
            transform: translateY(0);
        }

        .segment-toggle-icon {
            width: 11px;
            height: 11px;
            transition: transform 0.2s ease;
        }

        .segment-collapsible-content {
            display: block;
        }

        .itinerary-day.is-collapsed .segment-collapsible-content {
            display: none;
        }

        .itinerary-day.is-collapsed .segment-toggle-icon {
            transform: rotate(-180deg);
        }

        .segment-day {
            margin-top: 0.62rem;
            padding: 0.62rem;
            border: 1px solid var(--border-subtle);
            border-radius: 12px;
            background: var(--bg-card);
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
        }

        .segment-day:first-of-type {
            margin-top: 0;
        }

        .segment-day-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.5rem;
            margin-bottom: 0.4rem;
        }

        .segment-day-header-main {
            flex: 1 1 auto;
            min-width: 0;
        }

        .segment-day-title {
            font-weight: 750;
            font-size: 0.92rem;
            line-height: 1.2;
            color: #2f1b22;
        }

        .segment-day-meta {
            margin-top: 0.08rem;
            font-size: 0.78rem;
            color: #6c5a61;
            line-height: 1.2;
        }

        .segment-day-toggle-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px solid rgba(190, 137, 166, 0.4);
            padding: 0;
            background-color: var(--bg-card);
            color: var(--primary-color);
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
            flex-shrink: 0;
        }

        .segment-day-toggle-button:hover {
            background: #fff0f4;
            border-color: var(--primary-color);
            transform: translateY(-1px);
        }

        .segment-day-toggle-button:active {
            transform: translateY(0);
        }

        .segment-day-toggle-icon {
            width: 10px;
            height: 10px;
            transition: transform 0.2s ease;
        }

        .segment-day-collapsible-content {
            display: block;
        }

        .segment-day.is-collapsed-day .segment-day-collapsible-content {
            display: none;
        }

        .segment-day.is-collapsed-day .segment-day-toggle-icon {
            transform: rotate(-180deg);
        }

        .transition-day-note {
            margin-top: 0.18rem;
            margin-bottom: 0.35rem;
            padding: 0.6rem 0.7rem;
            border-radius: 12px;
            border: 1px dashed rgba(190, 137, 166, 0.45);
            background: #fff8fa;
            font-size: 0.83rem;
            color: #5c4d53;
        }

        ul.segment-day-activities {
            list-style: none;
            padding-left: 0;
            margin: 0.16rem 0 0.35rem;
            font-size: 0.87rem;
        }

        ul.segment-day-activities li + li {
            margin-top: 0.4rem;
        }

        ul.segment-day-activities .activity-item {
            display: flex;
            align-items: flex-start;
            gap: 0.3rem;
        }

        ul.segment-day-activities .activity-item .day-activity-row {
            flex: 1 1 0;
            min-width: 0;
        }

        .day-activity-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 0.6rem;
            padding: 0.55rem;
            border: 1px solid var(--border-subtle);
            border-radius: 12px;
            background: var(--bg-card);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .day-activity-row:hover {
            border-color: rgba(190, 137, 166, 0.4);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
        }

        .day-activity-main {
            flex: 1 1 auto;
            min-width: 0;
        }

        .day-activity-title {
            font-weight: 700;
            color: #2f1b22;
            line-height: 1.25;
        }

        .day-activity-price {
            color: #6b5f64;
            font-size: 0.81rem;
            margin-top: 0.12rem;
        }

        .day-activity-links {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.45rem;
            flex-shrink: 0;
        }

        .day-activity-links .activity-action-button {
            margin-top: 0;
        }

        .segment-day-budget {
            margin-top: 0.35rem;
            padding: 0.45rem 0.6rem;
            border-radius: var(--radius-sm);
            background: #fdf2f7;
            border: 1px solid rgba(190, 137, 166, 0.2);
            font-size: 0.8rem;
            color: #5c4d53;
        }

        .segment-day-budget strong {
            color: var(--primary-color);
        }

        .segment-links {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
            margin: 0.65rem 0 0.95rem;
        }

        .segment-link-button {
            display: inline-flex;
            align-items: center;
            gap: 0.38rem;
            min-height: 42px;
            border-radius: 999px;
            border: 1px solid rgba(190, 137, 166, 0.45);
            padding: 0.56rem 1.2rem;
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            color: var(--primary-color);
            background-color: var(--bg-card);
            line-height: 1;
            box-shadow: var(--shadow-sm);
            transition: background-color 0.2s ease, box-shadow 0.2s ease,
                        border-color 0.2s ease, transform 0.12s ease;
        }

        .segment-link-button:hover {
            background-color: #fff0f4;
            border-color: var(--primary-color);
            box-shadow: 0 10px 20px rgba(190, 137, 166, 0.16);
            transform: translateY(-1px);
            text-decoration: none;
        }

        .actions-row {
            margin-top: 1.2rem;
            display: flex;
            justify-content: flex-end;
            gap: 0.6rem;
            flex-wrap: wrap;
            padding-top: 0.8rem;
        }

        .inline-form {
            margin: 0;
        }

        .secondary-button {
            margin-top: 0;
            min-height: 42px;
            border-radius: 999px;
            border: 1px solid rgba(190, 137, 166, 0.45);
            padding: 0.56rem 1.2rem;
            background-color: var(--bg-card);
            font-size: 0.9rem;
            font-weight: 600;
            line-height: 1;
            cursor: pointer;
            color: var(--primary-color);
            text-decoration: none;
            box-shadow: var(--shadow-sm);
            transition: background-color 0.2s ease, box-shadow 0.2s ease,
                        border-color 0.2s ease, transform 0.12s ease;
        }

        .secondary-button:hover {
            background-color: #fff0f4;
            border-color: var(--primary-color);
            box-shadow: 0 10px 20px rgba(190, 137, 166, 0.16);
            transform: translateY(-1px);
            text-decoration: none;
        }

        .actions-row .secondary-button {
            margin-top: 0;
        }

        .budget-warning {
            margin-top: 0.9rem;
            font-size: 0.83rem;
            padding: 0.72rem 0.85rem;
            border-radius: 12px;
            background: #fff1f2;
            border: 1px solid #fecaca;
            color: #b91c1c;
        }

        @keyframes fade-up {
            from {
                opacity: 0;
                transform: translateY(4px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 900px) {
            .summary-card {
                position: static;
            }

            .hero-widgets {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }

            .itinerary-share-box {
                flex-basis: 320px;
            }

            .itinerary-layout {
                grid-template-columns: minmax(0, 1fr);
            }

            .summary-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .itinerary-hero-panel {
                padding: 1rem 1rem 0.95rem;
            }

            .hero-top-row {
                flex-direction: column;
                align-items: stretch;
            }

            .hero-top-main {
                max-width: none;
            }

            .itinerary-share-box {
                width: 100%;
                max-width: none;
                margin-left: 0;
                flex: none;
            }
        }

        @media (max-width: 600px) {
            .itinerary-hero-section {
                margin-top: 0.85rem;
                margin-bottom: 1.1rem;
            }

            .itinerary-hero-panel {
                padding: 0.9rem 0.85rem 0.82rem;
            }

            .hero-top-row {
                gap: 0.75rem;
            }

            .hero-widgets {
                margin-top: 0.8rem;
                grid-template-columns: minmax(0, 1fr);
                gap: 0.62rem;
            }

            .hero-collapsible-card {
                padding: 0.62rem;
            }

            .hero-collapsible-header {
                margin-bottom: 0.48rem;
            }

            .hero-metrics {
                grid-template-columns: minmax(0, 1fr);
                gap: 0.42rem;
            }

            .hero-metric {
                padding: 0.44rem 0.52rem;
            }

            .itinerary-share-box {
                padding: 0.62rem 0.64rem 0.7rem;
                border-radius: 16px;
                flex: none;
            }

            .itinerary-share-label {
                font-size: 0.84rem;
            }

            .itinerary-share-input {
                height: 46px;
                font-size: 0.78rem;
                letter-spacing: 0.01em;
                padding: 0 0.65rem;
            }

            .itinerary-share-copy-button,
            .itinerary-share-qr-button {
                width: 54px;
                height: 46px;
                border-radius: 12px;
            }

            .itinerary-final-card {
                padding: 0.9rem;
            }

            .itinerary-intro {
                margin-bottom: 0.75rem;
            }

            .transition-days-item-route {
                font-size: 0.74rem;
            }

            .transition-days-item-between {
                margin-top: 0.65rem;
                margin-bottom: 0.04rem;
            }

            .checklist-card {
                padding: 0.62rem;
            }

            .checklist-card-hero {
                padding: 0.56rem;
            }

            .checklist-form {
                gap: 0.35rem;
            }

            .checklist-header-actions {
                width: 100%;
                justify-content: space-between;
            }

            .checklist-card-hero .checklist-header {
                flex-wrap: nowrap;
                align-items: center;
            }

            .checklist-card-hero .checklist-header-actions {
                width: auto;
                margin-left: auto;
                justify-content: flex-end;
            }

            .checklist-add-button {
                min-height: 36px;
                padding: 0.42rem 0.72rem;
            }

            .checklist-item {
                align-items: flex-start;
            }

            .checklist-card-hero .checklist-collapsible-content {
                max-height: 150px;
            }

            .checklist-delete-button {
                padding: 0.32rem 0.55rem;
            }

            .checklist-toggle-button,
            .checklist-float-button {
                width: 28px;
                height: 28px;
            }

            .checklist-card.is-floating-checklist {
                top: 8px;
                width: calc(100vw - 12px);
                max-height: calc(100vh - 12px);
                border-radius: 12px;
                padding: 0.62rem;
            }

            .checklist-card.checklist-card-hero.is-floating-checklist .checklist-list {
                max-height: calc(100vh - 185px);
            }

            .itinerary-day {
                padding: 0.75rem;
            }

            .summary-grid {
                grid-template-columns: minmax(0, 1fr);
            }

            .segment-header {
                flex-direction: row;
                align-items: flex-start;
                gap: 0.45rem;
            }

            .segment-day-top {
                width: 100%;
                align-items: flex-start;
                gap: 0.35rem;
            }

            .segment-day {
                margin-top: 0.55rem;
                padding: 0.52rem;
            }

            .segment-day-header-main {
                flex: 1 1 auto;
                min-width: 0;
            }

            .segment-day-title {
                white-space: normal;
                line-height: 1.2;
                font-size: 0.86rem;
            }

            .segment-day-meta {
                line-height: 1.2;
                font-size: 0.75rem;
            }

            .segment-day-toggle-button {
                width: 28px;
                height: 28px;
            }

            .segment-header-main {
                width: auto;
                text-align: left;
            }

            .segment-header-actions {
                width: auto;
                justify-content: flex-end;
                margin-left: auto;
                align-self: flex-start;
            }

            .segment-links {
                margin: 0.58rem 0 0.78rem;
                display: flex;
                flex-direction: column;
                gap: 0.48rem;
            }

            .segment-link-button {
                width: 100%;
                justify-content: center;
                text-align: center;
                padding: 0.52rem 0.85rem;
                min-height: 40px;
            }

            .transition-day-note {
                font-size: 0.8rem;
                line-height: 1.35;
            }

            ul.segment-day-activities {
                display: block;
            }

            ul.segment-day-activities li + li {
                margin-top: 0.4rem;
            }

            ul.segment-day-activities .activity-item {
                display: flex;
                align-items: flex-start;
                gap: 0.3rem;
            }

            ul.segment-day-activities .activity-item .day-activity-row {
                flex: 1 1 0;
                min-width: 0;
            }

            .day-activity-row {
                flex-direction: column;
            }

            .day-activity-links {
                width: 100%;
                justify-content: flex-start;
                gap: 0.35rem;
            }

            .day-activity-links .activity-action-button {
                flex: 1 1 100%;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                text-align: center;
            }
        }

/* =============================================
   Hub: stat strip
   ============================================= */

.hub-hero-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hub-hero-data {
    flex: 1 1 320px;
    min-width: 0;
}

.hub-hero-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

.hub-hero-toggle {
    display: none;
}

.hub-trip-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-trip-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.45rem 1.25rem 0.45rem 0;
}

.hub-trip-stat:last-child {
    padding-right: 0;
}

.hub-trip-stat dt {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.hub-trip-stat dd {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .hub-hero-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hub-hero-data {
        flex: 0 0 auto;
    }

    .hub-hero-title {
        font-size: 1.2rem;
        margin-bottom: 0.85rem;
    }

    .hub-trip-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }

    .hub-trip-stat:first-child {
        grid-column: 1 / -1;
    }

    .hub-trip-stat {
        padding: 0;
    }

    .hub-trip-stat:last-child {
        padding: 0;
    }

    .hub-trip-stat dd {
        white-space: nowrap;
    }
}

.hub-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hub-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hub-stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

/* =============================================
   Hub: Today card
   ============================================= */

.hub-today-section {
    margin-bottom: 0;
}

.hub-today-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary-color);
    overflow: hidden;
}

/* Today compact widget in sidebar */
.hub-today-sidebar-card {
    border-top: 3px solid var(--primary-color);
}

.hub-today-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.hub-today-sidebar-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.hub-today-sidebar-date {
    font-weight: 400;
    color: var(--text-muted);
}

.hub-today-sidebar-list {
    list-style: none;
    margin: 0 0 0.45rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.hub-today-sidebar-item {
    font-size: 0.82rem;
    color: var(--text-main);
    padding-left: 0.85rem;
    position: relative;
}

.hub-today-sidebar-item::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.hub-today-sidebar-cost {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.45rem;
}

.hub-today-sidebar-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 0.45rem;
}

.hub-today-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d4a4c0 100%);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hub-today-badge {
    background: #fff;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.hub-today-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    color: #fff;
}

.hub-today-day {
    font-weight: 700;
    font-size: 1rem;
}

.hub-today-city {
    font-size: 1rem;
}

.hub-today-sep {
    opacity: 0.6;
}

.hub-today-date {
    font-size: 0.88rem;
    opacity: 0.85;
}

.hub-today-body {
    padding: 1rem 1.25rem;
}

.hub-today-activities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hub-today-activity {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.hub-today-activity-name {
    font-size: 0.9rem;
    color: var(--text-main);
}

.hub-today-activity-cost {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.hub-today-cost {
    margin: 0.75rem 0 0;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.hub-today-transition,
.hub-today-no-activities {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.hub-today-footer {
    padding: 0.65rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.hub-today-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.hub-today-link:hover {
    text-decoration: underline;
}

/* =============================================
   Hub: city cards + sidebar grid
   ============================================= */

.hub-section {
    margin-bottom: 0;
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.hub-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.9rem;
}

.hub-city-cards {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hub-city-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-city-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.hub-city-card-header {
    padding: 0.8rem 1.1rem 0.55rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.hub-city-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.hub-city-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.hub-city-card-body {
    padding: 0.8rem 1.1rem;
}

.hub-city-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.83rem;
}

.hub-city-row-label {
    color: var(--text-muted);
}

.hub-city-row-value {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}

.hub-city-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.hub-city-cta {
    display: inline-block;
    padding: 0.42rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.hub-city-cta--primary {
    background: var(--primary-color);
    color: #fff;
}

.hub-city-cta--primary:hover {
    background: #a97393;
}

.hub-city-cta--secondary {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.hub-city-cta--secondary:hover {
    background: #e8d5e5;
}

.hub-city-cta--tertiary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(0,0,0,0.12);
}

.hub-city-cta--tertiary:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
    border-color: var(--primary-soft);
}

/* =============================================
   Hub: sidebar
   ============================================= */

.hub-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hub-sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary-color);
    padding: 0.9rem 1rem;
}

.hub-sidebar-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.7rem;
}

.hub-sidebar-rows {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hub-sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.hub-sidebar-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.hub-sidebar-value {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}

.hub-sidebar-value--warn {
    color: #c0392b;
}

.hub-resource-links {
    display: flex;
    flex-direction: column;
}

.hub-resource-link {
    font-size: 0.84rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--primary-soft);
    display: block;
}

.hub-resource-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hub-resource-link:hover {
    text-decoration: underline;
}

/* =============================================
   Hub: checklist fast-view link
   ============================================= */

.hub-checklist-full-link {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.hub-checklist-full-link:hover {
    text-decoration: underline;
}

/* =============================================
   Hub: JR Pass CTA card
   ============================================= */

.hub-jr-cta-text {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 0.1rem;
}

.hub-jr-cta-form {
    margin: 0;
    padding: 0;
}

.hub-jr-cta-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

/* =============================================
   Hub: checklist quick-view widget
   ============================================= */

.hub-checklist-quick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.hub-checklist-quick-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.hub-checklist-quick-list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hub-checklist-quick-item {
    font-size: 0.83rem;
    color: var(--text-main);
    padding: 0.18rem 0;
    padding-left: 1.1rem;
    position: relative;
}

.hub-checklist-quick-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
    background: transparent;
}

.hub-checklist-quick-item--done {
    color: var(--text-muted);
    text-decoration: line-through;
}

.hub-checklist-quick-item--done::before {
    background: var(--primary-color);
}

.hub-checklist-quick-empty {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

/* =============================================
   Listado page: full checklist layout
   ============================================= */

.listado-layout {
    width: 100%;
}

.listado-checklist-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary-color);
    padding: 1.5rem 1.75rem;
}

.listado-checklist-card.checklist-card-hero {
    padding: 1.5rem 1.75rem;
}

.listado-checklist-card.checklist-card-hero .checklist-collapsible-content,
.listado-checklist-card.is-collapsed-checklist .checklist-collapsible-content {
    display: flex;
    max-height: none;
    overflow: visible;
}

.listado-checklist-card.checklist-card-hero .checklist-list {
    max-height: none;
    overflow-y: visible;
    gap: 0.45rem;
}

.listado-checklist-card.checklist-card-hero .checklist-form {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.listado-checklist-card.checklist-card-hero .checklist-input {
    padding: 0.62rem 0.85rem;
    font-size: 0.95rem;
}

.listado-checklist-card.checklist-card-hero .checklist-add-button {
    min-height: 42px;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
}

.listado-checklist-card.checklist-card-hero .checklist-item {
    padding: 0.5rem 0.65rem;
}

.listado-checklist-card.checklist-card-hero .checklist-item-text {
    font-size: 0.93rem;
    line-height: 1.3;
}

.listado-checklist-card.checklist-card-hero .checklist-delete-button {
    padding: 0.38rem 0.75rem;
    font-size: 0.8rem;
}

.listado-checklist-card.checklist-card-hero .checklist-save-status {
    margin-top: 0.5rem;
    font-size: 0.83rem;
}

/* =============================================
   Hub: transition strip between city cards
   ============================================= */

.hub-transition-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--primary-color);
}

.hub-transition-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hub-transition-text {
    font-weight: 600;
}

/* =============================================
   Ciudad page: header CTAs
   ============================================= */

.ciudad-header-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

/* =============================================
   Hub: day detail heading
   ============================================= */

.itinerary-detail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.itinerary-detail-heading h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* =============================================
   Ciudad page: prev/next/hub navigation
   ============================================= */

.ciudad-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.ciudad-nav-side {
    flex: 1;
}

.ciudad-nav-side--right {
    text-align: right;
}

.ciudad-nav-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.ciudad-nav-link:hover {
    text-decoration: underline;
}

.ciudad-nav-hub {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.85rem;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.ciudad-nav-hub:hover {
    color: var(--primary-color);
    border-color: rgba(190, 137, 166, 0.5);
}

/* =============================================
   Hub: responsive
   ============================================= */

@media (max-width: 900px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }

    .hub-sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hub-sidebar-card {
        flex: 1 1 calc(50% - 0.45rem);
        min-width: 220px;
    }

    .itinerary-detail-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    /* ── Datos del viaje: colapsable ─────────────────────── */
    .hub-hero-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.9rem;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .hub-hero-toggle {
        display: flex;
        align-items: center;
        background: var(--primary-soft);
        border: none;
        color: var(--primary-color);
        cursor: pointer;
        padding: 0.3rem 0.55rem;
        border-radius: var(--radius-pill);
        line-height: 1;
        flex-shrink: 0;
        transition: transform 0.2s ease, background 0.15s;
    }

    .hub-hero-toggle:hover {
        background: #e8d5e3;
    }

    .itinerary-hero-panel.is-collapsed .hub-trip-stats,
    .itinerary-hero-panel.is-collapsed .itinerary-share-box {
        display: none;
    }

    .itinerary-hero-panel.is-collapsed .hub-hero-title {
        margin-bottom: 0;
    }

    .itinerary-hero-panel.is-collapsed .hub-hero-toggle {
        transform: rotate(-90deg);
    }

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

    .hub-sidebar {
        order: -1;
        flex-direction: column;
    }

    .hub-sidebar-card {
        flex: none;
    }

    .hub-stat-strip {
        gap: 0.45rem 1rem;
    }

    .hub-today-header {
        gap: 0.5rem;
    }

    .hub-city-ctas {
        flex-direction: column;
    }

    .hub-city-cta {
        text-align: center;
    }

    /* ── Sidebar: fila compacta horizontal ───────────────── */
    .hub-sidebar {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.4rem;
        gap: 0.65rem;
    }

    .hub-sidebar-card {
        flex: 1 1 0;
        min-width: 0;
        scroll-snap-align: start;
        padding: 0.65rem 0.7rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hub-sidebar-card-title {
        font-size: 0.65rem;
        line-height: 1.35;
        margin-bottom: 0.35rem;
    }

    /* Ocultar contenido detallado en vista compacta */
    .hub-today-sidebar-list,
    .hub-today-sidebar-cost,
    .hub-today-sidebar-note,
    .hub-checklist-quick-list,
    .hub-checklist-quick-empty,
    .hub-checklist-quick-count,
    .hub-jr-cta-text {
        display: none;
    }

    .hub-today-sidebar-header {
        display: contents;
    }

    .hub-today-sidebar-meta {
        font-size: 0.65rem;
        font-weight: 700;
        margin-bottom: 0.35rem;
    }

    .hub-today-sidebar-date {
        display: none;
    }

    .hub-today-badge {
        display: none;
    }

    .hub-checklist-quick-header {
        margin-bottom: 0;
    }

    .hub-checklist-full-link,
    .hub-jr-cta-btn {
        font-size: 0.65rem;
        margin-top: 0;
    }
}

/* =============================================
   Activity detail modal
   ============================================= */

[data-activity-trigger] {
    cursor: pointer;
}

.activity-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.activity-modal-backdrop[hidden] {
    display: none;
}

.activity-modal-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.activity-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: #6b5f64;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.activity-modal-close:hover {
    background: #fff0f4;
    border-color: var(--primary-color);
}

.activity-modal-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: block;
}

.activity-modal-image[hidden] {
    display: none;
}

.activity-modal-body {
    padding: 1.25rem;
}

.activity-modal-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #2f1b22;
    margin: 0 0 0.55rem;
    padding-right: 2rem;
    line-height: 1.3;
}

.activity-modal-description {
    font-size: 0.87rem;
    color: #4b5563;
    margin: 0 0 0.65rem;
    line-height: 1.55;
}

.activity-modal-description:empty {
    display: none;
}

/* ── Página individual de actividad ── */

.actividad-layout {
    max-width: 760px;
    margin: 2rem auto;
}

.actividad-hero-img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    margin-bottom: 1.5rem;
}

.actividad-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 1.25rem;
    line-height: 1.25;
}

.actividad-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.actividad-fact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem 0.9rem;
    box-shadow: var(--shadow-stat);
    border-top: 3px solid var(--primary-color);
    text-align: center;
}

.actividad-fact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.actividad-fact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
}

.actividad-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 1rem;
    font-style: italic;
}

.actividad-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0 0 1.75rem;
}

.actividad-text p {
    margin: 0 0 1em;
}

.actividad-text p:last-child {
    margin-bottom: 0;
}

.actividad-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.actividad-btn-disabled {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    position: relative;
    border: none;
    white-space: nowrap;
}

.actividad-btn-disabled--secondary {
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #b0b7c3;
}

.actividad-btn-disabled[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 400;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.actividad-btn-disabled[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    pointer-events: none;
    z-index: 10;
}

@media (max-width: 600px) {
    .actividad-title { font-size: 1.35rem; }
    .actividad-facts { grid-template-columns: 1fr 1fr; }
    .actividad-actions { flex-direction: column; }
    .actividad-btn-disabled { text-align: center; justify-content: center; }
}

.activity-modal-price {
    font-size: 0.82rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 1rem;
}

.activity-modal-price:empty {
    display: none;
}

.activity-modal-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================
   Toast notifications
   ============================ */

.rj-toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10000;
    pointer-events: none;
}

.rj-toast {
    background: #1a1a1a;
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
    max-width: calc(100vw - 3rem);
    text-align: center;
    white-space: nowrap;
}

.rj-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Index page — hero & stat cards
   ============================ */

.index-hero-panel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    min-height: var(--hero-h);
    display: flex;
    align-items: flex-end;
    background: #020617;
}

.index-hero-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.index-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.12) 100%);
    padding: 2rem 1.5rem 1.5rem;
}

.index-hero-overlay .hero-title {
    color: #fff;
    margin-bottom: 0.5rem;
}

.index-hero-overlay .hero-subtitle {
    color: rgba(255,255,255,0.88);
    margin-bottom: 1.25rem;
    max-width: 100%;
}

.index-hero-cta {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.index-hero-cta:hover {
    background: var(--primary-soft);
    border-color: var(--primary-soft);
    color: var(--primary-color);
}

.feature-item {
    border-top: 3px solid var(--primary-color, #BE89A6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    flex-shrink: 0;
}

.fi-calendar { background: #f3e7ef; color: #BE89A6; }
.fi-cities   { background: #e8f5e9; color: #2e7d32; }
.fi-budget   { background: #fff3e0; color: #e65100; }
.fi-time     { background: #e3f2fd; color: #1565c0; }
.fi-guide    { background: #f3e5f5; color: #7b1fa2; }
.fi-list     { background: #fce4ec; color: #c62828; }

body.home .hero > div > .section-text {
    margin-bottom: 0;
}

/* Planner step breadcrumb — shared across index & ajustes */
.planner-steps {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: #9d8b93;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.planner-steps a {
    color: var(--primary-color, #BE89A6);
    text-decoration: none;
}

.planner-steps a:hover {
    text-decoration: underline;
}

.planner-steps strong {
    color: var(--primary-color, #BE89A6);
    font-weight: 700;
}

.form-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .index-hero-panel { min-height: var(--hero-h-mobile); }
    .index-hero-overlay { padding: 1.5rem 1.2rem 1.2rem; }
}

/* ============================
   Index — city chips grid
   ============================ */

.index-cities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.index-city-chip {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--chip-color, var(--primary-color));
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-city-chip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.index-city-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--chip-color, var(--primary-color));
    font-weight: 600;
}

.index-city-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .index-cities-grid { grid-template-columns: repeat(3, 1fr) }
}

@media (max-width: 600px) {
    .index-cities-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================
   Article visual components
   ============================ */

.cost-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
}
.cost-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.04);
    border-top: 3px solid var(--primary-color);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cost-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cost-card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.cost-card-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.cci-flight  { background: #ede7f6; color: #5e35b1; }
.cci-hotel   { background: #e3f2fd; color: #1565c0; }
.cci-train   { background: #e8f5e9; color: #2e7d32; }
.cci-food    { background: #fff3e0; color: #e65100; }
.cci-ticket  { background: #fce4ec; color: #c62828; }
.cci-extra   { background: #f3e5f5; color: #7b1fa2; }
.cost-card-title  { font-size: 0.82rem; font-weight: 600; color: var(--text-main); }
.cost-card-price  { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; }
.cost-card-detail { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.style-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 0.75rem;
}
.style-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 18px rgba(0,0,0,0.04); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.style-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.style-card-head { padding: 0.75rem 1rem; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.style-card-head h3 { margin: 0; font-size: 1.05rem; }
.style-total { font-size: 1.5rem; font-weight: 700; margin-top: 0.2rem; }
.style-note  { font-size: 0.72rem; opacity: 0.85; }
.head-backpacker { background: #43a047; }
.head-mid        { background: #ab47bc; }
.head-comfort    { background: #f57c00; }
.style-card-body { padding: 0.9rem 1rem; }
.style-row { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--border-subtle); }
.style-row:last-child { border-bottom: none; }
.style-row-label { color: var(--text-muted); }

.duration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.duration-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 1.1rem 1rem; box-shadow: 0 8px 18px rgba(0,0,0,0.04); text-align: center; border-top: 3px solid var(--primary-color); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.duration-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.duration-days  { font-size: 1.6rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.duration-label { font-size: 0.75rem; color: var(--text-muted); margin: 0.2rem 0 0.7rem; }
.duration-range { font-size: 0.82rem; font-weight: 600; line-height: 1.6; }
.duration-range small { font-weight: 400; color: var(--text-muted); display: block; font-size: 0.72rem; }

.season-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
}
.season-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 18px rgba(0,0,0,0.04); background: var(--bg-card); transition: transform 0.15s ease, box-shadow 0.15s ease; margin-bottom: 1.75rem; }
.season-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.season-banner { padding: 0.75rem 1rem; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.season-banner h3 { margin: 0; font-size: 1.05rem; }
.season-temp    { font-size: 1.5rem; font-weight: 700; margin: 0.2rem 0 0.1rem; }
.season-months  { font-size: 0.72rem; opacity: 0.85; }
.season-verdict { font-size: 0.72rem; opacity: 0.85; font-style: italic; margin-top: 0.25rem; }
.banner-spring { background: #e91e63; }
.banner-summer { background: #0288d1; }
.banner-autumn { background: #e65100; }
.banner-winter { background: #42a5f5; }
.season-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-subtle);
}
.season-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.7rem 0.5rem;
    font-size: 0.82rem;
    border-right: 1px solid var(--border-subtle);
}
.season-row:last-of-type { border-right: none; }
.season-row-label { color: var(--text-muted); font-size: 0.7rem; margin-bottom: 0.25rem; }
.season-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; padding: 0.6rem 1rem; border-top: 1px solid var(--border-subtle); text-align: center; }
@media (max-width: 600px) {
    .season-body { grid-template-columns: repeat(2, 1fr); }
    .season-row:nth-child(2) { border-right: none; }
    .season-row:nth-child(1),
    .season-row:nth-child(2) { border-bottom: 1px solid var(--border-subtle); }
}
.season-pill { display: inline-block; border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.7rem; font-weight: 700; color: #fff; }
.season-pill-low  { background: #66bb6a; }
.season-pill-mid  { background: #ffa726; }
.season-pill-high { background: #ef5350; }

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}
.tip-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 0.9rem; box-shadow: 0 8px 18px rgba(0,0,0,0.04); font-size: 0.82rem; line-height: 1.45; border-left: 3px solid var(--primary-color); }
.tip-card strong { display: block; margin-bottom: 0.2rem; font-size: 0.85rem; color: var(--text-main); }
.tip-card span { color: var(--text-muted); }

@media (max-width: 900px) {
    .cost-cards    { grid-template-columns: repeat(2, 1fr); }
    .style-cards   { grid-template-columns: 1fr; }
    .season-strip  { grid-template-columns: repeat(2, 1fr); }
    .duration-grid { grid-template-columns: repeat(2, 1fr); }
    .tips-grid     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cost-cards    { grid-template-columns: 1fr; }
    .season-strip  { grid-template-columns: 1fr; }
    .duration-grid { grid-template-columns: repeat(2, 1fr); }
    .tips-grid     { grid-template-columns: 1fr; }
}

/* ============================
   Activities page — act-hero
   ============================ */

.act-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: var(--hero-h);
    display: flex;
    align-items: flex-end;
    margin-bottom: 2rem;
    background: #020617;
}

.act-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.act-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.12) 100%);
    padding: 2.5rem 2rem 2rem;
}

.act-hero-overlay h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.act-hero-overlay p {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
    margin: 0;
    max-width: 38rem;
}

@media (max-width: 600px) {
    .act-hero { min-height: var(--hero-h-mobile); }
}

/* ============================
   HOME — hero sin form
   ============================ */

body.home .hero {
    grid-template-columns: 1fr;
}

/* ============================
   PLANNER STRIP — componente compartido
   ============================ */

.planner-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-card);
    border-top: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.planner-strip-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

.planner-strip-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

@media (max-width: 600px) {
    .planner-strip {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================
   PLANIFICADOR — Wizard
   ============================ */

body.wizard-body {
    background-color: var(--bg-page, #f5f5f7);
    color: var(--text-main);
}

.wizard-main {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.wizard-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--shadow-card);
}

.wizard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-header h1 {
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
}

.wizard-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Barra de progreso */
.wizard-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.wizard-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.wizard-progress-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #d5d0c9;
    background: var(--bg-card);
    color: #9d8b93;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.wizard-progress-step span {
    font-size: 0.7rem;
    color: #9d8b93;
    white-space: nowrap;
    transition: color 0.2s;
}

.wizard-progress-step.active .wizard-progress-dot {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.wizard-progress-step.active span {
    color: var(--primary-color);
    font-weight: 600;
}

.wizard-progress-step.done .wizard-progress-dot {
    border-color: var(--primary-color);
    background: var(--primary-soft);
    color: var(--primary-color);
}

.wizard-progress-step.done span {
    color: var(--primary-color);
}

.wizard-progress-line {
    flex: 1;
    height: 2px;
    background: #e5e0da;
    margin: 14px 0.5rem 0;
    max-width: 72px;
    transition: background-color 0.2s;
}

.wizard-progress-line.done {
    background: var(--primary-color);
}

/* Paneles de paso */
.wizard-step {
    display: none;
    animation: wizardFadeIn 0.18s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wizard-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.wizard-step-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.45;
}

/* Stepper de personas (paso 2) */
.persons-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #d5d0c9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.stepper-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

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

.persons-stepper input[type="number"] {
    width: 56px;
    text-align: center;
    border: none;
    border-left: 1px solid #d5d0c9;
    border-right: 1px solid #d5d0c9;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    -moz-appearance: textfield;
}

.persons-stepper input[type="number"]::-webkit-outer-spin-button,
.persons-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Tarjetas de ritmo (paso 2) */
.pace-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.pace-card {
    position: relative;
    border: 2px solid #e5e0da;
    border-radius: var(--radius-lg);
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    text-align: center;
    display: block;
}

.pace-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pace-card.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-soft);
}

.pace-card-name {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.pace-card-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Saltar presupuesto (paso 3) */
.wizard-budget-skip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.87rem;
    color: var(--text-muted);
    cursor: pointer;
    width: fit-content;
}

.wizard-budget-skip input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

/* Navegación del wizard */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

/* Mensajes de error inline */
.wizard-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    margin-top: 1rem;
    display: none;
}

.wizard-error.visible {
    display: block;
}

@media (max-width: 900px) {
    .wizard-main {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .wizard-main {
        padding: 1rem 0.75rem 2.5rem;
    }

    .wizard-container {
        padding: 1.5rem 1.1rem 1.5rem;
    }

    .wizard-progress-line {
        max-width: 32px;
    }

    .wizard-progress-step span {
        display: none;
    }

    .wizard-step-title {
        font-size: 1.1rem;
    }

    .pace-cards {
        grid-template-columns: 1fr;
    }
}
