/* ==========================================================================
   Drive EV — Public Pages
   Aligned with design-system.css (Barlow Condensed / DM Sans)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* --- Base layout -------------------------------------------------------- */
.dev-public-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px 60px;
	font-family: 'DM Sans', sans-serif;
	color: #424242;
}

.dev-public-page__subtitle {
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	color: #718096;
	margin: 0 0 24px;
}

/* --- Filter bar --------------------------------------------------------- */
.dev-filter-bar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.dev-filter-tag {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 20px;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #4a5568;
	background: #f0f4ff;
	border: 1px solid #d0d8e8;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.dev-filter-tag:hover {
	background: #dce8ff;
	color: #00337a;
}

.dev-filter-tag--active {
	background: #00337a;
	color: #fff;
	border-color: #00337a;
}

/* --- Listing grid ------------------------------------------------------- */
.dev-listing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 32px;
}

/* --- Cards -------------------------------------------------------------- */
.dev-card {
	background: #fff;
	border: 1px solid #e4e8f0;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s;
}

.dev-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dev-card__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px 0;
}

.dev-card__partner-logo {
	width: 36px;
	height: 36px;
	border-radius: 4px;
	object-fit: contain;
	border: 1px solid #e4e8f0;
}

.dev-card__partner-name {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #718096;
}

.dev-card__image {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.dev-card__body {
	padding: 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dev-card__tag {
	display: inline-block;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #00337a;
	background: #eef3ff;
	padding: 3px 8px;
	border-radius: 4px;
	align-self: flex-start;
}

.dev-card__title {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	color: #424242;
}

.dev-card__price {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #00337a;
	margin: 0;
}

.dev-card__meta {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	color: #718096;
	margin: 0;
}

.dev-card__desc {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	color: #4a5568;
	line-height: 1.5;
}

.dev-card__tagline {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	color: #718096;
	margin: 4px 0 8px;
}

.dev-card__actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
}

/* Partner card specifics */
.dev-card--partner {
	text-align: center;
	padding-top: 20px;
}

.dev-card__logo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: contain;
	border: 2px solid #e4e8f0;
	margin: 0 auto;
}

.dev-card__logo-placeholder {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #00337a;
	color: #fff;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 28px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

/* --- Buttons (public) --------------------------------------------------- */
.dev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 4px;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	line-height: 1.4;
}

.dev-btn--primary {
	background: #00337a;
	color: #fff;
	border-color: #00337a;
}

.dev-btn--primary:hover {
	background: #00337a;
	border-color: #00337a;
	color: rgba(255, 255, 255, 0.7);
}

.dev-btn--outline {
	background: transparent;
	color: #00337a;
	border-color: #00337a;
}

.dev-btn--outline:hover {
	background: #00337a;
	color: rgba(255, 255, 255, 0.7);
	border-color: #00337a;
}

.dev-btn--ghost {
	background: transparent;
	color: #718096;
	border-color: #d0d8e8;
}

.dev-btn--ghost:hover {
	background: #f4f6fb;
	color: #4a5568;
}

.dev-btn--sm {
	padding: 6px 14px;
	font-size: 13px;
}

.dev-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* --- Badges ------------------------------------------------------------- */
.dev-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}

.dev-badge--active {
	background: #d1e7dd;
	color: #0f5132;
}

/* --- Verified badge ----------------------------------------------------- */
.dev-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #d1e7dd;
	color: #0f5132;
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	vertical-align: middle;
	margin-left: 8px;
}

/* --- Empty state -------------------------------------------------------- */
.dev-empty-state {
	background: #fff;
	border: 2px dashed #d0d8f0;
	border-radius: 4px;
	padding: 40px 24px;
	text-align: center;
	font-family: 'DM Sans', sans-serif;
	color: #718096;
}

.dev-empty-state--centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* --- Partner public page ------------------------------------------------ */
.dev-partner-banner {
	width: 100%;
	height: 220px;
	background: linear-gradient(135deg, #00337a 0%, #0055b3 100%);
	background-size: cover;
	background-position: center;
	border-radius: 4px;
	margin-bottom: -40px;
}

.dev-partner-header {
	padding: 0 24px 24px;
}

.dev-partner-header__info {
	display: flex;
	align-items: flex-end;
	gap: 20px;
}

.dev-partner-header__logo {
	width: 88px;
	height: 88px;
	border-radius: 4px;
	object-fit: contain;
	border: 3px solid #fff;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dev-partner-header__name {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #424242;
}

.dev-partner-header__tagline {
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	color: #718096;
	margin: 0 0 8px;
}

/* --- Partner details (2-col) -------------------------------------------- */
.dev-partner-details {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
	margin: 32px 0;
	padding: 28px;
	background: #fff;
	border: 1px solid #e4e8f0;
	border-radius: 4px;
}

.dev-partner-details h2 {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #424242;
}

.dev-partner-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dev-partner-contact-list li {
	padding: 6px 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: #4a5568;
	border-bottom: 1px solid #f0f2f7;
}

.dev-partner-contact-list li:last-child {
	border-bottom: none;
}

.dev-partner-contact-list a {
	color: #00337a;
	text-decoration: none;
}

.dev-partner-contact-list a:hover {
	text-decoration: underline;
}

/* --- Partner listings section ------------------------------------------- */
.dev-partner-listings {
	margin: 32px 0;
}

.dev-partner-listings h2 {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #424242;
}

/* --- Load more ---------------------------------------------------------- */
.dev-load-more-wrap {
	text-align: center;
	margin: 24px 0;
}

/* --- Inquiry form ------------------------------------------------------- */
.dev-inquiry-wrap {
	max-width: 480px;
	margin: 32px auto;
	padding: 32px;
	background: #fff;
	border: 1px solid #e4e8f0;
	border-radius: 4px;
}

.dev-inquiry-wrap__title {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 24px;
	font-weight: 600;
	text-transform: capitalize;
	margin: 0 0 4px;
	color: #1d1d1d;
}

.dev-inquiry-wrap__car {
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	color: #555;
	margin: 0 0 20px;
}

.dev-inquiry-form__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.dev-inquiry-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
}

.dev-inquiry-form__field label {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.dev-inquiry-form__field .required {
	color: #c00;
}

.dev-inquiry-form__field input,
.dev-inquiry-form__field textarea {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: #333;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.dev-inquiry-form__field input:focus,
.dev-inquiry-form__field textarea:focus {
	outline: none;
	border-color: #00337a;
	box-shadow: none;
}

.dev-inquiry-form__field textarea {
	resize: vertical;
	min-height: 80px;
}

.dev-inquiry-form__footer {
	margin-top: 8px;
}

.dev-inquiry-form__footer .dev-btn,
.dev-inquiry-form__footer button.dev-btn--primary {
	display: block;
	width: 100%;
	padding: 12px;
	font-size: 15px;
	text-align: center;
	letter-spacing: 0.5px;
	border-radius: 4px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.dev-inquiry-form__success {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 4px;
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
}

.dev-inquiry-form__error {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 4px;
	background: #fce4ec;
	color: #c62828;
	border: 1px solid #ef9a9a;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
}

/* --- Inquiry modal ------------------------------------------------------ */
.dev-inquiry-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9998;
}

.dev-inquiry-modal__content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	width: 90%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 4px;
	padding: 32px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.dev-inquiry-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #666;
	line-height: 1;
	padding: 0;
}

.dev-inquiry-modal__close:hover {
	color: #000;
}

/* --- Charging map ------------------------------------------------------- */
#dev-charging-map {
	width: 100%;
	height: 450px;
	border-radius: 4px;
	border: 1px solid #e4e8f0;
	margin-bottom: 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
	.dev-listing-grid {
		grid-template-columns: 1fr;
	}

	.dev-partner-details {
		grid-template-columns: 1fr;
	}

	.dev-partner-banner {
		height: 140px;
	}

	.dev-partner-header__info {
		flex-direction: column;
		align-items: flex-start;
	}

	.dev-inquiry-form__row {
		grid-template-columns: 1fr;
	}

	.dev-inquiry-modal__content {
		width: 95%;
		padding: 20px;
	}

	#dev-charging-map {
		height: 300px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.dev-listing-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
