.providers-header .header-container {
    justify-content: space-between;
    position: relative;
}

.providers-menu-toggle {
    display: none;
}

.providers-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #3d3846;
    font-weight: 600;
}

.providers-nav a:hover {
    color: var(--purple);
}

.providers-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

.providers-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--border);
}

.section-kicker {
    color: var(--purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.providers-hero h1,
.provider-publish-panel h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    max-width: 820px;
    margin-bottom: 14px;
}

.providers-hero p,
.provider-publish-panel > div p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.providers-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    background: var(--purple);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.providers-primary-action:hover {
    background: var(--purple-dark);
}

.providers-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    background: #fff;
    color: var(--text-main);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.providers-secondary-action:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.providers-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 12px 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.providers-search i {
    color: var(--purple);
}

.providers-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.providers-search input::placeholder {
    color: var(--text-muted);
}

.providers-toolbar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 22px 0;
}

.provider-filter {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    background: #fff;
    color: #383340;
    border-radius: var(--radius-full);
    padding: 10px 14px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.provider-filter.active {
    color: #fff;
    border-color: var(--purple);
    background: var(--purple);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.provider-card-link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.provider-card-link:focus-visible {
    outline: 3px solid rgba(106, 70, 145, 0.32);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.provider-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.provider-card-link:hover .provider-card,
.provider-card-link:focus-visible .provider-card {
    border-color: rgba(106, 70, 145, 0.34);
    box-shadow: 0 12px 28px rgba(49, 42, 61, 0.12);
    transform: translateY(-2px);
}

.provider-card-image {
    position: relative;
    height: 190px;
    background: #ece8f2;
}

.provider-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.provider-card-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-weight: 700;
}

.provider-card-image span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #312a3d;
    border-radius: var(--radius-full);
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.provider-card-body {
    padding: 18px;
}

.provider-card-title h3 {
    font-size: 1.12rem;
    margin-bottom: 4px;
}

.provider-card-title p,
.provider-description,
.provider-meta,
.provider-contact {
    color: var(--text-muted);
}

.provider-description {
    min-height: 72px;
    margin: 14px 0;
}

.provider-meta {
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
}

.provider-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.provider-meta i {
    color: var(--purple);
}

.provider-card-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.provider-card-footer strong {
    font-size: 1.25rem;
}

.provider-detail-link {
    color: var(--purple);
    font-weight: 800;
}

.provider-detail-link:hover {
    color: var(--purple-dark);
}

.provider-contact {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #f6f3fb;
    font-size: 0.9rem;
}

.provider-contact strong {
    color: #312a3d;
}

.provider-contact.locked {
    background: #fafafa;
}

.provider-publish-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.provider-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.provider-form label {
    display: grid;
    gap: 8px;
    color: #2f2a38;
    font-weight: 700;
}

.provider-form input,
.provider-form select,
.provider-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.provider-form select:disabled {
    color: var(--text-muted);
    background: #f7f4fa;
}

.provider-city-autocomplete {
    position: relative;
}

.provider-city-autocomplete input[type="hidden"] {
    display: none;
}

.provider-city-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 18px 48px rgba(47, 29, 68, 0.16);
}

.provider-city-dropdown.open {
    display: block;
}

.provider-city-group {
    padding: 10px 12px 6px;
    color: var(--purple);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.provider-city-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-top: 1px solid #f1edf5;
    padding: 12px;
    background: #fff;
    color: #2f2a38;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.provider-city-option:hover {
    background: #f8f5fc;
}

.provider-city-option span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.provider-city-option strong,
.provider-city-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-city-option small,
.provider-city-empty {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.provider-city-option em {
    flex: 0 0 auto;
    border-radius: var(--radius-full);
    padding: 5px 8px;
    background: #f4edf9;
    color: var(--purple);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.provider-city-empty {
    padding: 14px;
}

.provider-form-locked {
    position: relative;
    background: #fafafa;
}

.provider-form-locked input,
.provider-form-locked select,
.provider-form-locked textarea,
.provider-form-locked button[type="submit"] {
    cursor: not-allowed;
    opacity: 0.68;
}

.provider-form textarea {
    min-height: 96px;
    resize: vertical;
}

.provider-form-wide,
.provider-form button,
.provider-form-message {
    grid-column: 1 / -1;
}

.provider-extra-toggle {
    align-self: end;
    min-height: 46px;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.provider-extra-toggle input {
    width: 18px;
    height: 18px;
}

.provider-exclusive-venue {
    display: none;
}

.provider-exclusive-venue.visible {
    display: grid;
}

.provider-independent-location {
    display: none;
}

.provider-independent-location.visible {
    display: grid;
}

.provider-availability-calendar {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.provider-calendar-head {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 8px;
}

.provider-calendar-head strong {
    text-align: center;
    color: #2f2a38;
    text-transform: capitalize;
}

.provider-calendar-head button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--purple);
    cursor: pointer;
}

.provider-calendar-weekdays,
.provider-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.provider-calendar-weekdays span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.provider-calendar-day {
    aspect-ratio: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: #2f2a38;
    font-weight: 800;
    cursor: pointer;
}

.provider-calendar-day.available:hover,
.provider-calendar-day.selected {
    border-color: var(--purple);
    background: #f4edf9;
    color: var(--purple);
}

.provider-calendar-day.blocked {
    opacity: 0.38;
    background: #f3f0f5;
    color: #8b8493;
    cursor: not-allowed;
}

.provider-calendar-day.empty {
    border: none;
    background: transparent;
}

.provider-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.provider-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.provider-calendar-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.provider-calendar-legend .is-available {
    background: var(--purple);
}

.provider-calendar-legend .is-blocked {
    background: #b8afc0;
}

.provider-calendar-loading {
    grid-column: 1 / -1;
    padding: 18px;
    color: var(--text-muted);
    text-align: center;
}

.provider-photo-upload {
    display: grid;
    gap: 12px;
}

.provider-photo-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #2f2a38;
    font-weight: 800;
}

.provider-photo-heading span {
    border-radius: var(--radius-full);
    padding: 6px 10px;
    background: #f4edf9;
    color: var(--purple);
    font-size: 0.82rem;
}

.provider-photo-dropzone {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 24px;
    border: 1.5px dashed #cdb7df;
    border-radius: var(--radius-sm);
    background: #fbf8ff;
    color: #2f2a38;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.provider-photo-dropzone:hover,
.provider-photo-dropzone.dragover {
    border-color: var(--purple);
    background: #f6effc;
}

.provider-photo-dropzone input {
    display: none;
}

.provider-photo-dropzone span {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--purple);
    font-size: 1.35rem;
}

.provider-photo-dropzone small {
    color: var(--text-muted);
}

.provider-form-locked .provider-photo-dropzone {
    cursor: not-allowed;
    opacity: 0.68;
}

.provider-photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.provider-photo-preview {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.provider-photo-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.provider-photo-preview button {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(34, 23, 47, 0.76);
    color: #fff;
    cursor: pointer;
}

.provider-photo-preview span {
    display: block;
    padding: 8px 10px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.provider-form-message,
.providers-empty {
    color: var(--text-muted);
}

.providers-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius-sm);
    text-align: center;
}

.provider-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(45, 23, 65, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.provider-auth-modal.visible {
    display: flex;
}

.provider-auth-modal-panel {
    position: relative;
    width: min(420px, 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(74, 43, 105, 0.28);
    text-align: center;
}

.provider-auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--purple);
    cursor: pointer;
}

.provider-auth-modal-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #f4edf9;
    color: var(--purple);
    font-size: 1.35rem;
}

.provider-auth-modal-panel h3 {
    margin-bottom: 8px;
    color: #22172f;
}

.provider-auth-modal-panel p {
    color: var(--text-muted);
    line-height: 1.55;
}

.provider-auth-modal-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.provider-auth-secondary {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: #312a3d;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.provider-detail-header .action-btn {
    text-decoration: none;
}

.provider-detail-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 80px;
}

.provider-detail-loading {
    padding: 52px 0;
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
}

.provider-detail-hero,
.provider-detail-titlebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 28px;
    align-items: end;
    padding: 12px 0 24px;
}

.provider-detail-hero h1,
.provider-detail-titlebar h1 {
    max-width: 780px;
    margin-bottom: 12px;
    color: #22172f;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.02;
}

.provider-detail-hero p,
.provider-detail-titlebar p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1.06rem;
    line-height: 1.6;
}

.provider-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #3d3846;
    font-weight: 700;
}

.provider-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.provider-detail-meta i {
    color: var(--purple);
}

.provider-detail-price {
    display: grid;
    gap: 4px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.provider-detail-price span,
.provider-detail-price small {
    color: var(--text-muted);
    font-weight: 700;
}

.provider-detail-price strong {
    color: #22172f;
    font-size: 2rem;
}

.provider-detail-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-auto-rows: 170px;
    gap: 8px;
    overflow: hidden;
    min-height: 348px;
    border-radius: 18px;
    background: #f0ebf6;
}

.provider-detail-gallery figure,
.provider-detail-gallery button {
    min-width: 0;
    min-height: 0;
}

.provider-detail-gallery button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.provider-detail-gallery-main {
    grid-row: span 2;
}

.provider-detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.provider-detail-gallery-empty {
    display: grid;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.provider-detail-gallery-empty span {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--purple);
    font-size: 2rem;
}

.provider-show-photos {
    position: absolute;
    right: 16px;
    bottom: 16px;
    min-height: 42px;
    border: 1px solid #22172f;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #22172f;
    font: inherit;
    font-weight: 800;
}

.provider-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 36px;
    align-items: start;
    margin-top: 34px;
}

.provider-detail-main {
    min-width: 0;
}

.provider-detail-provider {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.provider-detail-avatar {
    display: inline-flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-weight: 800;
}

.provider-detail-provider span:not(.provider-detail-avatar) {
    color: var(--text-muted);
    font-weight: 700;
}

.provider-detail-provider p {
    margin-top: 3px;
    color: var(--text-muted);
}

.provider-detail-provider h2,
.provider-detail-main h2 {
    color: #22172f;
}

.provider-detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 30px;
}

.provider-detail-fact {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.provider-detail-fact i {
    color: var(--purple);
}

.provider-detail-fact span {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.provider-detail-fact strong {
    color: #2f2a38;
    line-height: 1.3;
}

.provider-detail-copy {
    max-width: 760px;
    margin: 12px 0 30px;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.provider-detail-section {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.provider-detail-section:first-of-type {
    border-top: 0;
    margin-top: 0;
}

.provider-detail-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
}

.provider-detail-contact,
.provider-detail-summary,
.provider-detail-booking-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.provider-detail-contact h3 {
    color: #22172f;
}

.provider-detail-contact p,
.provider-detail-contact small,
.provider-detail-summary span,
.provider-detail-summary p,
.provider-detail-booking-card span,
.provider-detail-booking-card p {
    color: var(--text-muted);
}

.provider-detail-contact.locked {
    background: #fafafa;
}

.provider-detail-summary strong,
.provider-detail-booking-card strong {
    color: #22172f;
    font-size: 1.15rem;
}

.provider-detail-booking-card strong {
    font-size: 2rem;
}

.provider-detail-booking-card .providers-primary-action {
    width: 100%;
    margin-top: 8px;
}

.provider-detail-booking-card .providers-secondary-action {
    width: 100%;
    margin-top: 8px;
}

.provider-order-form {
    display: grid;
    gap: 10px;
    margin: 6px 0;
}

.provider-order-mode {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #faf8fc;
}

.provider-order-form .provider-order-mode label {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
    color: #2f2a38;
    font-weight: 700;
}

.provider-order-mode input {
    width: 16px;
    height: 16px;
}

.provider-reservation-link {
    display: none;
}

.provider-reservation-link.visible {
    display: grid;
}

.provider-order-form label {
    display: grid;
    gap: 6px;
    color: #2f2a38;
    font-weight: 700;
}

.provider-order-form label span {
    color: #2f2a38;
    font-size: 0.86rem;
}

.provider-order-form input,
.provider-order-form select,
.provider-order-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 11px;
    color: var(--text);
    background: #fff;
    font: inherit;
}

.provider-order-form textarea {
    min-height: 92px;
    resize: vertical;
}

.provider-order-message {
    min-height: 20px;
    color: var(--purple);
    font-weight: 700;
    line-height: 1.45;
}

.provider-order-total {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #f8f4fc;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.provider-order-total strong {
    color: #22172f;
}

.provider-reviews {
    display: grid;
    gap: 14px;
}

.provider-review,
.provider-review-empty {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    background: #fff;
}

.provider-review div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.provider-review span,
.provider-review-empty {
    color: var(--text-muted);
}

.provider-review p {
    margin: 8px 0;
    color: var(--purple);
}

.provider-review blockquote {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.provider-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
}

.provider-photo-modal.open {
    display: flex;
}

.provider-photo-modal img {
    max-width: min(1100px, 88vw);
    max-height: 86vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.provider-photo-modal-close,
.provider-photo-modal-nav {
    position: fixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
}

.provider-photo-modal-close {
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    font-size: 2rem;
}

.provider-photo-modal-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.provider-photo-modal-prev {
    left: 24px;
}

.provider-photo-modal-next {
    right: 24px;
}

.provider-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.provider-related-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.provider-related-card div {
    height: 112px;
    overflow: hidden;
    border-radius: 10px;
    background: #f0ebf6;
}

.provider-related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-related-empty {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--purple);
}

.provider-related-card strong {
    color: #22172f;
}

.provider-related-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 820px) {
    .providers-header .header-container {
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
        padding: 14px 20px;
    }

    .providers-menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .providers-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        z-index: 3500;
        display: none;
        width: min(280px, calc(100vw - 40px));
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: #fff;
        box-shadow: var(--shadow-md);
    }

    .providers-nav.mobile-open {
        display: grid;
        gap: 4px;
    }

    .providers-nav a {
        width: 100%;
        padding: 12px 14px;
        border-radius: 10px;
        text-align: left;
    }

    .providers-nav a:hover {
        background: #f8f5fc;
    }

    .providers-hero,
    .provider-detail-hero,
    .provider-detail-titlebar,
    .provider-detail-content,
    .provider-publish-panel,
    .provider-form {
        grid-template-columns: 1fr;
    }

    .providers-hero {
        align-items: start;
        gap: 20px;
    }

    .provider-detail-sidebar {
        position: static;
    }

    .provider-detail-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .providers-page {
        padding: 24px 20px 56px;
    }

    .providers-header .header-container {
        padding: 12px 20px;
    }

    .providers-nav {
        right: 20px;
        width: calc(100vw - 40px);
    }

    .providers-hero h1,
    .provider-publish-panel h2 {
        font-size: 1.9rem;
        line-height: 1.08;
    }

    .providers-hero p,
    .provider-publish-panel > div p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .providers-primary-action {
        width: 100%;
        min-height: 48px;
        text-align: center;
    }

    .providers-search {
        border-radius: 22px;
        padding: 12px 14px;
    }

    .providers-search input {
        min-width: 0;
    }

    .providers-toolbar {
        padding: 18px 0;
    }

    .providers-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .provider-card-image {
        height: 210px;
    }

    .provider-form {
        padding: 18px;
    }

    .provider-form input,
    .provider-form select,
    .provider-form textarea {
        min-width: 0;
    }

    .providers-empty {
        padding: 24px 18px;
    }

    .provider-detail-page {
        padding: 20px 20px 56px;
    }

    .provider-detail-hero h1 {
        font-size: 2rem;
        line-height: 1.08;
    }

    .provider-detail-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        min-height: 0;
    }

    .provider-detail-gallery-main {
        grid-row: span 1;
    }

    .provider-detail-meta {
        display: grid;
        gap: 8px;
    }

    .provider-photo-modal-nav {
        width: 40px;
        height: 40px;
    }

    .provider-photo-modal-prev {
        left: 12px;
    }

    .provider-photo-modal-next {
        right: 12px;
    }
}
