/**
 * Tillett Dealers Public Styles
 */

/* Variables */
:root {
    --tillett-yellow: #F9D616;
    --tillett-red: #ee1c25;
    --tillett-dark-grey: #3f3f3f;
    --tillett-black: #000000;
    --tillett-white: #ffffff;
    --tillett-light-grey: #f5f5f5;
}

/* ========================================
   Button Styles
   Using !important to override site global button styles
======================================== */
.tillett-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: var(--tillett-yellow) !important;
    color: var(--tillett-black) !important;
    padding: 12px 28px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%) !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    outline: none !important;
    transform: none !important;
}

.tillett-btn:hover {
    background-color: #e5c414 !important;
    color: var(--tillett-black) !important;
    text-decoration: none !important;
    transform: none !important;
}

.tillett-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.tillett-btn--red {
    background-color: var(--tillett-red) !important;
    color: var(--tillett-white) !important;
}

.tillett-btn--red:hover {
    background-color: #d11920 !important;
    color: var(--tillett-white) !important;
}

.tillett-btn--outline {
    background-color: var(--tillett-dark-grey) !important;
    border: none !important;
    color: var(--tillett-yellow) !important;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%) !important;
}

.tillett-btn--outline:hover {
    background-color: var(--tillett-yellow) !important;
    color: var(--tillett-black) !important;
}

.tillett-btn--small {
    padding: 8px 18px !important;
    font-size: 12px !important;
}

/* Remove all pink/default focus outlines */
.tillett-dealers-wrapper *:focus,
.tillett-dealer-search *:focus,
.tillett-dealers-grid-wrapper *:focus,
.tillett-dealer-card *:focus {
    outline: none;
    box-shadow: none;
}

/* Custom focus state for accessibility */
.tillett-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--tillett-yellow);
}

/* ========================================
   Map Wrapper & Filters
======================================== */
.tillett-dealers-wrapper {
    font-family: 'DIN', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   Find a Dealer Section (below map)
======================================== */
.tillett-find-dealer-section {
    background-color: var(--tillett-dark-grey);
    padding: 40px;
    margin-top: 0;
}

.tillett-find-dealer-header {
    text-align: center;
    margin-bottom: 32px;
}

.tillett-find-dealer-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--tillett-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tillett-find-dealer-title svg {
    color: var(--tillett-yellow);
}

.tillett-find-dealer-subtitle {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* Location Search */
.tillett-location-search {
    max-width: 900px;
    margin: 0 auto 32px;
    padding: 0;
    background: transparent;
    border: none;
}

.tillett-location-search__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tillett-location-search__input-wrapper {
    flex: 1;
    position: relative;
}

.tillett-location-input {
    box-sizing: border-box;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--tillett-white);
    outline: none;
    box-shadow: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.tillett-location-input:focus {
    outline: none;
    border-color: var(--tillett-yellow);
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: none;
}

.tillett-location-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tillett-location-search__divider {
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tillett-location-search .tillett-geolocation-btn {
    white-space: nowrap;
}

.tillett-location-search-btn,
.tillett-clear-location-btn {
    white-space: nowrap;
}

.tillett-clear-location-btn {
    display: none !important;
}

.tillett-clear-location-btn.is-visible {
    display: inline-flex !important;
}

/* ========================================
   Map Without Sidebar
======================================== */
.tillett-dealers-map-wrapper--no-sidebar {
    display: block;
}

.tillett-dealers-map-wrapper--no-sidebar .tillett-dealers-map-container {
    width: 100%;
}

/* ========================================
   Dealer Cards Section (below map)
======================================== */
.tillett-dealers-cards-section {
    margin-top: 32px;
}

.tillett-dealers-cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--tillett-dark-grey);
    border-bottom: 3px solid var(--tillett-yellow);
    margin-bottom: 24px;
}

.tillett-dealers-cards-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--tillett-white);
    text-transform: uppercase;
}

.tillett-dealers-cards-count {
    font-size: 16px;
    color: var(--tillett-yellow);
    font-weight: 700;
}

.tillett-dealers-cards-grid {
    display: grid;
    gap: 24px;
}

.tillett-dealers-cards-grid.tillett-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tillett-cards-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--tillett-dark-grey);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Cards Pagination */
.tillett-dealers-cards-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.tillett-dealers-cards-pagination .tillett-page-dots {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
}

/* Sidebar distance badge */
.tillett-sidebar-item__distance {
    display: inline-block;
    background-color: var(--tillett-black);
    color: var(--tillett-yellow);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Filters (inside Find Dealer section) */
.tillett-dealers-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tillett-filters-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tillett-filter-group {
    flex: 0 0 auto;
}

.tillett-filter-group--search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.tillett-filter {
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--tillett-white);
    outline: none;
    box-shadow: none;
}

.tillett-filter:focus {
    outline: none;
    border-color: var(--tillett-yellow);
    box-shadow: none;
}

.tillett-filter--search {
    width: 100%;
    padding-right: 40px;
}

.tillett-filter--type,
.tillett-filter--country {
    min-width: 150px;
}

.tillett-filter option {
    background-color: var(--tillett-dark-grey);
    color: var(--tillett-white);
}

.tillett-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
}

.tillett-search-clear:hover {
    color: var(--tillett-white);
}

/* ========================================
   Map Container & Sidebar
======================================== */
.tillett-dealers-map-wrapper {
    display: flex;
    background-color: var(--tillett-dark-grey);
}

.tillett-dealers-map-container {
    flex: 1;
    min-height: 400px;
}

.tillett-dealers-sidebar {
    width: 350px;
    max-height: 600px;
    overflow-y: auto;
    background-color: var(--tillett-dark-grey);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.tillett-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tillett-sidebar-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--tillett-white);
    text-transform: uppercase;
}

.tillett-sidebar-count {
    font-size: 13px;
    color: var(--tillett-yellow);
}

.tillett-sidebar-list {
    padding: 12px;
}

.tillett-sidebar-item {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tillett-sidebar-item:last-child {
    border-bottom: none;
}

.tillett-sidebar-item:hover,
.tillett-sidebar-item.active {
    background-color: rgba(249, 214, 22, 0.1);
}

.tillett-sidebar-item__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tillett-white);
    margin: 0 0 4px;
}

.tillett-sidebar-item__location {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.tillett-sidebar-item__badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ========================================
   Map Markers & Popups
======================================== */
.tillett-map-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tillett-map-marker:hover {
    transform: scale(1.1);
}

.mapboxgl-popup-content {
    background-color: var(--tillett-dark-grey);
    border-radius: 0;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mapboxgl-popup-close-button {
    color: var(--tillett-white);
    font-size: 20px;
    padding: 8px 12px;
}

.mapboxgl-popup-close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mapboxgl-popup-tip {
    border-top-color: var(--tillett-dark-grey);
}

.tillett-map-popup {
    padding: 20px;
    min-width: 200px;
    color: var(--tillett-white);
}

.tillett-map-popup h4 {
    margin: 8px 0;
    font-size: 16px;
    font-weight: 700;
}

.tillett-map-popup p {
    margin: 0 0 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.popup-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

.popup-badge--karting {
    background-color: var(--tillett-yellow);
    color: var(--tillett-black);
}

.popup-badge--cars {
    background-color: var(--tillett-red);
    color: var(--tillett-white);
}

.popup-badge--both {
    background: linear-gradient(135deg, var(--tillett-yellow) 50%, var(--tillett-red) 50%);
    color: var(--tillett-black);
}

.popup-view-details {
    width: 100%;
    margin-top: 8px;
}

/* ========================================
   Dealer Card Styles
======================================== */
.tillett-dealer-card {
    background-color: var(--tillett-dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 0;
    color: var(--tillett-white);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.tillett-dealer-card:hover {
    border-color: var(--tillett-yellow);
    transform: translateY(-4px);
}

/* Card Header */
.dealer-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Type Badges */
.dealer-card__type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.dealer-card__type-badge--karting {
    background-color: var(--tillett-yellow);
    color: var(--tillett-black);
}

.dealer-card__type-badge--cars {
    background-color: var(--tillett-red);
    color: var(--tillett-white);
}

.dealer-card__type-badge--both {
    background: linear-gradient(135deg, var(--tillett-yellow) 50%, var(--tillett-red) 50%);
    color: var(--tillett-black);
}

.dealer-card__country-flag {
    font-size: 24px;
    line-height: 1;
}

/* Card Body */
.dealer-card__body {
    padding: 20px;
    flex-grow: 1;
}

.dealer-card__name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--tillett-white);
    line-height: 1.3;
}

.dealer-card__address {
    font-size: 14px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Contact */
.dealer-card__contact {
    padding: 0 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dealer-card__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tillett-yellow);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.dealer-card__contact a:hover {
    color: var(--tillett-white);
}

.dealer-card__contact svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hours */
.dealer-card__hours {
    padding: 16px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dealer-card__hours h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 8px 0;
}

.dealer-card__hours pre {
    font-family: inherit;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    white-space: pre-wrap;
}

/* Social */
.dealer-card__social {
    display: flex;
    gap: 12px;
    padding: 0 20px 16px;
}

.dealer-card__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--tillett-white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dealer-card__social a:hover {
    background-color: var(--tillett-yellow);
    color: var(--tillett-black);
}

.dealer-card__social svg {
    width: 18px;
    height: 18px;
}

/* Actions */
.dealer-card__actions {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Distance (for search results) */
.dealer-card__distance {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--tillett-black);
    color: var(--tillett-yellow);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}

/* ========================================
   Dealer Modal
======================================== */
.tillett-dealer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dealer-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
}

.dealer-modal__container {
    position: relative;
    background-color: var(--tillett-dark-grey);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dealer-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--tillett-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.dealer-modal__close:hover {
    background-color: var(--tillett-red);
}

.dealer-modal__header {
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--tillett-yellow);
}

.dealer-modal__type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    margin-bottom: 12px;
}

.dealer-modal__type-badge--karting {
    background-color: var(--tillett-yellow);
    color: var(--tillett-black);
}

.dealer-modal__type-badge--cars {
    background-color: var(--tillett-red);
    color: var(--tillett-white);
}

.dealer-modal__type-badge--both {
    background: linear-gradient(135deg, var(--tillett-yellow) 50%, var(--tillett-red) 50%);
    color: var(--tillett-black);
}

.dealer-modal__name {
    font-size: 28px;
    font-weight: 700;
    color: var(--tillett-white);
    margin: 0 0 8px;
}

.dealer-modal__location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.dealer-modal__flag {
    font-size: 24px;
}

.dealer-modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dealer-modal__map {
    min-height: 250px;
    background-color: rgba(0, 0, 0, 0.3);
}

.dealer-modal__info {
    padding: 24px;
}

.dealer-modal__section {
    margin-bottom: 20px;
}

.dealer-modal__section:last-child {
    margin-bottom: 0;
}

.dealer-modal__section h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tillett-yellow);
    margin: 0 0 10px;
}

.dealer-modal__section address,
.dealer-modal__section p {
    font-size: 14px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

.dealer-modal__section a {
    color: var(--tillett-yellow);
    text-decoration: none;
}

.dealer-modal__section a:hover {
    color: var(--tillett-white);
}

.dealer-modal__section pre {
    font-family: inherit;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    white-space: pre-wrap;
}

.dealer-modal__social {
    display: flex;
    gap: 10px;
}

.dealer-modal__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--tillett-white);
    transition: all 0.3s ease;
}

.dealer-modal__social a:hover {
    background-color: var(--tillett-yellow);
    color: var(--tillett-black);
}

.dealer-modal__footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Grid Layout
======================================== */
.tillett-dealers-grid-wrapper {
    font-family: 'DIN', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tillett-grid-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background-color: var(--tillett-dark-grey);
    margin-bottom: 24px;
}

.tillett-dealers-grid {
    display: grid;
    gap: 24px;
}

.tillett-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tillett-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tillett-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Pagination */
.tillett-grid-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.tillett-page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--tillett-dark-grey);
    color: var(--tillett-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tillett-page-btn:hover {
    border-color: var(--tillett-yellow);
    color: var(--tillett-yellow);
}

.tillett-page-btn.active {
    background-color: var(--tillett-yellow);
    color: var(--tillett-black);
    border-color: var(--tillett-yellow);
}

/* ========================================
   Search Component
======================================== */
.tillett-dealer-search {
    font-family: 'DIN', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tillett-search-form {
    background-color: var(--tillett-dark-grey);
    padding: 24px;
    margin-bottom: 24px;
}

.tillett-search-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.tillett-search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--tillett-white);
    outline: none;
    box-shadow: none;
}

.tillett-search-input:focus {
    outline: none;
    border-color: var(--tillett-yellow);
    box-shadow: none;
}

.tillett-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tillett-search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.tillett-geolocation-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background-color: var(--tillett-dark-grey) !important;
    border: none !important;
    color: var(--tillett-yellow) !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%) !important;
    outline: none !important;
    transform: none !important;
}

.tillett-geolocation-btn:hover {
    background-color: var(--tillett-yellow) !important;
    color: var(--tillett-black) !important;
    transform: none !important;
}

.tillett-geolocation-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.tillett-radius-filter,
.tillett-type-filter,
.tillett-country-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tillett-radius-filter label,
.tillett-type-filter label,
.tillett-country-filter label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.tillett-radius-select,
.tillett-type-select,
.tillett-country-select {
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--tillett-white);
    outline: none;
    box-shadow: none;
}

.tillett-radius-select:focus,
.tillett-type-select:focus,
.tillett-country-select:focus {
    outline: none;
    border-color: var(--tillett-yellow);
    box-shadow: none;
}

.tillett-search-map-container {
    margin-bottom: 24px;
}

.tillett-search-results {
    display: grid;
    gap: 24px;
}

.tillett-search-no-results {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--tillett-dark-grey);
    color: rgba(255, 255, 255, 0.7);
}

.tillett-search-no-results svg {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

.tillett-search-no-results p {
    margin: 0 0 8px;
    font-size: 16px;
}

.tillett-search-suggestion {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Loading / Spinner
======================================== */
.tillett-search-loading,
.tillett-grid-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    background-color: var(--tillett-dark-grey);
    color: var(--tillett-white);
}

.tillett-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--tillett-yellow);
    border-radius: 50%;
    animation: tillett-spin 0.8s linear infinite;
}

@keyframes tillett-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Error Messages
======================================== */
.tillett-error,
.tillett-map-error {
    padding: 20px;
    background-color: rgba(238, 28, 37, 0.2);
    border: 1px solid var(--tillett-red);
    color: var(--tillett-white);
    text-align: center;
}

/* ========================================
   Responsive Styles
======================================== */
@media screen and (max-width: 991px) {
    .tillett-dealers-map-wrapper {
        flex-direction: column;
    }

    .tillett-dealers-sidebar {
        width: 100%;
        max-height: 300px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tillett-grid--cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .dealer-modal__body {
        grid-template-columns: 1fr;
    }

    .dealer-modal__map {
        order: 2;
    }
}

@media screen and (max-width: 767px) {
    .tillett-find-dealer-section {
        padding: 30px 20px;
    }

    .tillett-find-dealer-title {
        font-size: 22px;
    }

    .tillett-find-dealer-subtitle {
        font-size: 14px;
    }

    .tillett-location-search__row {
        flex-direction: column;
    }

    .tillett-location-search__row .tillett-location-search__input-wrapper {
        width: 100%;
    }

    .tillett-location-search__row .tillett-btn,
    .tillett-location-search__row .tillett-geolocation-btn {
        width: 100%;
        justify-content: center;
    }

    .tillett-location-search__divider {
        display: none;
    }

    .tillett-dealers-filters {
        flex-direction: column;
    }

    .tillett-filter-group {
        width: 100%;
    }

    .tillett-filter--type,
    .tillett-filter--country,
    .tillett-filter--search {
        width: 100%;
    }

    .tillett-grid--cols-3,
    .tillett-grid--cols-4,
    .tillett-dealers-cards-grid.tillett-grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tillett-search-input-wrapper,
    .tillett-location-search__input-group {
        flex-direction: column;
    }

    .tillett-search-options,
    .tillett-location-search__options {
        flex-direction: column;
        align-items: stretch;
    }

    .tillett-geolocation-btn {
        justify-content: center;
    }

    .dealer-modal__name {
        font-size: 22px;
    }

    .dealer-modal__footer {
        flex-direction: column;
    }

    .dealer-modal__footer .tillett-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .tillett-grid--cols-2,
    .tillett-grid--cols-3,
    .tillett-grid--cols-4,
    .tillett-search-results.tillett-grid--cols-2,
    .tillett-search-results.tillett-grid--cols-3,
    .tillett-search-results.tillett-grid--cols-4,
    .tillett-dealers-cards-grid.tillett-grid--cols-3 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Global Reset - Remove browser focus styles
======================================== */
.tillett-dealers-wrapper,
.tillett-dealer-search,
.tillett-dealers-grid-wrapper,
.tillett-dealer-card,
.tillett-dealer-modal {
    /* Reset all inputs, buttons, selects within plugin containers */
}

.tillett-dealers-wrapper input:focus,
.tillett-dealers-wrapper select:focus,
.tillett-dealers-wrapper button:focus,
.tillett-dealers-wrapper a:focus,
.tillett-dealer-search input:focus,
.tillett-dealer-search select:focus,
.tillett-dealer-search button:focus,
.tillett-dealer-search a:focus,
.tillett-dealers-grid-wrapper input:focus,
.tillett-dealers-grid-wrapper select:focus,
.tillett-dealers-grid-wrapper button:focus,
.tillett-dealers-grid-wrapper a:focus,
.tillett-dealer-card input:focus,
.tillett-dealer-card select:focus,
.tillett-dealer-card button:focus,
.tillett-dealer-card a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ========================================
   Override Site Global Button Styles
   These use high specificity to override theme/site CSS
======================================== */
/* Override for all .tillett-btn buttons - ensure correct clip-path and no transform */
.tillett-dealers-wrapper .tillett-btn,
.tillett-dealer-search .tillett-btn,
.tillett-dealers-grid-wrapper .tillett-btn,
.tillett-dealer-card .tillett-btn,
.tillett-dealer-modal .tillett-btn,
.tillett-map-popup .tillett-btn,
button.tillett-btn,
a.tillett-btn {
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%) !important;
    transform: none !important;
    background-color: var(--tillett-yellow) !important;
    color: var(--tillett-black) !important;
    border: none !important;
}

.tillett-dealers-wrapper .tillett-btn:hover,
.tillett-dealer-search .tillett-btn:hover,
.tillett-dealers-grid-wrapper .tillett-btn:hover,
.tillett-dealer-card .tillett-btn:hover,
.tillett-dealer-modal .tillett-btn:hover,
.tillett-map-popup .tillett-btn:hover,
button.tillett-btn:hover,
a.tillett-btn:hover {
    background-color: #e5c414 !important;
    color: var(--tillett-black) !important;
    transform: none !important;
}

/* Override for outline buttons */
.tillett-dealers-wrapper .tillett-btn--outline,
.tillett-dealer-search .tillett-btn--outline,
.tillett-dealers-grid-wrapper .tillett-btn--outline,
.tillett-dealer-card .tillett-btn--outline,
.tillett-dealer-modal .tillett-btn--outline,
button.tillett-btn--outline,
a.tillett-btn--outline {
    background-color: var(--tillett-dark-grey) !important;
    color: var(--tillett-yellow) !important;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%) !important;
}

.tillett-dealers-wrapper .tillett-btn--outline:hover,
.tillett-dealer-search .tillett-btn--outline:hover,
.tillett-dealers-grid-wrapper .tillett-btn--outline:hover,
.tillett-dealer-card .tillett-btn--outline:hover,
.tillett-dealer-modal .tillett-btn--outline:hover,
button.tillett-btn--outline:hover,
a.tillett-btn--outline:hover {
    background-color: var(--tillett-yellow) !important;
    color: var(--tillett-black) !important;
    transform: none !important;
}

/* Override for geolocation button */
.tillett-dealer-search .tillett-geolocation-btn,
button.tillett-geolocation-btn {
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%) !important;
    transform: none !important;
    background-color: var(--tillett-dark-grey) !important;
    color: var(--tillett-yellow) !important;
}

.tillett-dealer-search .tillett-geolocation-btn:hover,
button.tillett-geolocation-btn:hover {
    background-color: var(--tillett-yellow) !important;
    color: var(--tillett-black) !important;
    transform: none !important;
}

/* ========================================
   Remove ALL Focus Outlines (Pink/Default)
   Ultimate specificity override
======================================== */
.tillett-btn:focus,
.tillett-btn:focus-visible,
.tillett-btn:active,
.tillett-btn--outline:focus,
.tillett-btn--outline:focus-visible,
.tillett-btn--outline:active,
.tillett-btn--small:focus,
.tillett-btn--small:focus-visible,
.tillett-btn--small:active,
.tillett-geolocation-btn:focus,
.tillett-geolocation-btn:focus-visible,
.tillett-geolocation-btn:active,
button.tillett-btn:focus,
button.tillett-btn:focus-visible,
button.tillett-btn:active,
a.tillett-btn:focus,
a.tillett-btn:focus-visible,
a.tillett-btn:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Catch any attribute selectors the site might use */
[class*="tillett-btn"]:focus,
[class*="tillett-btn"]:focus-visible,
[class*="tillett-btn"]:active,
[class*="tillett-geolocation"]:focus,
[class*="tillett-geolocation"]:focus-visible,
[class*="tillett-geolocation"]:active {
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
}
