/* =========================================================
   NomadRoute Happening
   ========================================================= */


/* ---------------------------------------------------------
   Astra page reset
   --------------------------------------------------------- */

.single-nr_happening {
    background: #f6f8fc;
}

.single-nr_happening .entry-header,
.single-nr_happening .entry-title,
.single-nr_happening .entry-meta,
.single-nr_happening .posted-on,
.single-nr_happening .byline {
    display: none !important;
}

.single-nr_happening #primary {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

.single-nr_happening .site-content {
    padding-top: 30px;
    padding-bottom: 40px;
}

.single-nr_happening .site-content .ast-container {
    width: 100%;
}

.single-nr_happening .content-area,
.single-nr_happening .site-main,
.single-nr_happening article.nr_happening,
.single-nr_happening .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.single-nr_happening article.nr_happening {
    border: 0;
    background: transparent;
    box-shadow: none;
}


/* ---------------------------------------------------------
   Happening page wrapper
   --------------------------------------------------------- */

.nr-happening-public {
    width: 100%;
    color: #0b1936;
}


/* ---------------------------------------------------------
   Main Happening card
   --------------------------------------------------------- */

.nr-happening-page {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}


/* ---------------------------------------------------------
   Happening hero
   --------------------------------------------------------- */

.nr-happening-hero {
    width: 100%;
    margin: 0;
}

.nr-happening-image {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #e9eef5;
}

.nr-happening-image img,
.nr-happening-image__img {
    display: block;
    width: 100%;
    height: clamp(360px, 45vw, 540px);
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.nr-happening-hero-content {
    padding: 32px;
}

.nr-happening-title {
    max-width: 900px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #0b1936;
}


/* ---------------------------------------------------------
   Status and type badges
   --------------------------------------------------------- */

.nr-happening-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.nr-happening-status,
.nr-happening-type {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.nr-happening-status,
.nr-happening-status--upcoming {
    background: #e8f0ff;
    color: #2353a2;
}

.nr-happening-status--now {
    background: #daf5e5;
    color: #176b3a;
}

.nr-happening-status--ended {
    background: #eceff3;
    color: #5c6674;
}

.nr-happening-type {
    background: #f1f3f7;
    color: #344054;
    gap: 5px;
}


/* ---------------------------------------------------------
   Location and dates
   --------------------------------------------------------- */

.nr-happening-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 0;
    color: #596579;
    font-size: 16px;
    line-height: 1.55;
}

.nr-happening-location,
.nr-happening-dates {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.nr-happening-location::before {
    content: "📍";
    flex: 0 0 auto;
}

.nr-happening-dates::before {
    content: "📅";
    flex: 0 0 auto;
}


/* ---------------------------------------------------------
   Shared content sections
   --------------------------------------------------------- */

.nr-happening-summary,
.nr-happening-content {
    --nr-section-accent: #3b82f6;
    margin: 0 32px 42px;
    color: #334155;
}

.nr-happening-summary {
    padding-top: 28px;
}

.nr-happening-content {
    --nr-section-accent: #14b8a6;
}

.nr-happening-summary > h2,
.nr-happening-content > h2 {
    position: relative;
    margin: 0 0 22px;
    padding: 4px 0 4px 22px;
    color: #10213f;
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.nr-happening-summary > h2::before,
.nr-happening-content > h2::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--nr-section-accent);
}

.nr-happening-summary-content,
.nr-happening-content-body {
    padding-left: 22px;
    color: #263a59;
    font-size: 1.05rem;
    line-height: 1.75;
}

.nr-happening-summary-content > :first-child,
.nr-happening-content-body > :first-child {
    margin-top: 0;
}

.nr-happening-summary-content > :last-child,
.nr-happening-content-body > :last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   Plan your trip
   --------------------------------------------------------- */

.nr-happening-plan {
    --nr-plan-accent: #8b5cf6;
    position: relative;
    margin: 0 32px 36px;
    padding: 30px 32px 32px;
    overflow: hidden;
    border: 1px solid #e1e8f2;
    border-radius: 20px;
    background: #f8fafc;
}

.nr-happening-plan::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--nr-plan-accent);
}

.nr-happening-plan > h2 {
    margin: 0 0 24px;
    color: #10213f;
    font-size: clamp(1.65rem, 2.2vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.nr-happening-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nr-happening-action {
    --nr-action-color: #64748b;
    --nr-action-bg: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px;
    border: 1px solid color-mix(in srgb, var(--nr-action-color) 30%, #dbe4ef);
    border-radius: 12px;
    background: var(--nr-action-bg);
    color: #173052;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 35, 65, 0.03);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
    text-decoration: none !important;
}

.nr-happening-action:hover,
.nr-happening-action:focus-visible {
    border-color: var(--nr-action-color);
    background: color-mix(in srgb, var(--nr-action-color) 7%, #ffffff);
    color: #10213f;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 35, 65, 0.08);
    transform: translateY(-1px);
}

.nr-happening-action:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--nr-action-color) 22%, transparent);
    outline-offset: 2px;
}

.nr-happening-action--maps {
    --nr-action-color: #3b82f6;
}

.nr-happening-action--official {
    --nr-action-color: #10b981;
}

.nr-happening-action--tickets {
    --nr-action-color: #e8791b;
}

.nr-happening-action--destination {
    --nr-action-color: #8b5cf6;
}

.nr-happening-action--country {
    --nr-action-color: #d97706;
}

.nr-happening-action--flights {
    --nr-action-color: #2563eb;
}

.nr-happening-action--hotels {
    --nr-action-color: #db2777;
}

.nr-happening-action--tours {
    --nr-action-color: #0f9f8f;
}

.nr-happening-action--primary {
    background: color-mix(in srgb, var(--nr-action-color) 9%, #ffffff);
    border-color: color-mix(in srgb, var(--nr-action-color) 45%, #dbe4ef);
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .nr-happening-action {
        border-color: #d7e0ec;
    }

    .nr-happening-action:hover,
    .nr-happening-action:focus-visible {
        background: #ffffff;
    }
}


/* ---------------------------------------------------------
   Source
   --------------------------------------------------------- */

.nr-happening-source {
    margin: 0 32px;
    padding: 22px 0 26px;
    border-top: 1px solid #e1e6ee;
    color: #596579;
    font-size: 14px;
    line-height: 1.5;
}

.nr-happening-source-label,
.nr-happening-source strong {
    color: #26344d;
}

.nr-happening-source a {
    font-weight: 600;
}


/* ---------------------------------------------------------
   Shared sections after Happening card
   --------------------------------------------------------- */

.nr-happening-page + .nr-destination-section,
.nr-happening-page + .nr-about-nomadroute,
.nr-happening-page + .nr-trust-cards {
    margin-top: 28px;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .single-nr_happening .site-content {
        padding-top: 20px;
        padding-bottom: 32px;
    }

    .single-nr_happening .site-content .ast-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .nr-happening-page {
        border-radius: 18px;
    }

    .nr-happening-image img,
    .nr-happening-image__img {
        height: clamp(240px, 68vw, 380px);
    }

    .nr-happening-hero-content {
        padding: 24px 20px;
    }

    .nr-happening-title {
        margin-bottom: 18px;
    }

    .nr-happening-meta {
        display: grid;
        gap: 9px;
        font-size: 15px;
    }

    .nr-happening-location,
    .nr-happening-dates {
        align-items: flex-start;
    }

    .nr-happening-summary,
    .nr-happening-content {
        margin-right: 20px;
        margin-bottom: 34px;
        margin-left: 20px;
    }

    .nr-happening-summary {
        padding-top: 24px;
    }

    .nr-happening-summary > h2,
    .nr-happening-content > h2 {
        padding-left: 17px;
    }

    .nr-happening-summary-content,
    .nr-happening-content-body {
        padding-left: 17px;
    }

    .nr-happening-plan {
        margin-right: 20px;
        margin-bottom: 22px;
        margin-left: 20px;
        padding: 26px 20px 22px;
        border-radius: 16px;
    }

    .nr-happening-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nr-happening-action {
        width: 100%;
    }

    .nr-happening-source {
        margin-right: 20px;
        margin-left: 20px;
        padding: 20px 0 22px;
    }
}
/* ---------------------------------------------------------
   Unified heading hierarchy and in-page navigation
   --------------------------------------------------------- */

.nr-happening-title {
    font-size: clamp(36px, 4.5vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.nr-happening-summary > h2,
.nr-happening-content > h2,
.nr-happening-plan > h2,
.single-nr_happening .nr-cheap-flights-block h2,
.single-nr_happening .nr-destination-section h2,
.single-nr_happening .nr-about-nomadroute h2 {
    margin: 0 0 20px;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #0b1936;
}

.nr-happening-plan-groups {
    display: grid;
    gap: 24px;
}

.nr-happening-plan-group + .nr-happening-plan-group {
    padding-top: 22px;
    border-top: 1px solid #e1e8f2;
}

.nr-happening-plan-group > h3 {
    margin: 0 0 12px;
    color: #0b1936;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.nr-happening-action--page {
    --nr-action-color: #475569;
}

#nr-happening-flights,
#nr-happening-essentials {
    scroll-margin-top: 110px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (max-width: 768px) {
    .nr-happening-title {
        font-size: clamp(32px, 9vw, 42px);
    }

    .nr-happening-plan-groups {
        gap: 20px;
    }

    .nr-happening-plan-group + .nr-happening-plan-group {
        padding-top: 18px;
    }
}

/* =========================================================
   Happening image hero v1.3
   ========================================================= */

.nr-happening-hero-shell {
    width: 100%;
}

.nr-happening-hero {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.nr-happening-hero.has-image {
    min-height: clamp(360px, 38vw, 400px);
    color: #ffffff;
}

.nr-happening-hero-overlay {
    width: 100%;
    min-height: inherit;
}

.nr-happening-hero.has-image .nr-happening-hero-overlay {
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(
            180deg,
            rgba(5, 13, 31, 0.22) 0%,
            rgba(5, 13, 31, 0.34) 42%,
            rgba(5, 13, 31, 0.88) 100%
        );
}

.nr-happening-hero-content {
    width: 100%;
    padding: 34px 32px;
}

.nr-happening-hero.has-image .nr-happening-hero-content {
    max-width: 1080px;
    padding-top: 90px;
    padding-bottom: 42px;
}

.nr-happening-country,
.nr-happening-country.nr-destination-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 38px;
    margin: 0 0 20px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nr-happening-country-flag {
    display: inline-flex;
    font-size: 17px;
    line-height: 1;
}

.nr-happening-hero.no-image .nr-happening-country,
.nr-happening-hero.no-image .nr-happening-country.nr-destination-location {
    border-color: #dbe4ef;
    background: #f1f5f9;
    color: #334155;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nr-happening-hero.has-image .nr-happening-title {
    max-width: 980px;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 55px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.30);
}

.nr-happening-hero-summary {
    max-width: 880px;
    margin-top: 0;
    color: #334155;
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.6;
}

.nr-happening-hero.has-image .nr-happening-hero-summary {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.30);
}

.nr-happening-hero-summary p {
    margin: 0;
}

.nr-happening-event-bar {
    padding: 22px 32px 40px;
    border-bottom: 0px solid #e6ebf2;
    background: #ffffff;
}

.nr-happening-event-bar .nr-happening-badges {
    margin-bottom: 30px;
}

.nr-happening-event-bar .nr-happening-meta {
    color: #596579;
}

.nr-happening-event-bar .nr-happening-meta a {
    color: #173052;
    text-decoration: none !important;
}

.nr-happening-event-bar .nr-happening-meta a:hover,
.nr-happening-event-bar .nr-happening-meta a:focus-visible {
    color: #2353a2;
}

.nr-happening-source-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.nr-happening-source-row + .nr-happening-source-row {
    margin-top: 6px;
}

@media (max-width: 768px) {
    .nr-happening-hero.has-image {
        min-height: 340px;
    }

    .nr-happening-hero-content,
    .nr-happening-hero.has-image .nr-happening-hero-content {
        padding: 28px 20px;
    }

    .nr-happening-hero.has-image .nr-happening-title {
        font-size: clamp(34px, 11vw, 52px);
    }

    .nr-happening-country,
    .nr-happening-country.nr-destination-location {
        margin-bottom: 16px;
    }

    .nr-happening-hero-summary {
        font-size: 17px;
    }

    .nr-happening-event-bar {
        padding: 20px;
    }

    .nr-happening-event-bar .nr-happening-meta {
        display: grid;
        gap: 10px;
    }
}

/* ==========================================================
   No image hero
========================================================== */

.nr-happening-hero:not(.has-image) .nr-happening-hero-content{
    max-width:1200px;
    margin:0 auto;
    padding:40px 34px 28px;
}

.nr-happening-hero:not(.has-image) .nr-happening-location-badge{
    margin-bottom:24px;
}

.nr-happening-hero:not(.has-image) .nr-happening-title{
    margin-bottom:30px;
}

.nr-happening-hero:not(.has-image) .nr-happening-hero-summary{

    max-width:900px;

    margin-top:22px;

    padding:20px 24px;

    border-left:4px solid #3B82F6;

    border-radius:0 12px 12px 0;

    background:#F5F8FD;

    color:#334155;

    font-size:18px;

    line-height:1.7;
}

.nr-happening-hero:not(.has-image)
.nr-happening-hero-summary p:first-child{
    margin-top:0;
}

.nr-happening-hero:not(.has-image)
.nr-happening-hero-summary p:last-child{
    margin-bottom:0;
}

@media (max-width:768px){

    .nr-happening-hero:not(.has-image) .nr-happening-hero-content{
        padding:28px 24px 22px;
    }

    .nr-happening-hero:not(.has-image) .nr-happening-hero-summary{
        padding:18px;
        font-size:16px;
        line-height:1.6;
    }

}

/* =========================================================
   Related Happenings
   Append to the canonical /css/happening.css file.
   ========================================================= */

.nr-related-happenings {
    margin-top: 28px;
}

.nr-related-happenings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.nr-related-happening-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe7f1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(15, 35, 67, 0.05);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.nr-related-happening-card:hover {
    transform: translateY(-2px);
    border-color: #bfd0e5;
    box-shadow: 0 12px 28px rgba(15, 35, 67, 0.10);
}

.nr-related-happening-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit !important;
    text-decoration: none !important;
}

.nr-related-happening-card__link:hover,
.nr-related-happening-card__link:focus,
.nr-related-happening-card__link:focus-visible,
.nr-related-happening-card__link:active {
    color: inherit !important;
    text-decoration: none !important;
}

.nr-related-happening-card__link *,
.nr-related-happening-card__link:hover *,
.nr-related-happening-card__link:focus *,
.nr-related-happening-card__link:focus-visible * {
    text-decoration: none !important;
}

.nr-related-happening-card__media {
    display: flex;
    aspect-ratio: 16 / 10;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eaf0f8;
}

.nr-related-happening-card__media--fallback {
    color: #526985;
    font-size: 42px;
}

.nr-related-happening-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nr-related-happening-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.nr-related-happening-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.nr-related-happening-card__type {
    color: #345078;
    font-weight: 700;
}

.nr-related-happening-card__title {
    margin: 0 0 8px;
    color: #0b1936;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.nr-related-happening-card__location {
    margin: 0 0 10px;
    color: #52637b;
    font-size: 14px;
}

.nr-related-happening-card__excerpt {
    margin: 0 0 16px;
    color: #41536d;
    font-size: 14px;
    line-height: 1.6;
}

.nr-related-happening-card__cta {
    margin-top: auto;
    color: #2353a2;
    font-size: 14px;
    font-weight: 700;
}

.nr-related-happenings-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e4eaf2;
}

.nr-related-happenings-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2f6df6 !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    transition:
        color 160ms ease,
        gap 160ms ease;
}

.nr-related-happenings-all:hover,
.nr-related-happenings-all:focus,
.nr-related-happenings-all:focus-visible {
    gap: 14px;
    color: #174fc7 !important;
    text-decoration: none !important;
}

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

@media (max-width: 620px) {
    .nr-related-happenings-grid {
        grid-template-columns: 1fr;
    }

    .nr-related-happenings-footer {
        justify-content: flex-start;
    }
}
/* =========================================================
   Happening v1.5 – expandable related cards and venue CTAs
   Append to /css/happening.css
   ========================================================= */

.nr-related-happening-card[hidden] {
    display: none !important;
}

.nr-related-happenings-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e3eaf3;
}

.nr-related-happenings-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #3478f6;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    cursor: pointer;
}

.nr-related-happenings-all:hover,
.nr-related-happenings-all:focus-visible {
    color: #155bd5;
    text-decoration: none !important;
    background: transparent;
}

.nr-related-happenings-all:focus-visible {
    outline: 3px solid rgba(52, 120, 246, 0.22);
    outline-offset: 4px;
    border-radius: 4px;
    background: transparent;
}

.nr-happening-action--venue-event {
    --nr-action-color: #0f9f8f;
}

.nr-happening-action--venue {
    --nr-action-color: #64748b;
}

@media (max-width: 768px) {
    .nr-related-happenings-footer {
        justify-content: flex-start;
    }
}

/* Trend article author/date line below the hero image. */
.single-nr_happening .nr-happening-byline{
    margin:0;
    padding:20px 32px 24px;
    color:#64748b;
    background:#fff;
    border:0;
    font-size:14px;
    line-height:1.5;
}

.single-nr_happening .nr-happening-byline a{
    color:#18345f;
    font-weight:600;
    text-decoration:none;
}

.single-nr_happening .nr-happening-byline a:hover{
    text-decoration:underline;
}

/* Astra's chronological previous/next post links are not contextual travel recommendations. */
.single-nr_happening .post-navigation,
.single-nr_happening .navigation.post-navigation{
    display:none !important;
}

/* Visible only to administrators using ?nr_happening_profile=1. */
.single-nr_happening .nr-happening-render-profile{
    margin:24px 0;
    padding:16px;
    border:1px solid #f59e0b;
    border-radius:10px;
    background:#fffbeb;
    color:#422006;
}

.single-nr_happening .nr-happening-render-profile pre{
    overflow:auto;
    margin:12px 0 0;
    font-size:12px;
}

@media (max-width:768px){
    .single-nr_happening .nr-happening-byline{
        padding:16px 20px 20px;
        font-size:13px;
    }
}