/* AHI Dealer Locator - Enhanced Styles */
.ahi-top-search,
.ahi-top-search *,
.ahi-dealer-wrap,
.ahi-dealer-wrap *,
.ahi-container,
.ahi-container * {
    font-family: inherit;
}
 
/* Ensure Dashicons render correctly in frontend locator UI */
.ahi-top-search .dashicons,
.ahi-dealer-wrap .dashicons,
.ahi-container .dashicons {
    font-family: "dashicons" !important;
}
 
.ahi-top-search, .ahi-dealer-wrap {
    font-family: 'Montserrat';
}
 
.ahi-top-search {
 
}
 
.ahi-container {
    max-width: 550px;
    margin: 0 auto;
	background: #fafafa;
    padding: 60px;
    border-bottom: 1px solid #eee;
    margin-bottom: 50px;
}
 
.ahi-top-search h2 {
    margin: 0 0 30px 0;
    font-size: 17px;
    color: #333;
}
 
.ahi-sub {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 14px;
}
 
.ahi-filters {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    align-items: center;
}

.ahi-search-input {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 14px;
}

.ahi-filters select,
.ahi-pincode-input {
    padding: 10px 15px;
    border: 1px solid #fff;
    border-radius: 4px;
    min-width: 180px;
    font-size: 14px;
    background: #fff;
}

.ahi-pincode-input {
    width: 140px;
    max-width: 180px;
}
 
.ahi-btn {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}
 
.ahi-btn:hover {
    background: #555;
}
 
.ahi-btn-secondary {
    background: #666;
}
 
.ahi-btn-secondary:hover {
    background: #888;
}
 
.ahi-dealer-wrap {
    display: flex;
    gap: 0;
    max-width: 100%;
    margin: 20px auto;
    min-height: 600px;
}
 
.ahi-left {
    width: 40%;
    background: #f9f9f9;
    border-right: 1px solid #eaeaea;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 900px;
    overflow-x: hidden;
}
 
.ahi-map {
    flex: 1;
    height: 700px;
    min-height: 600px;
}
 
.ahi-tabs {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
    background: #666666;
}


 
.ahi-dealer-search-wrapper {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.ahi-dealer-search-input {
    flex: 1;
    padding: 16px 50px 16px 15px !important;
    border: 1px solid transparent !important;
    font-size: 14px;
    background: #fff;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
}
 
.ahi-dealer-search-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}
 
.ahi-dealer-search-input::placeholder {
    color: #999;
}
 
.ahi-dealer-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}
 
.ahi-dealer-search-btn {
    line-height: 0;
    background: #163865 !important;
    color: #fff !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.3s;
}
 
.ahi-dealer-search-btn:hover {
    background: #135e96;
}
 
.ahi-dealer-search-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}
 
.ahi-tab {
    background: #666;
    color: #fff;
    padding: 15px 28px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}
 
.ahi-tab:hover {
    background: #555;
}
 
.ahi-tab.active {
    background: #333 !important;
}
 
.ahi-results-count .results-info {
    margin: 0;
    color: #333;
    font-size: 14px;
}
 
.ahi-results-count .results-info strong {
    color: #000;
}
 
#ahi_dealer_list,
#ahi_warranty_agent_list {
    margin-top: 0;
    color: #393a3b;
}
 
.dealer-card {
    padding: 25px 25px 25px 45px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}
 
.dealer-card h4 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}
 
.dealer-field {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    display: flex;
    gap: 10px;
    font-weight: 500;
    font-family: 'Montserrat';
}
 
.dealer-field strong {
    color: #393a3b;
    margin-right: 5px;
    font-family: 'Montserrat';
}
 
.dealer-field a {
    text-decoration: none;
    color: #393a3b;
}
 
.dealer-field a:hover {
    text-decoration: underline;
}
 
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}
 
.service-badge {
    display: inline-block;
    background: #e8e8e8;
    color: #333;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}
 
/* Hidden by default */
.view-on-map-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: #606060;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s ease;
    position: absolute;
    transform: rotate(270deg) translateY(50%);
    transform-origin: center;
    top: 35%;
    right: -40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
 
.dealer-card:hover .view-on-map-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
 
.view-on-map-btn:hover {
    background: #163865;
}
 
.no-results {
    color: #777;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}
 
/* Map popup styles */
.dealer-popup {
    font-size: 13px;
    line-height: 1.6;
}
 
.dealer-popup h3 {
    font-size: 16px;
    color: #fff !important;
}
 
.dealer-popup p {
    margin: 8px 0;
    color: #555;
}
 
.dealer-popup strong {
    color: #333;
    margin-right: 5px;
}
 
.dealer-popup a {
    color: #0066cc;
    text-decoration: none;
}
 
.dealer-popup a:hover {
    text-decoration: underline;
}
 
/* Map popup styles - Enhanced for better visibility */
.dealer-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}
 
.dealer-map-popup .leaflet-popup-content {
    margin: 0;
    min-width: 350px;
    max-width: 450px;
    max-height: 500px;
    overflow-y: auto;
}
 
.dealer-popup-header {
    background: #163865;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
}
 
.dealer-popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
 
.dealer-popup-body {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}
 
.dealer-popup-field {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f1;
}
 
.dealer-popup-field:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
 
.dealer-popup-label {
    min-width: 100px;
    font-weight: 600;
    color: #1d2327;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
 
.dealer-popup-label strong {
    color: #1d2327;
    font-weight: 600;
}
 
.dealer-popup-value {
    flex: 1;
    color: #50575e;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.6;
}
 
.dealer-popup-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}
 
.dealer-popup-link:hover {
    color: #135e96;
    text-decoration: underline;
}
 
.dealer-popup-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
 
.dealer-popup-service-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e8e8e8;
    color: #333;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}
 
/* Scrollbar Styling */
.ahi-dealer-list::-webkit-scrollbar,
.dealer-popup-body::-webkit-scrollbar {
    width: 8px;
}
 
.ahi-dealer-list::-webkit-scrollbar-track,
.dealer-popup-body::-webkit-scrollbar-track {
    background: #f6f7f7;
    border-radius: 4px;
}
 
.ahi-dealer-list::-webkit-scrollbar-thumb,
.dealer-popup-body::-webkit-scrollbar-thumb {
    background: #c3c4c7;
    border-radius: 4px;
}
 
.ahi-dealer-list::-webkit-scrollbar-thumb:hover,
.dealer-popup-body::-webkit-scrollbar-thumb:hover {
    background: #8c8f94;
}
 
/* Popup tip styling */
.dealer-map-popup .leaflet-popup-tip {
    background: #2271b1;
}
/* pincode input field */
.ahi-pincode-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
    font-size: 15px;
    color: #8a8a8a;
    padding: 8px 0;
}
.ahi-pincode-input::placeholder {
    color: #8a8a8a;
}

/* Responsive design */
@media (max-width: 768px) {
	.ahi-location-cards-viewport {
		padding: 0 0;
	}
    .ahi-dealer-wrap {
        flex-direction: column;
		padding-left: 40px;
        padding-right: 40px;
    }
.ahi-pincode-wrap {
    width: 100%;
    max-width: 100%;
}
	
    .ahi-left {
        width: 100%;
        max-height: 400px;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
    .ahi-map {
        width: 100%;
        height: 400px;
    }
    .ahi-filters {
        flex-direction: column;
    }
    .ahi-search-input,
    .ahi-filters select {
        width: 100%;
        min-width: 100%;
    }
    .ahi-btn {
        width: 100%;
    }
    .dealer-map-popup .leaflet-popup-content {
        min-width: 280px;
        max-width: 320px;
    }
    .dealer-popup-field {
        flex-direction: column;
        gap: 4px;
    }
    .dealer-popup-label {
        min-width: auto;
    }
    .ahi-dealer-search-input {
        padding-right: 45px;
    }
    .ahi-dealer-search-btn {
        width: 32px;
        height: 32px;
    }
    .ahi-dealer-search-btn svg {
        width: 18px;
        height: 18px;
    }
 
    .ahi-location-card {
        flex: 0 0 260px;
        min-width: 260px;
        width: 260px;
    }
}
 
@media screen and (min-width: 767px) and (max-width: 1024px) {
	    .ahi-left {
        width: 100%;
    }
    .ahi-map {
        width: 100%;
    }
	.ahi-dealer-wrap {
		display: inline-block;
		width:100%;
		padding-left:40px;
		padding-right:40px;
	}
}
 
.ahi-tab {
    display: flex;
    align-items: center;
    gap: 5px;
}
 
.ahi-tab img {
    width: 20px;
    height: 20px;
}
.ahi-tab:focus,
.ahi-tab:focus-visible,
.ahi-tab.active:focus,
.ahi-tab.active:focus-visible {
    outline: none !important;
    box-shadow: none !important; /* optional */
}
 
.dealer-wrapper {
    padding: 25px 15px 15px 15px;
}
 
.dealer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
	padding-bottom: 20px;
}
 
.dealer-title {
    font-size: 22px;
    color: #163d73; /* Dark blue like your design */
    margin: 0;
}
 
.dealer-icon-location,
.dealer-icon-phone,
.dealer-icon-email,
.dealer-icon-globe {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}
 
.dealer-icon-location {
    background-image: url(../icons/location.png);
    position: absolute;
    left: -30px;
    top: 12px;
    transform: translateY(-50%);
}
 
.ahi-location-pin-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url(../icons/location.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
 
.ahi-location-pin-btn:hover {
    opacity: 0.8;
}
 
.dealer-header .ahi-location-pin-btn {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}
 
/* Connect buttons (split Email / Call) */
.ahi-connect-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
 
.ahi-connect-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #606060;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    letter-spacing: 0.5px;
}
 
.ahi-connect-btn:hover {
    background: #163865;
    color: #fff;
}
 
.ahi-connect-email,
.ahi-connect-phone {
    font-family: inherit;
}
 
.dealer-icon-phone {
    background-image: url('../icons/phone.png');
}
 
.dealer-icon-email {
    background-image: url('../icons/email.png');
}
 
.dealer-icon-globe {
    background-image: url('../icons/globe.png');
}
.dealer-contact-row {
    display: inline-block;
    margin: 6px 0;
    font-weight: 500;
    line-height: 35px;
}
 
.dealer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.dealer-contact-item a {
    font-size: 15px;
    text-decoration: auto;
    color: #393a3b;
}
 
.leaflet-container a.leaflet-popup-close-button {
    font: 23px / 23px Tahoma, Verdana, sans-serif !important;
    color: #fff !important;
}
 
 

.ahi-filter-surface {
    position: relative;
}
button:focus {
    background: #333333 !important;
}
 
/* Our Global Locations (office locator) */
.ahi-global-locations {
    padding: 0px 0 40px;
    margin-bottom: 0;
}
 
.ahi-global-locations .ahi-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
}
 
.ahi-location-card-head button {
    border: 1px solid transparent;
}
 
.ahi-global-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-align: center;
}
 
.ahi-global-subtitle {
    margin: 0 0 30px;
    font-size: 15px;
    color: #666;
    text-align: center;
}
 
.ahi-flag-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
 
.ahi-flag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
 
.ahi-flag-item:hover {
    border-color: #163865;
    box-shadow: 0 2px 8px rgba(22, 56, 101, 0.15);
}
 
.ahi-flag-item img {
    display: block;
    width: 40px;
    height: 30px;
    object-fit: cover;
}
 
.ahi-flag-placeholder {
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
}
 
.ahi-no-flags,
.ahi-no-cards {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 0;
}
 
.ahi-location-cards {
    position: relative;
}
 
.ahi-location-cards-viewport {
    position: relative;
    overflow: hidden;
    padding: 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    container-type: inline-size;
    container-name: ahi-carousel;
}
 
.ahi-location-cards-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}
 
.ahi-location-cards-track.ahi-carousel-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}
 
.ahi-location-cards-track.ahi-carousel-dragging * {
    pointer-events: none;
}
 
.ahi-location-cards-track.ahi-carousel-dragging a.ahi-connect-btn,
.ahi-location-cards-track.ahi-carousel-dragging .ahi-location-card-pin {
    pointer-events: auto;
}
 
.ahi-location-cards-track::-webkit-scrollbar {
    display: none;
}
 
.ahi-location-card {
    flex: 0 0 300px;
    width: 300px;
    min-width: 280px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
 
/* Exactly 4 slides: card width = (viewport − 3×gap) / 4, no fixed viewport width */
@container ahi-carousel (min-width: 1px) {
    .ahi-location-cards-viewport .ahi-location-card {
        flex: 0 0 calc((100cqw - 72px) / 4);
        width: calc((100cqw - 72px) / 4);
        min-width: 0;
    }
}
 
.ahi-location-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}
 
.ahi-location-card-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}
 
.ahi-location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.ahi-location-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}
 
.ahi-location-card-body {
    padding: 24px 10px 10px;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
}
 
.ahi-location-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
 
.ahi-location-card-flag {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 2px;
}
 
.ahi-location-card-pin {
    width: 32px;
    height: 32px;
    background: url(../icons/location.png) center / 20px no-repeat;
    background-color: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    flex-shrink: 0;
}
 
.ahi-location-card-pin:hover {
    opacity: 0.85;
}
 
.ahi-location-card-country {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}
 
.ahi-location-card-name {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.3;
}
 
.ahi-location-card-address-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}
 
.ahi-location-card-address-wrap .ahi-location-card-address {
    flex: 1;
    margin: 0;
}
 
.ahi-location-card-address {
    font-size: 14px;
    color: #50575e;
    line-height: 1.6;
    min-height: 90px;
}
 
.ahi-location-card-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
 
.ahi-location-card-icon-address {
    background-image: url(../icons/location.png);
    margin-top: 3px;
}
 
.ahi-location-card-icon-email {
    background-image: url('../icons/email.png');
}
 
.ahi-location-card-icon-phone {
    background-image: url('../icons/phone.png');
}
 
.ahi-location-card-contact {
    margin-top: 12px;
    font-size: 14px;
    color: #50575e;
    line-height: 1.6;
}
 
.ahi-location-card-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
 
.ahi-location-card-contact-line:last-child {
    margin-bottom: 0;
}
 
.ahi-location-card-contact a {
    color: #163865;
    text-decoration: none;
}
 
.ahi-location-card-contact a:hover {
    text-decoration: underline;
}
 
.ahi-location-card .ahi-connect-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
}
 
.ahi-location-card .ahi-connect-buttons .ahi-connect-btn:only-child {
    flex: 1 1 100%;
}
 
.ahi-location-card .ahi-connect-btn {
    display: block;
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding: 14px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #333;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
    box-sizing: border-box;
}
 
.ahi-location-card .ahi-connect-buttons .ahi-connect-btn:only-child {
    padding: 14px 20px;
    font-size: 13px;
}
 
.ahi-location-card .ahi-connect-btn:hover {
    background: #163865;
    color: #fff;
}
.ahi-location-card-image img {
    min-height: 200px;
}
.ahi-location-card-head [type=button]:hover, button:hover {
    opacity: 1;
    background-color: #fff;
}
.dealer-header button.dealer-icon-location.ahi-location-pin-btn {
    border: none;
}
#ahi_dealer_list .ahi-connect-buttons,
#ahi_warranty_agent_list .ahi-connect-buttons {
    display: none;
}
 
.ahi-career-nav--prev {
    right: 40px;
}
.ahi-career-nav--next {
    right: 0;
}
 
.ahi-career-nav {
    position: absolute;
    top: -7%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px !important;
    height: 48px;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #173962 !important;
    font-size: 60px !important;
    line-height: 1;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease !important;
}
 
.ahi-location-cards-viewport {
    position: relative;
    margin-bottom: 20px;
    padding: 0;
}
@media (max-width: 767px) {
.ahi-container {
    padding: 35px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 50px;
}
.ahi-required-note {
    right: 10px;
    top: 45px;
}
.ahi-pincode-input {
    max-width: 100%;
}
	.ahi-global-locations {
		padding: 50px 0 40px;
	}
		.dealer-contact-item, .dealer-field.dealer-website {
        display: block;
        position: relative;
        word-wrap: break-word;
	}
	.ahi-career-nav {
    position: absolute;
    top: 3%;
}
	.dealer-icon-location, .dealer-icon-phone, .dealer-icon-email, .dealer-icon-globe {
    position: absolute;
    left: -30px;
    top: 7px;
}
}
@media (min-width: 768px) and (max-width: 1024px) {
	.ahi-required-note {
		right: 30px;
		top: 33px;
	}
	.ahi-filters select, .ahi-pincode-input {
		min-width: 100%;
	}
		.ahi-filters {
    display: grid;
}
	.ahi-career-nav {
    top: -3%;
}
 
}
button.ahi-career-nav.ahi-career-nav--next:focus, 
button.ahi-career-nav.ahi-career-nav--prev:focus {
    background: transparent !important;
}


/*Update */

.ahi-right {
    position: relative;
    flex: 1;
}
#ahi_map { width: 100%; height: 100%; }

/* =========================================================
   AHI Dealer Locator — Inquiry Form Styles
   Matches the "Know More About Product" panel in the UI
   ========================================================= */

.ahi-enquiry-panel {
    position: sticky;
    top: 20px;
}

.ahicapp-form-wrap {
    background: #ffffff;
    border: 1px solid #e7e9ee;
    border-radius: 10px;
    padding: 28px 30px 26px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

/* Eyebrow label */
.ahicapp-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a93a3;
    margin-bottom: 8px;
}

/* Heading */
.ahicapp-heading {
    font-size: 24px;
    font-weight: 700;
    color: #0f1b2d;
    margin: 0 0 8px;
    line-height: 1.25;
}

/* Subtitle */
.ahicapp-subtitle {
    font-size: 13px;
    color: #7a8494;
    margin: 0 0 22px;
    line-height: 1.5;
}

.ahicapp-required {
    color: #d63638;
}

/* Form container */
.ahicapp-application-form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Two-column row */
.ahicapp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ahicapp-row.ahicapp-full {
    grid-template-columns: 1fr;
}

.ahicapp-row > div {
    display: flex;
    flex-direction: column;
}

/* Labels */
.ahicapp-label {
    font-size: 13px;
    font-weight: 600;
    color: #26313f;
    margin-bottom: 6px;
}

/* Inputs, selects, textareas */
.ahicapp-application-form-container input[type="text"],
.ahicapp-application-form-container input[type="email"],
.ahicapp-application-form-container input[type="tel"],
.ahicapp-application-form-container select,
.ahicapp-application-form-container textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14px;
    color: #1b2430;
    background: #ffffff;
    border: 1px solid #dde1e8;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ahicapp-application-form-container textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.ahicapp-application-form-container input::placeholder,
.ahicapp-application-form-container textarea::placeholder {
    color: #a7aec0;
}

.ahicapp-application-form-container input:focus,
.ahicapp-application-form-container select:focus,
.ahicapp-application-form-container textarea:focus {
    border-color: #0b3c74;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

/* Native select arrow */
.ahicapp-application-form-container select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23667085' stroke-width='1.6' fill='none' fill-rule='evenodd'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* Preferred Dealer row with "Change" button */
.ahicapp-select-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ahicapp-select-row select {
    flex: 1;
}

.ahicapp-select-row select:disabled {
    background-color: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}

.ahicapp-change-dealer-btn {
    flex-shrink: 0;
    background: transparent !important;
    border: 1px solid #0b3c74 !important;
    color: #0b3c74 !important;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.ahicapp-change-dealer-btn:hover {
    background: #0b3c74 !important;
    color: #ffffff !important;
}

/* Selected dealer preview chip - #ahi_enquiry_selected_dealer is just the
   wrapper; the JS fills it with a .ahi-enquiry-dealer-card element, which
   is what actually gets the visible "chip" styling below. */
.ahi-enquiry-selected-dealer {
    margin-top: -6px;
}

.ahi-enquiry-selected-dealer:empty {
    display: none;
    margin: 0;
}

.ahi-enquiry-dealer-card {
    font-size: 13px;
    color: #445064;
    background: #f4f6f9;
    border: 1px solid #e7e9ee;
    border-radius: 6px;
    padding: 12px 14px;
}

.ahi-enquiry-dealer-card h4 {
    margin: 0 0 8px;
    color: #0b3c74;
    font-size: 15px;
    font-weight: 700;
}

.ahi-enquiry-dealer-card p {
    margin: 3px 0;
    font-size: 13px;
    color: #50575e;
    line-height: 1.5;
}

.ahi-enquiry-dealer-card p strong {
    color: #26313f;
}

/* Inline response / status message - .success / .error are the classes
   the JS actually toggles on submit. */
.ahi-enquiry-response {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 6px;
}

.ahi-enquiry-response.success {
    background: #e6f7e9;
    color: #1a7a34;
    border: 1px solid #cdeac6;
}

.ahi-enquiry-response.error {
    background: #fdecec;
    color: #c62828;
    border: 1px solid #f6c6c6;
}

/* Footer: privacy checkbox + submit button */
.ahicapp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.ahicapp-privacy-check {
    flex: 1 1 260px;
}

.ahicapp-privacy-check label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #6b7484;
    line-height: 1.5;
    cursor: pointer;
}

.ahicapp-privacy-check input[type="checkbox"] {
    margin-top: 2px;
    width: 15px;
    height: 15px;
    accent-color: #0b3c74;
    flex-shrink: 0;
    cursor: pointer;
}

.ahicapp-privacy-check .consent-text a {
    color: #0b3c74 !important;
    text-decoration: underline;
}

/* Submit button */
.ahicapp-submit-button {
    background: #0b3c74 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border: none !important;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.05s ease;
}

.ahicapp-submit-button:hover {
    background: #163865 !important;
}

.ahicapp-submit-button:active {
    transform: translateY(1px);
}

.ahicapp-submit-button:disabled {
    background: #a7aec0;
    cursor: not-allowed;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767px) {
    .ahicapp-form-wrap {
        padding: 20px;
    }

    .ahicapp-row {
        grid-template-columns: 1fr;
    }

    .ahicapp-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ahicapp-submit-button {
        width: 100%;
    }
}
/* ============================================================
   Dealer locator: list + map only appear after a search
   ============================================================ */
.ahi-dealer-intro {
    padding: 30px 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.ahi-dealer-intro p {
    margin: 0;
}

.ahi-dealer-results-split {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.ahi-dealer-results-map-col {
    width: 50%;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.ahi-dealer-results-list-col {
    width: 50%;
    min-width: 0;
}

.ahi-dealer-map {
    width: 100%;
    height: 650px;
    border: 1px solid #e5e5e5;
    background: #f0f0f0;
    /* keep Leaflet panes under the site header / enquiry panel */
    z-index: 0;
}

@media (max-width: 900px) {
    .ahi-dealer-results-split {
        flex-direction: column;
    }
    .ahi-dealer-results-map-col,
    .ahi-dealer-results-list-col {
        width: 100%;
        position: static;
    }
    .ahi-dealer-map {
        height: 400px;
    }
}

.dealer-popup-actions {
    margin-top: 12px;
}

.dealer-popup-actions button.ahi-dealer-enquire-btn {
    padding: 9px 16px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .ahi-dealer-map {
        height: 260px;
    }
}

/* ============================================================
   Postcode search: exact match + nearest branches by distance
   ============================================================ */
.ahi-pincode-picker {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ahi-pincode-picker-note {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #555;
}

.ahi-pincode-picker-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.dealer-card {
    position: relative;
}

.ahi-dealer-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #333;
    background: transparent;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.dealer-distance {
    color: #0b3c74;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.dealer-distance-exact {
    color: #1a7a34;
    font-weight: 600;
}

.dealer-card.ahi-card-highlight {
    background: #f9f9f9;
    box-shadow: inset 4px 0 0 #0b3c74;
    transition: background 0.3s, box-shadow 0.3s;
}

/* Numbered map pins used for postcode "nearest branches" results */
.ahi-map-pin-number {
    background: transparent;
    border: none;
}

.ahi-map-pin-number span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0b3c74;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ahi-map-pin-exact span {
    background: #1a7a34;
}

/* ============================================================
   Dealer locator: single full-width results panel (no side
   inquiry form), dealer cards laid out as a responsive grid.
   ============================================================ */
.ahi-dealer-panel-full {
    width: 100%;
    background: #f9f9f9;
    box-sizing: border-box;
}

.ahi-dealer-wrap.ahi-dealer-wrap-single {
    min-height: 0;
}

#ahi_dealer_list,
#ahi_warranty_agent_list {
    display: grid;
    gap: 20px;
}

/* Dealer list shares its row with the map (50/50 split), so 2 columns.
   Warranty agent list is full-width (no map), so 3 columns fit. */
#ahi_dealer_list {
    grid-template-columns: repeat(2, 1fr);
}

#ahi_warranty_agent_list {
    grid-template-columns: repeat(3, 1fr);
}

#ahi_dealer_list .dealer-card,
#ahi_warranty_agent_list .dealer-card {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    padding: 20px 20px 20px 45px;
}

#ahi_dealer_list .dealer-title,
#ahi_warranty_agent_list .dealer-title {
    font-size: 17px;
}

.dealer-phone-line {
    font-size: 14px;
}

.ahi-dealer-email-btn {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background-color: #0b3c74 !important;
    color: #ffffff !important;
    padding: 12px 20px;
    border: 1px solid #0b3c74 !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ahi-dealer-email-btn:hover {
    background-color: #163865 !important;
    border-color: #163865 !important;
    color: #ffffff !important;
}

@media (max-width: 900px) {
    #ahi_warranty_agent_list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    #ahi_dealer_list,
    #ahi_warranty_agent_list {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Full-width widget: breaks out of the theme's (narrower) content
   column so the whole thing spans the browser viewport edge to
   edge, with its own horizontal padding instead of a max-width box.
   ============================================================ */
.ahi-dealer-locator-container {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 40px;
    box-sizing: border-box;
}

.ahi-dealer-locator-container .ahi-container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Enquiry form ("Know More About Product") - shown as a modal
   dialog over the page when EMAIL is clicked on a card or map
   popup. IDs are used for the box-model/position rules below so
   they win over the older plain-class `.ahi-enquiry-panel` rules
   elsewhere in this file (sticky side-column positioning etc.)
   that no longer apply once this is a modal.
   ============================================================ */
body.ahi-modal-open {
    overflow: hidden;
}

@keyframes ahiEnquiryFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ahiEnquirySlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#ahi_enquiry_wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(15, 27, 45, 0.65);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 48px 20px;
    box-sizing: border-box;
    animation: ahiEnquiryFadeIn 0.18s ease;
}

#ahi_enquiry_panel {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    top: auto;
    animation: ahiEnquirySlideUp 0.22s ease;
}

.ahi-enquiry-panel .ahicapp-form-wrap {
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(15, 27, 45, 0.35);
}

.ahi-enquiry-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none !important;
    border-radius: 50%;
    background: #f4f6f9 !important;
    color: #555 !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ahi-enquiry-close:hover {
    background: #e7e9ee !important;
    color: #163865 !important;
}

@media (max-width: 767px) {
    #ahi_enquiry_wrap {
        padding: 0;
        align-items: stretch;
    }
    #ahi_enquiry_panel {
        max-width: 100%;
        min-height: 100%;
    }
    .ahi-enquiry-panel .ahicapp-form-wrap {
        border-radius: 0;
        min-height: 100%;
        box-shadow: none;
    }
}
