/**
 * Annuaire des Notaires - Styles Frontend
 */

:root {
    --notaires-primary: #D80811;
    --notaires-primary-dark: #b00710;
    --notaires-text: #1a1a1a;
    --notaires-text-light: #666666;
    --notaires-border: #e5e5e5;
    --notaires-bg: #f8f8f8;
    --notaires-white: #ffffff;
    --notaires-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --notaires-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --notaires-transition: 0.2s ease;
}

.notaires-archive *,
.notaire-single * {
    box-sizing: border-box;
}

/* Buttons & Inputs */
.notaires-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--notaires-transition);
}

.notaires-btn--primary {
    background: var(--notaires-primary);
    color: var(--notaires-white);
}

.notaires-btn--primary:hover {
    background: var(--notaires-primary-dark);
    color: var(--notaires-white);
}

.notaires-btn--secondary {
    background: var(--notaires-white);
    color: var(--notaires-text);
    border: 1px solid var(--notaires-border);
}

.notaires-btn--secondary:hover {
    border-color: var(--notaires-text);
}

.notaires-btn--full {
    width: 100%;
}

.notaires-input,
.notaires-select {
    width: 100%;
    font-size: 14px !important;
    color: var(--notaires-text);
    background: var(--notaires-white);
    border: 1px solid var(--notaires-border);
    transition: border-color var(--notaires-transition);
}

.notaires-select {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzdweCIgaGVpZ2h0PSI0cHgiIHZpZXdCb3g9IjAgMCAzNyA0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2MS4yICg4OTY1MykgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+QXJ0Ym9hcmQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iQXJ0Ym9hcmQiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnJvdy1SaWdodCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUuMDAwMDAwLCAwLjAwMDAwMCkiIGZpbGw9IiMzNDMzNTIiPgogICAgICAgICAgICA8cGF0aCBkPSJNMy44MDM4OTIyMiwzLjg3MiBMNi44NzQyNTE1LDAuNzU3MzMzMzMzIEM3LjA0MTkxNjE3LDAuNTc2IDcuMDQxOTE2MTcsMC4yOTg2NjY2NjcgNi44NzQyNTE1LDAuMTI4IEM2LjcwNjU4NjgzLC0wLjA0MjY2NjY2NjcgNi40MjM2NTI2OSwtMC4wNDI2NjY2NjY3IDYuMjU1OTg4MDIsMC4xMjggTDMuNSwyLjkzMzMzMzMzIEwwLjc0NDAxMTk3NiwwLjEyOCBDMC41NjU4NjgyNjMsLTAuMDQyNjY2NjY2NyAwLjI5MzQxMzE3NCwtMC4wNDI2NjY2NjY3IDAuMTI1NzQ4NTAzLDAuMTI4IEMtMC4wNDE5MTYxNjc3LDAuMjk4NjY2NjY3IC0wLjA0MTkxNjE2NzcsMC41NzYgMC4xMjU3NDg1MDMsMC43NTczMzMzMzMgTDMuMTg1NjI4NzQsMy44NzIgQzMuMzYzNzcyNDYsNC4wNDI2NjY2NyAzLjYzNjIyNzU0LDQuMDQyNjY2NjcgMy44MDM4OTIyMiwzLjg3MiBaIiBpZD0iUGF0aCI+PC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) !important;
    background-position-x: 100% !important;
    background-position-y: 50% !important;
    background-repeat: no-repeat !important;
    background-size: 50px !important;
}

.notaires-input:focus,
.notaires-select:focus {
    outline: none;
    border-color: var(--notaires-text);
}

.notaires-input::placeholder {
    color: var(--notaires-text-light);
}

.notaires-select--small {
    padding: 8px 12px;
    font-size: 13px;
}

/* Toolbar: titre et filtres sur une seule ligne */
.notaires-toolbar {
    background: var(--notaires-white);
}

.notaires-toolbar__container {
    max-width: var(--container-max-width, 1400px);
    margin: 0 auto;
    padding: 8px 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.notaires-toolbar__identity {
    flex: 0 0 auto;
    min-width: 0;
}

.notaires-header__title {
    margin: 0;
    font-size: 18px !important;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.notaires-header__count {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.3;
    color: var(--notaires-text-light);
    white-space: nowrap;
}

.notaires-filters {
    display: flex;
    flex: 1;
    min-width: 0;
}

.notaires-filters__backdrop,
.notaires-filters__head,
.notaires-filters__label {
    display: none;
}

.notaires-filters__panel {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.notaires-filters__field {
    flex: 1 1 0;
    min-width: 0;
}

.notaires-filters__control {
    position: relative;
}

.notaires-filters__glyph {
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 1;
    display: flex;
    color: #8a8a8a;
    pointer-events: none;
    transform: translateY(-50%);
}

.notaires-filters__glyph svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
}

.notaires-filters__glyph svg,
.notaires-filters__glyph svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.6 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notaires-toolbar .notaires-input,
.notaires-toolbar .notaires-select,
.notaires-archive .notaires-dropdown__trigger,
.notaires-archive .notaires-dropdown__menu,
.notaires-archive .notaires-filters__submit,
.notaires-archive .notaires-filters__reset,
.notaires-archive .notaires-filters-toggle {
    border-radius: 8px !important;
}

.notaires-toolbar .notaires-input,
.notaires-toolbar .notaires-select {
    height: 44px;
    margin: 0;
    padding: 0 14px;
    background-color: var(--notaires-white);
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    font-size: 14px !important;
    box-shadow: none;
}

.notaires-toolbar .notaires-filters__control .notaires-input {
    padding-left: 38px;
}

.notaires-toolbar .notaires-select {
    padding-right: 32px !important;
    background-size: 18px !important;
    background-position: right 8px center !important;
}

.notaires-toolbar .notaires-input::placeholder {
    color: #8d8d8d;
}

.notaires-toolbar .notaires-input:focus,
.notaires-toolbar .notaires-select:focus {
    background-color: var(--notaires-white);
    border-color: #bdbdbd;
    outline: none;
}

.notaires-filters__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.notaires-filters__submit,
.notaires-filters__reset,
.notaires-filters__close,
.notaires-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--notaires-text);
    font: inherit;
    cursor: pointer;
}

.notaires-filters__submit,
.notaires-filters__reset {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 8px;
}

.notaires-filters__submit {
    background: var(--notaires-primary);
    color: var(--notaires-white);
}

.notaires-filters__submit:hover {
    background: var(--notaires-primary-dark);
}

.notaires-filters__reset {
    color: var(--notaires-text-light);
}

.notaires-filters__reset:hover {
    color: var(--notaires-text);
    background: #f3f3f3;
}

.notaires-filters__reset.is-inactive {
    display: none;
}

.notaires-archive .notaires-filters__submit svg,
.notaires-archive .notaires-filters__reset svg,
.notaires-archive .notaires-filters__close svg,
.notaires-archive .notaires-filters-toggle svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    display: block !important;
    fill: currentColor !important;
    flex: 0 0 18px;
}

.notaires-archive .notaires-filters__submit {
    color: #ffffff !important;
}

.notaires-archive .notaires-filters__submit svg,
.notaires-archive .notaires-filters__submit svg path {
    fill: currentColor !important;
    stroke: none !important;
}

.notaires-archive .notaires-filters__reset svg,
.notaires-archive .notaires-filters__reset svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.75 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notaires-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.notaires-toolbar__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.notaires-filters-toggle {
    display: none;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--notaires-border);
    background: var(--notaires-white);
    font-size: 14px;
    font-weight: 500;
}

.notaires-filters-toggle.has-filters {
    border-color: var(--notaires-primary);
    color: var(--notaires-primary);
}

.notaires-filters-toggle__count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--notaires-primary);
    color: var(--notaires-white);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
}

.notaires-filters-toggle__count[hidden] {
    display: none !important;
}

.notaires-dropdown {
    position: relative;
    width: 100%;
    min-width: 0;
}

.notaires-dropdown--sort {
    width: auto;
    min-width: 88px;
}

.notaires-dropdown__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
}

.notaires-archive .notaires-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 10px 0 14px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: var(--notaires-white);
    color: var(--notaires-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
}

.notaires-dropdown--sort .notaires-dropdown__trigger {
    background: var(--notaires-white);
    border-color: #e4e4e4;
}

.notaires-archive .notaires-dropdown__trigger:hover,
.notaires-dropdown.is-open .notaires-dropdown__trigger {
    border-color: #d0d0d0;
    background: var(--notaires-white);
}

.notaires-dropdown__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notaires-dropdown__chevron {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px;
    fill: currentColor !important;
    color: #8a8a8a;
    transition: transform 0.2s ease;
}

.notaires-dropdown__chevron path {
    fill: currentColor !important;
}

.notaires-dropdown.is-open .notaires-dropdown__chevron {
    transform: rotate(180deg);
}

.notaires-archive .notaires-dropdown__menu {
    position: fixed;
    z-index: 100002;
    display: block;
    margin: 0 !important;
    padding: 6px !important;
    list-style: none !important;
    background: var(--notaires-white);
    border: 1px solid #ececec;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    max-height: 260px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
}

.notaires-dropdown.is-open .notaires-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.notaires-archive .notaires-dropdown__menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notaires-archive .notaires-dropdown__option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--notaires-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
}

.notaires-archive .notaires-dropdown__option:hover,
.notaires-archive .notaires-dropdown__option:focus {
    background: #f5f5f5;
    color: var(--notaires-text);
    outline: none;
}

.notaires-archive .notaires-dropdown__option.is-selected {
    font-weight: 600;
    color: var(--notaires-primary);
    background: rgba(216, 8, 17, 0.06);
}

.notaires-header__views {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
}

.notaires-archive .notaires-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none;
    cursor: pointer;
    color: #9aa3a0;
    transition: color var(--notaires-transition);
}

.notaires-archive .notaires-view-btn svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
}

.notaires-archive .notaires-view-btn svg,
.notaires-archive .notaires-view-btn svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notaires-archive .notaires-view-btn:hover {
    color: var(--notaires-text);
    background: transparent !important;
}

.notaires-archive .notaires-view-btn.active,
.notaires-archive .notaires-view-btn.active:hover {
    background: transparent !important;
    color: var(--notaires-primary);
}

.notaires-filters.is-open {
    display: grid;
    place-items: center;
    position: fixed;
    inset: 0;
    z-index: 100000;
    flex: none;
    padding: 24px;
}

.notaires-filters.is-open .notaires-filters__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    animation: notaires-filters-fade 0.35s ease;
}

.notaires-filters.is-open .notaires-filters__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: min(440px, 100%);
    max-height: min(680px, calc(100vh - 48px));
    overflow: auto;
    padding: 28px 24px 24px;
    background: var(--notaires-white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    animation: notaires-filters-panel 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.notaires-filters.is-open .notaires-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notaires-filters.is-open .notaires-filters__head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.notaires-filters.is-open .notaires-filters__close {
    width: 36px;
    height: 36px;
    color: var(--notaires-text-light);
}

.notaires-filters.is-open .notaires-filters__close:hover {
    color: var(--notaires-primary);
}

.notaires-filters.is-open .notaires-filters__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.notaires-filters.is-open .notaires-filters__field {
    width: 100%;
}

.notaires-filters.is-open .notaires-input,
.notaires-filters.is-open .notaires-select {
    width: 100%;
    background-color: var(--notaires-white);
    border-color: var(--notaires-border);
}

.notaires-filters.is-open .notaires-filters__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.notaires-filters.is-open .notaires-filters__submit,
.notaires-filters.is-open .notaires-filters__reset {
    width: 100%;
    height: 46px;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.notaires-filters.is-open .notaires-filters__reset {
    display: inline-flex;
    border: 1px solid var(--notaires-border);
    background: var(--notaires-white);
    color: var(--notaires-text);
}

.notaires-filters.is-open .notaires-sr {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

@keyframes notaires-filters-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes notaires-filters-panel {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

body.notaires-filters-open {
    overflow: hidden;
}

/* Content */
.notaires-content {
    background: var(--notaires-bg);
    min-height: 60vh;
}

.notaires-list-view {
    display: none;
    padding: 32px 20px 28px;
    max-width: var(--container-max-width, 1400px);
    margin: 0 auto;
}

.notaires-list-view.active {
    display: block;
}

.notaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.notaires-letter {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 0;
    color: var(--notaires-text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.notaires-grid > .notaires-letter:first-child {
    margin-top: 0;
}

.notaires-letter::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4e4e4;
}

.notaires-letter span {
    min-width: 1ch;
}

.notaires-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.notaires-pagination__page,
.notaires-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #e4e4e4;
    border-radius: 8px !important;
    background: #fff;
    color: var(--notaires-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.notaires-pagination__btn svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.notaires-pagination__page:hover,
.notaires-pagination__btn:hover:not(:disabled) {
    border-color: var(--notaires-primary);
    color: var(--notaires-primary);
}

.notaires-pagination__page.is-current {
    border-color: var(--notaires-primary);
    background: var(--notaires-primary);
    color: #fff;
}

.notaires-pagination__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.notaires-pagination__ellipsis {
    min-width: 24px;
    color: var(--notaires-text-light);
    text-align: center;
}

/* Map View */
.notaires-map-view {
    display: none;
    height: calc(100dvh - 150px);
    min-height: 480px;
}

.notaires-map-view.active {
    display: flex;
}

.notaires-map-view__sidebar {
    width: 45%;
    max-width: 600px;
    overflow-y: auto;
    background: var(--notaires-bg);
    border-right: 1px solid var(--notaires-border);
}

/* Barre de défilement fine et discrète */
.notaires-map-view__sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.notaires-map-view__sidebar::-webkit-scrollbar {
    width: 6px;
}

.notaires-map-view__sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.notaires-map-view__sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}

.notaires-map-view__sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.32);
}

.notaires-map-list {
    padding: 32px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notaires-map-view__map {
    flex: 1;
    position: relative;
    min-height: 320px;
}

#notaires-google-map {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

#notaires-google-map img,
#notaire-single-map img,
.gm-style img {
    max-width: none !important;
    display: inline !important;
}

/* Card */
.notaire-card {
    background: var(--notaires-white);
    /* border: 1px solid var(--notaires-border); */
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow var(--notaires-transition);
}

.notaire-card:hover {
    box-shadow: var(--notaires-shadow-hover);
}

.notaire-card.highlighted {
    box-shadow: var(--notaires-shadow-hover);
}

.notaires-grid .notaire-card {
    display: flex;
    flex-direction: column;
}

.notaires-grid .notaire-card__image {
    height: 200px;
    overflow: hidden;
    background: var(--notaires-bg);
    display: none;
}

.notaires-grid .notaire-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notaires-map-list .notaire-card {
    display: flex;
    flex-direction: row;
}

.notaires-map-list .notaire-card__image {
    width: 140px;
    min-width: 140px;
    overflow: hidden;
    background: var(--notaires-bg);
    display: none;
}

.notaires-map-list .notaire-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notaire-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--notaires-bg);
    color: var(--notaires-text-light);
}

.notaire-card__placeholder svg {
    width: 48px;
    height: 48px;
}

.notaire-card__content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notaire-card__name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.notaire-card__name a {
    color: var(--notaires-text);
    text-decoration: none;
}

.notaire-card__name a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.notaire-card__name a:hover {
    color: var(--notaires-primary);
}

.notaire-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--notaires-text-light);
    margin: 0 0 8px 0;
}

.notaire-card__location svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px;
    color: var(--notaires-primary);
}

.notaire-card__location svg,
.notaire-card__location svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notaire-card__languages {
    font-size: 14px;
    color: var(--notaires-text-light);
    margin: 0 0 12px 0;
}

.notaire-card__languages strong {
    font-weight: 500;
}

.notaire-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--notaires-border);
}

.notaire-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    position: relative;
    z-index: 2;
    color: var(--notaires-text);
    font-size: 13px;
    line-height: 1.35;
    transition: color var(--notaires-transition);
}

.notaire-card__action span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notaire-card__action svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px;
    color: var(--notaires-text-light);
}

.notaire-card__action svg,
.notaire-card__action svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notaire-card__action:hover,
.notaire-card__action:hover svg {
    color: var(--notaires-primary);
}

/* Info Window */
.notaire-infowindow {
    width: 240px;
    padding: 0;
    font-family: inherit;
}

.gm-style .gm-style-iw-c {
    border-radius: 8px !important;
    padding: 12px 14px 12px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16) !important;
}

.gm-style .gm-style-iw-chr {
    position: absolute;
    top: 0;
    right: 0;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-ch {
    display: none !important;
}

.gm-style .gm-ui-hover-effect {
    top: 4px !important;
    right: 8px !important;
    width: 32px !important;
    height: 32px !important;
}

.gm-style .gm-style-iw-d,
.gm-style .gm-style-iw-d > div {
    overflow: visible !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-tc::after {
    background: var(--notaires-white) !important;
}

.notaire-infowindow__name {
    margin: 0 22px 0 0 !important;
    padding: 0 !important;
    color: var(--notaires-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.notaire-infowindow__location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--notaires-text-light);
    font-size: 13px;
    line-height: 1.3;
}

.notaire-infowindow__location svg {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px;
    color: var(--notaires-primary);
}

.notaire-infowindow__location svg,
.notaire-infowindow__location svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.6 !important;
}

.notaire-infowindow__contact {
    display: block;
    margin-top: 6px;
    color: var(--notaires-text);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.notaire-infowindow__contact:hover {
    color: var(--notaires-primary);
}

.notaire-infowindow__link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--notaires-primary);
    color: var(--notaires-white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.notaire-infowindow__link:hover {
    background: var(--notaires-primary-dark);
    color: var(--notaires-white);
}

.notaire-cluster {
    width: 220px;
}

.notaire-cluster__title {
    margin: 0 22px 8px 0 !important;
    color: var(--notaires-text-light);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.notaire-cluster__item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-top: 1px solid var(--notaires-border);
    border-radius: 0;
    background: transparent;
    color: var(--notaires-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.notaire-cluster__item:hover,
.notaire-cluster__item:focus-visible {
    color: var(--notaires-primary);
    background: transparent;
}

/* Single */
.notaire-single {
    background: var(--notaires-bg);
    padding: 24px 0 48px;
}

.notaire-single__container {
    max-width: var(--container-max-width, 1370px);
    margin: 0 auto;
    padding: 0 10px;
}

.notaire-single__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px;
    color: var(--notaires-text-light);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
}

.notaire-single__back svg,
.notaire-single__back svg path {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor !important;
}

.notaire-single__back:hover {
    color: var(--notaires-primary);
    text-decoration: underline;
}

.notaire-single__breadcrumb {
    font-size: 13px;
    color: var(--notaires-text-light);
    margin-bottom: 24px;
}

.notaire-single__breadcrumb a {
    color: var(--notaires-text-light);
    text-decoration: none;
}

.notaire-single__breadcrumb a:hover {
    color: var(--notaires-primary);
}

.notaire-single__breadcrumb .separator {
    margin: 0 8px;
}

.notaire-single__breadcrumb .current {
    color: var(--notaires-text);
}

.notaire-single__header {
    /* background: var(--notaires-white);
    border: 1px solid var(--notaires-border);
    padding: 32px; */
    margin-bottom: 24px;
}

.notaire-single__header-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.notaire-single__photo {
    width: 180px;
    min-width: 180px;
    height: 220px;
    overflow: hidden;
    display: none;
    background: var(--notaires-bg);
}

.notaire-single__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-notaire .uicore-page-title {
    display: none;
}

.notaire-single__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--notaires-border);
    color: var(--notaires-text-light);
    background-color: #ffffff;
}

.notaire-single__photo-placeholder svg {
    width: 64px;
    height: 64px;
}

.notaire-single__info {
    flex: 1;
}

.notaire-single__name {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.notaire-single__location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--notaires-text-light);
    margin: 0 0 12px 0;
}

.notaire-single__location .notaire-single__pin {
    margin-top: 1px;
}

.notaire-single__languages {
    font-size: 14px;
    color: var(--notaires-text-light);
    margin: 0 0 16px 0;
}

.notaire-single__body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
}

.notaire-single__section {
    /* background: var(--notaires-white);
    border: 1px solid var(--notaires-border);
    padding: 24px; */
    margin-bottom: 24px;
}

.notaire-single__section--presentation {
    margin-top: 40px;
}

.notaire-single__section-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--notaires-border);
}

.notaire-single__content {
    font-size: 15px;
    line-height: 1.7;
}

.notaire-single__sidebar {
    position: sticky;
    top: 24px;
}

.notaire-single__contact-card,
.notaire-single__map-card {
    background: var(--notaires-white);
    /* border: 1px solid var(--notaires-border); */
    padding: 24px;
    margin-bottom: 16px;
}

.notaire-single__contact-title,
.notaire-single__map-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.notaire-single__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.notaire-single__contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.notaire-single__pin {
    width: 20px !important;
    height: 20px !important;
    color: var(--notaires-primary);
}

.notaire-single__pin,
.notaire-single__pin path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notaire-single__contact-item a {
    color: var(--notaires-text);
    text-decoration: none;
}

.notaire-single__contact-item a:hover {
    color: var(--notaires-primary);
}

.notaire-single__contact-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--notaires-border);
}

.notaire-single__map {
    height: 200px;
    margin-bottom: 12px;
}

.notaires-no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 8px 0 0;
    padding: 56px 24px;
    text-align: center;
    background: var(--notaires-white);
    border-radius: 8px;
}

.notaires-no-results__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #f4f4f4;
    color: var(--notaires-text-light);
}

.notaires-no-results__icon svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
}

.notaires-no-results__icon svg,
.notaires-no-results__icon svg circle,
.notaires-no-results__icon svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
}

.notaires-no-results__title {
    margin: 0 0 6px;
    color: var(--notaires-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.notaires-no-results__text {
    max-width: 360px;
    margin: 0;
    color: var(--notaires-text-light);
    font-size: 14px;
    line-height: 1.5;
}

.notaires-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40vh;
    padding: 48px;
}

.notaires-loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--notaires-border);
    border-top-color: var(--notaires-primary);
    border-radius: 50%;
    animation: notaires-spin 0.8s linear infinite;
}

@keyframes notaires-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .notaires-map-view__sidebar {
        width: 40%;
    }
    
    .notaire-single__body {
        grid-template-columns: 1fr;
    }
    
    .notaire-single__sidebar {
        position: static;
    }
}

@media (max-width: 1200px) {
    .notaires-toolbar__tools {
        margin-left: auto;
    }

    .notaires-filters-toggle {
        display: inline-flex;
    }

    .notaires-filters {
        display: none;
    }

    .notaires-filters.is-open {
        display: grid;
    }
}

@media (max-width: 768px) {
    .notaires-toolbar__container {
        padding: 8px 16px;
        gap: 10px;
    }

    .notaires-header__title {
        font-size: 16px !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .notaires-toolbar__tools {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .notaires-dropdown--sort {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
    }

    .notaires-dropdown--sort .notaires-dropdown__trigger {
        width: auto;
        height: 40px;
        gap: 2px;
        padding: 0 6px 0 10px;
        font-size: 12px !important;
    }

    .notaires-archive .notaires-dropdown__trigger,
    .notaires-archive .notaires-dropdown__option,
    .notaires-toolbar .notaires-select {
        font-size: 12px !important;
    }

    .notaires-filters.is-open .notaires-input,
    .notaires-filters.is-open .notaires-select,
    .notaires-filters.is-open .notaires-dropdown__trigger,
    .notaires-filters.is-open .notaires-dropdown__option {
        font-size: 16px !important;
    }

    .notaires-map-view {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }
    
    .notaires-map-view__sidebar {
        width: 100%;
        max-width: none;
        max-height: 50vh;
        order: 2;
    }
    
    .notaires-map-view__map {
        flex: 0 0 auto;
        width: 100%;
        height: 52vh;
        min-height: 280px;
        order: 1;
    }

    #notaires-google-map {
        height: 52vh;
        min-height: 280px;
    }
    
    .notaire-single__container {
        padding: 0 20px;
    }

    .notaire-single__body {
        gap: 20px;
    }

    .notaire-single__header-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .notaire-single__photo {
        width: 140px;
        min-width: 140px;
        height: 180px;
    }
    
    .notaire-single__location {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notaires-filters.is-open .notaires-filters__backdrop,
    .notaires-filters.is-open .notaires-filters__panel {
        animation: none;
    }
}

@media (max-width: 480px) {
    .notaires-toolbar__container {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .notaires-toolbar__identity {
        flex: 1 1 auto;
        min-width: 0;
    }

    .notaires-grid {
        grid-template-columns: 1fr;
    }
    
    .notaires-map-list .notaire-card {
        flex-direction: column;
    }
    
    .notaires-map-list .notaire-card__image {
        width: 100%;
        height: 150px;
    }
}
