/**
 * FEPRAFO — Maisons médicales (design premium)
 *
 * Layout split-view : liste à gauche, carte sticky à droite.
 * Page détail style Template Corporate.
 * Préfixes : .feprafo-maisons-page / .feprafo-maison-page (containers)
 *            .fm-XXX (éléments internes)
 */

/* ================================================================== *
 *  CONTAINER GLOBAL
 * ================================================================== */
.feprafo-maisons-page,
.feprafo-maison-page {
    margin: 0;
    padding: 0;
    color: #1c1e21;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Force textes blancs dans le hero */
.feprafo-maisons-page .fm-hero,
.feprafo-maisons-page .fm-hero *,
.feprafo-maison-page .fm-single-hero,
.feprafo-maison-page .fm-single-hero * {
    color: white;
}

/* ================================================================== *
 *  HERO (taille alignée sur emplois)
 * ================================================================== */
.fm-hero {
    background: var(--fep-gradient-blue);
    padding: 90px 24px 130px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay bleu translucide quand une image de fond est définie */
.fm-hero.has-bg-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74,139,194,0.92) 0%, rgba(44,95,141,0.92) 100%);
    z-index: 0;
    pointer-events: none;
    top: 0;
    right: auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Cercles décoratifs uniquement sans image */
.fm-hero:not(.has-bg-image)::before {
    content: "";
    position: absolute;
    top: -30%; right: -8%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}
.fm-hero::after {
    content: "";
    position: absolute;
    bottom: -40%; left: -5%;
    width: 380px; height: 380px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.fm-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.fm-hero__title {
    font-size: 48px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 0 16px !important;
    letter-spacing: -.02em !important;
    color: white !important;
}
.fm-hero__sub {
    font-size: 18px !important;
    opacity: .9;
    margin: 0 !important;
    color: white !important;
}

/* ================================================================== *
 *  BARRE DE CONTRÔLES (recherche + filtres)
 * ================================================================== */
.fm-controls-wrap {
    max-width: 760px;
    margin: -40px auto 24px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
}
.fm-controls {
    background: white;
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Recherche - compacte et centrée */
.fm-search {
    position: relative;
    width: 100%;
    max-width: 480px;
}
.fm-search__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
}
.fm-search__input {
    width: 100% !important;
    padding: 14px 52px 14px 52px !important;
    padding-left: 52px !important;
    font-size: 15px !important;
    color: #1c1e21 !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    outline: none !important;
    font-family: inherit !important;
    transition: all .15s ease !important;
    box-sizing: border-box !important;
}
.fm-search__input:focus {
    background: white;
    border-color: #2C5F8D;
    box-shadow: 0 0 0 4px rgba(74,139,194,.1);
}
.fm-search__clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.fm-search__clear:hover { background: #e2e8f0; }
.fm-search__clear svg { width: 16px; height: 16px; }

/* Filtres pilules */
.fm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.fm-filter {
    padding: 8px 18px;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}
.fm-filter:hover {
    background: #e2e8f0;
    color: #2C5F8D;
}
.fm-filter.is-active {
    background: var(--fep-gradient-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(74,139,194,.3);
}

/* Compteur résultats */
.fm-results-count {
    max-width: 1300px;
    margin: 20px auto 0;
    padding: 0 24px;
    font-size: 15px;
    color: #6b7280;
    text-align: center;
}
.fm-results-count strong {
    color: #1c1e21;
    font-weight: 700;
}

/* ================================================================== *
 *  BANDEAU CARTE LEAFLET (fine, pleine largeur)
 * ================================================================== */
.fm-map-band-wrap {
    max-width: 1300px;
    margin: 24px auto 32px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.fm-map-band {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--fep-shadow-card-hover);
    background: #e8f0f7;
}
.fm-map-band__leaflet {
    width: 100%;
    height: 100%;
}

/* Label compteur sur la carte */
.fm-map__label {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 500;
    pointer-events: none;
}
.fm-map__label-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--fep-blue-light);
    line-height: 1;
    margin-bottom: 2px;
}
.fm-map__label-txt {
    font-size: 12px;
    color: var(--fep-text-light);
    font-weight: 600;
}

/* Pin custom Leaflet */
.fm-map__pin {
    background: transparent !important;
    border: none !important;
}
.fm-map__pin .fm-map__pin-inner {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--fep-blue-light), var(--fep-blue-light-dark));
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(74,139,194,.4);
    position: relative;
    margin-left: 2px;
    margin-top: 2px;
}
.fm-map__pin .fm-map__pin-inner::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Popup Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.15) !important;
}
.leaflet-popup-content {
    margin: 16px 18px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.fm-map__popup-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--fep-text-dark);
    margin-bottom: 4px;
}
.fm-map__popup-loc {
    font-size: 13px;
    color: var(--fep-text-light);
    margin-bottom: 8px;
}
.fm-map__popup-link {
    color: var(--fep-blue-light) !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.fm-map__popup-link:hover { text-decoration: underline; }

/* ================================================================== *
 *  GRID 4 COLONNES DE CARDS MAISONS
 * ================================================================== */
.fm-grid-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.fm-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fm-empty,
.fm-no-results__title,
.fm-no-results__text {
    text-align: center;
}
.fm-empty {
    padding: 60px 0;
    color: var(--fep-text-muted);
}

.fm-no-results {
    padding: 60px 24px;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: var(--fep-shadow-card);
    grid-column: 1 / -1;
}
.fm-no-results__icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: .5;
}
.fm-no-results__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--fep-text-dark) !important;
    margin: 0 0 8px !important;
}
.fm-no-results__text {
    color: var(--fep-text-light) !important;
    margin: 0 !important;
}

/* CARD MAISON (style cohérent avec cards offres) */
.fm-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1.5px solid var(--fep-border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: all .25s ease;
    position: relative;
}

/* Ligne accent verte qui apparaît au hover (comme cards offres) */
.fm-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--fep-green), var(--fep-green-dark));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s ease;
    z-index: 2;
}

.fm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(74,139,194,.15);
    border-color: transparent;
    text-decoration: none !important;
    color: inherit;
}
.fm-card:hover::before { transform: scaleY(1); }
.fm-card:hover .fm-card__more::after { transform: translateX(6px); }

.fm-card__img {
    position: relative;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: #e8f0f7;
}
.fm-card__img--placeholder {
    background: linear-gradient(135deg, #e8f0f7, #c5d9ea);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-card__img--placeholder::after {
    content: "🏥";
    font-size: 44px;
    opacity: .5;
}

.fm-card__region {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,.95);
    color: var(--fep-blue-light);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.fm-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fm-card__title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--fep-text-dark) !important;
    line-height: 1.3 !important;
    margin: 0 0 12px !important;
}

.fm-card__infos {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    flex: 1;
}
.fm-card__info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--fep-text-light);
    line-height: 1.4;
}
.fm-card__info-icon {
    flex: 0 0 auto;
    font-size: 13px;
}

.fm-card__footer {
    padding-top: 12px;
    border-top: 1px solid var(--fep-border-light);
}
.fm-card__more {
    color: var(--fep-blue-light);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fm-card__more::after {
    content: "→";
    transition: transform .25s ease;
}

/* ================================================================== *
 *  PAGE SINGLE MAISON
 * ================================================================== */
.fm-single-hero {
    background: var(--fep-gradient-blue);
    padding: 70px 24px 100px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.fm-single-hero::before {
    content: "";
    position: absolute;
    top: -40%; right: -8%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}

.fm-single-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.fm-single-hero__breadcrumb {
    font-size: 13px;
    opacity: .8;
    margin-bottom: 20px;
}
.fm-single-hero__breadcrumb a {
    color: white !important;
    text-decoration: none;
    opacity: .8;
}
.fm-single-hero__breadcrumb a:hover { opacity: 1; }

.fm-single-hero__tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,.18);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 20px;
    color: white !important;
}

.fm-single-hero__title {
    font-size: 48px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 0 16px !important;
    letter-spacing: -.02em !important;
    color: white !important;
}
.fm-single-hero__address {
    font-size: 17px;
    opacity: .9;
    color: white !important;
}

/* Main : contenu + sidebar */
.fm-single-main {
    max-width: 1100px;
    margin: -50px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.fm-single-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.fm-single-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.fm-single__image {
    aspect-ratio: 21/9;
    background-size: cover;
    background-position: center;
}
.fm-single__body {
    padding: 40px 48px;
}
.fm-single__body p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.fm-single__empty {
    padding: 40px 48px;
    color: #94a3b8;
    text-align: center;
}

/* Sidebar */
.fm-single-aside {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fm-single-map {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.05);
    height: 280px;
}
.fm-single-map__leaflet {
    width: 100%;
    height: 100%;
}

.fm-single-contact {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.fm-single-contact__title {
    font-size: 16px;
    font-weight: 700;
    color: #1c1e21;
    margin-bottom: 18px;
}
.fm-single-contact__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #f1f5f9;
}
.fm-single-contact__row:last-child { border-bottom: none; }
.fm-single-contact__row a {
    color: #2C5F8D !important;
    text-decoration: none;
    word-break: break-word;
}
.fm-single-contact__row a:hover { text-decoration: underline; }
.fm-single-contact__icon {
    flex: 0 0 auto;
    width: 28px;
    text-align: center;
    font-size: 16px;
}

.fm-single-cta {
    display: block;
    padding: 16px;
    background: var(--fep-gradient-green);
    color: white !important;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--fep-shadow-green);
    transition: transform .2s ease;
}
.fm-single-cta:hover {
    transform: translateY(-2px);
    color: white !important;
    text-decoration: none;
}

/* Bouton retour */
.fm-single-back {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 24px;
    text-align: center;
}
.fm-single-back__link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.fm-single-back__link:hover { color: #2C5F8D; }

.fm-error {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    text-align: center;
    color: #6b7280;
    box-shadow: 0 4px 24px rgba(0,0,0,.05);
}


/* ================================================================== *
 *  RESPONSIVE
 * ================================================================== */
@media (max-width: 1300px) {
    .fm-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
    .fm-cards { grid-template-columns: repeat(2, 1fr); }
    .fm-single-layout { grid-template-columns: 1fr; }
    .fm-single-aside { position: static; }
    .fm-map-band { height: 280px; }
}

@media (max-width: 600px) {
    .fm-cards { grid-template-columns: 1fr; }
    .fm-hero__title { font-size: 32px !important; }
    .fm-single-hero__title { font-size: 32px !important; }
    .fm-single__body { padding: 28px 24px; }
    .fm-map-band { height: 240px; }
}

/* ================================================================== *
 *  PAGE SINGLE — SECTIONS HORAIRES + OFFRES
 * ================================================================== */
.fm-single-section {
    padding: 36px 48px;
    border-top: 1px solid #f1f5f9;
}
.fm-single-section:first-child { border-top: none; }

.fm-single-section__title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1c1e21 !important;
    margin: 0 0 24px !important;
    letter-spacing: -.01em !important;
}

/* ===== HORAIRES (style widget Horaires Premium) ===== */
.fm-horaires {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fm-horaire-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    background: #F8F9FC;
    border: 2px solid transparent;
    transition: all .25s ease;
}
.fm-horaire-row.is-today-open {
    background: #FFFFFF;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16,185,129,.12);
}
.fm-horaire-row.is-today-closed {
    background: #FFFFFF;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239,68,68,.12);
}
.fm-horaire-row__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fm-horaire-row__day {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
}
.fm-horaire-row__badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF !important;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.fm-horaire-row__badge--open   { background-color: #10b981; }
.fm-horaire-row__badge--closed { background-color: #ef4444; }
.fm-horaire-row__time {
    font-size: 15px;
    color: #0F172A;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.fm-horaire-row__closed {
    color: #ef4444;
    font-style: italic;
    font-weight: 400;
}

@media (max-width: 768px) {
    .fm-horaire-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }
    .fm-horaire-row__day { font-size: 15px; }
    .fm-horaire-row__time { font-size: 14px; }
}

/* ===== OFFRES D'EMPLOI ===== */
.fm-single-offres {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fm-single-offre {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}
.fm-single-offre::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--fep-blue-light), var(--fep-blue-light-dark));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .2s ease;
}
.fm-single-offre:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(74,139,194,.12);
    border-color: transparent;
    color: inherit;
    text-decoration: none;
}
.fm-single-offre:hover::before { transform: scaleY(1); }

.fm-single-offre__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.fm-single-offre__badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.fm-single-offre__badge--new      { background: #2C5F8D; color: white; }
.fm-single-offre__badge--cdi      { background: #dcfce7; color: #166534; }
.fm-single-offre__badge--cdd      { background: #dbeafe; color: #1e40af; }
.fm-single-offre__badge--interim  { background: #fef3c7; color: #92400e; }
.fm-single-offre__badge--stage    { background: #fce7f3; color: #9d174d; }

.fm-single-offre__title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1c1e21 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px !important;
}
.fm-single-offre__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    flex: 1;
}
.fm-single-offre__meta-item {
    font-size: 13px;
    color: #6b7280;
}
.fm-single-offre__more {
    color: #2C5F8D;
    font-weight: 700;
    font-size: 13px;
    margin-top: auto;
}

@media (max-width: 700px) {
    .fm-single-section { padding: 28px 24px; }
    .fm-single-offres { grid-template-columns: 1fr; }
}

/* ================================================================== *
 *  GALERIE PHOTOS (page single)
 * ================================================================== */
.fm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.fm-gallery__item {
    display: block;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--fep-bg-light);
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

.fm-gallery__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(74,139,194,.2);
}

.fm-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.fm-gallery__item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.fm-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(8px);
}

.fm-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.fm-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all .2s ease;
    z-index: 2;
}
.fm-lightbox__close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.fm-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 50%;
    font-size: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 4px;
    transition: all .2s ease;
}
.fm-lightbox__nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.05);
}
.fm-lightbox__nav--prev { left: 32px; }
.fm-lightbox__nav--next { right: 32px; }

.fm-lightbox__counter {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 100px;
}

@media (max-width: 700px) {
    .fm-lightbox { padding: 20px; }
    .fm-lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
    .fm-lightbox__nav { width: 44px; height: 44px; font-size: 28px; }
    .fm-lightbox__nav--prev { left: 12px; }
    .fm-lightbox__nav--next { right: 12px; }
}