/* ============================================
   SHARED STYLES
   ============================================ */
[x-cloak] { display: none !important; }

.wpip-ui-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid var(--wpip-border, #e5e7eb);
    border-radius: 8px;
    background: var(--wpip-surface, #fff);
    color: var(--wpip-text, #111827);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    font: 600 14px/1.35 var(--wpip-font-family, inherit);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Post CTA shortcode */
.wpip-post-cta {
    --wpip-cta-accent: var(--wpip-accent, #01735c);
    --wpip-cta-orange: #ff6310;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin: 28px 0;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--wpip-cta-accent) 18%, #ffffff);
    border-radius: 8px;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 99, 16, .12), transparent 120px),
        linear-gradient(135deg, rgba(1, 115, 92, .08), rgba(255, 255, 255, .94) 42%, rgba(255, 99, 16, .06));
    color: var(--wpip-text, #111827);
}

.wpip-post-cta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--wpip-cta-accent);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.wpip-post-cta h2 {
    margin: 0;
    color: var(--wpip-heading, #111827);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    font-weight: 800;
}

.wpip-post-cta p {
    margin: 8px 0 0;
    max-width: 680px;
    color: var(--wpip-muted, #4b5563);
    font-size: 15px;
    line-height: 1.55;
}

.wpip-post-cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.wpip-post-cta-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(1, 115, 92, .14);
    border-radius: 4px;
    background: rgba(255, 255, 255, .72);
    color: var(--wpip-text, #111827);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

.wpip-post-cta-features i {
    color: var(--wpip-cta-accent);
    font-size: 16px;
}

.wpip-post-cta-action {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 220px;
}

.wpip-post-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 6px;
    background: var(--wpip-cta-accent);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(1, 115, 92, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.wpip-post-cta-button:hover,
.wpip-post-cta-button:focus-visible {
    background: var(--wpip-accent-hover, #015f4d);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(1, 115, 92, .28);
}

.wpip-post-cta-action small {
    color: var(--wpip-muted, #6b7280);
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 720px) {
    .wpip-post-cta {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .wpip-post-cta-action {
        justify-items: stretch;
        min-width: 0;
    }

    .wpip-post-cta-button {
        width: 100%;
    }
}

.wpip-ui-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wpip-ui-toast i {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--wpip-accent, #01735c);
}

.wpip-ui-toast-error i {
    color: #dc2626;
}

.wpip-ui-toast-warning i {
    color: #d97706;
}

.wpip-ui-confirm {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.38);
}

.wpip-ui-confirm-card {
    width: min(420px, 100%);
    padding: 20px;
    border-radius: 12px;
    background: var(--wpip-surface, #fff);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    color: var(--wpip-text, #111827);
    font-family: var(--wpip-font-family, inherit);
}

.wpip-ui-confirm-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.wpip-ui-confirm-card p {
    margin: 0 0 18px;
    color: var(--wpip-muted, #6b7280);
    font-size: 14px;
    line-height: 1.5;
}

.wpip-ui-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wpip-archive-container,
.wpip-user-archive-container,
.wpip-my-itinerary,
.wpip-single-container,
.wpip-account-insights,
.wpip-account-photo-field {
    --wpip-font-family: var(--theme-font-family, inherit);
    --wpip-text: var(--theme-text-color, #111827);
    --wpip-heading: var(--theme-heading-color, var(--wpip-text));
    --wpip-muted: var(--theme-palette-color-3, #6b7280);
    --wpip-accent: var(--theme-palette-color-1, #01735c);
    --wpip-accent-hover: var(--theme-palette-color-2, #015f4d);
    --wpip-surface: var(--theme-palette-color-8, #fff);
    --wpip-background: var(--theme-palette-color-7, #f9fafb);
    --wpip-soft-accent: rgba(1, 115, 92, 0.10);
    --wpip-border: var(--theme-border-color, #e5e7eb);
    --wpip-radius: 8px;
    --wpip-container-width: var(--theme-container-width, var(--theme-normal-container-max-width, 1050px));
    font-family: var(--wpip-font-family);
    color: var(--wpip-text);
}

@supports (background: color-mix(in srgb, red 10%, transparent)) {
    .wpip-archive-container,
    .wpip-user-archive-container,
    .wpip-my-itinerary,
    .wpip-single-container,
    .wpip-account-insights,
    .wpip-account-photo-field {
        --wpip-soft-accent: color-mix(in srgb, var(--wpip-accent) 10%, transparent);
    }
}

.wpip-archive-container,
.wpip-user-archive-container,
.wpip-my-itinerary {
    max-width: var(--wpip-container-width);
    margin: 0 auto;
    padding: 20px;
}

.wpip-single-container {
    max-width: var(--wpip-container-width);
    margin: 0 auto;
    padding: 20px;
}

.wpip-user-archive-container {
    padding-top:0;
}

.wpip-my-itinerary {
    padding: 0;
}

.wpip-account-nav-toggle {
    display: none;
}

.wpip-loading {
    text-align: center;
    padding: 40px;
}

.wpip-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--wpip-border);
    border-top: 4px solid var(--wpip-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wpip-single-skeleton {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpip-single-skeleton-header {
    padding: 34px 0 26px;
}

.wpip-skeleton-line,
.wpip-skeleton-avatar,
.wpip-skeleton-tab,
.wpip-skeleton-card,
.wpip-skeleton-image,
.wpip-skeleton-pill,
.wpip-skeleton-map,
.wpip-skeleton-route-line {
    position: relative;
    overflow: hidden;
    background: #eef1f5;
}

.wpip-skeleton-line::after,
.wpip-skeleton-avatar::after,
.wpip-skeleton-tab::after,
.wpip-skeleton-card::after,
.wpip-skeleton-image::after,
.wpip-skeleton-pill::after,
.wpip-skeleton-map::after,
.wpip-skeleton-route-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    animation: wpip-skeleton-shimmer 1.35s infinite;
}

@keyframes wpip-skeleton-shimmer {
    100% { transform: translateX(100%); }
}

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

.wpip-skeleton-line {
    height: 14px;
    border-radius: 999px;
}

.wpip-skeleton-title {
    width: min(760px, 86%);
    height: 36px;
    margin-bottom: 26px;
}

.wpip-skeleton-meta,
.wpip-skeleton-tabs,
.wpip-skeleton-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.wpip-skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.wpip-skeleton-author { width: 140px; }
.wpip-skeleton-chip { width: 110px; }
.wpip-skeleton-small { width: 120px; }
.wpip-skeleton-medium { width: 54%; }
.wpip-skeleton-wide { width: 82%; }
.wpip-skeleton-short { width: 32%; }
.wpip-skeleton-route-text { width: 92px; }

.wpip-skeleton-tabs {
    padding: 8px 0;
}

.wpip-skeleton-tab {
    width: 120px;
    height: 58px;
    border-radius: 8px;
    flex: 0 0 auto;
}

.wpip-skeleton-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 18px;
    background: #fff;
}

.wpip-skeleton-card > .wpip-skeleton-line {
    margin-bottom: 12px;
}

.wpip-skeleton-card > .wpip-skeleton-line:last-child {
    margin-bottom: 10px;
}

.wpip-skeleton-route-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-left: 22px;
}

.wpip-skeleton-route-line {
    width: 1.5px;
    height: 44px;
    border-radius: 999px;
}

.wpip-skeleton-destination {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px;
}

.wpip-skeleton-point-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpip-skeleton-dest-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpip-skeleton-dest-body {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
}

.wpip-skeleton-image {
    width: 132px;
    height: 118px;
    border-radius: 6px;
}

.wpip-skeleton-destination-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.wpip-skeleton-pill {
    width: 86px;
    height: 28px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.wpip-user-stats-skeleton {
    gap: 10px;
}

.wpip-user-stats-skeleton .wpip-skeleton-pill {
    width: 104px;
    height: 54px;
    border-radius: 8px;
}

.wpip-provinces-skeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.wpip-skeleton-custom-block {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 42px;
    border-radius: 6px;
    background: #e0f2fe;
}

.wpip-skeleton-custom-block::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    animation: wpip-skeleton-shimmer 1.35s infinite;
}

.wpip-skeleton-map {
    height: 520px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.wpip-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--wpip-muted);
}

.wpip-empty-state i {
    font-size: 24px;
    display: block;
}

.wpip-empty-state h3 {
    margin: 0 0 8px;
    color: var(--wpip-heading);
}

/* Buttons */
.wpip-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 14px;
    text-decoration: none;
}

.wpip-btn-primary { background: var(--wpip-accent); color: #fff; }
.wpip-btn-primary:hover { background: var(--wpip-accent-hover); }
.wpip-btn-secondary { background: var(--wpip-muted); color: #fff; }
.wpip-btn-secondary:hover { background: #4b5563; }
.wpip-btn-success { background: #10b981; color: #fff; }
.wpip-btn-success:hover { background: #059669; }
.wpip-btn-warning { background: #f59e0b; color: #fff; }
.wpip-btn-danger { background: #ef4444; color: #fff; }
.wpip-btn-small { padding: 6px 12px; font-size: 13px; }
.wpip-btn-full { width: 100%; justify-content: center; }
.wpip-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wpip-input {
    padding: 10px 12px;
    border: 1px solid var(--wpip-border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--wpip-surface);
    color: var(--wpip-text);
}

.wpip-input:focus {
    outline: none;
    border-color: var(--wpip-accent);
    box-shadow: 0 0 0 3px var(--wpip-soft-accent);
}

/* ============================================
   ARCHIVE PAGE
   ============================================ */
.wpip-archive-header {
    text-align: center;
    margin-bottom: 30px;
}

.wpip-archive-container {
    max-width: var(--wpip-container-width);
}

.wpip-archive-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.wpip-archive-filters {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpip-archive-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    align-items: center;
}

.wpip-archive-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 4px 0 12px;
    border: 1px solid var(--wpip-border);
    border-radius: 4px;
    background: var(--wpip-surface);
}

.wpip-archive-search:focus-within {
    border-color: var(--wpip-accent);
    box-shadow: 0 0 0 3px var(--wpip-soft-accent);
}

.wpip-archive-search-input {
    flex: 1;
    min-width: 0;
    border: 0!important;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--wpip-text);
    font: inherit;
    font-size: 14px;
    padding: 0!important;
}

.wpip-archive-search-input:focus {
    outline: 0;
    box-shadow: none;
}

.wpip-archive-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    min-height: 34px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--wpip-text);
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.wpip-archive-search-btn:hover {
    color: var(--wpip-accent);
    background: var(--wpip-background);
}

.wpip-archive-search-btn:disabled {
    cursor: wait;
    opacity: 0.75;
}

.wpip-archive-search-btn .ti-spin {
    color: var(--wpip-accent);
    font-size: 18px;
}

.wpip-archive-sort {
    position: relative;
    display: block;
}

.wpip-archive-sort select {
    width: 100%;
    min-height: 46px;
    padding-right: 34px;
    border-radius: 4px;
    appearance: none;
}

.wpip-archive-sort > i {
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--wpip-muted);
    font-size: 16px;
    pointer-events: none;
    transform: translateY(-50%);
}

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

.wpip-quick-city-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--wpip-border);
    border-radius: 4px;
    background: var(--wpip-surface);
    color: var(--wpip-muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.wpip-quick-city-tag small {
    color: var(--wpip-muted);
    font-size: 11px;
}

.wpip-quick-city-tag.is-active,
.wpip-quick-city-tag:hover {
    border-color: var(--wpip-accent);
    color: var(--wpip-accent);
    background: var(--wpip-soft-accent);
}

.wpip-filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.wpip-filter-row .wpip-search-input {
    flex: 1;
    min-width: 250px;
}

.wpip-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wpip-archive-card {
    background: var(--wpip-surface);
    border-radius: var(--wpip-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.wpip-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.wpip-card-image-wrapper {
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--wpip-background);
}

.wpip-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpip-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 48px;
}

.wpip-card-content {
    padding: 16px;
}

.wpip-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--wpip-heading);
    line-height: 1.3;
}

.wpip-card-title a {
    color: inherit;
    text-decoration: none;
}

.wpip-card-title a:hover,
.wpip-card-author-link:hover {
    color: var(--wpip-accent);
}

.wpip-card-author-link {
    color: var(--wpip-muted);
    text-decoration: none;
}

.wpip-card-meta {
    margin: 4px 0;
    font-size: 13px;
    color: var(--wpip-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wpip-card-expire.is-expired {
    color: #dc2626;
    font-weight: 700;
}

.wpip-extend-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #01735c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.wpip-extend-link:hover {
    color: #991b1b;
    text-decoration: underline;
}

.wpip-card-budget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wpip-card-city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.wpip-card-city-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 8px;
    border: 1px solid var(--wpip-border);
    border-radius: 999px;
    background: var(--wpip-surface);
    color: var(--wpip-muted);
    font: inherit;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

.wpip-card-city-tag:hover {
    border-color: var(--wpip-accent);
    color: var(--wpip-accent);
}

.wpip-card-city-tag i {
    font-size: 13px;
    line-height: 1;
}

.wpip-card-city-more {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--wpip-border);
    border-radius: 999px;
    background: var(--wpip-background);
    color: var(--wpip-muted);
    font: inherit;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

.wpip-card-city-more:hover {
    border-color: var(--wpip-accent);
    color: var(--wpip-accent);
}

.wpip-card-location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.wpip-card-location-tag,
.wpip-card-location-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 7px;
    border: 1px solid var(--wpip-border);
    border-radius: 4px;
    background: var(--wpip-surface);
    color: var(--wpip-muted);
    font: inherit;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

.wpip-card-location-tag i {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
}

.wpip-card-location-tag:hover,
.wpip-card-location-more:hover,
.wpip-card-location-tag.is-city.is-active,
.wpip-card-location-tag.is-province.is-active {
    border-color: var(--wpip-accent);
    color: var(--wpip-accent);
    background: var(--wpip-soft-accent);
}

.wpip-card-location-more {
    background: var(--wpip-background);
}

.wpip-separator {
    margin: 0 4px;
}

.wpip-card-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--wpip-border);
    font-size: 13px;
    color: var(--wpip-muted);
}

.wpip-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wpip-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 20px 0;
}

.wpip-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--wpip-border);
    border-radius: 6px;
    background: var(--wpip-surface);
    color: var(--wpip-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.wpip-page-number.is-active,
.wpip-page-number:hover {
    border-color: var(--wpip-accent);
    background: var(--wpip-accent);
    color: #fff;
}

.wpip-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.wpip-load-more-btn {
    min-width: 140px;
}

.wpip-archive-skeleton-grid {
    pointer-events: none;
}

.wpip-archive-skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wpip-archive-skeleton-card .wpip-skeleton-image {
    width: 100%;
    height: 190px;
    border-radius: 0;
}

.wpip-archive-skeleton-card .wpip-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 0;
}

.wpip-archive-skeleton-card .wpip-skeleton-line {
    margin-bottom: 0;
}

.wpip-archive-skeleton-card .wpip-skeleton-meta {
    gap: 8px;
    margin: 0;
}

.wpip-archive-skeleton-card .wpip-skeleton-pill {
    width: 74px;
    height: 24px;
    border-radius: 999px;
}

.wpip-archive-skeleton-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wpip-archive-grid.is-loading {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.wpip-inline-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.wpip-inline-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #e5e7eb;
    border-top-color: #01735c;
    border-radius: 999px;
    animation: wpip-spin 0.75s linear infinite;
}

.ti-spin {
    animation: wpip-spin 1s linear infinite;
}

.wpip-page-info {
    color: #6b7280;
    font-size: 14px;
}

/* ============================================
   SINGLE ITINERARY
   ============================================ */
.wpip-single-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpip-single-header {
    background: transparent;
    color: #424242;
    padding: 20px 0;
    border-radius: 0;
    margin-bottom: 0;
}

.wpip-single-title {
    margin: 0 0 26px;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
    color: #424242;
    text-transform: capitalize;
    max-width: 600px;
}

.wpip-single-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    color: #424242;
}

.wpip-single-identity-row,
.wpip-single-stats-row {
    display: contents;
}

.wpip-single-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wpip-muted);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.wpip-single-updated::before {
    content: "|";
    color: #d1d5db;
}

.wpip-single-author,
.wpip-meta-item,
.wpip-single-action {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #424242;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.wpip-single-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    object-fit: cover;
    background: #e5e7eb;
}

.wpip-single-action {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.wpip-single-action i,
.wpip-meta-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    color: #242424ab;
}

.wpip-single-header .wpip-single-author,
.wpip-single-header .wpip-meta-item,
.wpip-single-header .wpip-single-action {
    align-items: center;
    line-height: 1;
}

.wpip-single-header .wpip-single-author span,
.wpip-single-header .wpip-meta-item span,
.wpip-single-header .wpip-single-action span {
    line-height: 1;
}

.wpip-single-action.liked,
.wpip-single-action.liked i {
    color: #ef2917;
}

.wpip-single-report-action {
    color: #6b7280;
}

.wpip-single-report-action:hover {
    color: #c2410c;
}

.wpip-report-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.46);
}

.wpip-report-modal {
    width: min(100%, 430px);
    padding: 18px;
    border-radius: 8px;
    background: var(--wpip-surface);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.wpip-report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.wpip-report-modal-header h3 {
    margin: 0;
    color: var(--wpip-text);
    font-size: 20px;
    font-weight: 700;
}

.wpip-report-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
}

.wpip-report-modal p {
    margin: 0;
    color: var(--wpip-muted);
    font-size: 14px;
    line-height: 1.5;
}

.wpip-report-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.wpip-report-select-wrap span {
    color: var(--wpip-muted);
    font-size: 12px;
    font-weight: 700;
}

.wpip-report-select-wrap select {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid var(--wpip-border);
    border-radius: 4px;
    background: #fff;
    color: var(--wpip-text);
    font: inherit;
}

.wpip-report-message {
    margin-top: 12px;
    color: #0369a1;
    font-size: 13px;
    line-height: 1.45;
}

.wpip-report-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.wpip-single-stat {
    cursor: default;
}

.wpip-single-days {
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #fafafa;
    backdrop-filter: blur(10px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 10px max(20px, calc((100vw - var(--wpip-container-width)) / 2 + 20px)) 8px;
}

.wpip-days-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.wpip-day-tab {
    padding: 8px 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 120px;
    transition: all 0.2s;
    font-size: 13px;
    line-height: 1;
}

.wpip-day-tab:hover {
    border-color: #3b82f6;
}

.wpip-tab-active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.wpip-day-tab small {
    font-size: 12px;
    opacity: 0.8;
}

.wpip-builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .wpip-builder-grid {
        grid-template-columns: 1fr;
    }

    .wpip-builder-right {
        position: static;
    }

    .wpip-map {
        height: 420px;
    }
}

.wpip-single-container .wpip-day-header {
    background: #fff;
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.wpip-day-builder-stack {
    display: flex;
    flex-direction: column;
}

.wpip-day-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
}

.wpip-day-header h3 {
    margin: 8px 0 0;
    font-size: 20px;
    line-height: 1.25;
    color: #111827;
    font-weight: 500;
}

.wpip-day-city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.wpip-day-city-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border: 1px solid var(--wpip-border);
    border-radius: 4px;
    background: var(--wpip-surface);
    color: var(--wpip-muted);
    font-size: 12px;
    line-height: 1.3;
    text-decoration: none;
}

.wpip-day-city-tag:hover {
    border-color: var(--wpip-accent);
    background: var(--wpip-soft-accent);
    color: var(--wpip-accent);
}

.wpip-day-city-tag i {
    font-size: 13px;
    line-height: 1;
}

.wpip-single-point-card,
.wpip-single-destination-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.wpip-single-point-card {
    padding: 16px 18px;
}

.wpip-single-point-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.wpip-single-point-top > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpip-card-marker-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 3px #c2c2c2;
}

.wpip-card-marker-start {
    background: #01735C;
}

.wpip-card-marker-destination {
    background: #ff6310;
}

.wpip-card-marker-end {
    background: rgba(16, 20, 23, 0.90);
}

.wpip-single-point-time,
.wpip-arrival-time {
    font-weight: 500;
    color: #111827;
}

.wpip-single-point-card h4 {
    margin: 10px 0 6px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.wpip-single-destination-heading {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 14px 14px 0;
}

.wpip-single-destination-number {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.wpip-single-destination-number.wpip-card-marker-badge {
    min-width: 24px;
    width: 24px;
    height: 24px;
    background: #ff6310;
    color: #fff;
}

.wpip-single-destination-heading h4 {
    margin: 0;
    min-width: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.wpip-single-destination-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.wpip-single-destination-link:hover {
    color: #01735c;
}

.wpip-single-destination-link i {
    flex: 0 0 auto;
    margin-top: 3px;
    font-size: 15px;
    line-height: 1;
    padding-top: 1px;
}

.wpip-single-point-card p,
.wpip-single-destination-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.wpip-single-destination-main {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
    padding: 12px 14px 14px;
}

.wpip-single-destination-image {
    width: 132px;
    height: 118px;
    border-radius: 6px;
    object-fit: cover;
    background: #f3f4f6;
}

.wpip-single-destination-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.wpip-single-card-extra {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #4b5563;
    font-size: 14px;
}

.wpip-single-card-extra span {
    display: inline-flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.45;
}

.wpip-single-card-extra i,
.wpip-single-custom-row i,
.wpip-custom-note i,
.wpip-distance-info i,
.wpip-summary-stat i,
.wpip-meta-item i {
    flex: 0 0 auto;
    line-height: 1;
    margin-top: 0px;
    padding-top:2px;
}

.wpip-single-custom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 0 14px 12px;
    color: #4b5563;
    font-size: 14px;
}

.wpip-single-custom-row span {
    display: inline-flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.45;
}

.wpip-single-custom-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 14px 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f0f9ff;
    color: #0369a1;
    font-size: 14px;
    line-height: 1.5;
}

.wpip-single-point-custom-block {
    margin: 12px 0 0;
}

.wpip-single-custom-block .wpip-single-custom-row,
.wpip-single-custom-block .wpip-custom-note {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

.wpip-single-custom-block .wpip-single-custom-row {
    gap: 10px 16px;
}

.wpip-destinations-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wpip-distance-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-left: 22px;
}

.wpip-line {
    position: relative;
    width: 1.5px;
    height: 44px;
    background: #3b82f6;
    border-radius: 999px;
}

.wpip-line::before,
.wpip-line::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 9px;
    height: 9px;
    border: 2px solid #3b82f6;
    border-radius: 999px;
    background:
        radial-gradient(circle, #3b82f6 0 2px, #fff 2.5px);
    transform: translateX(-50%);
}

.wpip-line::before {
    top: -6px;
}

.wpip-line::after {
    bottom: -6px;
}

.wpip-distance-info {
    display: inline-flex;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.wpip-day-summary {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 14px 18px;
}

.wpip-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    color: #374151;
}

.wpip-related-section {
    max-width: var(--wpip-container-width);
    margin: 0;
}

.wpip-related-header {
    margin-bottom: 14px;
}

.wpip-related-header h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.wpip-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wpip-related-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.wpip-related-card:hover h3 a {
    color: #01735c;
}

.wpip-related-image-link {
    display: block;
    width: 112px;
    height: 92px;
    border-radius: 6px;
    overflow: hidden;
}

.wpip-related-image {
    width: 112px;
    height: 92px;
    border-radius: 6px;
    object-fit: cover;
    background: #f3f4f6;
}

.wpip-related-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpip-related-body h3 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpip-related-body h3 a {
    color: inherit;
    text-decoration: none;
}

.wpip-related-body h3 a:hover,
.wpip-related-author:hover {
    color: #01735c;
}

.wpip-related-author {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.wpip-related-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
    color: #6b7280;
    font-size: 13px;
}

.wpip-related-stats span {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.2;
}

.wpip-related-stats i {
    flex: 0 0 auto;
    line-height: 1;
    margin-top: 1px;
}

.wpip-builder-right {
    position: sticky;
    top: 76px;
    align-self: start;
    z-index: 1;
}

.wpip-map-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.wpip-summary-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 13px;
}

.wpip-map-frame {
    position: relative;
    z-index: 1;
}

.wpip-map {
    width: 100%;
    height: 520px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.wpip-single-container .leaflet-tile {
    filter: saturate(0.58) brightness(1.12) contrast(0.96);
}

.wpip-user-map-wrapper .leaflet-tile,
.wpip-archive-container .leaflet-tile {
    filter: saturate(0.58) brightness(1.12) contrast(0.96);
}

.wpip-btn.wpip-map-drive-btn {
    position: absolute;
    left: 12px;
    bottom: 12px;
    transform: none;
    z-index: 500;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 128px;
    min-height: 44px;
    padding: 6px 8px 6px 16px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #01735C !important;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
    white-space: nowrap;
}

.wpip-btn.wpip-map-drive-btn:hover {
    background: #016b56 !important;
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.wpip-btn.wpip-map-drive-btn .wpip-drive-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff;
    color: #01735C;
}

.wpip-btn.wpip-map-drive-btn .wpip-drive-icon i {
    font-size: 20px;
    line-height: 1;
}

.wpip-btn.wpip-map-drive-btn > span:last-child {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wpip-custom-marker,
.wpip-single-point-marker {
    background: transparent;
    border: 0;
}

.wpip-custom-marker .wpip-marker-content,
.wpip-single-point-marker .wpip-marker-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
}

.wpip-custom-marker .wpip-marker-content::before,
.wpip-single-point-marker .wpip-marker-content::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ff6310;
    transform: translateX(-50%);
}

.wpip-custom-marker .wpip-marker-content i,
.wpip-single-point-marker .wpip-marker-content i {
    position: relative;
    z-index: 1;
    color: #ff6310;
    font-size: 40px;
    line-height: 1;
    text-shadow:
        0 0 0 #fff,
        1px 0 0 #fff,
        -1px 0 0 #fff,
        0 1px 0 #fff,
        0 -1px 0 #fff,
        0 6px 12px rgba(15, 23, 42, 0.24);
}

.wpip-custom-marker .wpip-marker-content span,
.wpip-single-point-marker .wpip-marker-content span {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.wpip-single-marker-start .wpip-marker-content i {
    color: #01735c;
}

.wpip-single-marker-start .wpip-marker-content::before {
    background: #01735c;
}

.wpip-single-marker-end .wpip-marker-content i {
    color: rgba(16, 20, 23, 0.9);
}

.wpip-single-marker-end .wpip-marker-content::before {
    background: #25282b;
}

/* Reuse destination card styles from builder */
.wpip-destination-card.wpip-readonly .wpip-card-actions {
    display: none;
}

.wpip-custom-note {
    margin: 0 14px 14px;
    padding: 10px 12px;
    background: #f0f9ff;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #0369a1;
}

.wpip-custom-note-content {
    min-width: 0;
    flex: 1;
}

.wpip-custom-note-content > span {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.wpip-custom-note-content > span.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.wpip-note-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 6px;
    padding: 0;
    border: 1px solid rgba(3, 105, 161, 0.24);
    border-radius: 4px;
    background: #fff;
    color: #0369a1;
    cursor: pointer;
}

.wpip-note-toggle:hover {
    border-color: #0369a1;
}

.wpip-single-container .wpip-distance-info {
    margin-left: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.wpip-single-container .wpip-map-summary {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.wpip-single-container .wpip-summary-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.wpip-single-container .wpip-summary-stat i {
    color: #3b82f6;
    font-size: 16px;
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 768px) {
    .wpip-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpip-single-container {
        padding: 20px;
    }

    .wpip-single-container .wpip-builder-right {
        order: -1;
        position: relative;
        top: auto;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .wpip-single-container .wpip-map {
        height: 320px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    .wpip-single-container .wpip-map-summary {
        padding: 0 20px;
        margin-bottom: 8px;
        scrollbar-width: none;
    }

    .wpip-single-container .wpip-map-summary::-webkit-scrollbar {
        display: none;
    }

    .wpip-single-container .wpip-btn.wpip-map-drive-btn {
        left: 10px;
        bottom: 10px;
        gap: 10px;
        min-width: 120px;
        min-height: 40px;
        padding: 5px 7px 5px 14px;
        border-radius: 8px;
        border-width: 2px;
    }

    .wpip-single-container .wpip-btn.wpip-map-drive-btn .wpip-drive-icon {
        width: 30px;
        height: 30px;
    }

    .wpip-single-container .wpip-btn.wpip-map-drive-btn .wpip-drive-icon i {
        font-size: 19px;
    }

    .wpip-single-container .wpip-btn.wpip-map-drive-btn > span:last-child {
        font-size: 13px;
    }

    .wpip-single-container .wpip-skeleton-map {
        height: 260px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .wpip-single-container .wpip-skeleton-summary {
        padding: 0 20px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .wpip-single-container .wpip-skeleton-summary::-webkit-scrollbar {
        display: none;
    }

    .wpip-single-skeleton-header {
        padding: 20px 0 18px;
    }

    .wpip-skeleton-title {
        height: 30px;
        margin-bottom: 18px;
    }

    .wpip-skeleton-meta {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .wpip-single-header {
        padding: 0;
    }

    .wpip-single-title {
        margin-bottom: 10px;
        font-size: 26px;
    }

    .wpip-single-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wpip-single-identity-row,
    .wpip-single-stats-row {
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 0;
    }

    .wpip-single-identity-row {
        gap: 9px;
        color: var(--wpip-muted);
        font-size: 13px;
    }

    .wpip-single-stats-row {
        gap: 10px 14px;
        flex-wrap: wrap;
    }

    .wpip-single-updated {
        font-size: 13px;
        min-width: 0;
    }

    .wpip-single-author,
    .wpip-meta-item,
    .wpip-single-action {
        min-height: 0;
        font-size: 14px;
        gap: 8px;
    }

    .wpip-single-author {
        max-width: calc(100vw - 180px);
        min-width: 0;
        overflow: hidden;
    }

    .wpip-single-author span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wpip-single-view-stat {
        display: none;
    }

    .wpip-single-action i,
    .wpip-meta-item i {
        font-size: 16px;
    }

    .wpip-single-author-avatar {
        width: 32px;
        height: 32px;
    }

    .wpip-single-destination-main {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px 12px 12px;
    }

    .wpip-single-destination-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .wpip-skeleton-dest-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wpip-skeleton-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .wpip-single-point-card h4,
    .wpip-single-destination-card h4 {
        font-size: 16px;
    }

}

@media (max-width: 480px) {
    .wpip-related-section {
        margin-top: 22px;
    }

    .wpip-related-grid {
        grid-template-columns: 1fr;
    }

    .wpip-related-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .wpip-related-image-link,
    .wpip-related-image {
        width: 96px;
        height: 82px;
    }

    .wpip-single-destination-main {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 12px 12px;
    }

    .wpip-skeleton-dest-body {
        grid-template-columns: 1fr;
    }

    .wpip-single-destination-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .wpip-skeleton-image {
        width: 100%;
        height: 180px;
    }

    .wpip-single-meta {
        align-items: flex-start;
    }

    .wpip-day-tab {
        min-width: 104px;
        padding: 10px 14px;
    }
}

/* ============================================
   USER ARCHIVE
   ============================================ */
.wpip-user-header {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 30px;
    overflow: hidden;
    background:
        linear-gradient(rgba(8, 18, 32, 0.58), rgba(8, 18, 32, 0.58)),
        var(--wpip-author-header-bg, linear-gradient(135deg, #0f3c5c, #01735c));
    background-position: center;
    background-size: cover;
    color: #fff;
}

.wpip-user-header-inner {
    min-height: 520px;
    max-width: var(--wpip-container-width);
    margin: 0 auto;
    padding: 64px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

.wpip-user-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.88);
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.wpip-user-hero-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 520px;
}

.wpip-user-eyebrow {
    margin: 16px 0 6px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.96);
}

.wpip-user-header h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 500;
}

.wpip-user-stats {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 150px));
    justify-content: start;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(3px);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 16px max(20px, calc((100vw - 1050px) / 2) + 20px);
}

.wpip-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.wpip-stat-item strong {
    color: #fff;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 500;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.wpip-stat-item span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.12;
    font-weight: 400;
}

.wpip-user-engagement {
    display: flex;
    justify-content: flex-start;
    gap: 28px;
    margin-top: 24px;
    color: #fff;
}

.wpip-user-engagement span {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.1;
}

.wpip-user-engagement i {
    font-size: 28px;
    line-height: 1;
}

.wpip-user-engagement strong {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.wpip-user-engagement span span {
    display: inline;
    min-width: 0;
    font-size: inherit;
}

.wpip-user-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.wpip-user-related-section {
    margin-top: 28px;
}

@media (max-width: 1024px) {
    .wpip-user-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wpip-user-header {
        margin-bottom: 0px;
    }

    .wpip-user-header-inner {
        min-height: 480px;
        padding-top: 48px;
        align-items: center;
        text-align: center;
    }

    .wpip-user-hero-main {
        align-items: center;
    }

    .wpip-user-avatar {
        width: 96px;
        height: 96px;
    }

    .wpip-user-eyebrow {
        margin-top: 18px;
        font-size: 13px;
    }

    .wpip-user-header h1 {
        font-size: 24px;
    }

    .wpip-user-engagement {
        justify-content: center;
        gap: 24px;
        margin-top: 30px;
    }

    .wpip-user-engagement span {
        flex-direction: column;
        min-width: 72px;
        font-size: 13px;
    }

    .wpip-user-engagement i {
        font-size: 26px;
    }

    .wpip-user-engagement strong {
        font-size: 17px;
    }

    .wpip-user-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 14px 12px;
    }

    .wpip-stat-item {
        align-items: center;
        text-align: center;
    }

    .wpip-stat-item strong {
        font-size: 20px;
    }

    .wpip-stat-item span {
        font-size: 13px;
    }

    .wpip-user-map-wrapper {
        order: -1;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .wpip-user-list-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .wpip-user-sort {
        width: 100%;
        justify-content: space-between;
    }

    .wpip-user-sort select {
        flex: 1;
        max-width: 220px;
    }

    .wpip-user-map-wrapper h2,
    .wpip-user-map-wrapper .wpip-provinces-list {
        padding-left: 20px;
        padding-right: 20px;
    }

    .wpip-user-map-wrapper .wpip-map-tall {
        width: 100vw;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 0;
        box-shadow: none;
    }
}

.wpip-user-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.wpip-user-list h2,
.wpip-user-map-wrapper h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.wpip-user-list-toolbar h2 {
    margin-bottom: 0;
}

.wpip-user-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.wpip-user-sort-select {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wpip-user-sort-select select {
    padding-right: 32px;
    appearance: none;
}

.wpip-user-sort-select i {
    position: absolute;
    right: 10px;
    color: #6b7280;
    font-size: 15px;
    pointer-events: none;
}

.wpip-user-sort select {
    min-height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    padding: 6px 10px;
    font: inherit;
}

.wpip-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.wpip-map-tall {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.wpip-provinces-list {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wpip-provinces-list.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #01735c;
    border-radius: 999px;
    animation: wpip-spin 0.75s linear infinite;
}

.wpip-provinces-list.is-loading .wpip-province-tag {
    opacity: 0.55;
}

.wpip-province-tag {
    border: 1px solid transparent;
    padding: 6px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wpip-province-tag.is-active,
.wpip-province-tag:hover {
    border-color: #01735c;
    background: #ecfdf5;
    color: #01735c;
}

/* ============================================
   MY ITINERARY
   ============================================ */
.wpip-quota-section {
    background: transparent;
    padding: 0 0 18px;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--wpip-border);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.wpip-quota-info {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.wpip-quota-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 120px;
    text-align: left;
}

.wpip-quota-item i {
    font-size: 20px;
    color: var(--wpip-accent);
}

.wpip-quota-item strong {
    display: block;
    font-size: 22px;
    color: var(--wpip-heading);
    line-height: 1.15;
}

.wpip-quota-item span {
    display: block;
    font-size: 13px;
    color: var(--wpip-muted);
}

.wpip-account-insights {
    margin: 24px 0 32px;
    font-family: var(--wpip-font-family);
    color: var(--wpip-text);
}

.wpip-account-insights-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--wpip-border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(1, 115, 92, 0.10), rgba(255, 99, 16, 0.08)),
        var(--wpip-surface);
}

.wpip-account-insights-copy {
    min-width: 0;
}

.wpip-account-insights-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    color: var(--wpip-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wpip-account-insights-copy h2 {
    margin: 0;
    color: var(--wpip-heading);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.wpip-account-insights-copy p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--wpip-muted);
    font-size: 14px;
    line-height: 1.5;
}

.wpip-account-insights-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.wpip-account-insights-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid var(--wpip-border);
    border-radius: 4px;
    background: var(--wpip-surface);
    color: var(--wpip-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.wpip-account-insights-action:hover {
    border-color: var(--wpip-accent);
    color: var(--wpip-accent);
}

.wpip-account-insights-action.is-primary {
    border-color: var(--wpip-accent);
    background: var(--wpip-accent);
    color: #fff;
}

.wpip-account-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.wpip-account-quota-panel,
.wpip-account-highlight-panel {
    position: relative;
    min-height: 136px;
    overflow: hidden;
    border: 1px solid var(--wpip-border);
    border-radius: 8px;
    background: var(--wpip-surface);
}

.wpip-account-quota-panel::after,
.wpip-account-highlight-panel::after,
.wpip-account-insight-card::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -40px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: var(--wpip-soft-accent);
}

.wpip-account-quota-panel {
    padding: 18px;
    border-color: rgba(1, 115, 92, 0.35);
}

.wpip-account-quota-head,
.wpip-account-quota-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wpip-account-quota-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--wpip-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.wpip-account-quota-head i {
    color: var(--wpip-accent);
    font-size: 18px;
}

.wpip-account-quota-head strong {
    position: relative;
    z-index: 1;
    color: var(--wpip-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.08;
    white-space: nowrap;
}

.wpip-account-quota-progress {
    height: 8px;
    margin: 18px 0 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--wpip-background);
}

.wpip-account-quota-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--wpip-accent);
}

.wpip-account-quota-foot span {
    position: relative;
    z-index: 1;
    color: var(--wpip-muted);
    font-size: 12px;
    line-height: 1.35;
}

.wpip-account-highlight-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 18px;
}

.wpip-account-highlight-panel span,
.wpip-account-highlight-panel small {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--wpip-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.wpip-account-highlight-panel strong {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    color: var(--wpip-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.08;
}

.wpip-account-highlight-panel small {
    margin-top: 8px;
    font-weight: 400;
    text-transform: none;
}

.wpip-account-insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.wpip-account-insight-card {
    position: relative;
    min-width: 0;
    min-height: 136px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--wpip-border);
    border-radius: 8px;
    background: var(--wpip-surface);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.wpip-account-insight-card:hover {
    border-color: color-mix(in srgb, var(--wpip-accent) 45%, var(--wpip-border));
    transform: translateY(-1px);
}

.wpip-account-insight-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: var(--wpip-soft-accent);
    color: var(--wpip-accent);
    font-size: 20px;
    flex: 0 0 auto;
}

.wpip-account-insight-card span,
.wpip-account-insight-card small {
    display: block;
    position: relative;
    z-index: 1;
    color: var(--wpip-muted);
    font-size: 12px;
    line-height: 1.35;
}

.wpip-account-insight-card span {
    font-weight: 700;
    text-transform: uppercase;
}

.wpip-account-insight-card strong {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: var(--wpip-heading);
    font-size: 28px;
    line-height: 1.08;
    font-weight: 700;
}

.wpip-account-insight-card small {
    margin-top: 8px;
}

.wpip-account-location-strip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--wpip-border);
    border-radius: 8px;
    background: var(--wpip-surface);
}

.wpip-account-location-strip > span {
    flex: 0 0 auto;
    color: var(--wpip-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 26px;
}

.wpip-account-location-strip div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wpip-account-location-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid var(--wpip-border);
    border-radius: 4px;
    background: var(--wpip-surface);
    color: var(--wpip-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.wpip-account-location-strip a:hover {
    border-color: var(--wpip-accent);
    color: var(--wpip-accent);
}

.wpip-account-photo-field {
    margin: 18px 0;
    padding: 0;
    border: 0;
}

.wpip-account-photo-field legend {
    margin-bottom: 10px;
    color: var(--wpip-heading);
    font-size: 18px;
    font-weight: 700;
}

.wpip-account-photo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--wpip-border);
    border-radius: 8px;
    background: var(--wpip-surface);
}

.wpip-account-photo-preview {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    background: var(--wpip-background);
}

.wpip-account-photo-row label,
.wpip-account-photo-row small {
    display: block;
}

.wpip-account-photo-row label {
    margin-bottom: 6px;
    color: var(--wpip-heading);
    font-weight: 700;
}

.wpip-account-photo-row small {
    margin-top: 6px;
    color: var(--wpip-muted);
    font-size: 12px;
}

.wpip-my-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.wpip-my-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpip-my-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 200px 1fr;
}

@media (max-width: 768px) {
    .wpip-my-card {
        grid-template-columns: 1fr;
    }
}

.wpip-my-card-image {
    height: 100%;
    min-height: 150px;
    background: #f3f4f6;
}

.wpip-my-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.wpip-my-card-content {
    padding: 20px;
}

.wpip-my-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.wpip-my-card-header h3 {
    margin: 0;
    font-size: 18px;
}

.wpip-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-draft { background: #f3f4f6; color: #6b7280; }
.status-saved { background: #dbeafe; color: #1e40af; }
.status-published { background: #d1fae5; color: #065f46; }
.status-unpublished { background: #fee2e2; color: #991b1b; }
.status-pending_moderation { background: #fef3c7; color: #92400e; }

.wpip-my-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.wpip-my-card-actions .wpip-btn-secondary,
.wpip-my-card-actions .wpip-btn-success,
.wpip-my-card-actions .wpip-btn-warning {
    border: 1px solid var(--wpip-border);
    background: var(--wpip-surface);
    color: var(--wpip-text);
}

.wpip-my-card-actions .wpip-btn-secondary:hover,
.wpip-my-card-actions .wpip-btn-success:hover,
.wpip-my-card-actions .wpip-btn-warning:hover {
    border-color: var(--wpip-accent);
    background: var(--wpip-soft-accent);
    color: var(--wpip-accent-hover);
}

.wpip-my-card-actions .wpip-btn-primary:hover {
    color: #fff;
}

.wpip-my-skeleton-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wpip-my-skeleton-card {
    pointer-events: none;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    min-height: 190px;
    border: 1px solid var(--wpip-border);
    border-radius: 12px;
    background: var(--wpip-surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.wpip-my-skeleton-card .wpip-skeleton-image {
    width: 100%;
    height: 100%;
    min-height: 190px;
    border-radius: 0;
}

.wpip-my-skeleton-card .wpip-my-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 190px;
    gap: 12px;
    padding: 24px;
}

.wpip-my-skeleton-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wpip-my-skeleton-card .wpip-skeleton-line {
    margin: 0;
}

.wpip-my-skeleton-card .wpip-skeleton-wide {
    width: min(72%, 420px);
}

.wpip-my-skeleton-card .wpip-skeleton-medium {
    width: min(54%, 320px);
}

.wpip-my-skeleton-card .wpip-skeleton-short {
    width: min(36%, 220px);
}

.wpip-my-skeleton-card .wpip-skeleton-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.wpip-my-skeleton-card .wpip-skeleton-pill {
    width: 86px;
    height: 26px;
    border-radius: 999px;
}

.wpip-my-skeleton-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.wpip-my-skeleton-actions span {
    position: relative;
    overflow: hidden;
    width: 82px;
    height: 34px;
    border-radius: 6px;
    background: #eef1f5;
}

.wpip-my-skeleton-actions span::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    animation: wpip-skeleton-shimmer 1.35s infinite;
}

@media (max-width: 768px) {
    .wpip-my-skeleton-grid {
        gap: 20px;
    }

    .wpip-my-skeleton-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .wpip-my-skeleton-card .wpip-skeleton-image {
        height: 180px;
        min-height: 180px;
    }

    .wpip-my-skeleton-card .wpip-my-card-content {
        min-height: 160px;
        padding: 20px;
    }
}

.wpip-publish-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.42);
}

.wpip-publish-modal {
    width: min(440px, 100%);
    border-radius: 8px;
    background: var(--wpip-surface);
    color: var(--wpip-text);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
    padding: 20px;
}

.wpip-publish-modal-header,
.wpip-publish-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wpip-publish-modal-header h3 {
    margin: 0;
    color: var(--wpip-heading);
    font-size: 18px;
}

.wpip-publish-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--wpip-muted);
    cursor: pointer;
}

.wpip-publish-modal-text {
    margin: 10px 0 14px;
    color: var(--wpip-muted);
    font-size: 14px;
}

.wpip-publish-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.wpip-publish-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--wpip-border);
    border-radius: 4px;
    background: var(--wpip-surface);
    color: var(--wpip-muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.wpip-publish-option-active {
    border-color: var(--wpip-accent);
    background: var(--wpip-soft-accent);
    color: var(--wpip-accent);
}

.wpip-publish-modal-actions {
    justify-content: flex-end;
}

.wpip-btn-page {
    min-width: 36px;
    justify-content: center;
    background: #f3f4f6;
    color: #1f2937;
}

.wpip-btn-active {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* Reuse map styles */
.wpip-map {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wpip-map-summary {
    margin-top: 15px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.wpip-summary-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.wpip-summary-stat i {
    color: #3b82f6;
    font-size: 20px;
}

/* Reuse starting point and destination card styles */
.wpip-starting-point-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
}

.wpip-starting-point-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpip-starting-point-icon {
    width: 48px;
    height: 48px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.wpip-starting-point-details strong {
    display: block;
    margin-bottom: 4px;
}

.wpip-starting-point-details small {
    color: #6b7280;
    font-size: 13px;
}

.wpip-destinations-list {
    display: flex;
    flex-direction: column;
}

.wpip-destination-wrapper {
    position: relative;
}

.wpip-distance-line {
    display: flex;
    align-items: center;
    padding: 0;
    margin-left: 30px;
}

.wpip-line {
    position: relative;
    width: 1.5px;
    height: 48px;
    background: #3b82f6;
    border-radius: 999px;
}

.wpip-distance-info {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: #6b7280;
}

.wpip-destination-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.wpip-card-header {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.wpip-arrival-time {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
}

.wpip-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wpip-card-body {
    padding: 16px;
}

.wpip-card-body h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.wpip-ticket-price {
    margin: 0;
    color: #10b981;
    font-weight: 600;
}

.wpip-ticket-price.wpip-free {
    color: #6b7280;
}

.wpip-open-hours {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.wpip-day-summary {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
}

.wpip-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

/* Custom markers */
.wpip-custom-marker {
    background: transparent;
    border: none;
}

.wpip-marker-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wpip-marker-number {
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.wpip-marker-name {
    font-size: 8px;
    max-width: 35px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpip-province-marker {
    background: transparent;
    border: 0;
}

.wpip-province-marker-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
}

.wpip-province-marker-content::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ff6310;
    transform: translateX(-50%);
}

.wpip-province-marker-content i {
    position: relative;
    z-index: 1;
    color: #ff6310;
    font-size: 40px;
    line-height: 1;
    text-shadow:
        0 0 0 #fff,
        1px 0 0 #fff,
        -1px 0 0 #fff,
        0 1px 0 #fff,
        0 -1px 0 #fff,
        0 6px 12px rgba(15, 23, 42, 0.24);
}

.wpip-province-marker-content span {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 3;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-account .ct-account-welcome {
        position: relative;
    }

    .woocommerce-account .ct-account-welcome .wpip-account-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        right: 18px;
        width: 38px;
        height: 38px;
        margin-top: 0;
        padding: 0;
        border: 1px solid rgba(16, 20, 23, 0.08);
        border-radius: 8px;
        background: rgba(1, 115, 92, 0.08);
        color: #01735c;
        font: inherit;
        font-size: 20px;
        font-weight: 700;
        cursor: pointer;
        transform: translateY(-50%);
        transition: background-color .18s ease, border-color .18s ease, color .18s ease;
    }

    .woocommerce-account .ct-account-welcome .wpip-account-nav-toggle:hover,
    .woocommerce-account .ct-account-welcome .wpip-account-nav-toggle:focus-visible,
    .woocommerce-account .ct-account-welcome .wpip-account-nav-toggle.is-open {
        border-color: rgba(1, 115, 92, 0.22);
        background: rgba(1, 115, 92, 0.14);
        color: #015f4d;
        outline: none;
    }

    .woocommerce-account .ct-account-welcome {
        text-align: right;
    }

    .woocommerce-account .ct-account-welcome > *:not(.wpip-account-nav-toggle) {
        text-align: initial;
    }

    .woocommerce-account .ct-account-welcome .ct-account-nav-toggle,
    .woocommerce-account .ct-account-welcome .ct-account-menu-toggle {
        display: none;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation:not(.wpip-account-nav-open) {
        display: none;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation.wpip-account-nav-open {
        display: block;
        margin-top: 12px;
    }

    .wpip-archive-search-row {
        grid-template-columns: 1fr;
    }

    .wpip-archive-grid {
        grid-template-columns: 1fr;
    }

    .wpip-pagination {
        gap: 8px;
        flex-wrap: wrap;
    }

    .wpip-single-title {
        font-size: 24px;
    }
    
    .wpip-user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .wpip-user-stats {
        justify-content: center;
    }
    
    .wpip-quota-section {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    
    .wpip-quota-info {
        justify-content: space-between;
        gap: 14px;
    }

    .wpip-quota-section .wpip-btn {
        justify-content: center;
        width: 100%;
    }

    .wpip-account-insights {
        margin-top: 18px;
    }

    .wpip-account-insights-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 14px;
        padding: 18px;
    }

    .wpip-account-insights-copy h2 {
        font-size: 24px;
    }

    .wpip-account-insights-copy p {
        font-size: 13px;
    }

    .wpip-account-insights-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .wpip-account-insights-action {
        justify-content: center;
        width: 100%;
    }

    .wpip-account-overview {
        grid-template-columns: 1fr;
    }

    .wpip-account-quota-head strong {
        font-size: 22px;
    }

    .wpip-account-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .wpip-account-insight-card {
        min-height: 128px;
        padding: 12px;
    }

    .wpip-account-insight-card > i {
        width: 32px;
        height: 32px;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .wpip-account-insight-card strong {
        font-size: 20px;
    }

    .wpip-account-insight-card span,
    .wpip-account-insight-card small {
        font-size: 11px;
    }

    .wpip-account-location-strip {
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .wpip-account-location-strip > span {
        line-height: 1.2;
    }
}
