.location-archive,
.single-location {
    background: #f7f5f1;
    color: #111111;
    min-height: 100vh;
}

.location-shell {
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
}

.location-hero {
    padding: 150px 0 56px;
    background: #111111;
    color: #ffffff;
}

.location-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.72;
}

.location-hero h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.location-directory {
    padding: 48px 0 72px;
}

.location-layout {
    display: grid;
    grid-template-columns: minmax(360px, 420px) minmax(420px, 1fr);
    gap: 24px;
    align-items: start;
}

.location-sidebar {
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.12);
}

.location-toolbar {
    padding: 20px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.location-search {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    color: #111111;
    font: inherit;
    background: #ffffff;
}

.location-results {
    margin: 12px 0 0;
    color: rgba(17, 17, 17, 0.6);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.location-list {
    display: grid;
    max-height: min(72vh, 760px);
    overflow-y: auto;
}

.location-item,
.single-location-card,
.single-location-copy,
.location-empty {
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.12);
}

.location-item {
    min-height: 0;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.location-item:hover,
.location-item.is-active {
    border-color: rgba(17, 17, 17, 0.12);
    box-shadow: inset 4px 0 0 #111111;
    transform: none;
}

.location-content {
    padding: 22px 20px;
}

.location-content h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.location-address,
.location-meta {
    margin: 0 0 8px;
    color: rgba(17, 17, 17, 0.78);
}

.location-meta a,
.single-location-card a {
    color: inherit;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #111111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 600;
}

.location-link-primary {
    background: #111111;
    color: #ffffff;
}

.location-link-secondary {
    color: #111111;
    background: transparent;
}

.location-map-panel {
    position: sticky;
    top: 110px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.12);
}

.location-map {
    width: 100%;
    height: min(72vh, 760px);
    min-height: 520px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    border-radius: 0;
}

.location-empty {
    padding: 28px;
}

.single-location-body {
    padding: 48px 0 72px;
}

.single-location-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
}

.location-reference-page {
    background: #ffffff;
}

.location-reference-page .single-location-body {
    padding: 150px 0 72px;
}

.location-reference-header {
    margin-bottom: 34px;
    text-align: center;
}

.location-reference-header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.location-reference-intro {
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 1.05fr);
    gap: 42px;
    align-items: start;
    max-width: 980px;
    margin: 0 auto 48px;
}

.location-reference-image {
    min-height: 360px;
}

.location-reference-image img {
    display: block;
    width: 100%;
    min-height: 360px;
    height: 100%;
    object-fit: cover;
}

.location-reference-details {
    display: grid;
    gap: 18px;
    padding-top: 8px;
}

.location-reference-fact {
    padding-bottom: 6px;
}

.location-reference-fact h2,
.location-detail-section h2,
.location-side-card h2 {
    margin: 0 0 10px;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
}

.location-reference-fact p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.6;
}

.location-reference-fact a:not(.location-link) {
    color: inherit;
}

.location-hours {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.location-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.location-lead {
    font-size: 20px;
    line-height: 1.7;
}

.location-detail-section+.location-detail-section {
    margin-top: 28px;
}

.location-hours-content {
    margin-bottom: 24px;
}

.location-hours-content p {
    margin: 8px 0;
}

.location-awards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.location-awards-grid img {
    max-width: 150px;
    height: auto;
    display: block;
}

.location-reference-gallery {
    margin-bottom: 54px;
}

.location-reference-clinicians {
    margin-bottom: 38px;
}

.location-reference-clinicians h2 {
    margin: 0 0 20px;
    font-size: 28px;
    text-align: center;
}

.location-reference-clinicians-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.location-clinician-card {
    overflow: hidden;
}

.location-clinician-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.location-clinician-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1.15 / 1;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 0 0 28px 0;
}

.location-clinician-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    text-align: center;
}

.location-clinician-card p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.location-reference-copy {
    display: grid;
    /* grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px; */
    align-items: start;
}

.location-main-content,
.location-side-card {
    background: #ffffff;
    /* border: 1px solid rgba(17, 17, 17, 0.12); */
}

.location-main-content {
    padding: 34px;
}

.location-side-content {
    display: grid;
    gap: 22px;
}

.location-side-card {
    padding: 24px;
}

.location-clinicians ul {
    margin: 0;
    padding-left: 18px;
}

.location-clinicians li+li {
    margin-top: 8px;
}

.location-clinicians a {
    color: inherit;
}

.location-reference-appointment {
    margin-top: 60px;
    padding: 70px 40px;
    background-color: #111111;
    background-image: linear-gradient(145deg, #181818 0%, #0d0d0d 100%);
    color: #ffffff;
    text-align: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(201, 169, 97, 0.15);
    /* Delicate gold border */
}

/* Elegant gold gradient glow in the background */
.location-reference-appointment::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 10%, rgba(201, 169, 97, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.location-reference-appointment h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 400;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
    color: var(--color-accent, #c9a961);
    /* Gold heading */
    letter-spacing: 0.03em;
}

.location-reference-appointment .appointment-desc {
    font-size: 16px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.location-reference-appointment .btn-appointment {
    display: inline-block;
    background-color: var(--color-accent, #c9a961);
    color: #111111;
    padding: 16px 36px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.location-reference-appointment .btn-appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.location-reference-appointment .btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 169, 97, 0.3);
    background-color: #d8b870;
    /* Slightly brighter gold on hover */
    color: #111111;
}

.location-reference-appointment .btn-appointment:hover::before {
    left: 100%;
}

.service-detail-page {
    background: #ffffff;
    color: #111111;
    overflow: hidden;
}

.service-detail-wrapper {
    background: #fdfdfd;
    padding: 80px 0;
    font-family: var(--font-body);
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-header-block {
    margin-bottom: 50px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.service-name-h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.service-layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-img-box {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    background: #fff;
    line-height: 0;
}

.service-primary-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.service-image-placeholder {
    width: 100%;
    min-height: 400px;
    background: #252525;
}

.service-book-btn {
    display: block;
    text-align: center;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.2);
}

.service-book-btn:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.25);
    transform: translateY(-2px);
}

.service-main-body {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.service-section {
    text-align: left;
}

.service-section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-primary);
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 12px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
}

.service-body-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
    text-align: left;
}

.service-body-content p {
    margin-bottom: 20px;
}

.service-body-content p:last-child {
    margin-bottom: 0;
}

.service-body-content ul,
.service-body-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.service-body-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.service-resources-list {
    list-style: none;
    padding-left: 0 !important;
}

.service-resources-list li {
    position: relative;
    padding-left: 20px;
}

.service-resources-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.25rem;
    top: -2px;
}

.service-resources-list li a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.service-resources-list li a:hover {
    text-decoration: underline;
}

.single-location-card {
    padding: 24px;
}

.single-location-image {
    margin: -24px -24px 22px;
}

.single-location-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-location-copy {
    padding: 32px;
}

@media (max-width: 960px) {
    .location-shell {
        width: min(100% - 32px, 1400px);
    }

    .location-layout,
    .single-location-grid,
    .location-reference-intro,
    .location-reference-copy,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-name-h1 {
        font-size: 2.5rem;
    }

    .service-section-title {
        font-size: 1.8rem;
    }

    .location-sidebar {
        order: 2;
    }

    .location-map-panel {
        position: static;
        order: -1;
    }

    .location-map {
        min-height: 360px;
        height: 420px;
    }

    .location-reference-clinicians-grid {
        grid-template-columns: 1fr;
    }

    .location-reference-image,
    .location-reference-image img {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .location-hero {
        padding: 120px 0 36px;
    }

    .location-directory,
    .single-location-body {
        padding: 28px 0 48px;
    }

    .location-item {
        min-height: 0;
    }

    .location-content {
        padding: 18px;
    }

    .location-actions {
        flex-direction: column;
    }

    .location-link {
        width: 100%;
    }

    .location-reference-page .single-location-body {
        padding-top: 120px;
    }

    .location-main-content,
    .location-side-card,
    .location-reference-appointment {
        padding: 22px;
    }
}

/* Service Related Blogs Panel */
.service-related-blogs {
    margin: 60px 0;
}

h2.related-blogs-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 500;
    margin-bottom: 24px !important;
    letter-spacing: 0.02em;
}

.related-blogs-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.related-blog-card {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.related-blog-image {
    flex: 0 0 45%;
    border-radius: 20px;
    overflow: hidden;
}

.related-blog-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-blog-card:hover .related-blog-img {
    transform: scale(1.02);
}

.related-blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.related-blog-post-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 15px;
}

.related-blog-post-title a {
    color: inherit;
    text-decoration: none;
}

.related-blog-excerpt {
    color: rgba(17, 17, 17, 0.78);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.related-blog-excerpt p {
    margin: 0;
}

.related-blog-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.related-blog-read-more:hover {
    background: #333333;
}

/* Responsive adjustments for Blog Cards */
@media (max-width: 768px) {
    .related-blog-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .related-blog-image {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Service Information Block */
.service-info-block {
    margin: 50px 0;
    background: #f8f9fa;
    /* Light gray background */
    border-radius: 20px;
    overflow: hidden;
}

.service-info-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.service-info-image {
    flex: 0 0 45%;
}

.service-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 350px;
}

.service-info-content {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1.service-info-title {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.2;
}

/* Service FAQ Block */
.service-faq-block {
    margin: 50px 0;
}

h2.service-faq-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 500;
    margin-bottom: 24px;
    text-align: left;
}

/* Shared Accordion Styles */
.service-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-accordion {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    /* Rounded pill shape */
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-accordion:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.service-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
}

/* Hide default marker for WebKit */
.service-accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.service-accordion[open] .accordion-icon {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.service-accordion-body {
    padding: 0 24px 24px;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

/* Specific FAQ Accordion Styles */
.faq-accordions {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    gap: 0;
}

.faq-accordions .service-accordion {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #eaeaea;
    box-shadow: none;
}

.faq-accordions .service-accordion:last-child {
    border-bottom: none;
}

/* Responsive Accordions */
@media (max-width: 768px) {
    .service-info-grid {
        flex-direction: column;
    }

    .service-info-image {
        flex: 1 1 100%;
        width: 100%;
    }

    .service-info-image img {
        min-height: 250px;
    }

    .service-info-content {
        padding: 30px 20px;
    }
}

/* ============================================
   GOOGLE MAPS MULTI-TAB STYLING
   ============================================ */
.location-map-panel {
    position: sticky;
    top: 110px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.12);
}

.location-maps-wrapper {
    width: 100%;
}

.location-map-box {
    display: none;
    width: 100%;
    height: min(72vh, 760px);
    min-height: 520px;
    background: #e5e3df;
}

.location-map-box.is-active {
    display: block;
}

.location-map-box iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) brightness(1.1);
}

/* Mobile Map Inside Cards */
.location-mobile-map {
    display: none;
    margin-top: 20px;
    width: 100%;
    height: 320px;
    background: #e5e3df;
    border: 1px solid rgba(17, 17, 17, 0.12);
    overflow: hidden;
}

.leaflet-container .leaflet-tile-container img {
    filter: grayscale(100%) brightness(1.1) contrast(1.1) !important;
}

.leaflet-custom-icon-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-leaflet-marker {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: auto !important;
    height: auto !important;
    white-space: nowrap;
}

.custom-leaflet-marker svg {
    width: 32px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
}

.custom-leaflet-marker:hover svg,
.marker-is-active svg {
    transform: scale(1.15);
}

.leaflet-pin-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000000;
    background-color: transparent;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    pointer-events: none;
    text-shadow: 1px 1px 0 #ffffff, -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff;
}

/* Smooth transitions for card active state and mobile map */
.location-item {
    cursor: pointer;
}

/* On mobile view: hide sidebar map, expand active card to show inline map */
@media (max-width: 960px) {
    .location-map-panel {
        display: none !important;
    }

    .location-item.is-active .location-mobile-map {
        display: block;
    }
}