/*
Theme Name: Hello Biz Child
Template: hello-biz
Version: 1.0.0
Text Domain: hello-biz-child
*/

/* =========================================================
   EVENT KEY ARCHIVE — CLEAN / UPDATED
   ========================================================= */

body.tax-event-key .xr-event-key-archive {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.tax-event-key .xr-event-key-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px 80px;
    box-sizing: border-box;
}

body.tax-event-key .xr-event-key-archive__inner {
    width: min(1280px, 80vw);
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

body.tax-event-key .site-main,
body.tax-event-key main.site-main,
body.tax-event-key .content-area,
body.tax-event-key .site-content,
body.tax-event-key .entry-content,
body.tax-event-key .post-content,
body.tax-event-key .elementor-location-archive {
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
}

/* =========================================================
   HEADER
   ========================================================= */

.xr-event-key-archive__header {
    width: 100%;
    margin: 0 0 44px;
    text-align: center;
}

.xr-event-key-archive__title {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    font-weight: 800;
    color: #00B1A5;
    text-align: center;
}

.xr-event-key-archive__intro {
    margin: 14px auto 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.5;
    color: #8a8a8a;
    text-align: center;
}

.xr-event-key-archive__empty {
    font-size: 18px;
    color: #3E3A35;
}

/* =========================================================
   YEARS
   ========================================================= */

.xr-event-key-years {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

.xr-event-key-year {
    width: 100%;
    padding-top: 6px;
}

.xr-event-key-year__header {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #B5B5B5;
}

.xr-event-key-year__title {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
    font-weight: 800;
    color: #EF3B2D;
}

/* =========================================================
   AWARDS
   ========================================================= */

.xr-event-key-year__awards {
    margin: 0 0 26px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(239, 59, 45, 0.20);
    border-radius: 18px;
    background: rgba(239, 59, 45, 0.03);
}

.xr-event-key-year__awards-head {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #EF3B2D;
}

.xr-event-key-awards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: start;
}

.xr-event-key-award-poster {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
}

.xr-event-key-award-poster__image {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #f6f6f6;
    text-decoration: none;
    border-radius: 10px;
}

.xr-event-key-award-poster__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xr-event-key-award-poster__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #f3f3f3 url("/wp-content/uploads/xrmust-logo-grey.svg") no-repeat center;
    background-size: 58% auto;
    opacity: 0.45;
}

.xr-event-key-award-poster__label {
    margin-top: 8px;
    text-align: center;
}

.xr-event-key-award-poster__work {
    font-weight: 700;
    line-height: 1.2;
    color: #EF3B2D;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xr-event-key-award-poster__award {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.3;
    color: #8a8a8a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   OTHER EVENTS
   ========================================================= */

.xr-event-key-year__events {
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.xr-event-key-row {
    display: block;
    margin: 0;
    padding: 14px 14px 12px;
    border: 1px solid #eee;
    background: #fff;
    box-sizing: border-box;
}

.xr-event-key-row__content {
    min-width: 0;
}

.xr-event-key-row__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: #3E3A35;
}

.xr-event-key-row__title a {
    color: inherit;
    text-decoration: none;
}

.xr-event-key-row__title a:hover {
    text-decoration: underline;
    color: inherit;
}

.xr-event-key-row__categories {
    margin-top: 6px;
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.95em;
    line-height: 1.35;
    color: #3E3A35;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    body.tax-event-key .xr-event-key-archive__inner {
        width: min(1280px, 88vw);
    }

    .xr-event-key-awards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 767px) {
    body.tax-event-key .xr-event-key-shell {
        padding: 0 16px 56px;
    }

    body.tax-event-key .xr-event-key-archive__inner {
        width: 100%;
    }

    .xr-event-key-archive__header {
        margin-bottom: 34px;
    }

    .xr-event-key-years {
        gap: 36px;
    }

    .xr-event-key-year__awards {
        padding: 16px;
        border-radius: 16px;
    }

    .xr-event-key-awards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .xr-event-key-year__events {
        grid-template-columns: 1fr;
    }

    .xr-event-key-row__categories {
        font-size: 13px;
    }
}

/* =========================================================
   LOCATION ARCHIVES — COUNTRY / CITY
   ========================================================= */

body.tax-country .xr-location-archive,
body.tax-city .xr-location-archive {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.tax-country .xr-location-archive__shell,
body.tax-city .xr-location-archive__shell {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px 80px;
    box-sizing: border-box;
}

body.tax-country .xr-location-archive__inner,
body.tax-city .xr-location-archive__inner {
    width: min(1280px, 80vw);
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

body.tax-country .site-main,
body.tax-country main.site-main,
body.tax-country .content-area,
body.tax-country .site-content,
body.tax-country .entry-content,
body.tax-country .post-content,
body.tax-country .elementor-location-archive,
body.tax-city .site-main,
body.tax-city main.site-main,
body.tax-city .content-area,
body.tax-city .site-content,
body.tax-city .entry-content,
body.tax-city .post-content,
body.tax-city .elementor-location-archive {
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
}

/* Header */

.xr-location-archive__header {
    width: 100%;
    margin: 0 0 34px;
    text-align: center;
}

.xr-location-archive__title {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    font-weight: 800;
    color: #00B1A5;
    text-align: center;
}

.xr-location-archive__intro {
    margin: 14px auto 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.5;
    color: #8a8a8a;
    text-align: center;
}

.xr-location-archive__empty {
    font-size: 18px;
    color: #3E3A35;
}

/* Stats */

.xr-location-archive__stats {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.xr-location-stat {
    min-width: 120px;
    padding: 12px 14px;
    border: 1px solid #eee;
    background: #fff;
    text-align: center;
}

.xr-location-stat__count {
    display: block;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    color: #EF3B2D;
}

.xr-location-stat__label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.2;
    color: #6f6f6f;
}

/* Filters */

.xr-location-filters {
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid #eee;
    background: #fff;
}

.xr-location-filters__row {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(180px, 1fr) minmax(160px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.xr-location-filters__field label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #3E3A35;
}

.xr-location-filters__field input,
.xr-location-filters__field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #fff;
    color: #3E3A35;
    box-sizing: border-box;
}

.xr-location-filters__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.xr-location-filters__actions button,
.xr-location-filters__actions a {
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.xr-location-filters__actions button {
    border: 1px solid #00B1A5;
    background: #00B1A5;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.xr-location-filters__actions a {
    border: 1px solid #ddd;
    background: #fff;
    color: #3E3A35;
}

/* Tabs */

.xr-location-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.xr-location-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #3E3A35;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.xr-location-tabs a.is-active {
    border-color: #00B1A5;
    color: #00B1A5;
    font-weight: 700;
}

/* Sections */

.xr-location-sections {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.xr-location-section__header {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #B5B5B5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.xr-location-section__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    font-weight: 800;
    color: #EF3B2D;
}

.xr-location-section__count {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 59, 45, 0.2);
    background: rgba(239, 59, 45, 0.04);
    color: #EF3B2D;
    font-size: 16px;
    font-weight: 800;
    box-sizing: border-box;
}

/* Cards grids */

.xr-location-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.xr-location-cards--visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xr-location-cards--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xr-location-cards--events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Cards */

.xr-location-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.xr-location-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f6f6f6;
    text-decoration: none;
    overflow: hidden;
}

.xr-location-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xr-location-card__media--placeholder {
    background: #f3f3f3 url("/wp-content/uploads/xrmust-logo-grey.svg") no-repeat center;
    background-size: 58% auto;
    opacity: 0.5;
}

.xr-location-card__content {
    padding: 14px 14px 12px;
}

.xr-location-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #3E3A35;
}

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

.xr-location-card__title a:hover {
    text-decoration: underline;
}

.xr-location-card__meta {
    margin-top: 6px;
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.95em;
    line-height: 1.35;
    color: #3E3A35;
}

.xr-location-card__submeta {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: #8a8a8a;
}

.xr-location-card__year {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #00B1A5;
}

/* Event cards a bit simpler */

.xr-location-card--events .xr-location-card__content {
    padding: 14px 14px 12px;
}

.xr-location-card--events .xr-location-card__title {
    font-size: 16px;
}

.xr-location-card--events .xr-location-card__year {
    margin-top: 6px;
}

/* Responsive */

@media (max-width: 1024px) {

    body.tax-country .xr-location-archive__inner,
    body.tax-city .xr-location-archive__inner {
        width: min(1280px, 88vw);
    }

    .xr-location-filters__row {
        grid-template-columns: 1fr 1fr;
    }

    .xr-location-cards--visual {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    body.tax-country .xr-location-archive__shell,
    body.tax-city .xr-location-archive__shell {
        padding: 0 16px 56px;
    }

    body.tax-country .xr-location-archive__inner,
    body.tax-city .xr-location-archive__inner {
        width: 100%;
    }

    .xr-location-archive__header {
        margin-bottom: 28px;
    }

    .xr-location-filters {
        padding: 14px;
    }

    .xr-location-filters__row {
        grid-template-columns: 1fr;
    }

    .xr-location-filters__actions {
        flex-wrap: wrap;
    }

    .xr-location-cards,
    .xr-location-cards--visual,
    .xr-location-cards--compact,
    .xr-location-cards--events {
        grid-template-columns: 1fr;
    }

    .xr-location-section__header {
        align-items: flex-start;
    }

    .xr-location-card__title {
        font-size: 16px;
    }
}

/* =========================================================
   LOCATION ARCHIVES — COMPACT LIST MODE
   Ne modifie pas le reste
   ========================================================= */

.xr-location-cards,
.xr-location-cards--visual,
.xr-location-cards--compact,
.xr-location-cards--events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.xr-location-card {
    display: block;
    min-height: 0;
}

.xr-location-card__media,
.xr-location-card__media--placeholder {
    display: none !important;
}

.xr-location-card__content {
    padding: 14px 14px 12px;
}

.xr-location-card__title {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.xr-location-card__meta {
    margin-top: 6px;
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.95em;
    line-height: 1.35;
    color: #3E3A35;
}

.xr-location-card__submeta {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
    color: #8a8a8a;
}

.xr-location-card__year {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #00B1A5;
}

@media (max-width: 767px) {

    .xr-location-cards,
    .xr-location-cards--visual,
    .xr-location-cards--compact,
    .xr-location-cards--events {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   LOCATION ARCHIVES — COMPACT LIST MODE
   Ne modifie pas le reste
   ========================================================= */

.xr-location-cards,
.xr-location-cards--visual,
.xr-location-cards--compact,
.xr-location-cards--events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.xr-location-card {
    display: block;
    min-height: 0;
}

.xr-location-card__media,
.xr-location-card__media--placeholder {
    display: none !important;
}

.xr-location-card__content {
    padding: 14px 14px 12px;
}

.xr-location-card__title {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.xr-location-card__meta {
    margin-top: 6px;
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.95em;
    line-height: 1.35;
    color: #3E3A35;
}

.xr-location-card__submeta {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
    color: #8a8a8a;
}

.xr-location-card__year {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #00B1A5;
}

@media (max-width: 767px) {

    .xr-location-cards,
    .xr-location-cards--visual,
    .xr-location-cards--compact,
    .xr-location-cards--events {
        grid-template-columns: 1fr;
    }
}

.xr-location-section__footer {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.xr-location-section__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #00B1A5;
    color: #00B1A5;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
}

.xr-location-section__more:hover {
    background: rgba(0, 177, 165, 0.06);
}

/* =========================================================
   XRDB LOCATION ENGINE — LOADER
   ========================================================= */

.xr-location-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility .2s ease;
}

.xr-location-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.xr-location-loader__inner {
    padding: 16px 20px;
    border: 1px solid #E8E8E8;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.xr-location-loader__text {
    color: #3E3A35;
    font-weight: 700;
}