/* =====================================
   Distributor Finder - Frontend Styles
   ===================================== */

.df-wrapper {
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.df-wrapper *,
.df-wrapper *::before,
.df-wrapper *::after {
	box-sizing: border-box;
}

/* ===== Header bar with title + dropdown ===== */
.df-header {
	background: var(--df-header-bg, #404040);
	padding: 35px 20px 35px;
	text-align: center;
}

.df-title {
	color: var(--df-header-color, #fff);
	margin: 0 0 22px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.2;
}

.df-select-wrapper {
	max-width: 460px;
	margin: 0 auto;
	position: relative;
}

.df-country-select {
	width: 100%;
	padding: 12px 40px 12px 16px;
	border: 1px solid #c8c8c8;
	background-color: #fff;
	color: #333;
	font-size: 15px;
	font-family: inherit;
	border-radius: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20d%3D%22M6%208L0%200h12z%22%20fill%3D%22%23555%22/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
	transition: border-color 0.2s ease;
}

.df-country-select:focus {
	outline: none;
	border-color: var(--df-accent, #d8232a);
}

/* ===== Map area ===== */
.df-map-container {
	width: 100%;
	background: #e5e5e5;
	overflow: hidden;
	min-height: 300px;
}

.df-map-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ===== Distributor cards ===== */
.df-distributors-list {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px 40px;
}

.df-distributor-card {
	display: flex;
	background: #fff;
	border: 1px solid #ececec;
	margin-bottom: 22px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	overflow: hidden;
	cursor: pointer;
}

.df-distributor-card:last-child {
	margin-bottom: 0;
}

.df-distributor-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* Subtle indicator for the currently-active distributor (the one shown on the map). */
.df-distributor-card.df-active {
	border-left: 3px solid var(--df-accent, #d8232a);
}

.df-distributor-image {
	position: relative;
	flex: 0 0 280px;
	max-width: 280px;
	min-height: 200px;
	background: #ffffff;
	overflow: hidden;
}

.df-wrapper .df-distributor-image img {
	/* Fill the stretched column independently of the source image dimensions. */
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	max-height: none;
	object-fit: cover;
	object-position: center;
	display: block;
}

.df-distributor-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	padding: 26px 32px;
	min-width: 0;
}

.df-distributor-info h3 {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.df-info-row {
	display: flex;
	align-items: flex-start;
	margin-bottom: 10px;
	font-size: 15px;
	color: #555;
	line-height: 1.6;
	word-break: break-word;
}

.df-info-row:last-child {
	margin-bottom: 0;
}

.df-info-icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-right: 12px;
	margin-top: 2px;
	color: var(--df-accent, #d8232a);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.df-info-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.df-info-row a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.df-info-row a:hover {
	color: var(--df-accent, #d8232a);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.df-header {
		padding: 25px 16px;
	}
	.df-title {
		font-size: 20px;
	}
	.df-distributor-card {
		flex-direction: column;
	}
	.df-distributor-image {
		flex: 0 0 220px;
		min-height: 220px;
		max-width: 100%;
		width: 100%;
	}
	.df-distributor-info {
		padding: 20px;
	}
	.df-distributor-info h3 {
		font-size: 19px;
	}
	.df-info-row {
		font-size: 14px;
	}
	.df-distributors-list {
		padding: 20px 14px 30px;
	}
}
