/*
Theme Name: Bastur.se
Description: Child theme of GeneratePress for the bastur.se national sauna directory. Built by Bjorn.
Template: generatepress
Version: 1.0.0
Text Domain: bastur-child
*/

:root {
	--bastur-spruce: #1F3A2E;
	--bastur-spruce-light: #2F5443;
	--bastur-clay: #C1673A;
	--bastur-clay-dark: #A6552E;
	--bastur-clay-tint: #F3E3D8;
	--bastur-linen: #FAF6EF;
	--bastur-white: #FFFFFF;
	--bastur-mist: #E8EEE9;
	--bastur-charcoal: #1C2420;
	--bastur-text-muted: #5C6B62;
	--bastur-sand: #E4DED2;
}

* { box-sizing: border-box; }

html, body {
	background: var(--bastur-linen);
	color: var(--bastur-charcoal);
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
}

h1, h2, h3, .bastur-h1, .bastur-h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	color: var(--bastur-charcoal);
	line-height: 1.15;
	margin: 0 0 16px;
}

h1, .bastur-h1 { font-size: 32px; }
h2, .bastur-h2 { font-size: 24px; }
h3 { font-size: 19px; font-family: 'Inter', sans-serif; font-weight: 600; }

@media (min-width: 768px) {
	h1, .bastur-h1 { font-size: 48px; }
	h2, .bastur-h2 { font-size: 30px; }
}

a { color: var(--bastur-clay-dark); text-decoration: underline; }
a:hover { color: var(--bastur-spruce); }

.bastur-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

@media (min-width: 768px) {
	.bastur-wrap { padding: 0 24px; }
}

/* Header */
.bastur-header {
	background: var(--bastur-spruce);
	padding: 16px 0;
}
.bastur-header .bastur-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.bastur-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bastur-logo img { height: 36px; display: block; }
.bastur-logo-text { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: #fff; }
.bastur-logo-text span { color: var(--bastur-clay); }
.bastur-nav a {
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	margin-left: 20px;
}
.bastur-nav a:hover { color: var(--bastur-clay); }
.bastur-nav { display: flex; align-items: center; flex-wrap: wrap; }
.bastur-nav-dropdown { position: relative; margin-left: 20px; display: inline-block; }
.bastur-nav-dropdown summary {
	color: #fff;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
}
.bastur-nav-dropdown summary::-webkit-details-marker { display: none; }
.bastur-nav-dropdown summary:hover { color: var(--bastur-clay); }
.bastur-nav-dropdown .bastur-nav-menu {
	position: absolute;
	top: 28px;
	left: 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.18);
	padding: 8px 0;
	min-width: 200px;
	max-height: 320px;
	overflow-y: auto;
	z-index: 50;
}
.bastur-nav-dropdown .bastur-nav-menu a {
	display: block;
	color: var(--bastur-charcoal);
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	margin: 0;
	padding: 6px 16px;
}
.bastur-nav-dropdown .bastur-nav-menu a:hover { background: var(--bastur-mist); color: var(--bastur-spruce); }
.bastur-claim-note { color: var(--bastur-text-muted); font-size: 13px; margin-top: 8px; }

/* Buttons */
.btn {
	display: inline-block;
	border-radius: 8px;
	padding: 12px 20px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
}
.btn-primary { background: var(--bastur-clay-dark); color: #fff; }
.btn-primary:hover { background: #8a4626; color: #fff; }
.btn-secondary { background: var(--bastur-spruce); color: #fff; }
.btn-secondary:hover { background: var(--bastur-spruce-light); color: #fff; }
.btn-outline { background: transparent; border-color: var(--bastur-spruce); color: var(--bastur-spruce); }
.btn-outline:hover { background: var(--bastur-mist); }

/* Hero / search */
.bastur-hero {
	background: var(--bastur-mist);
	padding: 48px 0;
	text-align: center;
}
.bastur-hero p.lead { color: var(--bastur-text-muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.bastur-search-form {
	display: flex;
	max-width: 560px;
	margin: 0 auto;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}
.bastur-search-form input[type="search"] {
	flex: 1 1 320px;
	padding: 13px 16px;
	border: 1px solid var(--bastur-sand);
	border-radius: 8px;
	font-size: 16px;
	background: #fff;
}
.bastur-search-form button { flex: 0 0 auto; }

/* Map */
.bastur-map { width: 100%; height: 420px; border-radius: 12px; border: 1px solid var(--bastur-sand); margin: 32px 0; }
.bastur-map-single { height: 300px; }

/* Sections */
.bastur-section { padding: 48px 0; }
.bastur-section-alt { background: var(--bastur-white); }

/* County grid */
.bastur-county-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 600px) {
	.bastur-county-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 992px) {
	.bastur-county-grid { grid-template-columns: repeat(4, 1fr); }
}
.bastur-county-card {
	background: #fff;
	border: 1px solid var(--bastur-sand);
	border-radius: 12px;
	padding: 18px;
	text-decoration: none;
	display: block;
	transition: box-shadow 0.15s;
}
.bastur-county-card:hover { box-shadow: 0 4px 16px rgba(28,36,32,0.08); }
.bastur-county-card .name { font-weight: 600; color: var(--bastur-charcoal); font-size: 16px; display: block; }
.bastur-county-card .count { color: var(--bastur-text-muted); font-size: 13px; }

/* Listing cards */
.bastur-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 640px) {
	.bastur-card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 992px) {
	.bastur-card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.bastur-card {
	background: var(--bastur-white);
	border: 1px solid var(--bastur-sand);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s;
}
.bastur-card:hover { box-shadow: 0 4px 16px rgba(28,36,32,0.08); }
.bastur-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bastur-mist); }
.bastur-card-img-placeholder {
	width: 100%; aspect-ratio: 4/3; background: var(--bastur-mist);
	display: flex; align-items: center; justify-content: center;
}
.bastur-card-img-placeholder img { width: 48px; height: 48px; opacity: 0.5; }
.bastur-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bastur-card-title { font-size: 18px; font-weight: 600; color: var(--bastur-charcoal); text-decoration: none; }
.bastur-card-title:hover { color: var(--bastur-clay-dark); }
.bastur-card-meta { font-size: 14px; color: var(--bastur-text-muted); }
.bastur-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.bastur-pill {
	display: inline-block;
	background: var(--bastur-mist);
	color: var(--bastur-charcoal);
	font-size: 12px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 999px;
	text-decoration: none;
}
.bastur-pill-saunify { background: var(--bastur-clay-tint); color: var(--bastur-charcoal); font-weight: 600; }
.bastur-pill-unclaimed { background: transparent; border: 1px solid var(--bastur-sand); color: var(--bastur-text-muted); }
.bastur-price { font-weight: 600; color: var(--bastur-spruce); font-size: 15px; margin-top: auto; }
.bastur-card-desc { font-size: 13px; color: var(--bastur-text-muted); margin: 0; }

/* Single listing */
.bastur-single-header { background: var(--bastur-white); padding: 32px 0; border-bottom: 1px solid var(--bastur-sand); }
.bastur-breadcrumb { font-size: 13px; color: var(--bastur-text-muted); margin-bottom: 12px; }
.bastur-breadcrumb a { color: var(--bastur-text-muted); }
.bastur-facts { background: #fff; border: 1px solid var(--bastur-sand); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.bastur-facts dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 15px; }
.bastur-facts dt { color: var(--bastur-text-muted); font-weight: 500; }
.bastur-facts dd { margin: 0; }
.bastur-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.bastur-claim-note { font-size: 14px; color: var(--bastur-text-muted); margin-top: 20px; }
.bastur-claim-box { background: var(--bastur-mist); border-radius: 12px; padding: 16px 20px; margin-top: 24px; font-size: 14px; }
.bastur-claim-box p { margin: 0; }

/* Forms (claim / add listing) */
.bastur-form { max-width: 560px; }
.bastur-form label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 14px; }
.bastur-form input, .bastur-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--bastur-sand); border-radius: 8px;
	font-size: 15px; margin-bottom: 16px; font-family: inherit; background: #fff;
}
.bastur-form .hp-field { position: absolute; left: -9999px; }

/* Footer */
.bastur-footer { background: var(--bastur-spruce); color: #cfd9d3; padding: 32px 0; margin-top: 48px; font-size: 14px; }
.bastur-footer a { color: #fff; }
.bastur-pagination { margin: 24px 0; display: flex; gap: 8px; }
.bastur-pagination a, .bastur-pagination span { padding: 8px 12px; border: 1px solid var(--bastur-sand); border-radius: 6px; text-decoration: none; color: var(--bastur-charcoal); }
