/* ==========================================================================
   Heady Dispensaries – Archive Layout
   ========================================================================== */

/* ── Reset & Container ────────────────────────────────────────────────── */

.hd-archive-wrap {
	min-height: 60vh;
	background: #f8f9fa;
	padding: 0 0 60px;
}

.hd-archive-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.hd-archive-header {
	text-align: left;
	padding: 48px 0 40px;
}

.hd-archive-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: #111827;
	margin: 0 0 12px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hd-archive-desc {
	font-size: clamp(0.95rem, 2vw, 1.125rem);
	color: #6b7280;
	margin: 0;
	line-height: 1.6;
}

/* ── Section Titles ───────────────────────────────────────────────────── */

.hd-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e5e7eb;
}

.hd-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: #16a34a;
}

/* ── Search Form ──────────────────────────────────────────────────────── */

.hd-search-form {
	display: flex;
	gap: 12px;
	margin-bottom: 36px;
}

.hd-search-input {
	flex: 1;
	min-width: 0;
	height: 56px;
	padding: 0 18px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 0;
	font-size: 0.95rem;
	color: #111827;
	outline: none;
	transition: border-color 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.hd-search-input::placeholder {
	color: #9ca3af;
}

.hd-search-input:focus {
	border-color: #6b7280;
}

.hd-search-btn {
	flex-shrink: 0;
	height: 56px;
	padding: 0 32px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.hd-search-btn:hover {
	background: #1f2937;
}

.hd-search-btn:disabled {
	background: #374151;
	cursor: not-allowed;
}

.hd-search-btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hd-spin 0.7s linear infinite;
}

@media (max-width: 640px) {
	.hd-search-form {
		flex-direction: column;
		gap: 8px;
	}

	.hd-search-input,
	.hd-search-btn {
		width: 100%;
		height: 50px;
	}
}

/* ── Search loading overlay ───────────────────────────────────────────────── */

.hd-dispensaries-section {
	position: relative;
}

.hd-search-overlay {
	display: none;
	position: absolute;
	inset: 0;
	background: rgba(248, 249, 250, 0.75);
	align-items: center;
	justify-content: center;
	z-index: 2;
	border-radius: 12px;
}

.hd-search-overlay.hd-active {
	display: flex;
}

.hd-search-overlay-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e5e7eb;
	border-top-color: #16a34a;
	border-radius: 50%;
	animation: hd-spin 0.7s linear infinite;
}

/* ── States Grid ──────────────────────────────────────────────────────── */

.hd-states-section,
.hd-cities-section,
.hd-related-section {
	margin-bottom: 40px;
}

.hd-states-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.hd-state-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hd-state-card:hover {
	border-color: #16a34a;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
	transform: translateY(-2px);
}

.hd-state-name {
	font-size: 1.05rem;
	font-weight: 600;
	color: #111827;
}

.hd-state-count {
	font-size: 0.8rem;
	color: #6b7280;
}

/* ── Cities Grid ──────────────────────────────────────────────────────── */

.hd-cities-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hd-city-card {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 100px;
	text-decoration: none;
	color: inherit;
	font-size: 0.9rem;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hd-city-card:hover {
	border-color: #16a34a;
	background: #f0fdf4;
	color: #15803d;
}

.hd-city-name {
	font-weight: 500;
	color: #1f2937;
}

.hd-city-card:hover .hd-city-name {
	color: #15803d;
}

.hd-city-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: #f3f4f6;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #6b7280;
}

.hd-city-card:hover .hd-city-count {
	background: #dcfce7;
	color: #15803d;
}

/* ── Dispensary Card Grid ─────────────────────────────────────────────── */

.hd-dispensaries-section {
	margin-bottom: 40px;
}

.hd-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ── Card ─────────────────────────────────────────────────────────────── */

.hd-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e4e8;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hd-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* City header strip */
.hd-card-city-header {
	background: #000;
	padding: 14px 18px 0;
}

.hd-card-city-name {
	display: inline-block;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding-bottom: 10px;
	border-bottom: 3px solid #c9a84c;
	text-decoration: none;
}

a.hd-card-city-name:hover {
	color: #c9a84c;
}

/* Card body */
.hd-card-body {
	padding: 18px 16px 14px;
	flex: 1;
}

/* Inner row: logo + info */
.hd-card-inner {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

/* Logo */
.hd-card-logo-link {
	display: block;
	text-decoration: none;
	flex-shrink: 0;
}

.hd-card-logo {
	width: 110px;
	height: 110px;
	background: #000;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hd-card-logo img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	display: block;
}

/* Info column */
.hd-card-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* DBA / trade name in quotes */
.hd-card-dba {
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.3;
}

.hd-card-dba a {
	color: #111827;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s;
}

.hd-card-dba a:hover {
	color: #c9a84c;
}

/* Legal business name */
.hd-card-legal-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	text-decoration: underline;
	text-underline-offset: 2px;
	line-height: 1.3;
	text-transform: uppercase;
}

/* City + State location line */
.hd-card-location {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 3px;
	margin-top: 2px;
}

.hd-card-city-link {
	font-size: 0.88rem;
	color: #1f2937;
	font-weight: 600;
	text-decoration: none;
}

a.hd-card-city-link:hover {
	color: #c9a84c;
	text-decoration: underline;
}

.hd-card-location-sep {
	font-size: 0.88rem;
	color: #9ca3af;
}

.hd-card-state-link {
	font-size: 0.88rem;
	color: #6b7280;
	font-weight: 500;
	text-decoration: none;
}

a.hd-card-state-link:hover {
	color: #c9a84c;
	text-decoration: underline;
}

/* License type line */
.hd-card-license-text {
	font-size: 0.8rem;
	color: #6b7280;
	line-height: 1.4;
}

/* ZIP code */
.hd-card-zip {
	font-size: 0.85rem;
	color: #1f2937;
	font-weight: 500;
	margin-top: 2px;
}

/* Order Online pill */
.hd-card-order-online {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 18px;
	background: #f4a5a5;
	color: #fff;
	border-radius: 100px;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	margin-top: 8px;
	transition: background 0.2s ease;
	align-self: flex-start;
}

.hd-card-order-online:hover {
	background: #e88f8f;
}

/* Shop Now button */
.hd-card-actions {
	padding: 0 16px 16px;
}

.hd-card-cta-shop {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 16px;
	background: #000;
	color: #fff;
	border-radius: 100px;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease;
	box-sizing: border-box;
	letter-spacing: 0.01em;
}

.hd-card-cta-shop:hover {
	background: #1f2937;
}

/* ── Pagination ───────────────────────────────────────────────────────── */

.hd-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding-top: 32px;
}

.hd-pagination a,
.hd-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: all 0.15s;
}

.hd-pagination a:hover {
	border-color: #16a34a;
	color: #16a34a;
	background: #f0fdf4;
}

.hd-pagination .current {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}

.hd-pagination .dots {
	border: 0;
	background: transparent;
	color: #9ca3af;
}

.hd-pag-icon {
	width: 16px;
	height: 16px;
}

.hd-pagination .prev,
.hd-pagination .next {
	font-weight: 600;
}

/* ── Nearby Dispensaries Section ─────────────────────────────────────── */

.hd-nearby-section {
	margin-bottom: 40px;
}

.hd-detect-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #16a34a;
	color: #fff;
	border: none;
	border-radius: 100px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	line-height: 1;
}

.hd-detect-btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.hd-detect-btn:hover {
	background: #15803d;
	transform: translateY(-1px);
}

.hd-detect-btn:active {
	transform: translateY(0);
}

.hd-nearby-prompt {
	padding: 8px 0 4px;
}

.hd-nearby-loading {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	color: #6b7280;
	font-size: 0.95rem;
}

.hd-nearby-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid #e5e7eb;
	border-top-color: #16a34a;
	border-radius: 50%;
	flex-shrink: 0;
	animation: hd-spin 0.75s linear infinite;
}

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

.hd-nearby-error {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 18px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 10px;
	color: #b91c1c;
	font-size: 0.9rem;
	margin-top: 8px;
}

.hd-nearby-error svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
	color: #dc2626;
}

.hd-nearby-error-msg {
	margin: 0;
	line-height: 1.5;
}

/* ── Empty State ──────────────────────────────────────────────────────── */

.hd-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #9ca3af;
}

.hd-empty-icon {
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	color: #d1d5db;
}

.hd-empty-state p {
	font-size: 1.05rem;
	margin: 0;
}

/* ==========================================================================
   About / FAQ / Cannabis Laws Sections
   ========================================================================== */

/* ── About ────────────────────────────────────────────────────────────── */

.hd-about-section {
	margin-bottom: 48px;
}

.hd-about-title {
	font-size: clamp(1.4rem, 3vw, 1.875rem);
	font-weight: 700;
	color: #111827;
	margin: 0 0 18px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hd-about-desc {
	color: #374151;
	line-height: 1.75;
	font-size: 0.95rem;
}

.hd-about-desc p {
	margin: 0 0 14px;
}

.hd-about-desc p:last-child {
	margin-bottom: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.hd-faq-section {
	margin-bottom: 48px;
}

.hd-faq-title {
	font-size: clamp(1.4rem, 3vw, 1.875rem);
	font-weight: 700;
	color: #111827;
	margin: 0 0 4px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hd-faq-list {
	margin-top: 8px;
}

.hd-faq-item {
	border-bottom: 1px solid #e5e7eb;
}

.hd-faq-item:first-of-type {
	border-top: 1px solid #e5e7eb;
}

.hd-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.95rem;
	color: #111827;
	list-style: none;
	user-select: none;
}

.hd-faq-item summary::-webkit-details-marker { display: none; }
.hd-faq-item summary::marker { display: none; }

.hd-faq-chevron {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #6b7280;
	transition: transform 0.2s ease;
}

.hd-faq-item[open] > summary .hd-faq-chevron {
	transform: rotate(180deg);
}

.hd-faq-item[open] > summary {
	color: #16a34a;
}

.hd-faq-answer {
	padding: 0 0 20px;
	color: #374151;
	line-height: 1.75;
	font-size: 0.9rem;
}

.hd-faq-answer p {
	margin: 0 0 10px;
}

.hd-faq-answer p:last-child {
	margin-bottom: 0;
}

/* ── Cannabis Laws ────────────────────────────────────────────────────── */

.hd-laws-section {
	margin-bottom: 48px;
}

.hd-laws-title {
	font-size: clamp(1.4rem, 3vw, 1.875rem);
	font-weight: 700;
	color: #111827;
	margin: 0 0 24px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hd-laws-featured {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e7eb;
}

.hd-laws-featured-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #dc2626;
	margin: 0 0 10px;
	line-height: 1.3;
}

.hd-laws-featured-desc {
	color: #374151;
	line-height: 1.75;
	font-size: 0.92rem;
	margin: 0;
}

.hd-law-items {
	display: flex;
	flex-direction: column;
}

.hd-law-item {
	padding: 20px 0;
	border-bottom: 1px solid #e5e7eb;
}

.hd-law-item:first-child {
	padding-top: 0;
}

.hd-law-item-title {
	font-size: 0.92rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 5px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.hd-law-item-desc {
	font-size: 0.88rem;
	color: #374151;
	margin: 0;
	line-height: 1.65;
}

/* ── Deals Shortcode Section ──────────────────────────────────────────── */

.hd-deals-section {
	margin-bottom: 48px;
}

.hd-deals-section .hd-search-form {
	margin-bottom: 20px;
}

.hd-deals-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	padding: 16px;
	background: #f8f9fa;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.hd-deals-filter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 18px;
	background: #fff;
	border: 1.5px solid #d1d5db;
	border-radius: 100px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
	line-height: 1;
}

.hd-deals-filter-btn:hover {
	border-color: #16a34a;
	color: #15803d;
	background: #f0fdf4;
	box-shadow: 0 1px 4px rgba(22, 163, 74, 0.12);
}

.hd-deals-filter-btn--active {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.hd-deals-filter-btn--active:hover {
	background: #15803d;
	border-color: #15803d;
	color: #fff;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.hd-deals-grid-wrap {
	position: relative;
	min-height: 80px;
}

.hd-deals-overlay {
	display: none;
	position: absolute;
	inset: 0;
	background: rgba(248, 249, 250, 0.82);
	align-items: center;
	justify-content: center;
	z-index: 2;
	border-radius: 12px;
}

.hd-deals-overlay-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e5e7eb;
	border-top-color: #16a34a;
	border-radius: 50%;
	animation: hd-spin 0.7s linear infinite;
}

.hd-deals-count {
	margin: 20px 0 8px;
	font-size: 0.85rem;
	color: #6b7280;
	font-weight: 500;
}

.hd-deals-pagination {
	margin-top: 8px;
}

.hd-deals-pagination .hd-pagination {
	justify-content: flex-start;
	gap: 6px;
	flex-wrap: wrap;
}

.hd-deals-pagination .hd-pag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 36px;
	padding: 0 16px;
	background: #fff;
	border: 1.5px solid #d1d5db;
	border-radius: 100px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	line-height: 1;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.hd-deals-pagination .hd-pag-btn:hover:not([disabled]) {
	border-color: #16a34a;
	color: #15803d;
	background: #f0fdf4;
	box-shadow: 0 1px 4px rgba(22, 163, 74, 0.12);
}

.hd-deals-pagination .hd-pag-btn.current {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
	cursor: default;
}

.hd-deals-pagination .hd-pag-btn.disabled,
.hd-deals-pagination .hd-pag-btn[disabled] {
	color: #d1d5db;
	border-color: #e5e7eb;
	background: #f9fafb;
	cursor: not-allowed;
	box-shadow: none;
}

.hd-deals-pagination .hd-pag-btn.dots {
	border-color: transparent;
	background: transparent;
	cursor: default;
	padding: 0 8px;
	color: #9ca3af;
}

.hd-deals-pagination .hd-pag-btn .hd-pag-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.hd-deals-grid {
	display: grid;
	gap: 20px;
}

.hd-deals-grid--col-2 {
	grid-template-columns: repeat(2, 1fr);
}

.hd-deals-grid--col-3 {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
	.hd-deals-grid--col-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.hd-deals-filters {
		gap: 6px;
		padding: 12px;
	}

	.hd-deals-filter-btn {
		height: 32px;
		padding: 0 14px;
		font-size: 0.8rem;
	}

	.hd-deals-grid--col-2,
	.hd-deals-grid--col-3 {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.hd-card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.hd-states-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}

@media (max-width: 640px) {
	.hd-archive-header {
		padding: 32px 0 28px;
	}

	.hd-card-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hd-card {
		border-radius: 10px;
	}

	.hd-card-city-header {
		padding: 12px 14px 0;
	}

	.hd-card-city-name {
		font-size: 0.95rem;
	}

	.hd-card-logo,
	.hd-card-logo img {
		width: 88px;
		height: 88px;
	}

	.hd-card-body {
		padding: 14px 12px 12px;
	}

	.hd-card-actions {
		padding: 0 12px 12px;
	}

	.hd-states-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.hd-state-card {
		padding: 14px 16px;
		border-radius: 10px;
	}

	.hd-cities-grid {
		gap: 8px;
	}

	.hd-city-card {
		padding: 8px 14px;
		font-size: 0.85rem;
	}

	.hd-pagination {
		flex-wrap: wrap;
	}

	.hd-section-title {
		font-size: 1.1rem;
	}
}

@media (max-width: 380px) {
	.hd-states-grid {
		grid-template-columns: 1fr;
	}
}
