/*
 * Trip Planner page. Loaded on top of listings-archive.css, reusing the theme
 * tokens (--nc-*), the hero, and the container. Two-pane layout inspired by the
 * original: a compact scrolling list beside a large map. Mobile-first — the map
 * sits on top, the list below; from 1000px they go side by side.
 */

.nc-trip-planner {
    padding-bottom: 92px; /* room for the fixed trip tray */
}

/* The planner is the main event — let it run close to full width on desktop
   (small gutters keep the rounded frame reading), wider than the site default. */
.nc-trip-planner .nc-listings-container {
    width: min(2160px, calc(100% - 24px));
}

/* Hero — editorial tourism style: big photo, serif headline, minimal ---- */

.nc-tp-hero {
    align-items: flex-end;
    min-height: clamp(400px, 54vh, 640px);
}

.nc-tp-hero.nc-listings-hero--image::before {
    background:
        linear-gradient(180deg, rgba(15, 42, 63, 0.14) 0%, rgba(15, 42, 63, 0) 38%),
        linear-gradient(0deg, rgba(15, 42, 63, 0.66) 0%, rgba(15, 42, 63, 0.16) 46%, rgba(15, 42, 63, 0) 72%);
}

.nc-tp-hero .nc-listings-hero__inner {
    padding-block: clamp(40px, 7vw, 92px) clamp(72px, 11vw, 150px);
}

.nc-tp-hero .nc-tp-hero__eyebrow {
    margin: 0 0 16px;
    color: rgba(255, 245, 226, 0.9);
    font-family: var(--font-sans);
    font-size: clamp(0.7rem, 0.95vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.nc-tp-hero .nc-tp-hero__title {
    max-width: 16ch;
    margin: 0;
    color: #fff;
    font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
    text-shadow: 0 6px 34px rgba(0, 0, 0, 0.42);
}

.nc-tp-hero h1::after {
    display: none; /* drop the shared clay underline; the serif headline stands alone */
}

@media (max-width: 600px) {
    .nc-tp-hero {
        min-height: clamp(340px, 62vh, 470px);
    }

    .nc-tp-hero .nc-tp-hero__eyebrow {
        margin-bottom: 12px;
        letter-spacing: 0.22em;
    }
}

/* App panel: controls + list + map in one connected frame (like the original) */

.nc-tp-app {
    width: 100%;
    margin: -12px 0 44px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--nc-border);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(20, 52, 77, 0.10);
}

/* The control bar is now the header of the app frame, not a floating card. */
.nc-tp-controls {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--nc-border);
    border-radius: 0;
    box-shadow: none;
}

.nc-tp-controls__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

/* Tabs ------------------------------------------------------------------- */

.nc-tp-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 0;
    padding: 4px;
    background: rgba(20, 52, 77, 0.055);
    border: 0;
    border-radius: 14px;
    box-shadow: none;
}

.nc-tp-tab {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 7px 6px;
    background: transparent;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.nc-tp-tab__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(20, 52, 77, 0.06);
    border-radius: 10px;
    color: var(--nc-charcoal-blue);
    transition: background-color 200ms ease, color 200ms ease;
}

.nc-tp-tab__icon svg {
    width: 18px;
    height: 18px;
}

.nc-tp-tab__art {
    width: 20px;
    height: 20px;
}

.nc-tp-tab__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: center;
    line-height: 1.1;
}

.nc-tp-tab__label {
    color: var(--nc-charcoal-blue);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nc-tp-tab__count {
    color: var(--nc-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.nc-tp-tab:hover {
    background: rgba(20, 52, 77, 0.04);
    transform: translateY(-1px);
}

.nc-tp-tab.is-active {
    background: var(--nc-charcoal-blue);
    box-shadow: 0 10px 22px rgba(20, 52, 77, 0.22);
}

.nc-tp-tab.is-active:hover {
    transform: none;
}

.nc-tp-tab.is-active .nc-tp-tab__icon {
    background: var(--nc-clay);
    color: #fff;
}

.nc-tp-tab.is-active .nc-tp-tab__label {
    color: #fff;
}

.nc-tp-tab.is-active .nc-tp-tab__count {
    color: rgba(255, 245, 226, 0.85);
}

.nc-tp-tab:focus-visible {
    outline: 3px solid var(--nc-clay);
    outline-offset: 2px;
}

/* Horizontal tab layout once there's room. */
@media (min-width: 560px) {
    .nc-tp-tab {
        flex-direction: row;
        gap: 11px;
    }

    .nc-tp-tab__text {
        align-items: flex-start;
    }
}

/* Search --------------------------------------------------------------- */

.nc-tp-searchbar {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.nc-tp-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.nc-tp-search svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--nc-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.nc-tp-search input {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px 10px 44px;
    background: rgba(20, 52, 77, 0.025);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--nc-ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    box-shadow: none;
}

.nc-tp-search input:focus {
    outline: none;
    border-color: var(--nc-clay);
    box-shadow: 0 0 0 3px rgba(194, 73, 46, 0.15);
}

.nc-tp-search input::placeholder {
    color: var(--nc-muted);
}

.nc-tp-filter-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--nc-border);
    border-radius: 10px;
    color: var(--nc-charcoal-blue);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.nc-tp-filter-toggle__icon {
    display: grid;
    gap: 3px;
    width: 14px;
}

.nc-tp-filter-toggle__icon i {
    display: block;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
}

.nc-tp-filter-toggle__icon i:nth-child(2) {
    width: 9px;
}

.nc-tp-filter-toggle__icon i:nth-child(3) {
    width: 5px;
}

.nc-tp-filter-toggle__count {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: var(--nc-clay);
    border-radius: 999px;
    color: #fff;
    font-size: 0.67rem;
}

.nc-tp-filter-toggle__count[hidden] {
    display: none;
}

.nc-tp-filter-toggle:hover,
.nc-tp-filter-toggle.is-active,
.nc-tp-filter-toggle[aria-expanded="true"] {
    background: var(--nc-charcoal-blue);
    border-color: var(--nc-charcoal-blue);
    color: #fff;
}

.nc-tp-filter-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.nc-tp-filter-toggle:focus-visible {
    outline: 3px solid rgba(194, 73, 46, 0.25);
    outline-offset: 2px;
}

.nc-tp-filter-panel {
    padding: 14px;
    background: rgba(20, 52, 77, 0.035);
    border: 1px solid rgba(20, 52, 77, 0.1);
    border-radius: 11px;
}

.nc-tp-filter-panel[hidden],
.nc-tp-filter-options[hidden] {
    display: none;
}

.nc-tp-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--nc-charcoal-blue);
    font-size: 0.86rem;
}

.nc-tp-filter-clear {
    padding: 3px 5px;
    background: transparent;
    border: 0;
    color: var(--nc-clay);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.nc-tp-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.nc-tp-filter-option {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 36px;
    padding: 7px 11px;
    background: #fff;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    color: var(--nc-charcoal-blue);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.nc-tp-filter-option__check {
    display: none;
    width: 13px;
    height: 13px;
    border: 1.5px solid var(--nc-muted);
    border-radius: 4px;
}

.nc-tp-filter-option__art {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    background: rgba(20, 52, 77, 0.07);
    border-radius: 8px;
    color: var(--nc-charcoal-blue);
}

.nc-tp-filter-option__icon {
    width: 18px;
    height: 18px;
}

.nc-tp-filter-option:hover {
    border-color: var(--nc-clay);
}

.nc-tp-filter-option.is-active {
    background: var(--nc-charcoal-blue);
    border-color: var(--nc-charcoal-blue);
    color: #fff;
}

.nc-tp-filter-option.is-active .nc-tp-filter-option__check {
    background: var(--nc-clay);
    border-color: var(--nc-clay);
    box-shadow: inset 0 0 0 3px var(--nc-charcoal-blue);
}

.nc-tp-filter-option.is-active .nc-tp-filter-option__art,
.nc-tp-filter-option[aria-pressed="true"] .nc-tp-filter-option__art {
    background: var(--nc-clay);
    color: #fff;
}

.nc-tp-filter-empty {
    margin: 0;
    color: var(--nc-muted);
    font-size: 0.8rem;
}

@media (min-width: 820px) {
    .nc-tp-controls {
        margin-bottom: 32px;
    }

    .nc-tp-controls__body {
        gap: 10px;
        padding: 10px;
    }

    .nc-tp-tabs {
        gap: 5px;
        padding: 4px;
    }

    .nc-tp-tab {
        min-height: 52px;
        padding-inline: 14px;
    }

    .nc-tp-search input {
        min-height: 46px;
    }
}

@media (min-width: 1180px) {
    .nc-tp-tab {
        min-height: 54px;
    }
}

/* Search filtering (client-side, active panel only) */
.nc-tp-row.is-search-hide,
.nc-tp-fcard.is-search-hide {
    display: none;
}

/* Featured cards join the search: the block only collapses when none match. */
.nc-tp-featured.is-search-empty {
    display: none;
}

.nc-tp-panel.is-searching .nc-tp-row:not(.is-search-hide) {
    display: flex;
}

.nc-tp-panel.is-searching .nc-tp-more {
    display: none;
}

.nc-tp-noresults {
    margin: 8px 0 0;
    padding: 24px 6px;
    color: var(--nc-muted);
    font-weight: 500;
    text-align: center;
}

/* Workspace: list + map -------------------------------------------------- */

.nc-tp-workspace.has-map {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "controls"
        "map"
        "list";
}

.nc-tp-workspace.has-map > .nc-tp-controls { grid-area: controls; }
.nc-tp-workspace.has-map > .nc-tp-list-pane { grid-area: list; }
.nc-tp-workspace.has-map > .nc-tp-map-pane { grid-area: map; }

.nc-tp-map-pane {
    position: relative; /* anchors the bottom info card */
}

.nc-tp-map {
    /* isolate contains Leaflet's high z-index panes/controls so nothing
       escapes over the sticky site header ("things hiding behind it"). */
    position: relative;
    z-index: 0;
    isolation: isolate;
    width: 100%;
    height: 400px;
    background: var(--nc-sage);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

/* Leaflet pin emphasis: the chosen listing rises above dense marker clusters
   while the surrounding pins remain visible for geographic context. */
.nc-tp-pin-icon {
    transition: opacity 180ms ease, filter 180ms ease;
}

.nc-tp-pin-icon .nc-tp-pin-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 3px 3px rgba(20, 52, 77, 0.22)) drop-shadow(0 7px 9px rgba(20, 52, 77, 0.12));
    transform-origin: 50% 100%;
    transition: transform 180ms ease, filter 180ms ease;
}

.nc-tp-pin-icon.is-hovered .nc-tp-pin-svg {
    filter: drop-shadow(0 6px 8px rgba(20, 52, 77, 0.3));
    transform: scale(1.22) translateY(-2px);
}

.nc-tp-pin-icon.is-featured .nc-tp-pin-svg {
    position: relative;
    z-index: 1;
    filter:
        drop-shadow(0 0 4px rgba(226, 173, 63, 0.95))
        drop-shadow(0 5px 5px rgba(20, 52, 77, 0.28))
        drop-shadow(0 10px 14px rgba(20, 52, 77, 0.16));
}

.nc-tp-pin-icon.is-featured::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 2px;
    left: 50%;
    width: 32px;
    height: 32px;
    background: rgba(226, 173, 63, 0.2);
    border: 2px solid rgba(226, 173, 63, 0.72);
    border-radius: 50%;
    transform: translateX(-50%);
}

.nc-tp-pin-icon.is-muted {
    opacity: 0.42;
    filter: saturate(0.55);
}

.nc-tp-pin-icon.is-selected {
    opacity: 1;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.nc-tp-pin-icon.is-selected::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 42px;
    height: 42px;
    background: rgba(194, 73, 46, 0.14);
    border: 2px solid rgba(194, 73, 46, 0.3);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: nc-tp-pin-pulse 1.8s ease-out infinite;
}

@keyframes nc-tp-pin-pulse {
    0% { opacity: 0.9; transform: translateX(-50%) scale(0.68); }
    75%, 100% { opacity: 0; transform: translateX(-50%) scale(1.45); }
}

.nc-tp-list-pane {
    min-width: 0;
    padding: 16px;
    border-top: 1px solid var(--nc-border);
}

/* Section headings ------------------------------------------------------- */

.nc-tp-section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: baseline;
    margin-bottom: 12px;
}

.nc-tp-section-head__title {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0;
    color: var(--nc-charcoal-blue);
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.nc-tp-section-head__title::before {
    content: '';
    width: 9px;
    height: 9px;
    background: var(--nc-clay);
    border-radius: 3px;
    transform: rotate(45deg);
}

.nc-tp-section-head__tag {
    padding: 3px 9px;
    background: var(--nc-clay);
    border-radius: 999px;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Featured (sponsored) block: image-forward premium cards ---------------- */

.nc-tp-featured {
    margin-bottom: 30px;
}

.nc-tp-featured__intro {
    margin: -6px 0 16px;
    color: var(--nc-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.nc-tp-featured-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-tp-fcard {
    display: flex;
    height: 184px; /* fixed so every card — and its image — is identical */
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(194, 73, 46, 0.35);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(20, 52, 77, 0.1);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.nc-tp-fcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(20, 52, 77, 0.18);
}

.nc-tp-fcard__media {
    position: relative;
    flex: 0 0 158px;
    overflow: hidden;
    background: var(--nc-charcoal-blue);
}

.nc-tp-fcard__media img,
.nc-tp-fcard__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.nc-tp-fcard:hover .nc-tp-fcard__media img,
.nc-tp-fcard:hover .nc-tp-fcard__image {
    transform: scale(1.06);
}

.nc-tp-fcard__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 42, 63, 0.5) 0%, rgba(15, 42, 63, 0) 46%);
}

.nc-tp-fcard__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 5px 11px;
    background: var(--nc-clay);
    border-radius: 999px;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(194, 73, 46, 0.45);
}

.nc-tp-fcard__badge svg {
    width: 12px;
    height: 12px;
}

.nc-tp-fcard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    padding: 13px 16px 14px;
}

.nc-tp-fcard__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin: 0;
    color: var(--nc-charcoal-blue);
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.14;
}

.nc-tp-fcard__location {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0;
    color: var(--nc-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nc-tp-fcard__location svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--nc-clay);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nc-tp-fcard__summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin: 0;
    color: #24445b;
    font-size: 0.85rem;
    line-height: 1.42;
}

.nc-tp-fcard__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.nc-tp-fcard__actions .nc-tp-add--card {
    padding: 9px 16px;
}

.nc-tp-fcard__actions .nc-tp-add {
    flex: 1 1 auto;
}

.nc-tp-fcard__details {
    flex: 0 0 auto;
    padding: 10px 4px;
    color: var(--nc-charcoal-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}

.nc-tp-fcard__details:hover {
    color: var(--nc-clay);
    text-decoration: underline;
}

/* Browse rows ------------------------------------------------------------ */

.nc-tp-browse {
    margin-top: 6px;
}

.nc-tp-rows {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 0;
}

.nc-tp-row {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--nc-border);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 140ms ease;
}

.nc-tp-row:hover {
    background: rgba(20, 52, 77, 0.035);
    border-color: rgba(20, 52, 77, 0.2);
}

.nc-tp-row.is-map-selected,
.nc-tp-fcard.is-map-selected {
    background: #fff;
    border-color: rgba(194, 73, 46, 0.56);
    box-shadow:
        0 0 0 3px rgba(194, 73, 46, 0.12),
        0 14px 30px rgba(49, 77, 99, 0.14);
    transform: translateY(-2px);
}

.nc-tp-row.is-hidden {
    display: none;
}

.nc-tp-row__body {
    flex: 1 1 auto;
    min-width: 0;
}

.nc-tp-row__media {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: hidden;
    background: rgba(20, 52, 77, 0.06);
    border-radius: 9px;
}

.nc-tp-row__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.nc-tp-row:hover .nc-tp-row__image {
    transform: scale(1.04);
}

@media (max-width: 460px) {
    .nc-tp-searchbar {
        gap: 6px;
    }

    .nc-tp-filter-toggle {
        min-width: 84px;
        padding-inline: 10px;
    }

    .nc-tp-row {
        gap: 9px;
    }

    .nc-tp-row__media {
        flex-basis: 60px;
        width: 60px;
        height: 68px;
    }

    .nc-tp-row__summary {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .nc-tp-row__actions {
        gap: 5px;
    }

    .nc-tp-add--mini {
        padding-inline: 9px;
    }
}

.nc-tp-row__title {
    margin: 0;
    color: var(--nc-charcoal-blue);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
}

.nc-tp-row__meta {
    margin: 3px 0 0;
    color: var(--nc-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nc-tp-row__summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin: 6px 0 0;
    color: #24445b;
    font-size: 0.86rem;
    line-height: 1.4;
}

.nc-tp-row__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    text-align: center;
}

.nc-tp-row__details {
    color: var(--nc-charcoal-blue);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.nc-tp-row__details:hover {
    color: var(--nc-clay);
    text-decoration: underline;
}

/* Add-to-trip button ----------------------------------------------------- */

.nc-tp-add {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: var(--nc-clay);
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
}

.nc-tp-add__icon {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.nc-tp-add:hover {
    background: #a83b23;
}

.nc-tp-add:focus-visible {
    outline: 3px solid var(--nc-charcoal-blue);
    outline-offset: 2px;
}

.nc-tp-add.is-added {
    background: var(--nc-charcoal-blue);
}

.nc-tp-add--mini {
    padding: 7px 12px;
}

/* Browse actions --------------------------------------------------------- */

.nc-tp-browse-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.nc-tp-more {
    padding: 11px 22px;
    background: #fff;
    border: 2px solid var(--nc-charcoal-blue);
    border-radius: 999px;
    color: var(--nc-charcoal-blue);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.nc-tp-more:hover {
    background: var(--nc-charcoal-blue);
    color: #fff;
}

.nc-tp-seeall {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--nc-clay);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.nc-tp-seeall:hover {
    text-decoration: underline;
}

.nc-tp-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--nc-muted);
    font-weight: 500;
}

/* Map info card (docked at the bottom of the map) ------------------------ */

.nc-tp-mapcard {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(20, 52, 77, 0.32);
    animation: nc-tp-cardup 220ms ease;
}

.nc-tp-mapcard[hidden] {
    display: none;
}

@keyframes nc-tp-cardup {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.nc-tp-mapcard__media {
    position: relative;
    flex: 0 0 108px;
    background: var(--nc-charcoal-blue);
}

.nc-tp-mapcard__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nc-tp-mapcard__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
}

.nc-tp-mapcard__placeholder svg {
    width: 34px;
    height: 34px;
}

.nc-tp-mapcard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 12px 40px 12px 14px;
}

.nc-tp-mapcard__title {
    margin: 0;
    color: var(--nc-charcoal-blue);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
}

.nc-tp-mapcard__meta {
    overflow: hidden;
    margin: 0;
    color: var(--nc-muted);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nc-tp-mapcard__summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin: 2px 0 0;
    color: #24445b;
    font-size: 0.84rem;
    line-height: 1.4;
}

.nc-tp-mapcard__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.nc-tp-mapcard__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--nc-border);
    border-radius: 50%;
    color: var(--nc-charcoal-blue);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20, 52, 77, 0.2);
}

.nc-tp-mapcard__close:hover {
    color: var(--nc-clay);
}

.nc-tp-add--card {
    padding: 10px 18px;
}

/* Map pins ---------------------------------------------------------------- */

.nc-tp-pin-svg {
    display: block;
    filter: drop-shadow(0 3px 3px rgba(20, 52, 77, 0.35));
}

.leaflet-popup-content .nc-tp-popup {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 168px;
    font-family: var(--font-sans);
}

.nc-tp-popup__title {
    color: var(--nc-charcoal-blue);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
}

.nc-tp-popup__address {
    color: var(--nc-muted);
    font-size: 0.82rem;
}

.nc-tp-popup__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.nc-tp-map-add {
    padding: 7px 12px;
    background: var(--nc-clay);
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.nc-tp-map-add.is-added {
    background: var(--nc-charcoal-blue);
}

.nc-tp-popup__link {
    color: var(--nc-clay);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.nc-tp-popup__link:hover {
    text-decoration: underline;
}

/* Trip tray (fixed bottom sheet) ---------------------------------------- */

.nc-tp-tray {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 500;
    font-family: var(--font-sans);
}

.nc-tp-tray__bar {
    display: flex;
    width: min(760px, 100%);
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 16px 24px;
    background: var(--nc-charcoal-blue);
    border: 0;
    border-top: 4px solid var(--nc-clay);
    border-radius: 18px 18px 0 0;
    color: #fff;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: 0 -10px 30px rgba(5, 22, 34, 0.34);
}

.nc-tp-tray__bar-main {
    display: inline-flex;
    gap: 11px;
    align-items: center;
    min-width: 0;
}

.nc-tp-tray__hint {
    overflow: hidden;
    color: rgba(255, 245, 226, 0.82);
    font-size: 0.84rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nc-tp-tray__hint[hidden] {
    display: none;
}

.nc-tp-tray.is-empty .nc-tp-tray__count {
    display: inline-flex;
}

.nc-tp-tray__empty {
    margin: 2px 0 4px;
    color: var(--nc-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.nc-tp-tray__empty[hidden],
.nc-tp-tray__actions[hidden] {
    display: none;
}

.nc-tp-tray__bar-icon {
    width: 22px;
    height: 22px;
}

.nc-tp-tray__title {
    font-size: 1.02rem;
    font-weight: 800;
}

.nc-tp-tray__count {
    display: inline-flex;
    min-width: 0;
    height: auto;
    padding: 0 0 0 10px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 700;
}

.nc-tp-tray__chevron {
    width: 22px;
    height: 22px;
    transition: transform 200ms ease;
}

.nc-tp-tray.is-open .nc-tp-tray__chevron {
    transform: rotate(180deg);
}

.nc-tp-tray__panel {
    width: min(760px, 100%);
    max-height: min(56vh, 420px);
    margin: 0 auto;
    padding: 10px 16px 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 -8px 26px rgba(5, 22, 34, 0.18);
}

.nc-tp-tray__summary {
    margin: 2px 0 10px;
    color: var(--nc-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.nc-tp-tray__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nc-tp-tray__item {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--nc-border);
}

.nc-tp-tray__item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.nc-tp-tray__order {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    background: var(--nc-charcoal-blue);
    border-radius: 50%;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.nc-tp-tray__item-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
    align-items: center;
}

.nc-tp-tray__move {
    display: inline-grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    background: rgba(20, 52, 77, 0.07);
    border: 0;
    border-radius: 9px;
    color: var(--nc-charcoal-blue);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.nc-tp-tray__move:hover:not(:disabled) {
    background: var(--nc-charcoal-blue);
    color: #fff;
}

.nc-tp-tray__move:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.nc-tp-tray__item-name {
    color: var(--nc-charcoal-blue);
    font-size: 1rem;
    font-weight: 700;
}

.nc-tp-tray__item-address {
    overflow: hidden;
    color: var(--nc-muted);
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nc-tp-tray__remove {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    background: rgba(194, 73, 46, 0.1);
    border: 0;
    border-radius: 50%;
    color: var(--nc-clay);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease;
}

@media (max-width: 460px) {
    .nc-tp-tray__item {
        gap: 8px;
    }

    .nc-tp-tray__order {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }

    .nc-tp-tray__move,
    .nc-tp-tray__remove {
        width: 30px;
        height: 30px;
    }
}

.nc-tp-tray__remove:hover {
    background: rgba(194, 73, 46, 0.2);
}

.nc-tp-tray__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.nc-tp-tray__directions {
    display: inline-flex;
    flex: 1;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: var(--nc-clay);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.nc-tp-tray__directions svg {
    width: 20px;
    height: 20px;
}

.nc-tp-tray__directions:hover {
    background: #a83b23;
}

.nc-tp-tray__clear {
    padding: 14px 18px;
    background: transparent;
    border: 1px solid var(--nc-border);
    border-radius: 12px;
    color: var(--nc-muted);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.nc-tp-tray__clear:hover {
    color: var(--nc-clay);
    border-color: var(--nc-clay);
}

/* Apple-device map chooser --------------------------------------------- */

.nc-tp-map-choice {
    width: min(440px, calc(100% - 32px));
    padding: 28px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(23, 36, 38, 0.28);
    color: var(--nc-ink);
}

.nc-tp-map-choice::backdrop {
    background: rgba(18, 31, 33, 0.58);
    backdrop-filter: blur(3px);
}

.nc-tp-map-choice h2 {
    margin: 0 40px 6px 0;
    font-size: 1.45rem;
}

.nc-tp-map-choice > p {
    margin: 0 0 20px;
    color: var(--nc-muted);
}

.nc-tp-map-choice__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef2f0;
    color: var(--nc-ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.nc-tp-map-choice__options {
    display: grid;
    gap: 10px;
}

.nc-tp-map-choice__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--nc-border);
    border-radius: 14px;
    color: var(--nc-ink);
    text-decoration: none;
}

.nc-tp-map-choice__option:hover,
.nc-tp-map-choice__option:focus-visible {
    border-color: var(--nc-clay);
    background: rgba(194, 73, 46, 0.06);
}

.nc-tp-map-choice__option-name {
    font-weight: 800;
}

.nc-tp-map-choice__option-note {
    color: var(--nc-muted);
    font-size: 0.82rem;
    text-align: right;
}

.nc-tp-map-choice__cancel {
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    border: 0;
    background: transparent;
    color: var(--nc-muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 600px) {
    .nc-tp-map-choice {
        width: 100%;
        max-width: none;
        margin: auto 0 0;
        padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }
}

/* Tablet (stacked): give the full-width map more height. */
@media (min-width: 700px) and (max-width: 1139px) {
    .nc-tp-map {
        height: 480px;
    }
}

/* Scale up: side-by-side panes. Kept at 1140px+ so both the list column and
   the map have real room — below that the map got squeezed too narrow. */

@media (min-width: 1140px) {
    body.page-template-template-trip-planner {
        overflow: auto;
    }

    body.page-template-template-trip-planner .nc-footer {
        display: block;
    }

    body.page-template-template-trip-planner .nc-header,
    .nc-tp-apphead {
        display: none;
    }

    .nc-trip-planner {
        padding-bottom: 0;
    }

    .nc-tp-workspace.has-map {
        grid-template-columns: minmax(440px, 560px) 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "controls map"
            "list map";
        height: clamp(760px, 92vh, 1360px);
    }

    .nc-tp-map-pane {
        height: 100%;
        border-left: 1px solid var(--nc-border);
    }

    .nc-tp-map {
        height: 100%;
        max-height: none;
    }

    /* List scrolls under the controls, beside the full-height map. */
    .nc-tp-list-pane {
        min-height: 0;
        padding: 20px;
        overflow-y: auto;
        border-top: 0;
    }

    /* Desktop tray floats as a card, bottom-left, clear of the map. */
    .nc-tp-tray {
        right: auto;
        bottom: 24px;
        left: 24px;
        width: 380px;
    }

    .nc-tp-tray__bar {
        width: 100%;
        border-radius: 16px;
    }

    .nc-tp-tray.is-open .nc-tp-tray__bar {
        border-radius: 16px 16px 0 0;
    }

    .nc-tp-tray__panel {
        width: 100%;
        border-radius: 0 0 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nc-trip-planner *,
    .nc-trip-planner *::before,
    .nc-trip-planner *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Original-inspired refinement ------------------------------------------
   Brings back the old planner's direct, useful hero while retaining the
   cleaner unified list-and-map workspace. */

.nc-tp-hero {
    min-height: clamp(460px, 52vw, 610px);
    background-color: var(--nc-charcoal-blue);
    background-position: right center !important;
    background-size: 56% 100% !important;
    background-repeat: no-repeat;
}

.nc-tp-hero.nc-listings-hero--image::before {
    background:
        linear-gradient(90deg,
            var(--nc-charcoal-blue) 0%,
            var(--nc-charcoal-blue) 43%,
            rgba(20, 52, 77, 0.86) 52%,
            rgba(20, 52, 77, 0.08) 72%),
        linear-gradient(0deg, rgba(20, 52, 77, 0.24), rgba(20, 52, 77, 0.04));
}

.nc-tp-hero .nc-listings-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    padding-block: 92px 120px;
}

.nc-tp-hero .nc-tp-hero__eyebrow {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.nc-tp-hero .nc-tp-hero__title {
    max-width: 11ch;
    font-family: var(--font-sans);
    font-size: clamp(2.65rem, 5.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.nc-tp-hero__tagline {
    max-width: 520px;
    margin: 22px 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.65;
}

.nc-tp-hero__cta {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 13px 20px;
    background: var(--nc-clay);
    border: 1px solid var(--nc-clay);
    border-radius: 8px;
    box-shadow: 0 9px 22px rgba(9, 29, 43, 0.24);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nc-tp-hero__cta span {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    font-size: 1rem;
}

.nc-tp-hero__cta:hover {
    background: #ad3f28;
    border-color: #ad3f28;
    color: #fff;
    transform: translateY(-1px);
}

.nc-tp-app {
    margin-top: 20px;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(20, 52, 77, 0.1);
}

.nc-tp-controls__body {
    padding: 16px;
}

.nc-tp-tabs {
    background: #f1f4f3;
    border-radius: 10px;
}

.nc-tp-tab {
    border-radius: 8px;
}

.nc-tp-tab.is-active {
    box-shadow: none;
}

.nc-tp-search input,
.nc-tp-filter-toggle {
    border-color: rgba(20, 52, 77, 0.16);
    border-radius: 8px;
}

.nc-tp-list-pane {
    background: #fbfcfb;
}

.nc-tp-fcard {
    border-color: rgba(20, 52, 77, 0.14);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(20, 52, 77, 0.07);
}

.nc-tp-row {
    border-radius: 9px;
}

.nc-tp-add {
    border-radius: 7px;
}

@media (min-width: 1140px) {
    .nc-tp-workspace.has-map {
        grid-template-columns: minmax(440px, 540px) 1fr;
        height: clamp(720px, 86vh, 1120px);
    }
}

@media (max-width: 800px) {
    .nc-tp-hero {
        min-height: 560px;
        background-position: center bottom !important;
        background-size: 100% 48% !important;
    }

    .nc-tp-hero.nc-listings-hero--image::before {
        background:
            linear-gradient(180deg,
                var(--nc-charcoal-blue) 0%,
                var(--nc-charcoal-blue) 49%,
                rgba(20, 52, 77, 0.78) 63%,
                rgba(20, 52, 77, 0.08) 100%);
    }

    .nc-tp-hero .nc-listings-hero__inner {
        width: min(100% - 32px, 680px);
        padding-block: 52px 260px;
    }

    .nc-tp-hero .nc-tp-hero__title {
        max-width: 13ch;
        font-size: clamp(2.35rem, 10vw, 3.8rem);
    }

    .nc-tp-hero__tagline {
        margin-block: 16px 22px;
        line-height: 1.5;
    }

    .nc-tp-app {
        margin-top: 12px;
    }
}

/* Integrated destination-planner shell ----------------------------------
   The page now reads as one continuous tourism application rather than a
   marketing hero followed by a separate tool. */

.nc-trip-planner {
    --nc-charcoal-blue: #314d63;

    min-height: calc(100vh - 80px);
    padding-bottom: 0;
    background: #edf1ef;
}

.nc-trip-planner .nc-listings-browser {
    padding: 18px 0 34px;
    background:
        radial-gradient(circle at 90% 0%, rgba(109, 145, 132, 0.12), transparent 30%),
        #edf1ef;
}

.nc-trip-planner .nc-listings-container {
    width: min(1760px, calc(100% - 36px));
}

.nc-tp-app {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20, 52, 77, 0.13);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(20, 52, 77, 0.09);
}

.nc-tp-apphead {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    min-height: 190px;
    overflow: hidden;
    background: var(--nc-charcoal-blue);
    color: #fff;
}

.nc-tp-apphead__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px clamp(26px, 4vw, 58px);
}

.nc-tp-apphead__eyebrow {
    margin: 0 0 8px;
    color: #f1ac9c;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nc-tp-apphead__title {
    max-width: 790px;
    margin: 0;
    color: #fff;
    font-family: var(--font-sans);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.nc-tp-apphead__title::after {
    display: none;
}

.nc-tp-apphead__tagline {
    max-width: 720px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.92rem, 1.15vw, 1.05rem);
    line-height: 1.5;
}

.nc-tp-apphead__photo {
    position: relative;
    min-height: 190px;
    background-position: center;
    background-size: cover;
}

.nc-tp-apphead__photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--nc-charcoal-blue), transparent 42%),
        linear-gradient(0deg, rgba(20, 52, 77, 0.16), rgba(20, 52, 77, 0.02));
}

.nc-tp-workspace.has-map {
    border-top: 1px solid rgba(20, 52, 77, 0.12);
}

.nc-tp-controls {
    background: #fff;
    margin-bottom: 0;
}

.nc-tp-controls__body {
    gap: 10px;
    padding: 14px;
}

.nc-tp-tabs {
    padding: 4px;
    background: #eef2f1;
}

.nc-tp-tab {
    min-height: 54px;
}

.nc-tp-tab.is-active {
    background: var(--nc-charcoal-blue);
}

.nc-tp-list-pane {
    background: #fbfcfb;
}

.nc-tp-map-pane {
    background: #dce8e3;
}

@media (min-width: 1140px) {
    body.page-template-template-trip-planner .nc-header__inner {
        min-height: 64px;
        padding-block: 4px;
    }

    body.page-template-template-trip-planner .nc-header__heritage-inline {
        width: 232px;
    }

    body.page-template-template-trip-planner .nc-header__brand {
        padding-right: 12px;
    }

    body.page-template-template-trip-planner .nc-header__link {
        padding: 8px 9px;
        font-size: 0.84rem;
    }

    body.page-template-template-trip-planner .nc-header__cta {
        display: none;
    }

    .nc-trip-planner {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .nc-trip-planner .nc-listings-browser {
        height: auto;
        padding: 0;
    }

    .nc-trip-planner .nc-listings-container {
        width: 100%;
        height: auto;
        max-width: none;
    }

    .nc-tp-app {
        display: block;
        width: 100%;
        height: auto;
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nc-tp-apphead {
        min-height: 0;
    }

    .nc-tp-apphead__photo {
        min-height: 0;
    }

    .nc-tp-apphead__copy {
        padding-block: 18px;
    }

    .nc-tp-apphead__eyebrow {
        margin-bottom: 5px;
        font-size: 0.62rem;
    }

    .nc-tp-apphead__title {
        font-size: clamp(1.75rem, 2.6vw, 2.75rem);
        line-height: 1;
    }

    .nc-tp-apphead__tagline {
        margin-top: 7px;
        font-size: 0.88rem;
    }

    .nc-tp-workspace.has-map {
        grid-template-columns: minmax(520px, 44vw) 1fr;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        align-items: start;
    }

    .nc-tp-map-pane {
        position: sticky;
        top: 0;
        height: 111.111vh;
        align-self: start;
    }

    .nc-tp-map {
        height: 100%;
    }

    .nc-tp-list-pane {
        overflow: visible;
    }

    .nc-tp-list-pane {
        padding: 16px 18px 20px;
    }

    .nc-tp-featured {
        margin-bottom: 22px;
    }

    .nc-tp-section-head {
        margin-bottom: 5px;
    }

    .nc-tp-featured__intro {
        margin: 0 0 11px;
        font-size: 0.78rem;
    }

    .nc-tp-featured-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 2px 2px 8px;
        overflow: visible;
    }

    .nc-tp-fcard {
        display: grid;
        grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
        grid-template-rows: 1fr;
        height: 178px;
        border: 0;
        border-radius: 12px;
        box-shadow: 0 7px 20px rgba(20, 52, 77, 0.13);
    }

    .nc-tp-fcard__media {
        width: 100%;
        min-width: 0;
    }

    .nc-tp-fcard__badge {
        top: 10px;
        left: 10px;
        padding: 5px 9px;
    }

    .nc-tp-fcard__body {
        gap: 3px;
        padding: 14px 16px;
    }

    .nc-tp-fcard__title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 0.96rem;
        line-height: 1.12;
    }

    .nc-tp-fcard__summary {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .nc-tp-fcard__location {
        font-size: 0.62rem;
    }

    .nc-tp-fcard__actions {
        gap: 6px;
    }

    .nc-tp-fcard__actions .nc-tp-add--card {
        padding: 8px 9px;
        font-size: 0.72rem;
    }

    .nc-tp-fcard__details {
        padding-inline: 2px;
        font-size: 0.66rem;
    }

    .nc-tp-browse {
        margin-top: 0;
        padding-top: 17px;
        border-top: 1px solid rgba(20, 52, 77, 0.11);
    }

    .nc-tp-browse .nc-tp-section-head {
        margin-bottom: 10px;
    }

    .nc-tp-more {
        padding: 9px 16px;
        border-width: 1px;
        border-radius: 8px;
        font-size: 0.82rem;
    }

    .nc-tp-tray {
        right: 24px;
        top: 70px;
        bottom: auto;
        left: auto;
        width: 390px;
    }
}

@media (min-width: 1500px) {
    .nc-tp-featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 16px;
        overflow: hidden;
    }

    .nc-tp-fcard {
        grid-template-columns: 1fr;
        grid-template-rows: 170px minmax(0, 1fr);
        height: 346px;
        overflow: hidden;
        background: #fff;
        border: 1px solid rgba(20, 52, 77, 0.1);
        border-radius: 14px;
        box-shadow:
            0 12px 28px rgba(20, 52, 77, 0.11),
            0 2px 6px rgba(20, 52, 77, 0.05);
    }

    .nc-tp-fcard:hover {
        border-color: rgba(194, 73, 46, 0.28);
        box-shadow:
            0 18px 38px rgba(20, 52, 77, 0.15),
            0 3px 8px rgba(20, 52, 77, 0.06);
    }

    .nc-tp-fcard__media {
        width: 100%;
        min-width: 0;
    }

    .nc-tp-fcard__media::after {
        background: linear-gradient(to top, rgba(15, 42, 63, 0.58), transparent 52%);
    }

    .nc-tp-fcard__badge {
        top: 12px;
        left: 12px;
        padding: 5px 9px;
        background: rgba(20, 52, 77, 0.9);
        font-size: 0.58rem;
        box-shadow: 0 4px 12px rgba(5, 22, 34, 0.2);
        backdrop-filter: blur(6px);
    }

    .nc-tp-fcard__body {
        gap: 5px;
        padding: 14px 15px 15px;
    }

    .nc-tp-fcard__title {
        font-size: 1.02rem;
        line-height: 1.15;
    }

    .nc-tp-fcard__location {
        display: inline-flex;
        font-size: 0.64rem;
    }

    .nc-tp-fcard__summary {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 0.76rem;
        line-height: 1.4;
    }

    .nc-tp-fcard__actions {
        gap: 8px;
    }

    .nc-tp-fcard__actions .nc-tp-add--card {
        padding: 9px 11px;
        font-size: 0.72rem;
    }

    .nc-tp-fcard__details {
        padding-inline: 3px;
        font-size: 0.68rem;
    }
}

@media (min-width: 1140px) {
    body.page-template-template-trip-planner .nc-tp-apphead {
        display: none;
    }
}

/* Temporary distraction-free planner review: judge the application without
   the site or promotional headers. */
body.page-template-template-trip-planner .nc-header,
body.page-template-template-trip-planner .nc-tp-apphead {
    display: none;
}

.nc-tp-shellhead {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    min-height: 54px;
    padding: 4px clamp(20px, 2.3vw, 42px);
    background: #314d63;
    color: #fff;
    box-shadow: 0 7px 22px rgba(8, 30, 45, 0.18);
}

.nc-tp-shellhead__brand,
.nc-tp-shellhead__actions {
    display: flex;
    align-items: center;
}

.nc-tp-shellhead__brand {
    gap: 14px;
}

.nc-tp-shellhead__logo {
    display: block;
    width: clamp(152px, 11vw, 188px);
    line-height: 0;
}

.nc-tp-shellhead__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.nc-tp-shellhead__divider {
    width: 1px;
    height: 29px;
    background: rgba(255, 255, 255, 0.2);
}

.nc-tp-shellhead__product {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-start;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
}

.nc-tp-shellhead__product strong {
    color: #ef8065;
    font-size: clamp(0.94rem, 1.15vw, 1.14rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nc-tp-shellhead__product small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.59rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.nc-tp-shellhead__actions {
    gap: 18px;
}

.nc-tp-shellhead__back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(10, 37, 54, 0.12);
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nc-tp-shellhead__back:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
    transform: translateY(-1px);
}

.nc-tp-shellhead__back span {
    color: #ef8065;
    font-size: 1.15rem;
}

.nc-tp-shellhead__language {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

@media (max-width: 900px) {
    .nc-tp-shellhead {
        grid-template-columns: 1fr auto;
        min-height: 60px;
        padding-inline: 16px;
    }

    .nc-tp-shellhead__logo {
        width: 178px;
    }

    .nc-tp-shellhead__divider {
        height: 30px;
    }

    .nc-tp-shellhead__language {
        display: none;
    }

    .nc-tp-apphead {
        grid-template-columns: 1fr minmax(210px, 0.55fr);
    }

    .nc-tp-apphead__copy {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .nc-tp-shellhead {
        gap: 10px;
    }

    .nc-tp-shellhead__brand {
        gap: 10px;
    }

    .nc-tp-shellhead__logo {
        width: 148px;
    }

    .nc-tp-shellhead__product {
        display: none;
    }

    .nc-tp-shellhead__back {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 50%;
        font-size: 0;
    }

    .nc-tp-shellhead__back span {
        font-size: 1.15rem;
    }

    .nc-trip-planner .nc-listings-browser {
        padding-top: 0;
    }

    .nc-trip-planner .nc-listings-container {
        width: 100%;
    }

    .nc-tp-app {
        border-inline: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nc-tp-apphead {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .nc-tp-apphead__copy {
        padding: 26px 20px 22px;
    }

    .nc-tp-apphead__title {
        max-width: 13ch;
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .nc-tp-apphead__photo {
        min-height: 150px;
    }

    .nc-tp-apphead__photo::before {
        background: linear-gradient(180deg, var(--nc-charcoal-blue), transparent 38%);
    }
}

/* Flagship desktop finish ------------------------------------------------
   A quieter, editorial treatment for the planner's highest-traffic view. */
@media (min-width: 1140px) {
    .nc-tp-map-pane {
        top: 54px;
        /* The theme's desktop canvas is rendered at 90%; compensate so the
           sticky map still reaches the physical viewport edge. */
        height: calc(111.111vh - 62px);
    }

    .nc-tp-controls {
        position: relative;
        z-index: 3;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 247, 0.98));
        border-bottom: 1px solid rgba(20, 52, 77, 0.11);
        box-shadow: 0 10px 30px rgba(20, 52, 77, 0.055);
    }

    .nc-tp-controls__body {
        gap: 12px;
        padding: 17px 20px 16px;
    }

    .nc-tp-tabs {
        gap: 7px;
        padding: 5px;
        background: rgba(20, 52, 77, 0.055);
        border: 1px solid rgba(20, 52, 77, 0.06);
        border-radius: 15px;
    }

    .nc-tp-tab {
        position: relative;
        min-height: 48px;
        border-radius: 11px;
    }

    .nc-tp-tab__icon {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(20, 52, 77, 0.08);
        border-radius: 11px;
    }

    .nc-tp-tab__label {
        font-size: 0.86rem;
    }

    .nc-tp-tab__text {
        flex-direction: row;
        gap: 4px;
        align-items: baseline;
    }

    .nc-tp-tab__count {
        font-size: 0.66rem;
    }

    .nc-tp-tab.is-active {
        background: #314d63;
        box-shadow: 0 10px 24px rgba(20, 52, 77, 0.2);
    }

    .nc-tp-tab.is-active::after {
        content: "";
        position: absolute;
        right: 18px;
        bottom: 0;
        left: 18px;
        height: 3px;
        background: var(--nc-clay);
        border-radius: 4px 4px 0 0;
    }

    .nc-tp-searchbar {
        gap: 0;
        overflow: hidden;
        background: #fff;
        border: 1px solid rgba(20, 52, 77, 0.13);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(20, 52, 77, 0.045);
    }

    .nc-tp-search input,
    .nc-tp-filter-toggle {
        min-height: 60px;
        background: #fff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nc-tp-filter-toggle {
        border-left: 1px solid rgba(20, 52, 77, 0.12);
    }

    .nc-tp-search input {
        padding-left: 48px;
        font-size: 0.96rem;
    }

    .nc-tp-search input:focus {
        box-shadow: inset 0 0 0 2px rgba(194, 73, 46, 0.45);
    }

    .nc-tp-list-pane {
        padding: 26px 30px 44px;
        background:
            linear-gradient(180deg, #fbfcfb 0%, #f7f9f7 100%);
    }

    .nc-tp-section-head {
        margin-bottom: 9px;
    }

    .nc-tp-section-head__title {
        font-size: 1.28rem;
        letter-spacing: -0.025em;
    }

    .nc-tp-section-head__title::before {
        width: 7px;
        height: 22px;
        border-radius: 999px;
        transform: none;
    }

    .nc-tp-featured__intro {
        margin: 0 0 17px;
        color: #607483;
        font-size: 0.84rem;
    }

    .nc-tp-featured-grid {
        gap: 16px;
        padding: 0 1px 12px;
    }

    .nc-tp-fcard {
        border: 1px solid rgba(20, 52, 77, 0.09);
        border-radius: 16px;
        box-shadow:
            0 14px 32px rgba(20, 52, 77, 0.105),
            0 2px 4px rgba(20, 52, 77, 0.035);
    }

    .nc-tp-fcard__badge {
        background: rgba(49, 77, 99, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 5px 16px rgba(5, 22, 34, 0.22);
        backdrop-filter: blur(8px);
    }

    .nc-tp-fcard__body {
        padding: 17px 18px 16px;
    }

    .nc-tp-fcard__title {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        font-size: 1.06rem;
        letter-spacing: -0.018em;
    }

    .nc-tp-fcard__summary {
        color: #405b6d;
        line-height: 1.48;
    }

    .nc-tp-fcard__actions .nc-tp-add--card {
        min-height: 38px;
        border-radius: 9px;
        box-shadow: 0 5px 12px rgba(194, 73, 46, 0.16);
    }

    .nc-tp-browse {
        padding-top: 24px;
        border-top: 1px solid rgba(20, 52, 77, 0.1);
    }

    .nc-tp-browse .nc-tp-section-head {
        margin-bottom: 15px;
    }

    .nc-tp-row {
        gap: 17px;
        min-height: 112px;
        margin-bottom: 10px;
        padding: 10px 12px 10px 10px;
        background: rgba(255, 255, 255, 0.88);
        border-color: rgba(20, 52, 77, 0.09);
        border-radius: 14px;
        box-shadow: 0 4px 14px rgba(20, 52, 77, 0.045);
        transition:
            transform 180ms ease,
            border-color 180ms ease,
            box-shadow 180ms ease,
            background-color 180ms ease;
    }

    .nc-tp-row:hover {
        background: #fff;
        border-color: rgba(194, 73, 46, 0.25);
        box-shadow: 0 12px 26px rgba(20, 52, 77, 0.1);
        transform: translateY(-2px);
    }

    .nc-tp-row__media {
        flex-basis: 104px;
        width: 104px;
        height: 92px;
        border-radius: 11px;
    }

    .nc-tp-row__title {
        font-size: 1.02rem;
        letter-spacing: -0.012em;
    }

    .nc-tp-row__summary {
        margin-top: 7px;
        color: #486173;
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .nc-tp-row__actions {
        min-width: 76px;
        padding-left: 4px;
    }

    .nc-tp-add--mini {
        min-height: 38px;
        border-radius: 9px;
    }

    .nc-tp-map-pane {
        box-shadow: inset 14px 0 28px -26px rgba(20, 52, 77, 0.6);
    }

    .nc-tp-mapcard {
        right: auto;
        bottom: 24px;
        left: 24px;
        display: grid;
        grid-template-rows: 176px auto;
        width: min(430px, calc(100% - 48px));
        overflow: hidden;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(49, 77, 99, 0.13);
        border-radius: 18px;
        box-shadow:
            0 22px 48px rgba(23, 48, 66, 0.25),
            0 3px 10px rgba(23, 48, 66, 0.1);
        backdrop-filter: blur(12px);
    }

    .nc-tp-mapcard__media {
        width: 100%;
        min-height: 176px;
    }

    .nc-tp-mapcard__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(49, 77, 99, 0.34), transparent 48%);
        pointer-events: none;
    }

    .nc-tp-mapcard__body {
        gap: 7px;
        padding: 18px 20px 19px;
    }

    .nc-tp-mapcard__title {
        padding-right: 22px;
        font-size: 1.16rem;
        line-height: 1.18;
        letter-spacing: -0.02em;
    }

    .nc-tp-mapcard__meta {
        color: #657986;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.025em;
    }

    .nc-tp-mapcard__summary {
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-top: 3px;
        color: #405b6d;
        font-size: 0.84rem;
        line-height: 1.48;
    }

    .nc-tp-mapcard__actions {
        gap: 16px;
        padding-top: 10px;
    }

    .nc-tp-mapcard__actions .nc-tp-add--card {
        min-height: 40px;
        padding: 10px 16px;
        border-radius: 9px;
        box-shadow: 0 6px 14px rgba(194, 73, 46, 0.18);
    }

    .nc-tp-mapcard__close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.94);
        border-color: rgba(49, 77, 99, 0.14);
        font-size: 1.3rem;
        box-shadow: 0 5px 14px rgba(23, 48, 66, 0.18);
        backdrop-filter: blur(8px);
    }

    .nc-tp-map .leaflet-control-zoom {
        overflow: hidden;
        border: 0;
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(20, 52, 77, 0.2);
    }

    .nc-tp-map .leaflet-control-zoom a {
        width: 38px;
        height: 38px;
        border-color: rgba(20, 52, 77, 0.08);
        color: var(--nc-charcoal-blue);
        font-family: var(--font-sans);
        line-height: 38px;
    }
}

@media (min-width: 1140px) and (max-width: 1499px) {
    .nc-tp-fcard {
        height: 220px;
    }

    .nc-tp-fcard__title {
        font-size: 1rem;
    }
}

@media (min-width: 1500px) {
    .nc-tp-fcard {
        grid-template-rows: 188px minmax(0, 1fr);
        height: 420px;
    }

    .nc-tp-fcard__body {
        gap: 7px;
    }

    .nc-tp-fcard__summary {
        -webkit-line-clamp: 3;
        line-clamp: 3;
        font-size: 0.8rem;
    }
}
