/* Hansen Plat Maps — frontend */
.hpm-wrap { margin: 0 auto; max-width: 1140px; }

.hpm-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }

.hpm-chip {
	display: inline-block; padding: 3px 12px; border-radius: 4px;
	font-size: 12px; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; color: #fff; line-height: 1.6;
}
.hpm-chip-available { background: #3e9b3a; }
.hpm-chip-sold { background: #a41d21; }
.hpm-chip-pending { background: #1e56b0; }
.hpm-chip-tbd { background: #d97a00; }
.hpm-chip-tract { background: #7c8a7c; }

.hpm-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2e8e2; border-radius: 8px; background: #fff; }
.hpm-map { min-width: 900px; }
.hpm-svg { display: block; width: 100%; height: auto; }

.hpm-lot { fill: transparent; cursor: pointer; transition: fill .15s ease; stroke: transparent; stroke-width: 2; outline: none; }
.hpm-st-available { fill: rgba(62, 155, 58, .13); }
.hpm-st-sold { fill: rgba(164, 29, 33, .14); }
.hpm-st-pending { fill: rgba(30, 86, 176, .14); }
.hpm-st-tbd { fill: rgba(217, 122, 0, .14); }
.hpm-st-tract { fill: rgba(110, 125, 110, .07); }
.hpm-lot:hover, .hpm-lot:focus {
	stroke: rgba(24, 70, 24, .85);
}
.hpm-st-available:hover, .hpm-st-available:focus { fill: rgba(62, 155, 58, .32); }
.hpm-st-sold:hover, .hpm-st-sold:focus { fill: rgba(164, 29, 33, .32); }
.hpm-st-pending:hover, .hpm-st-pending:focus { fill: rgba(30, 86, 176, .3); }
.hpm-st-tbd:hover, .hpm-st-tbd:focus { fill: rgba(217, 122, 0, .3); }
.hpm-st-tract:hover, .hpm-st-tract:focus { fill: rgba(110, 125, 110, .18); }

.hpm-tooltip {
	display: none; position: absolute; z-index: 20; pointer-events: none;
	background: #1d2b1d; color: #fff; font-size: 13px; font-weight: 600;
	padding: 6px 10px; border-radius: 6px; white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.hpm-hint { margin: 8px 2px 0; font-size: 13px; color: #6b7a6b; }

/* hover preview card (desktop) */
.hpm-hovercard {
	position: absolute; z-index: 30; pointer-events: none; opacity: 0;
	width: 240px; background: #fff; border-radius: 10px; padding: 10px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, .28); border: 1px solid #e2e8e2;
	transition: opacity .12s ease; visibility: hidden;
}
.hpm-hovercard.hpm-hc-on { opacity: 1; visibility: visible; }
.hpm-hc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hpm-hc-title { font-size: 15px; color: #234023; }
.hpm-hc-sqft { font-size: 12px; color: #6b7a6b; margin-bottom: 6px; }
.hpm-hc-img {
	display: block; width: 100%; height: 130px; object-fit: cover;
	border-radius: 6px; background: #f1f4f1; margin-bottom: 7px;
}
.hpm-hc-colors { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.hpm-hc-dot {
	width: 17px; height: 17px; border-radius: 50%; display: inline-block;
	border: 1px solid rgba(0, 0, 0, .18); background: #ddd;
}
.hpm-hc-colornames { font-size: 11px; color: #5c6b5c; line-height: 1.35; margin-bottom: 5px; }
.hpm-hc-hint { font-size: 11px; font-weight: 700; color: #2b6b28; text-transform: uppercase; letter-spacing: .04em; }

/* ------------------------------------------------ modal */

.hpm-noscroll { overflow: hidden; }

.hpm-modal {
	position: fixed; inset: 0; z-index: 999999;
	background: rgba(15, 25, 15, .6);
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.hpm-card {
	background: #fff; border-radius: 12px; width: 100%; max-width: 620px;
	max-height: 86vh; display: flex; flex-direction: column;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
.hpm-head {
	display: flex; align-items: center; gap: 10px;
	padding: 16px 20px; border-bottom: 1px solid #e8ede8;
}
.hpm-title { margin: 0; font-size: 22px; line-height: 1.2; color: #234023; flex: 0 0 auto; }
.hpm-close {
	margin-left: auto; border: 0; background: transparent; font-size: 30px; line-height: 1;
	color: #667466; cursor: pointer; padding: 0 4px;
}
.hpm-close:hover { color: #1d2b1d; }

.hpm-body { padding: 16px 20px 20px; overflow-y: auto; }
.hpm-sqft { margin: 0 0 12px; font-weight: 600; color: #446044; }
.hpm-blurb { margin: 0 0 12px; color: #3c4a3c; font-size: 14px; line-height: 1.5; }

/* listing-style spec grid */
.hpm-specs {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
	gap: 8px; margin: 0 0 14px; border: 1px solid #e2e8e2; border-radius: 8px;
	padding: 10px; background: #fafcfa;
}
.hpm-spec { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hpm-spec-v { font-size: 15px; font-weight: 700; color: #234023; line-height: 1.2; }
.hpm-spec-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #7b8a7b; font-weight: 700; }

.hpm-soldcolors { margin: 0 0 12px; font-size: 13px; color: #3c4a3c; line-height: 1.7; }
.hpm-soldcolors-l { font-weight: 700; color: #587058; }
.hpm-soldcolors-dot {
	display: inline-block; width: 13px; height: 13px; border-radius: 50%;
	border: 1px solid rgba(0,0,0,.2); margin: 0 4px -2px 2px; background: #ddd;
}
.hpm-hc-specs { font-size: 12px; font-weight: 700; color: #2b6b28; margin-bottom: 2px; }

/* two-panel layout (viewer + info) */
.hpm-card-wide { max-width: 1020px; }
.hpm-cols { display: flex; gap: 22px; align-items: flex-start; }
.hpm-viewer { flex: 1.25 1 0; min-width: 0; }
.hpm-info { flex: 1 1 0; min-width: 0; }
.hpm-viewer-main { border: 1px solid #e2e8e2; border-radius: 10px; overflow: hidden; background: #fafcfa; position: relative; }
.hpm-viewer-main img, .hpm-vis-canvas { display: block; width: 100%; height: auto; }
.hpm-viewer-main img.hpm-viewer-plan { background: #fff; max-height: 420px; object-fit: contain; }
.hpm-vis-loading {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(250, 252, 250, .7); font-weight: 700; color: #2b6b28;
}
.hpm-vis-badge {
	position: absolute; left: 10px; bottom: 10px; background: rgba(29, 43, 29, .82);
	color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 20px;
}
.hpm-viewer-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hpm-thumb {
	border: 2px solid #dfe6df; border-radius: 8px; padding: 3px; background: #fff; cursor: pointer;
	width: 86px; display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.hpm-thumb img { width: 100%; height: 52px; object-fit: cover; border-radius: 5px; display: block; }
.hpm-thumb-label { font-size: 10.5px; font-weight: 700; color: #587058; line-height: 1.2; }
.hpm-thumb:hover { border-color: #3e9b3a; }
.hpm-thumb-active { border-color: #2b6b28; background: #eef7ee; }

.hpm-color-btn { cursor: pointer; }
.hpm-color-btn:hover { border-color: #3e9b3a; }
.hpm-color-active { border-color: #2b6b28 !important; background: #eef7ee !important; box-shadow: 0 0 0 1px #2b6b28; }
.hpm-color-reset { padding: 4px 14px; font-weight: 700; color: #2b6b28; }
.hpm-vis-note { margin: 6px 0 12px; font-size: 12px; color: #79877b; font-style: italic; }

/* in-popup inquiry form */
.hpm-form { display: flex; flex-direction: column; gap: 10px; }
.hpm-form input, .hpm-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #cfd8cf; border-radius: 8px;
	font-size: 14px; font-family: inherit; box-sizing: border-box;
}
.hpm-form input:focus, .hpm-form textarea:focus { outline: none; border-color: #3e9b3a; }
.hpm-form-submit { border: 0; cursor: pointer; }
.hpm-form-back {
	border: 0; background: transparent; color: #2b6b28; font-weight: 700;
	cursor: pointer; padding: 0; margin: 0 0 10px; font-size: 14px;
}
.hpm-form-colors {
	background: #eef7ee; border: 1px solid #bcd9bb; border-radius: 8px;
	padding: 8px 12px; font-size: 13px; color: #2b6b28; font-weight: 600; margin: 0 0 12px;
}
.hpm-form-note { margin: 4px 0 0; font-size: 13px; color: #79877b; min-height: 1em; }
.hpm-hp { position: absolute !important; left: -9999px !important; height: 1px; opacity: 0; }

@media (max-width: 760px) {
	.hpm-cols { flex-direction: column; }
	.hpm-viewer, .hpm-info { flex: none; width: 100%; }
}

.hpm-banner {
	background: #eef7ee; border: 1px solid #bcd9bb; color: #2b6b28;
	font-weight: 700; padding: 10px 14px; border-radius: 8px; margin: 0 0 14px;
}
.hpm-banner-pending { background: #eef2fb; border-color: #b9c9e8; color: #1e4b9b; }
.hpm-banner-locked { background: #f5f3ec; border-color: #ddd6c2; color: #6b5f42; }

.hpm-sec { margin: 0 0 16px; }
.hpm-sec-title { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: #587058; }

.hpm-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hpm-imgs a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid #e2e8e2; }
.hpm-imgs img { display: block; width: 100%; height: 110px; object-fit: cover; }
.hpm-imgs-plans img { object-fit: contain; background: #fff; height: 150px; }

.hpm-colorgroups { margin: 0; }
.hpm-colorgroup { margin: 0 0 12px; }
.hpm-colorgroup-label {
	display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em;
	text-transform: uppercase; color: #7b8a7b; margin: 0 0 5px;
}
.hpm-colors-reset { margin-top: 2px; }
.hpm-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.hpm-color {
	display: inline-flex; align-items: center; gap: 8px;
	border: 1px solid #dfe6df; border-radius: 20px; padding: 4px 12px 4px 5px;
	font-size: 13px; color: #33452f; background: #fafcfa;
}
.hpm-swatch {
	width: 24px; height: 24px; border-radius: 50%; display: inline-block;
	border: 1px solid rgba(0, 0, 0, .15); background: #ddd;
}
.hpm-color-name { font-weight: 600; }

.hpm-desc { margin: 0 0 14px; color: #3c4a3c; white-space: pre-line; }
.hpm-cta-text { margin: 0 0 10px; color: #3c4a3c; font-style: italic; }

.hpm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hpm-btn {
	display: inline-block; background: #3e9b3a; color: #fff !important;
	font-weight: 700; padding: 10px 18px; border-radius: 8px; text-decoration: none !important;
	font-size: 15px; line-height: 1.2;
}
.hpm-btn:hover { background: #2f7d2c; color: #fff; }
.hpm-btn-outline { background: transparent; color: #2f7d2c !important; box-shadow: inset 0 0 0 2px #3e9b3a; }
.hpm-btn-outline:hover { background: #eef7ee; }

@media (max-width: 640px) {
	.hpm-modal { padding: 0; align-items: flex-end; }
	.hpm-card { max-width: none; border-radius: 16px 16px 0 0; max-height: 88vh; }
	.hpm-title { font-size: 19px; }
}
