/*--------------------------------------------------------------
# Places
--------------------------------------------------------------*/

.places-hero__container {
    position: relative;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    background: linear-gradient(135deg, rgb(58 67 69 / 13%) 0%, rgba(197, 181, 237, 0.20) 100%);
    border-bottom: 1px solid rgba(14, 203, 255, 0.24);
    box-shadow: 0 34px 60px -36px rgba(10, 16, 43, 0.45);
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 42px);
}

.places-hero__container::before,
.places-hero__container::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(0);
    z-index: 0;
    opacity: 0.3;
}

.places-hero__container::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgb(9 74 92 / 32%) 0%, rgba(14, 203, 255, 0) 70%);
    top: -160px;
    right: -120px;
}

.places-hero__container::after {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(139, 92, 255, 0.28) 0%, rgba(139, 92, 255, 0) 68%);
    bottom: -140px;
    left: -80px;
}

.places-hero__header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--dark-text);
    text-align: center;
}

.places-hero__eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: var(--brand);
}

.places-hero__title {
    margin: 0;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.1;
    font-weight: 700;
}

.places-hero__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
}

.places-hero__articles {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(20px, 3vw, 28px);
    grid-template-columns: 1fr;
}

.places-hero__item {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: var(--bg-primary);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(14, 203, 255, 0.18);
    box-shadow: 0 28px 46px -28px rgba(10, 16, 43, 0.45);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.places-hero__item:hover,
.places-hero__item:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 32px 58px -28px rgba(10, 16, 43, 0.55);
}

.places-hero__link {
    display: grid;
    gap: 22px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: clamp(20px, 3vw, 28px);
}

.places-hero__media {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: rgba(14, 203, 255, 0.18);
    aspect-ratio: 16 / 9;
    min-height: clamp(180px, 30vw, 220px);
    display: grid;
    place-items: center;
    min-width: 0;
    max-width: 100%;
}

.places-hero__media > * {
    grid-area: 1 / 1;
}

.places-hero__media > img,
.places-hero__image {
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.places-hero__media-initial {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 40px -24px rgba(10, 16, 43, 0.6);
}

.places-hero__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.places-hero__tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(14, 203, 255, 0.18);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.places-hero__tag .fi {
    width: 14px;
    height: 14px;
    border-radius: 100%;
}

.places-hero__article-title {
    margin: 0;
    font-size: clamp(22px, 3.4vw, 30px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--dark-text);
}

.places-hero__excerpt {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--light-text);
}

.places-hero__date {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-text);
}

body.page-template-page-places {
    scroll-behavior: smooth;
}

nav.top-page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-bg);
    border-bottom: 1px var(--border) solid;
    position: sticky;
    z-index: 9999;
    top: 0;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

body.admin-bar nav.top-page-nav {
    top: 32px;
}

nav.top-page-nav::-webkit-scrollbar {
    display: none;
}

nav.top-page-nav ul {
    display: flex;
    max-width: 1400px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    gap: 6px;
}

nav.top-page-nav ul li {
    list-style: none;
}

nav.top-page-nav ul li a {
    display: block;
    padding: clamp(6px, 10px, 16px) clamp(10px, 16px, 20px);
    color: rgba(255, 255, 255, .8);
    border-radius: 20px;
    font-size: clamp(12px, 1.2vw, 15px);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

nav.top-page-nav ul li a i {
    margin-right: 4px;
}

nav.top-page-nav ul li a:hover {
    color: #fff;
}

nav.top-page-nav ul li a.active {
    color: #000;
    background: linear-gradient(225deg, #d4d4de, #a4a2ba);
}

nav.top-page-nav ul li a.active i {
    color: #000;
    font-weight: bold;
}

body.page-template-page-places .places-region {
    scroll-margin-top: 30px;
}

@media (min-width: 860px) {
    .places-hero__articles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .places-hero__container {
        grid-template-columns: minmax(0, 320px) 1fr;
        align-items: center;
    }

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

@media (max-width: 640px) {
    .places-hero {
        margin-bottom: 48px;
    }

    .places-hero__container {
        padding: 24px;
    }

    .places-hero__link {
        padding: 20px;
    }

    .places-hero__media {
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    nav.top-page-nav {
        display: none;
    }
}

.places-col {
    margin: 0 auto;
    display: grid;
    gap: clamp(32px, 4vw, 48px);
    padding: var(--padding-large);
}

.places-region__header {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.places-region__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dark-text);
}

.places-region__title span {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 18px;
}

.places-region__title span::before {
    content: "";
    position: absolute;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(180deg, #8b5cff 0%, var(--brand) 100%);
}

.places-region__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 28px;
}

.place-card {
    position: relative;
    background: transparent;
    color: var(--dark-text);
    padding: 28px 26px;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 35px -22px rgba(10, 16, 43, 0.05);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.place-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -35%;
    width: 70%;
    aspect-ratio: 1;
    background: radial-gradient(circle at center, rgba(14, 203, 255, 0.42) 0%, rgba(219, 55, 255, 0) 70%);
    z-index: 0;
    transform: rotate(12deg);
}

.place-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -45% auto;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle at center, rgba(139, 92, 255, 0.4) 0%, rgba(10, 16, 43, 0) 70%);
    z-index: 0;
    transform: rotate(-18deg);
}

.place-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 40px -18px rgba(10, 16, 43, 0.10);
}

.place-card > * {
    position: relative;
    z-index: 1;
}

.place-card__title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    display: flex;
    gap: 12px;
}

.place-card__title .fi {
    border-radius: 100%;
    width: 1em;
    height: 1em;
    box-shadow: var(--box-shadow);
}

.place-card__title a {
    color: inherit;
    text-decoration: none;
}

.place-card__title a:hover,
.place-card__title a:focus {
    color: var(--brand);
}

.place-card__description {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--light-text);
}

.place-card__articles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.place-card__article {
    position: relative;
}

.place-card__article-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px 20px;
    color: inherit;
    text-decoration: none;
    background: var(--bg-primary);
    border-radius: 16px;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.place-card__article-link:hover,
.place-card__article-link:focus-visible {
    transform: translateX(6px);
    background: rgba(14, 203, 255, 0.18);
    box-shadow: 0 18px 32px -18px rgba(14, 203, 255, 0.35);
}

.place-card__article-link:focus-visible {
    outline: 2px solid rgba(14, 203, 255, 0.7);
    outline-offset: 6px;
}

.place-card__article-thumb {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(14, 203, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.place-card__article-thumb > * {
    grid-area: 1 / 1;
}

.place-card__article-thumb-image {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.place-card__article-thumb-initial {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px -14px rgba(10, 16, 43, 0.6);
}

.place-card__article-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.place-card__article-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--light-text);
}

.place-card__article-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.place-card__article-readmore {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
}

.place-card__footer {
    margin-top: auto;
}

.place-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(14, 203, 255, 0.5);
    color: var(--brand);
    text-decoration: none;
    background: rgba(14, 203, 255, 0.12);
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.place-card__cta::after {
    content: "→";
    font-size: 16px;
}

.place-card__cta:hover,
.place-card__cta:focus {
    background: var(--brand);
    color: var(--bg-primary);
    border-color: transparent;
}

.place-card__empty {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 780px) {
    .places-col {
        padding: 16px 14px 60px;
    }

    .place-card {
        padding: 24px 22px;
    }

    .place-card__title {
        font-size: 22px;
    }

    .place-card__article-link {
        grid-template-columns: 56px 1fr;
        gap: 16px;
        padding: 14px 18px;
    }

    .place-card__article-thumb {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

}

@media (max-width: 520px) {
    .places-region__title {
        font-size: 18px;
    }

    .place-card {
        border-radius: 18px;
        gap: 18px;
    }

    .place-card__articles {
        gap: 12px;
    }

    .place-card__article-link {
        grid-template-columns: 52px 1fr;
        gap: 14px;
        padding: 12px 14px;
    }

    .place-card__article-thumb {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

}


/* -------------------------------------------------------------
   Places: Sidebar Collapsible Navigation
   ------------------------------------------------------------- */
.places-nav {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 32px -24px rgba(10,16,43,0.15);
    padding: 10px;
}

.places-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.places-nav__item {
    position: relative;
}

.places-nav__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

/* Depth hint for child lists */
.places-nav__panel .places-nav__list {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px dashed rgba(14,203,255,0.25);
}

.places-nav__item.has-children > .places-nav__row {
    background: linear-gradient(180deg, rgba(14,203,255,0.08) 0%, rgba(139,92,255,0.06) 100%);
}

.places-nav__item .places-nav__row:hover,
.places-nav__item .places-nav__row:focus-within {
    background: rgba(14,203,255,0.12);
    box-shadow: 0 12px 20px -12px rgba(10,16,43,0.20);
}

.places-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-text);
    min-width: 0; /* allow text truncation */
}

.places-nav__link .fi {
    width: 16px;
    height: 16px;
    border-radius: 100%;
    box-shadow: var(--box-shadow);
}

.places-nav__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Current/ancestor states */
.places-nav__item.is-current > .places-nav__row .places-nav__name {
    color: var(--brand);
}

.places-nav__item.is-ancestor > .places-nav__row .places-nav__name {
    color: var(--dark-text);
}

.places-nav__toggle {
    appearance: none;
    border: 1px solid rgba(14,203,255,0.45);
    background: rgba(14,203,255,0.12);
    color: var(--brand);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.places-nav__toggle:hover,
.places-nav__toggle:focus-visible {
    background: var(--brand);
    color: var(--bg-primary);
    border-color: transparent;
}

.places-nav__chevron {
    transition: transform 160ms ease;
}

.places-nav__toggle[aria-expanded="true"] .places-nav__chevron {
    transform: rotate(180deg);
}

.places-nav__panel[hidden] { display: none; }

/* Compact on very small screens */
@media (max-width: 520px) {
    .places-nav { padding: 8px; }
    .places-nav__row { padding: 10px; }
    .places-nav__name { font-size: 14px; }
}
