.dealers-section {
	margin: 0;
	padding-top: calc(80px + 60px);
	padding-bottom: 100px;
}

.banner + .dealers-section {
	padding-top: 60px;
}

.dealers-title {
	font-size: clamp(1.5rem, 0.5625rem + 3vw, 2.25rem);
	color: #322D33;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	margin: 0 0 40px;
}

/* banner */

section.banner {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 80px 0 0;
}

.banner .img-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px min(20px, 8%);
}

.banner picture {
    display: block;
    border-radius: 5px;
    overflow: hidden;
}

.banner img, .banner picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* banner end */

/* dealers */

.content {
	width: 50%;
	height: 100%;
}

.content.left {
	padding: 30px;
	display: flex;
	flex-direction: column;
	position: relative;
}

.content:not(.left) {
    flex: 1;
    height: 100%;
}

/* Nuevos estilos para el select y lista de concesionarios */
.department-filter {
    margin-bottom: 20px;
}

.department-select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #666;
    appearance: none;
    background-image: url('../../images/icons/Chevron-down.svg');
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    background-size: 22px;
	background-color: #fff;
	font-family: inherit;
	font-size: 1.25rem;
	cursor: pointer;
}


.dealers-list {
    background: #F2F3F4;
    border-radius: 5px;
    overflow: visible;
    height: 650px;
    display: flex;
    flex-direction: row;
    box-shadow: none;
    padding: 0;
	position: relative;
}

.dealers-departments {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding-right: 10px;
	scrollbar-width: thin;
	scrollbar-color: #A6A2A3 transparent;
}

.scroll-hint {
	position: absolute;
	left: 30px;
	right: 30px;
	bottom: 30px;
	padding-top: 60px;
	background: linear-gradient(to bottom, rgba(242, 243, 244, 0), #F2F3F4 75%);
	color: #666;
	font-size: 12px;
	text-align: center;
	text-transform: uppercase;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.scroll-hint::after {
	content: '';
	display: block;
	width: 22px;
	height: 21px;
	margin: 4px auto 0;
	background: url('../../images/icons/Chevron-down.svg') no-repeat center / contain;
}

.scroll-hint.visible {
	opacity: 1;
}

.department-title {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #F2F3F4;
    padding-bottom: 20px;
}

.department-title h2 {
    font-size: 22px;
    font-weight: 600;
    color: #322D33;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}

.department-separator {
    height: 2px;
    background-color: #e3001b;
    width: 100%;
}

.dealer-item {
    margin-bottom: 30px;
    border: none;
    height: auto;
}

.dealer-name {
    font-size: 18px;
    font-weight: 600;
    color: #322D33;
    margin: 0 0 10px;
}

.dealer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-row i,
.map-info__item i {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.contact-row p, .contact-row a {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #666;
}

.location-icon,
.location-grey {
    background-image: url('../../images/icons/map-point-gray.svg');
}

.email-icon,
.email-grey {
    background-image: url('../../images/icons/email-gray.svg');
}

.phone-grey {
    background-image: url('../../images/icons/phone-gray.svg');
}

.calendar-grey {
    background-image: url('../../images/icons/calendar-gray.svg');
}

.map-grey {
    background-image: url('../../images/icons/location-gray.svg');
}

.map-link {
    color: #666;
    text-decoration: none;
    cursor: pointer;
}

.map-link:hover {
    color: #e3001b;
}

/* Mantener estilos existentes del loader */
.dealers-list .loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	justify-content: center;
	align-items: center;
}

.dealers-list .loader:before {
	content: '';
	width: 50px;
	height: 50px;
	border: 5px solid #fff;
	border-top-color: #e3001b;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

/* google map */
#map {
    width: 100%;
    height: 100%;
    border-radius: 0 5px 5px 0;
}

.map-info {
    padding: 15px;
    max-width: 300px;
    font-family: 'Futuru', sans-serif;
}

.map-info__header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #EBEBEB;
}

.map-info__title {
    font-size: 16px;
    font-weight: 600;
    color: #322D33;
    margin: 0;
}

.map-info__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-info__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.map-info__item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #666666;
}

/* google map end */

/* Mobile responsive */
@media (max-width: 768px) {
	.dealers-section {
		padding-top: calc(80px + 40px);
		padding-bottom: 60px;
	}

	.banner + .dealers-section {
		padding-top: 40px;
	}

	.dealers-list {
		flex-direction: column;
		height: auto;
	}

	.dealers-departments {
		overflow-y: visible;
		padding-right: 0;
	}

	.department-title {
		position: static;
	}

	.scroll-hint {
		display: none;
	}

	.content {
		width: 100%;
	}

	.content.left {
		padding: 20px;
	}

	#map {
		min-height: 400px;
		border-radius: 0 0 5px 5px;
	}
}
