/* ===== Winery Map ===== */
.wm-map-wrapper {
	position: relative;
	width: 100%;
	min-width: 0;
}

#wm-map {
	width: 100%;
	border-radius: 10px;
	z-index: 1;
}

.wm-map-status {
	text-align: center;
	padding: 0.75em;
	color: #6b6b6b;
	font-size: 0.95em;
}

.wm-directory-layout {
	display: grid;
	grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
	width: 100%;
	margin: 1.5em 0;
	border: 1px solid #e3ddd5;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.wm-directory-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-right: 1px solid #e3ddd5;
	background: #fbfaf8;
}

.wm-directory-panel > h3 {
	margin: 0;
	padding: 18px 18px 12px;
	color: #3a2a1a;
	font-size: 1.15em;
}

.wm-winery-list {
	overflow-y: auto;
	padding: 0 12px 16px;
}

.wm-winery-card {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 11px;
	margin: 0 0 10px;
	padding: 10px;
	border: 1px solid #e7e0d8;
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wm-winery-card:hover,
.wm-winery-card:focus,
.wm-winery-card.wm-card-active {
	border-color: #7b2d26;
	box-shadow: 0 3px 12px rgba(70, 38, 29, 0.12);
	outline: none;
}

.wm-winery-card > img,
.wm-card-placeholder {
	width: 76px;
	height: 76px;
	border-radius: 7px;
	object-fit: cover;
}

.wm-card-placeholder {
	display: grid;
	place-items: center;
	background: #f1eee9;
	font-size: 1.8em;
}

.wm-card-content h4 {
	margin: 1px 0 4px;
	font-size: 0.98em;
	line-height: 1.25;
	color: #3a2a1a;
}

.wm-card-content p {
	margin: 0 0 8px;
	font-size: 0.8em;
	line-height: 1.35;
	color: #73685f;
}

.wm-card-book-btn {
	padding: 6px 9px;
	border: 0;
	border-radius: 5px;
	background: #7b2d26;
	color: #fff;
	font-size: 0.77em;
	font-weight: 600;
	cursor: pointer;
}

/* Popup card */
.wm-popup {
	font-family: inherit;
	max-width: 240px;
}

.wm-popup-thumb {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 8px;
	display: block;
}

.wm-popup-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1eee9;
	color: #999;
	font-size: 0.8em;
}

.wm-popup-title {
	margin: 0 0 2px;
	font-size: 1.05em;
	font-weight: 700;
	color: #3a2a1a;
}

.wm-popup-region {
	font-size: 0.8em;
	color: #8a6d3b;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 6px;
}

.wm-popup-excerpt {
	font-size: 0.88em;
	color: #444;
	margin: 0 0 10px;
	line-height: 1.4;
}

.wm-popup-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wm-popup-book-btn {
	background: #7b2d26;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 0.9em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wm-popup-book-btn:hover {
	background: #5e211c;
}

.wm-popup-link {
	font-size: 0.85em;
	text-align: center;
	color: #7b2d26;
	text-decoration: underline;
}

/* ===== Calendly Modal ===== */
.wm-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.wm-modal.wm-modal-open {
	display: block;
}

.wm-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 14, 10, 0.55);
}

.wm-modal-panel {
	position: relative;
	max-width: 760px;
	width: 92%;
	margin: 4vh auto;
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.wm-modal-panel h3 {
	margin: 0 0 12px;
	padding-right: 30px;
	font-size: 1.2em;
	color: #3a2a1a;
}

.wm-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.6em;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.wm-modal-close:hover {
	color: #222;
}

.wm-calendly-frame {
	display: block;
	width: 100%;
	height: 650px;
	border: 0;
	background: #fff;
}

.wm-calendly-fallback {
	margin: 10px 0 0;
	text-align: center;
	font-size: 0.9em;
}

.wm-calendly-fallback a {
	color: #7b2d26;
	font-weight: 600;
	text-decoration: underline;
}

body.wm-modal-active {
	overflow: hidden;
}

/* ===== Submission Form ===== */
.wm-submit-form {
	max-width: 560px;
}

.wm-submit-form p {
	margin-bottom: 1.1em;
}

.wm-submit-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.wm-submit-form input[type="text"],
.wm-submit-form input[type="url"],
.wm-submit-form input[type="email"],
.wm-submit-form input[type="file"],
.wm-submit-form textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1em;
	box-sizing: border-box;
}

.wm-submitter-block {
	border: 1px solid #e2dccf;
	border-radius: 8px;
	padding: 14px 16px 4px;
	margin: 1.5em 0;
}

.wm-location-block {
	border: 1px solid #d7cdbf;
	border-radius: 9px;
	padding: 14px 16px 16px;
	margin: 1.5em 0;
	background: #fbfaf8;
}

.wm-location-block legend {
	padding: 0 6px;
	font-weight: 700;
	color: #5f4935;
}

.wm-location-picker {
	width: 100%;
	height: 360px;
	margin-top: 10px;
	border: 1px solid #cfc6bb;
	border-radius: 8px;
	z-index: 1;
}

.wm-location-btn {
	padding: 8px 13px;
	border: 1px solid #7b2d26;
	border-radius: 6px;
	background: #fff;
	color: #7b2d26;
	font-weight: 600;
	cursor: pointer;
}

.wm-location-btn:hover {
	background: #f7ecea;
}

.wm-location-status,
.wm-coordinate-readout {
	margin: 8px 0 0 !important;
	font-size: 0.84em;
	color: #62594f;
}

@media (max-width: 760px) {
	.wm-directory-layout {
		grid-template-columns: 1fr;
	}

	.wm-directory-panel {
		height: auto !important;
		max-height: 360px;
		border-right: 0;
		border-bottom: 1px solid #e3ddd5;
	}

	#wm-map {
		height: 460px !important;
	}

	.wm-modal-panel {
		width: 96%;
		margin: 2vh auto;
		padding: 18px;
		max-height: 96vh;
		box-sizing: border-box;
	}

	.wm-calendly-frame {
		height: 720px;
	}

	.wm-location-picker {
		height: 300px;
	}
}

.wm-submitter-block legend {
	font-weight: 600;
	padding: 0 6px;
	color: #6b5a3e;
}

.wm-submit-btn {
	background: #7b2d26;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 11px 22px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
}

.wm-submit-btn:hover {
	background: #5e211c;
}

.wm-form-note {
	font-size: 0.85em;
	color: #777;
}

.wm-notice-success,
.wm-notice-error {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 1.2em;
	font-size: 0.95em;
}

.wm-notice-success {
	background: #e9f5e9;
	border: 1px solid #b6dcb6;
	color: #2c5e2c;
}

.wm-notice-error {
	background: #fbeaea;
	border: 1px solid #e0b4b4;
	color: #7a2727;
}
