.page-dealer-profile { background: #fff; }
.page-dealer-profile [hidden] { display: none !important; }
.dealer-profile-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding: 12px 0 20px; }
.dealer-profile-heading > div { min-width: 0; }
.facility-content .dealer-profile-heading h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
.dealer-profile-address { display: flex; align-items: flex-start; gap: 6px; color: #56616a; font-size: 14px; }
.dealer-profile-address svg { width: 16px; height: 20px; flex-shrink: 0; }
.dealer-profile-heading .catalog-detail-actions { margin: 0; }
.dealer-profile-heading .button { min-height: 42px; font-size: 14px; padding: 10px 12px; }
.dealer-profile-nav { display: flex; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid #e2e7e9; }
.dealer-profile-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; min-height: 44px; color: #263b3b; font-size: 14px; font-weight: 600; text-decoration: none; }
.dealer-profile-nav a:first-child { border-bottom: 2px solid #007e68; }
.dealer-profile-nav svg, .dealer-profile-links svg, .dealer-profile-relation svg { width: 18px; height: 18px; flex-shrink: 0; }
.dealer-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 28px; padding: 24px 0; align-items: start; }
.dealer-profile-main, .dealer-profile-sidebar { min-width: 0; }
.dealer-profile-sidebar { padding-left: 24px; }
.dealer-profile-layout [id], .dealer-profile-main { scroll-margin-top: 90px; }
.dealer-profile-main .dealer-inventory { margin: 0; border-top: 0; padding-top: 0; }
.dealer-profile-main .dealer-inventory > header { display: block; }
.dealer-profile-main .dealer-inventory h2 { font-size: 22px; }
.dealer-profile-main [data-inventory-meta] { font-size: 12px; margin: 6px 0 0; }
.dealer-profile-main .inventory-table { min-width: 700px; }
.dealer-profile-main .inventory-table th, .dealer-profile-main .inventory-table td { padding: 12px 8px; }
.dealer-profile-main .inventory-table td:nth-child(2) { min-width: 130px; }
.dealer-profile-main .inventory-scroll { margin-top: 16px; }
.dealer-profile-section { padding-bottom: 20px; margin-bottom: 20px; }
.dealer-profile-section h2, .dealer-profile-stock-links h2, .dealer-profile-sidebar .inventory-make-summary h3 { font-size: 16px; line-height: 24px; margin: 0 0 12px; }
.dealer-profile-contact { margin: 0; font-size: 14px; }
.dealer-profile-contact dt { margin-top: 12px; margin-bottom: 3px; color: #667477; font-size: 12px; }
.dealer-profile-contact dd { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.dealer-profile-contact a, .dealer-profile-links a { color: #006b68; }
.dealer-profile-sidebar .notice { margin: 12px 0 0; font-size: 12px; color: #667477; line-height: 1.5; }
.dealer-profile-sidebar [hidden] { display: none !important; }
.dealer-profile-sidebar .inventory-make-summary { margin: 0 0 20px; padding-bottom: 20px; }
.dealer-profile-sidebar [data-inventory-summary-scope]:not([hidden]) { margin: -8px 0 20px; }
.dealer-profile-offers, .dealer-profile-brand-names { list-style: none; padding: 0; margin: 0; }
.dealer-profile-offers > li + li { margin-top: 16px; }
.dealer-profile-relation { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #56616a; }
.dealer-profile-relation.is-authorized { color: #197447; font-weight: 600; }
.dealer-profile-brand-names { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.dealer-profile-brand-names li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dealer-profile-brand-names .brand-logo { width: 32px; height: 24px; object-fit: contain; }
.dealer-profile-sidebar .facility-location { margin-top: 0; }
.dealer-profile-sidebar .facility-location h3 { font-size: 16px; }
.dealer-profile-sidebar .facility-location-map { height: 200px; }
.dealer-profile-sidebar .facility-directions { font-size: 13px; }
.dealer-profile-stock-links { margin-top: 24px; padding-top: 20px; }
.dealer-profile-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.dealer-profile-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; }
.dealer-profile-stock-links p, .dealer-profile-empty p { margin-top: 12px; line-height: 1.5; }
.dealer-profile-empty h2 { font-size: 22px; }
@media (max-width: 1000px) {
    .dealer-profile-layout { grid-template-columns: minmax(0, 1fr) 244px; gap: 20px; }
    .dealer-profile-sidebar { padding-left: 20px; }
}
@media (max-width: 760px) {
    .facility-content .dealer-profile-heading h1 { font-size: 24px; }
    .dealer-profile-heading { gap: 14px; padding-top: 8px; padding-bottom: 16px; }
    .dealer-profile-heading .catalog-detail-actions { gap: 8px; }
    .dealer-profile-nav { gap: 12px; }
    .dealer-profile-nav a { gap: 6px; font-size: 13px; }
    .dealer-profile-nav svg { display: none; }
    .dealer-profile-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
    .dealer-profile-sidebar { padding-left: 0; border-left: 0; padding-top: 20px; }
    .dealer-profile-main .inventory-table { min-width: 700px; }
    .dealer-profile-sidebar .facility-location-map { height: 240px; }
}

@media (max-width:760px) {
    .page-dealer-profile .inventory-scroll { overflow-x:visible; }
    .page-dealer-profile .inventory-table,
    .page-dealer-profile .inventory-table tbody { display:block; min-width:0; }
    .page-dealer-profile .inventory-table thead { display:none; }
    .page-dealer-profile .inventory-table tbody tr {
        display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 16px;
        padding:16px 0; border-bottom:1px solid #e2e7e9;
    }
    .page-dealer-profile .inventory-table tbody tr:last-child { border-bottom:0; }
    .page-dealer-profile .inventory-table td {
        display:block; min-width:0; max-width:none; padding:0; border:0;
        text-align:left; white-space:normal; overflow-wrap:anywhere;
    }
    .page-dealer-profile .inventory-table td::before {
        content:attr(data-label); display:block; margin-bottom:2px; color:#667477; font-size:12px;
    }
    .page-dealer-profile .inventory-table td:nth-child(1) { grid-column:1; grid-row:1; }
    .page-dealer-profile .inventory-table td:nth-child(2) { grid-column:1; grid-row:2; font-weight:600; }
    .page-dealer-profile .inventory-table td:nth-child(3) { grid-column:1; grid-row:3; }
    .page-dealer-profile .inventory-table td:nth-child(4) { grid-column:2; grid-row:3; }
    .page-dealer-profile .inventory-table td:nth-child(5) { grid-column:2; grid-row:4; }
    .page-dealer-profile .inventory-table td:nth-child(6) { grid-column:1; grid-row:4; text-align:left; }
    .page-dealer-profile .inventory-table td:nth-child(7) { grid-column:2; grid-row:1 / 3; font-weight:700; font-size:17px; }
    .page-dealer-profile .inventory-table td:nth-child(1)::before,
    .page-dealer-profile .inventory-table td:nth-child(2)::before { display:none; }
}
