/* ==========================================================================
   Event (مناسبة) — Visitors UI
   Header · Footer · Appointments page
   Built on the Zaarana design system tokens (navy / blue / gold).
   Logical properties everywhere so RTL and LTR mirror without extra rules.
   ========================================================================== */

:root {
    /* Colour */
    --ev-blue-50: #EEF3FB;
    --ev-blue-100: #DCE6F6;
    --ev-blue-500: #4473C5;
    --ev-blue-600: #2F5DB3;
    --ev-blue-700: #244A93;
    --ev-gold-50: #FFF6DB;
    --ev-gold-300: #F6D46B;
    --ev-gold-500: #E8AE0C;
    --ev-gold-700: #8A6400;
    --ev-navy-950: #081430;
    --ev-navy-900: #0E1E3F;
    --ev-navy-800: #172B55;
    --ev-navy-700: #22396A;
    --ev-slate-50: #F4F6FA;
    --ev-slate-100: #EBEFF5;
    --ev-slate-200: #D9E0EC;
    --ev-slate-300: #C3CDDE;
    --ev-slate-500: #5A6782;
    --ev-slate-700: #33405C;
    --ev-white: #FFFFFF;
    --ev-on-navy: #F3F6FC;
    --ev-on-navy-muted: #A9B6D0;
    --ev-danger: #C2362F;
    --ev-danger-50: #FCEDEC;
    --ev-success: #1FAF5A;

    /* Type */
    --ev-font-display: "Readex Pro", "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
    --ev-font-text: "IBM Plex Sans Arabic", "Readex Pro", "Cairo", system-ui, sans-serif;

    /* Shape & depth */
    --ev-r-xs: 6px;
    --ev-r-sm: 10px;
    --ev-r-md: 16px;
    --ev-r-lg: 24px;
    --ev-shadow-1: 0 1px 2px rgba(14, 30, 63, .06), 0 1px 1px rgba(14, 30, 63, .04);
    --ev-shadow-2: 0 8px 24px -8px rgba(14, 30, 63, .14);
    --ev-shadow-3: 0 30px 60px -20px rgba(8, 20, 48, .45);
    --ev-halo: 0 0 0 4px rgba(47, 93, 179, .16);

    /* Layout */
    --ev-header-h: 3.75rem;
    --ev-container: 1200px;
    --ev-gutter: 16px;
}

@media (min-width: 768px) {
    :root { --ev-gutter: 24px; }
}

@media (min-width: 1024px) {
    :root {
        --ev-header-h: 4.5rem;
        --ev-gutter: 32px;
    }
}

/* Shell offsets follow the header height (was hard-coded to 3.75rem). */
html body.visitors-shell,
html body.visitors-shell:not(.is-home),
html body.visitors-shell.is-home {
    padding-top: var(--ev-header-h) !important;
}

html body.visitors-shell.home-page-layout .visitors-page-shell {
    min-height: calc(100dvh - var(--ev-header-h));
}

html body #contactModal,
html body .appointment-details-modal-shell {
    top: var(--ev-header-h) !important;
}

html body #contactModalContent {
    max-height: calc(100dvh - var(--ev-header-h) - 2rem) !important;
}

.ev-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ev-container {
    width: 100%;
    max-width: var(--ev-container);
    margin-inline: auto;
    padding-inline: var(--ev-gutter);
    box-sizing: border-box;
}

.ev-header :focus-visible,
.ev-footer :focus-visible,
.ev-appt :focus-visible,
.ev-modal :focus-visible {
    outline: 3px solid var(--ev-gold-500);
    outline-offset: 3px;
}

.ev-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ev-icon--sm { width: 16px; height: 16px; }
.ev-icon--lg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding-inline: 16px;
    border-radius: var(--ev-r-sm);
    border: 1px solid transparent;
    font-family: var(--ev-font-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.ev-btn--primary {
    background: var(--ev-blue-600);
    color: var(--ev-white) !important;
}

.ev-btn--primary:hover { background: var(--ev-blue-700); }

.ev-btn--outline {
    background: var(--ev-white);
    border-color: var(--ev-slate-300);
    color: var(--ev-slate-700) !important;
}

.ev-btn--outline:hover {
    border-color: var(--ev-blue-600);
    color: var(--ev-blue-600) !important;
}

.ev-btn--disabled,
.ev-btn--disabled:hover {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    border-color: var(--ev-slate-300);
    color: var(--ev-slate-500) !important;
}

.ev-btn--icon {
    width: 44px;
    padding: 0;
}

.ev-btn--sm {
    height: 40px;
    padding-inline: 12px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

header.premium-home-header.ev-header {
    height: var(--ev-header-h);
    background: var(--ev-white) !important;
    border-bottom: 1px solid var(--ev-slate-200);
    box-shadow: none;
    font-family: var(--ev-font-text);
    transition: box-shadow .2s ease;
}

header.premium-home-header.ev-header.is-scrolled {
    box-shadow: 0 6px 20px -12px rgba(14, 30, 63, .25);
}

.ev-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ev-header__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    border-radius: var(--ev-r-xs);
}

.ev-header__brand img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.ev-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ev-header__actions .ev-menu-anchor { position: relative; }

.ev-header .ev-btn { height: 40px; }
.ev-header .ev-btn--icon { width: 40px; }

.ev-header__home {
    background: var(--ev-white);
    border-color: var(--ev-slate-200);
    color: var(--ev-slate-700) !important;
}

.ev-header__home:hover {
    background: var(--ev-slate-50);
    border-color: var(--ev-slate-300);
    color: var(--ev-navy-900) !important;
}

.ev-login-btn__label,
.ev-login-btn__chevron { display: none; }

.ev-login-btn { width: 40px; padding: 0; }

.ev-login-btn[aria-expanded="true"] .ev-login-btn__chevron { transform: rotate(180deg); }
.ev-login-btn__chevron { transition: transform .2s ease; }

@media (min-width: 640px) {
    .ev-login-btn { width: auto; padding-inline: 16px; }
    .ev-login-btn__label,
    .ev-login-btn__chevron { display: inline-block; }
}

@media (min-width: 1024px) {
    .ev-header__brand img { height: 44px; max-width: 190px; }
    .ev-header .ev-btn { height: 44px; }
    .ev-header .ev-btn--icon { width: 44px; }
    .ev-header__actions { gap: 10px; }
}

/* Login menu (keeps #dropdownMenu6 + the hidden/opacity/scale classes the layout script toggles) */
.ev-menu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(18rem, calc(100vw - var(--ev-gutter) * 2));
    background: var(--ev-white);
    border: 1px solid var(--ev-slate-200);
    border-radius: var(--ev-r-md);
    box-shadow: var(--ev-shadow-3);
    padding: 8px;
    z-index: 60;
    transform-origin: top;
    transition: opacity .15s ease, transform .15s ease;
    font-family: var(--ev-font-text);
}


.ev-menu__title {
    margin: 0;
    padding: 8px 12px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ev-slate-500);
    border-bottom: 1px solid var(--ev-slate-100);
}

.ev-menu__list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.ev-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--ev-r-sm);
    color: var(--ev-navy-900) !important;
    text-decoration: none !important;
    transition: background-color .15s ease;
}

.ev-menu__item:hover { background: var(--ev-slate-50); }

.ev-menu__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ev-r-sm);
    background: var(--ev-blue-50);
    color: var(--ev-blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ev-menu__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ev-menu__name { font-size: 14px; font-weight: 600; }
.ev-menu__desc { font-size: 13px; color: var(--ev-slate-500); }

.ev-badge-free {
    font-size: 12px;
    font-weight: 600;
    color: var(--ev-gold-700);
    background: var(--ev-gold-50);
    border-radius: 999px;
    padding: 4px 10px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer.visitors-site-footer.ev-footer {
    background: var(--ev-navy-900) !important;
    border-top: 0 !important;
    box-shadow: none !important;
    color: var(--ev-on-navy);
    font-family: var(--ev-font-text);
}

.ev-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 36px 28px;
    border-bottom: 1px solid var(--ev-navy-700);
}

@media (min-width: 768px) {
    .ev-footer__top {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr);
        gap: 32px;
        padding-block: 48px 36px;
    }
    .ev-footer__top--with-certs {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1fr);
    }
}

.ev-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.ev-footer__logo-tile {
    display: inline-flex;
    align-items: center;
    background: var(--ev-white);
    border-radius: var(--ev-r-sm);
    padding: 8px 14px;
}

.ev-footer__logo-tile img {
    display: block;
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.ev-footer__about {
    margin: 0;
    max-width: 22rem;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ev-on-navy-muted);
}

.ev-footer__heading {
    margin: 0 0 12px;
    font-family: var(--ev-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--ev-on-navy);
}

.ev-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ev-footer__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ev-on-navy-muted) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color .15s ease;
}

.ev-footer__link:hover { color: var(--ev-on-navy) !important; }

.ev-footer__chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ev-footer__pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 36px;
    border-radius: var(--ev-r-xs);
    background: var(--ev-white);
}

.ev-footer__pay img {
    display: block;
    max-width: 44px;
    max-height: 20px;
    width: auto;
    height: auto;
}

.ev-footer__cert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--ev-r-sm);
    background: var(--ev-white);
    padding: 6px;
    box-sizing: border-box;
    transition: box-shadow .15s ease, transform .15s ease;
}

a.ev-footer__cert:hover { box-shadow: 0 0 0 3px var(--ev-gold-500); }

.ev-footer__cert img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ev-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding-block: 18px 24px;
    font-size: 13px;
    color: var(--ev-on-navy-muted);
}

/* --------------------------------------------------------------------------
   Appointments page
   -------------------------------------------------------------------------- */

.ev-appt {
    font-family: var(--ev-font-text);
    color: var(--ev-navy-900);
    background: var(--ev-slate-50);
    padding-bottom: 56px;
}

@media (min-width: 1024px) {
    .ev-appt { padding-bottom: 80px; }
}

/* Hero */
.ev-hero {
    position: relative;
    background: var(--ev-navy-900);
    color: var(--ev-on-navy);
    overflow: hidden;
    isolation: isolate;
}

.ev-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}

.ev-hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-block: 28px 84px;
}

@media (min-width: 1024px) {
    .ev-hero__inner { padding-block: 56px 120px; gap: 32px; }
}

.ev-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 640px;
    min-width: 0;
}

.ev-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--ev-on-navy-muted);
}

.ev-crumbs a {
    color: var(--ev-on-navy-muted) !important;
    text-decoration: none !important;
}

.ev-crumbs a:hover { color: var(--ev-on-navy) !important; }
.ev-crumbs [aria-current] { color: var(--ev-on-navy); }

.ev-hero__title {
    margin: 0;
    font-family: var(--ev-font-display);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ev-on-navy);
}

.ev-hero__lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--ev-on-navy-muted);
}

@media (min-width: 768px) {
    .ev-hero__title { font-size: 36px; }
    .ev-hero__lead { font-size: 17px; }
}

@media (min-width: 1024px) {
    .ev-hero__title { font-size: 44px; }
    .ev-hero__lead { font-size: 18px; }
}

.ev-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .ev-stats {
        display: flex;
        width: auto;
        gap: 12px;
    }
}

.ev-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 14px 16px;
    background: var(--ev-navy-800);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--ev-r-md);
    text-align: center;
}

@media (min-width: 768px) {
    .ev-stat { padding: 16px 20px; min-width: 150px; }
}

.ev-stat__value {
    font-family: var(--ev-font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: var(--ev-gold-500);
}

.ev-stat__value--text {
    font-size: 16px;
    line-height: 1.35;
    color: var(--ev-on-navy);
}

@media (min-width: 768px) {
    .ev-stat__value { font-size: 32px; }
    .ev-stat__value--text { font-size: 19px; }
}

.ev-stat__label {
    font-size: 12px;
    line-height: 1.5;
    color: var(--ev-on-navy-muted);
}

@media (min-width: 768px) {
    .ev-stat__label { font-size: 13px; }
}

/* Filters */
.ev-filters {
    position: relative;
    z-index: 5;
    margin-top: -60px;
}

@media (min-width: 1024px) {
    .ev-filters { margin-top: -72px; }
}

.ev-filters__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    grid-template-areas:
        "search reset"
        "selects selects";
    gap: 10px;
    padding: 14px;
    background: var(--ev-white);
    border: 1px solid var(--ev-slate-200);
    border-radius: 20px;
    box-shadow: var(--ev-shadow-2);
}

.ev-field--search { grid-area: search; }
.ev-field--reset { grid-area: reset; align-self: end; }

.ev-filters__selects {
    grid-area: selects;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 1024px) {
    .ev-filters__card {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas: none;
        align-items: end;
        gap: 16px;
        padding: 24px;
        border-radius: var(--ev-r-lg);
    }
    .ev-field--search,
    .ev-field--reset { grid-area: auto; }
    .ev-filters__selects { display: contents; }
}

.ev-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ev-field__label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ev-slate-700);
}

@media (max-width: 1023px) {
    .ev-field__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

.ev-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding-inline: 14px;
    background: var(--ev-slate-50);
    border: 1px solid var(--ev-slate-200);
    border-radius: var(--ev-r-sm);
    color: var(--ev-slate-500);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ev-search:focus-within {
    background: var(--ev-white);
    border-color: var(--ev-blue-600);
    box-shadow: var(--ev-halo);
}

.ev-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-family: var(--ev-font-text);
    font-size: 15px;
    font-weight: 500;
    color: var(--ev-navy-900);
}

.ev-search input::placeholder { color: #7A869E; font-weight: 400; }

.ev-reset-btn {
    width: 48px;
    height: 48px;
    padding: 0;
}

.ev-reset-btn__label { display: none; }

@media (min-width: 1024px) {
    .ev-reset-btn { width: auto; padding-inline: 18px; }
    .ev-reset-btn__label { display: inline; }
}

/* Select2 inside the filter card */
.ev-filters .location-filter-select2-wrap .select2-container {
    font-family: var(--ev-font-text);
    font-size: 15px !important;
    font-weight: 500 !important;
}

.ev-filters .location-filter-select2-wrap .select2-container--default .select2-selection--single {
    min-height: 48px !important;
    height: 48px !important;
    background: var(--ev-slate-50) !important;
    border: 1px solid var(--ev-slate-200) !important;
    border-radius: var(--ev-r-sm) !important;
    padding-block: 0 !important;
    padding-inline: 14px 40px !important;
    box-shadow: none !important;
}

.ev-filters .location-filter-select2-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--ev-navy-900) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 46px !important;
}

.ev-filters .location-filter-select2-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--ev-slate-500) !important;
}

.ev-filters .location-filter-select2-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    width: 16px !important;
    right: auto !important;
    left: auto !important;
    inset-inline-end: 14px !important;
}

.ev-filters .location-filter-select2-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--ev-slate-500) transparent transparent transparent !important;
}

.ev-filters .location-filter-select2-wrap .select2-container--default.location-filter-has-value .select2-selection--single {
    background: var(--ev-blue-50) !important;
    border-color: var(--ev-blue-100) !important;
}

.ev-filters .location-filter-select2-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.ev-filters .location-filter-select2-wrap .select2-container--default.select2-container--open .select2-selection--single {
    background: var(--ev-white) !important;
    border-color: var(--ev-blue-600) !important;
    box-shadow: var(--ev-halo) !important;
    border-radius: var(--ev-r-sm) !important;
}

.ev-filters .location-filter-select2-wrap .select2-container .select2-selection--single .select2-search--inline {
    padding-inline: 14px 40px !important;
}

.ev-filters .location-filter-select2-wrap .select2-container .select2-selection--single .select2-search--inline .select2-search__field {
    font-family: var(--ev-font-text);
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--ev-navy-900) !important;
}

.ev-filters .location-filter-select2-wrap .select2-dropdown {
    margin-top: 6px !important;
    border: 1px solid var(--ev-slate-200) !important;
    border-radius: var(--ev-r-sm) !important;
    box-shadow: var(--ev-shadow-2) !important;
    overflow: hidden;
}

.ev-filters .location-filter-select2-wrap .select2-results > .select2-results__options {
    padding: 6px !important;
    max-height: 18rem !important;
}

.ev-filters .location-filter-select2-wrap .select2-results__option {
    border-radius: var(--ev-r-xs) !important;
    padding: 10px 12px !important;
    font-family: var(--ev-font-text);
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ev-slate-700) !important;
}

.ev-filters .location-filter-select2-wrap .select2-results__option.select2-results__option--highlighted,
.ev-filters .location-filter-select2-wrap .select2-results__option.select2-results__option--highlighted[aria-selected] {
    background-color: var(--ev-blue-50) !important;
    color: var(--ev-blue-700) !important;
}

.ev-filters .location-filter-select2-wrap .select2-results__option.select2-results__option--selected {
    background-color: var(--ev-blue-100) !important;
    color: var(--ev-blue-700) !important;
    font-weight: 600 !important;
}

/* Results */
.ev-results { padding-top: 28px; }

@media (min-width: 1024px) {
    .ev-results { padding-top: 40px; }
}

.ev-results__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 14px;
}

.ev-results__title {
    margin: 0;
    font-family: var(--ev-font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ev-navy-900);
}

@media (min-width: 1024px) {
    .ev-results__title { font-size: 24px; }
}

.ev-results__meta {
    font-size: 14px;
    color: var(--ev-slate-500);
}

/* Table (desktop) */
.ev-table-card {
    background: var(--ev-white);
    border: 1px solid var(--ev-slate-200);
    border-radius: var(--ev-r-md);
    overflow: hidden;
}

.ev-table-scroll { overflow-x: auto; }

.ev-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 15px;
    color: var(--ev-navy-900);
}

.ev-table thead th {
    padding: 14px 20px;
    background: var(--ev-slate-50);
    border-bottom: 1px solid var(--ev-slate-200);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ev-slate-500);
    text-align: start;
    white-space: nowrap;
}

.ev-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ev-slate-100);
    vertical-align: middle;
    text-align: start;
    line-height: 1.5;
}

.ev-table tbody tr.appointments-data-row { transition: background-color .15s ease; }
.ev-table tbody tr.appointments-data-row:hover { background: #F7F9FC; }
.ev-table tbody tr:last-child td { border-bottom: 0; }

.ev-date {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ev-date__tile {
    width: 56px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--ev-r-sm);
    background: var(--ev-blue-50);
    color: var(--ev-blue-600);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ev-date__day {
    font-family: var(--ev-font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.ev-date__month {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    padding-inline: 2px;
}

.ev-date__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ev-date__main { font-weight: 600; white-space: nowrap; }
.ev-date__sub { font-size: 13px; color: var(--ev-slate-500); white-space: nowrap; }

.ev-owner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.ev-owner__name {
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ev-owner__meta,
.ev-owner__group { display: none; }

.ev-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ev-chip {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--ev-r-xs);
    padding: 2px 8px;
    white-space: nowrap;
}

.ev-chip--type { background: var(--ev-blue-50); color: var(--ev-blue-700); }
.ev-chip--countdown { background: var(--ev-gold-50); color: var(--ev-gold-700); }
.ev-chip--soon { background: var(--ev-danger-50); color: var(--ev-danger); }
.ev-chip--muted { background: var(--ev-slate-100); color: var(--ev-slate-700); }

.ev-group-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ev-blue-600) !important;
    font-weight: 600;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.ev-group-link__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.ev-group-link:hover {
    color: var(--ev-blue-700) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.ev-group-text { color: var(--ev-slate-700); overflow-wrap: anywhere; }

.ev-venue {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.ev-venue__icon { display: none; color: var(--ev-blue-600); margin-top: 2px; }

.ev-venue__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ev-venue__hall { font-weight: 500; overflow-wrap: anywhere; }
.ev-venue__city {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ev-slate-600);
}

.ev-invite-btn {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--ev-slate-200);
    border-radius: var(--ev-r-sm);
    background: var(--ev-slate-100);
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ev-invite-btn:hover {
    border-color: var(--ev-blue-600);
    box-shadow: var(--ev-halo);
}

.ev-invite-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ev-muted { font-size: 13px; color: var(--ev-slate-500); }

.ev-td-actions { display: none; }

/* Empty / no-results */
.ev-empty {
    margin: 0;
    padding: 48px 24px;
    text-align: center;
    font-size: 15px;
    color: var(--ev-slate-500);
}

.ev-empty strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--ev-font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ev-navy-900);
}

#appointmentsNoFilterResults.ev-empty {
    margin-top: 12px;
    background: var(--ev-white);
    border: 1px dashed var(--ev-slate-300);
    border-radius: var(--ev-r-md);
}

#appointmentsNoFilterResults.hidden { display: none !important; }

/* Pagination (rendered by appointments-pagination.js) */
.ev-appt .appointments-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.ev-appt .appointments-pagination.is-hidden,
.ev-appt .appointments-pagination[hidden] { display: none !important; }

.ev-appt .appointments-pagination-btn {
    min-width: 44px;
    height: 44px;
    padding-inline: 12px;
    border: 1px solid var(--ev-slate-200);
    border-radius: var(--ev-r-sm);
    background: var(--ev-white);
    font-family: var(--ev-font-text);
    font-size: 14px;
    font-weight: 600;
    color: var(--ev-slate-700);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.ev-appt .appointments-pagination-btn:hover:not(:disabled):not(.is-active) {
    border-color: var(--ev-blue-600);
    color: var(--ev-blue-600);
}

.ev-appt .appointments-pagination-btn.is-active {
    background: var(--ev-blue-600);
    border-color: var(--ev-blue-600);
    color: var(--ev-white);
}

.ev-appt .appointments-pagination-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.ev-appt .appointments-pagination-ellipsis {
    padding-inline: 4px;
    color: var(--ev-slate-500);
}

/* ----- Mobile: rows become cards ----------------------------------------- */
@media (max-width: 767px) {
    .ev-table-card {
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .ev-table-scroll { overflow: visible; }

    .ev-table,
    .ev-table tbody {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .ev-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .ev-table tbody tr.appointments-data-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "date owner"
            "venue venue"
            "actions actions";
        column-gap: 12px;
        row-gap: 14px;
        margin-bottom: 12px;
        padding: 16px;
        background: var(--ev-white);
        border: 1px solid var(--ev-slate-200);
        border-radius: var(--ev-r-md);
        box-shadow: var(--ev-shadow-1);
    }

    .ev-table tbody tr.appointments-data-row:hover { background: var(--ev-white); }

    .ev-table tbody tr.ev-empty-row {
        display: block;
        background: var(--ev-white);
        border: 1px solid var(--ev-slate-200);
        border-radius: var(--ev-r-md);
    }

    .ev-table tbody td {
        display: block;
        padding: 0;
        border: 0 !important;
    }

    .ev-table tbody tr.ev-empty-row td { padding: 0; }

    .ev-td-date { grid-area: date; }
    .ev-td-owner { grid-area: owner; align-self: center; }
    .ev-td-venue {
        grid-area: venue;
        padding-top: 14px !important;
        border-top: 1px solid var(--ev-slate-100) !important;
    }
    .ev-td-actions {
        grid-area: actions;
        display: flex !important;
        gap: 8px;
    }

    .ev-td-group,
    .ev-td-invite,
    .ev-td-map { display: none !important; }

    .ev-date__text { display: none; }

    .ev-date__tile {
        width: 52px;
        min-height: 54px;
        height: auto;
        padding-block: 6px;
    }

    .ev-owner { gap: 4px; }
    .ev-owner__name { font-size: 16px; }
    .ev-owner__meta {
        display: block;
        font-size: 13px;
        color: var(--ev-slate-500);
    }
    .ev-owner__group {
        display: block;
        font-size: 13px;
        margin-top: 6px;
    }
    .ev-owner .ev-chips { margin-top: 4px; }

    .ev-venue__icon { display: block; }
    .ev-venue__hall { font-size: 14px; }
    .ev-venue__city { font-size: 15px; }

    .ev-td-actions .ev-btn {
        flex: 1 1 0;
        min-width: 0;
        height: 44px;
        padding-inline: 10px;
    }
}

/* --------------------------------------------------------------------------
   Appointment details modal (mobile "details" button)
   -------------------------------------------------------------------------- */

.ev-modal.appointment-details-modal-shell {
    background: rgba(8, 20, 48, .6);
    padding: 16px;
    font-family: var(--ev-font-text);
}

.ev-modal .ev-modal__panel {
    width: 100%;
    max-width: 28rem;
    margin-block: auto;
    background: var(--ev-white);
    border-radius: var(--ev-r-lg);
    box-shadow: var(--ev-shadow-3);
    overflow: hidden;
    color: var(--ev-navy-900);
}

.ev-modal .ev-modal__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 14px 20px;
    border-bottom: 1px solid var(--ev-slate-100);
}

[dir="rtl"] .ev-modal .ev-modal__header { padding: 16px 20px 14px 16px; }

.ev-modal .ev-modal__title {
    margin: 0;
    flex: 1;
    font-family: var(--ev-font-display);
    font-size: 18px;
    font-weight: 600;
}

.ev-modal .ev-modal__close {
    width: 40px;
    height: 40px;
    border-radius: var(--ev-r-sm);
    border: 1px solid var(--ev-slate-200);
    background: var(--ev-white);
    color: var(--ev-slate-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ev-modal .ev-modal__close:hover { background: var(--ev-slate-50); }

.ev-modal .ev-modal__body { padding: 6px 20px 12px; }

.ev-modal .appointment-details-row {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-block: 12px;
    border-bottom: 1px solid var(--ev-slate-100);
}

.ev-modal .appointment-details-row:last-child { border-bottom: 0; }

.ev-modal .appointment-details-label {
    font-size: 13px;
    color: var(--ev-slate-500);
}

.ev-modal .appointment-details-value {
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ev-modal .appointment-details-row--owner {
    margin-block: 2px 10px;
    padding: 12px 14px;
    border: 1px solid var(--ev-blue-100) !important;
    border-radius: var(--ev-r-md);
    background: linear-gradient(180deg, var(--ev-blue-50) 0%, var(--ev-white) 100%);
    box-shadow: 0 1px 0 rgba(14, 30, 63, 0.04);
}

.ev-modal .appointment-details-row--owner .appointment-details-label {
    color: var(--ev-blue-700);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ev-modal .appointment-details-row--owner .appointment-details-value {
    font-family: var(--ev-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--ev-navy-900);
    line-height: 1.35;
}

.ev-modal .appointment-details-place-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    padding-block: 10px 4px;
    margin-top: 4px;
    border-top: 1px solid var(--ev-slate-100);
}

.ev-modal .appointment-details-row--place {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border-bottom: 0;
}

.ev-modal .appointment-details-place-row .appointment-details-value {
    font-size: 14px;
    font-weight: 600;
}

.ev-modal .appointment-details-value a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ev-r-sm);
    background: var(--ev-blue-50) !important;
    color: var(--ev-blue-600) !important;
    padding: 0 !important;
}

.ev-modal .visitors-appointment-thumb-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid var(--ev-slate-200);
    border-radius: var(--ev-r-sm);
    overflow: hidden;
    background: var(--ev-slate-100);
    cursor: zoom-in;
}

.ev-modal .visitors-appointment-thumb-btn.hidden,
.ev-modal #appointmentDetailImageEmpty.hidden { display: none !important; }

.ev-modal .visitors-appointment-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ev-modal .appointment-details-modal-footer {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--ev-slate-100);
}

.ev-modal .appointment-details-modal-footer.hidden { display: none !important; }

.ev-modal #btnAppointmentGroupDetails:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: var(--ev-r-sm);
    background: var(--ev-blue-600);
    color: var(--ev-white) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

.ev-modal #btnAppointmentGroupDetails:not(.hidden):hover { background: var(--ev-blue-700); }
.ev-modal #btnAppointmentGroupDetails.hidden { display: none !important; }

.visitors-appointment-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

.visitors-appointment-status-badge--active { background: #E7F7EE; color: #12733A; }
.visitors-appointment-status-badge--finished { background: var(--ev-slate-100); color: var(--ev-slate-700); }
.visitors-appointment-status-badge--cancelled { background: var(--ev-danger-50); color: var(--ev-danger); }

.appointment-details-hero {
    background: var(--ev-slate-50);
    border-bottom: 1px solid var(--ev-slate-100);
    padding: 10px 12px 12px;
}

.appointment-details-hero.hidden { display: none !important; }

.appointment-details-hero__btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--ev-r-sm);
    overflow: hidden;
    background: var(--ev-slate-100);
    cursor: zoom-in;
}

.appointment-details-hero__btn.hidden { display: none !important; }

.appointment-details-hero__img {
    display: block;
    width: 100%;
    max-height: min(36vh, 320px);
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* ----- Mobile shell density (header → footer) -------------------------------- */
@media (max-width: 767px) {
    :root {
        --ev-header-h: 3rem;
        --ev-gutter: 12px;
    }

    .ev-btn {
        height: 36px;
        padding-inline: 12px;
        font-size: 13px;
        gap: 6px;
    }

    .ev-btn--icon { width: 36px; }

    .ev-header .ev-btn,
    .ev-header .ev-btn--icon {
        height: 34px;
        width: 34px;
    }

    .ev-login-btn { width: 34px; }

    .ev-header__brand img {
        height: 26px;
        max-width: 118px;
    }

    .ev-header__actions { gap: 6px; }

    html body #dropdownMenu6.ev-menu {
        position: fixed !important;
        top: calc(var(--ev-header-h) + 8px) !important;
        left: var(--ev-gutter) !important;
        right: var(--ev-gutter) !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        inset-inline-end: auto !important;
        transform-origin: top center;
        z-index: 200001 !important;
        box-sizing: border-box;
    }

    html body #headerLanguageDropdown {
        position: fixed !important;
        top: calc(var(--ev-header-h) + 8px) !important;
        left: var(--ev-gutter) !important;
        right: var(--ev-gutter) !important;
        width: calc(100vw - (var(--ev-gutter) * 2)) !important;
        max-width: 16rem !important;
        margin: 0 auto !important;
        z-index: 200001 !important;
        box-sizing: border-box;
    }

    .ev-menu {
        padding: 6px;
        border-radius: var(--ev-r-sm);
        box-shadow: var(--ev-shadow-2);
    }

    .ev-menu__title {
        white-space: normal;
        text-align: start;
        line-height: 1.45;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .ev-menu__name,
    .ev-menu__desc {
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .ev-menu__title {
        padding: 6px 8px 8px;
        font-size: 12px;
    }

    .ev-menu__item {
        gap: 8px;
        padding: 8px;
    }

    .ev-menu__icon {
        width: 32px;
        height: 32px;
    }

    .ev-menu__icon .ev-icon { width: 18px; height: 18px; }

    .ev-menu__name { font-size: 13px; }
    .ev-menu__desc { font-size: 11px; line-height: 1.4; }

    .ev-badge-free {
        font-size: 10px;
        padding: 2px 7px;
    }

    .ev-footer__top {
        gap: 14px;
        padding-block: 18px 14px;
    }

    .ev-footer__about {
        display: none !important;
    }

    .ev-footer__top nav > .ev-footer__heading {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        padding: 0;
        margin: 0;
    }

    .ev-footer__top nav {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .ev-footer__links {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px 26px;
    }

    .ev-footer__link {
        min-height: auto;
        padding-block: 2px;
    }

    .ev-footer__payments {
        display: none !important;
    }

    .ev-footer__brand {
        align-items: center;
        width: 100%;
    }

    .ev-footer__logo-tile { padding: 6px 10px; }

    .ev-footer__logo-tile img {
        height: 28px;
        max-width: 130px;
    }

    .ev-footer__about { font-size: 12px; line-height: 1.65; }
    .ev-footer__heading { font-size: 12px; margin-bottom: 8px; }
    .ev-footer__link { font-size: 13px; min-height: 30px; }
    .ev-footer__pay { width: 50px; height: 30px; }
    .ev-footer__cert { width: 48px; height: 48px; }
    .ev-footer__bottom {
        padding-block: 12px 16px;
        font-size: 11px;
    }

    .ev-hero__inner {
        gap: 14px;
        padding-block: 16px 52px;
    }

    .ev-hero__title { font-size: 22px; }
    .ev-hero__lead { font-size: 13px; line-height: 1.65; }
    .ev-crumbs { font-size: 11px; gap: 6px; }

    .ev-stats:has(> .ev-stat:only-child) {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .ev-stats:has(> .ev-stat:only-child) .ev-stat {
        width: min(100%, 240px);
    }

    .ev-stat {
        padding: 10px 10px;
        gap: 4px;
        border-radius: var(--ev-r-sm);
    }

    .ev-stat__value { font-size: 22px; }
    .ev-stat__value--text { font-size: 13px; }
    .ev-stat__label { font-size: 11px; }

    .ev-filters { margin-top: -44px; }

    .ev-filters__card {
        padding: 10px;
        gap: 8px;
        border-radius: 14px;
    }

    .ev-field__label { font-size: 12px; }
    .ev-search input,
    .ev-filters select.country-city-select:not(.select2-hidden-accessible) {
        height: 40px;
        font-size: 14px;
    }

    .ev-filters .location-filter-select2-wrap .select2-container--default .select2-selection--single {
        min-height: 40px !important;
        height: 40px !important;
        padding-inline: 10px 34px !important;
    }

    .ev-filters .location-filter-select2-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 13px !important;
        line-height: 38px !important;
        padding-inline-end: 4px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ev-results__title { font-size: 17px; }
    .ev-results__meta { font-size: 12px; }

    .ev-appt { padding-bottom: 40px; }

    .ev-table tbody tr.appointments-data-row {
        padding: 12px;
        column-gap: 10px;
        row-gap: 10px;
        margin-bottom: 10px;
        border-radius: var(--ev-r-sm);
    }

    .ev-owner__name { font-size: 14px; }
    .ev-td-actions .ev-btn { height: 38px; font-size: 12px; }

    .ev-modal.appointment-details-modal-shell {
        padding: 0 !important;
        align-items: flex-end;
    }

    .ev-modal.appointment-details-modal-shell .ev-modal__panel {
        max-width: 100%;
        width: 100%;
        margin: 0;
        max-height: calc(100dvh - var(--ev-header-h) - 4px);
        border-radius: var(--ev-r-lg) var(--ev-r-lg) 0 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .ev-modal.appointment-details-modal-shell .ev-modal__header {
        flex-shrink: 0;
        padding: 10px 12px;
        gap: 8px;
    }

    .ev-modal.appointment-details-modal-shell .ev-modal__title {
        font-size: 15px;
    }

    .ev-modal.appointment-details-modal-shell .ev-modal__close {
        width: 34px;
        height: 34px;
    }

    .ev-modal.appointment-details-modal-shell .ev-modal__body > .appointment-details-hero {
        grid-column: 1 / -1;
        padding: 0 0 8px;
        margin-bottom: 2px;
        background: transparent;
        border-bottom: 0;
    }

    .ev-modal.appointment-details-modal-shell .ev-modal__body > .appointment-details-hero .appointment-details-hero__img {
        max-height: min(42vh, 260px);
    }

    .ev-modal.appointment-details-modal-shell .ev-modal__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 4px 14px 14px;
        -webkit-overflow-scrolling: touch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        align-content: start;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding-block: 7px;
        border-bottom: 1px solid var(--ev-slate-100);
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-row--owner,
    .ev-modal.appointment-details-modal-shell .appointment-details-row--full,
    .ev-modal.appointment-details-modal-shell .appointment-details-place-row,
    .ev-modal.appointment-details-modal-shell #appointmentDetailImageRow,
    .ev-modal.appointment-details-modal-shell .ev-modal__body > .appointment-details-hero {
        grid-column: 1 / -1;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-place-row {
        gap: 8px;
        padding-block: 8px 2px;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-place-row .appointment-details-label {
        font-size: 10px;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-place-row .appointment-details-value {
        font-size: 13px;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-row.hidden {
        display: none !important;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-label {
        font-size: 11px;
        line-height: 1.35;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-value {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.45;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-row--owner {
        margin-block: 0 8px;
        padding: 10px 12px;
        gap: 4px;
        border-bottom: 1px solid var(--ev-blue-100) !important;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-row--owner .appointment-details-label {
        font-size: 11px;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-row--owner .appointment-details-value {
        font-size: 16px;
        font-weight: 700;
    }

    .ev-modal.appointment-details-modal-shell #appointmentDetailImageRow {
        display: none !important;
    }

    .ev-modal.appointment-details-modal-shell .appointment-details-modal-footer {
        flex-shrink: 0;
        padding: 10px 14px 14px;
    }

    .ev-modal.appointment-details-modal-shell #btnAppointmentGroupDetails:not(.hidden) {
        height: 42px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-header *,
    .ev-footer *,
    .ev-appt *,
    .ev-modal * { transition: none !important; }
}

/* Native selects before select2 takes over (avoids a flash of unstyled controls) */
.ev-filters select.country-city-select:not(.select2-hidden-accessible) {
    width: 100%;
    height: 48px;
    padding-inline: 14px;
    border: 1px solid var(--ev-slate-200);
    border-radius: var(--ev-r-sm);
    background-color: var(--ev-slate-50);
    font-family: var(--ev-font-text);
    font-size: 15px;
    font-weight: 500;
    color: var(--ev-navy-900);
}
