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

   :root {
    --text-main: #222222;
    --text-muted: #6b7280;
    --bg-page: #f7f5f2;
    --bg-card: #ffffff;
    --border-subtle: #e5e5ea;
    --radius-lg: 16px;
    --radius-pill: 999px;
}

/* ============================
   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-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: wrap;
}

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;
}

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: center;
    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: #fff;
}

.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: 2rem 0 0.75rem;
}

.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: 0.85rem;
}

.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: 10px;
    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;
}

/* Cada interés se ve como una pastilla clicable */
.checkbox-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #e1ddd9;
    background-color: #ffffff;
    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 siendo accesible */
.checkbox-item input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Estado seleccionado usando :has() */
.checkbox-item:has(input[type="checkbox"]:checked) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

/* 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: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.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: 14px;
    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 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(--card-bg, #ffffff);
    border-radius: var(--border-radius, 16px);
    padding: 1.4rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.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: #fff;
    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: 20px;
    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: 20px;
    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: 20px;
}

.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;
}

.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);
}

.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: 1024px) {
    .guide-zone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* Card contenedor principal */

.layout-main-card {
    background-color: var(--bg-card);
    border-radius: 28px;
    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: #ffffff;
    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: #ffffff;
    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;
}

.activity-card {
    background-color: var(--bg-card);
    border-radius: 22px;
    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.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(190, 137, 166, 0.35);
}

.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);
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.activity-chip {
    font-size: 0.76rem;
    padding: 0.12rem 0.6rem;
    border-radius: 999px;
    background-color: #f4f4f5;
    color: #4b5563;
}

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

.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);
}

/* 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: #ffffff;
    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;
}

.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: #ffffff;
    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: 720px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 640px) {
    .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 > 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: 14px;
        background-color: #ffffff;
        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: 18px;
    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: #6b7280;
    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: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.route-stage-avatar {
    width: 100%;
    height: 150px;
    margin: 0 0 0.75rem;
    border-radius: 14px;
    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: #6b7280;
    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: 14px;
    }
}

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

.quick-link-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.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;
}

.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: #ffffff;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--primary-color);
    border-radius: 14px;
    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: #222222;
    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: #ffffff;
    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: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.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: #ffffff;
    padding: 0.35rem 0.9rem;
    font-size: 0.84rem;
    font-family: inherit;
    cursor: pointer;
}

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

@media (max-width: 640px) {
    .cookie-banner {
        padding: 0.8rem 0.85rem;
        border-radius: 12px;
        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: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.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: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.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: #6b7280;
}

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

@media (max-width: 680px) {
    .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 {
        border-radius: 20px;
        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: 640px) {
    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: 1.35rem 0 0.55rem;
        font-size: 1.18rem;
    }

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

    .route-stage {
        padding: 0.9rem;
        border-radius: 14px;
    }

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

    .quick-link-card {
        gap: 0.7rem;
        border-radius: 14px;
        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: #6b7280;
}

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: 720px) {
    body.activities.japan-time-page .japan-time-card {
        padding: 0;
    }

    body.activities.japan-time-page .japan-time-display {
        border-radius: 14px;
        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: 18px;
            padding: 1.35rem 1.35rem 1.2rem;
            background: #ffffff;
            border: 1px solid var(--border-subtle);
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
        }

        .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: 14px;
            background: #ffffff;
            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: #ffffff;
            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: #ffffff;
        }

        .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: #ffffff;
            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: #ffffff;
            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: #ffffff;
            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: #ffffff;
            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: #ffffff;
            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: #ffffff;
            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: #ffffff;
            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: #ffffff;
            border-radius: 16px;
            padding: 1.2rem;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
            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: #ffffff;
            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: 0 10px 24px rgba(15, 23, 42, 0.05);
            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: 10px;
            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: 14px;
            background: #ffffff;
            padding: 0.75rem;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
        }

        .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: #ffffff;
            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: #ffffff;
            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: 14px;
            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: 10px;
            background: #ffffff;
            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: #ffffff;
            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: 10px;
            background: #ffffff;
            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: #ffffff;
            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: 14px;
            background: #ffffff;
            border: 1px solid var(--border-subtle);
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
            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: #ffffff;
            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: #ffffff;
            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: #ffffff;
            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;
        }

        .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: #ffffff;
            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: 10px;
            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: #ffffff;
            line-height: 1;
            box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
            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;
            border-top: 1px dashed rgba(190, 137, 166, 0.25);
        }

        .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: #ffffff;
            font-size: 0.9rem;
            font-weight: 600;
            line-height: 1;
            cursor: pointer;
            color: var(--primary-color);
            text-decoration: none;
            box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
            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: 1024px) {
            .summary-card {
                position: static;
            }

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

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

        @media (max-width: 900px) {
            .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: 640px) {
            .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;
            }

            .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;
            }
        }

/* =============================================
   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: #ffffff;
    border-radius: 18px;
    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: 18px 18px 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;
}

.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;
}
