/* SMPM Guesty Booking. Override any --smpm-* variable from your theme. */
.smpm-gb {
	--smpm-accent: #c98a3a;
	--smpm-on-accent: #1c2b38;
	--smpm-text: #23282d;
	--smpm-muted: #5c6570;
	--smpm-line: #dfe5e2;
	--smpm-bg: #ffffff;
	--smpm-soft: #f5f7f6;
	--smpm-error: #b42318;
	--smpm-radius: 12px;
	color: var(--smpm-text);
	font: inherit;
	line-height: 1.5;
}
.smpm-gb *, .smpm-gb *::before, .smpm-gb *::after { box-sizing: border-box; }
.smpm-gb-search br, .smpm-gb-search > p:empty { display: none; } /* stray <br>/<p> added by wpautop in templates */

/* Buttons */
.smpm-gb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 44px; padding: 0 1.25em; border: 1px solid var(--smpm-accent); border-radius: 999px;
	background: var(--smpm-accent); color: var(--smpm-on-accent); font: inherit; font-weight: 700; text-decoration: none;
	cursor: pointer; transition: filter .15s ease, background .15s ease; white-space: nowrap;
}
.smpm-gb-btn:hover { filter: brightness(1.06); color: var(--smpm-on-accent); }
/* Themes style links (grey text, underline); keep booking buttons readable everywhere. */
.smpm-gb a.smpm-gb-btn, .smpm-gb a.smpm-gb-btn:visited, .smpm-gb a.smpm-gb-btn:hover, .smpm-gb a.smpm-gb-btn:focus { color: var(--smpm-on-accent); text-decoration: none; }
.smpm-gb a.smpm-gb-btn--ghost, .smpm-gb a.smpm-gb-btn--ghost:visited { color: var(--smpm-on-accent); }
.smpm-gb-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--smpm-accent) 40%, transparent); outline-offset: 2px; }
.smpm-gb-btn[disabled] { opacity: .6; cursor: progress; }
.smpm-gb-btn--ghost { background: transparent; color: var(--smpm-on-accent); border-color: var(--smpm-on-accent); }
.smpm-gb-btn--ghost:hover { background: var(--smpm-soft); color: var(--smpm-on-accent); }
.smpm-gb-btn--block { width: 100%; min-height: 52px; font-size: 1.05em; margin-top: .5rem; }

/* Fields */
.smpm-gb-field { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 0; min-width: 0; }
.smpm-gb-field > span { font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--smpm-muted); }
.smpm-gb input[type=text], .smpm-gb input[type=email], .smpm-gb input[type=tel], .smpm-gb input[type=date],
.smpm-gb input:not([type]), .smpm-gb select {
	width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--smpm-line); border-radius: 8px;
	background: var(--smpm-bg); color: var(--smpm-text); font: inherit; margin: 0;
}
.smpm-gb input:focus, .smpm-gb select:focus { outline: none; border-color: var(--smpm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--smpm-accent) 18%, transparent); }

/* Search bar */
.smpm-gb-search {
	display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap;
	padding: 1rem; border: 1px solid var(--smpm-line); border-radius: var(--smpm-radius); background: var(--smpm-bg);
	box-shadow: 0 6px 24px rgba(20, 30, 28, .06);
}
.smpm-gb-search .smpm-gb-field { flex: 1 1 150px; }
.smpm-gb-search .smpm-gb-field--guests { flex: 0 1 100px; }
.smpm-gb-search .smpm-gb-btn { flex: 0 0 auto; }
@media (max-width: 560px) {
	.smpm-gb-search .smpm-gb-field, .smpm-gb-search .smpm-gb-btn { flex: 1 1 100%; }
	.smpm-gb-search .smpm-gb-field--guests { flex: 1 1 calc(50% - .5rem); }
}

.smpm-gb-status { margin: 1.25rem 0 .75rem; color: var(--smpm-muted); }

/* Results */
.smpm-gb-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.smpm-gb-grid[aria-busy=true] { min-height: 200px; }
.smpm-gb-card { display: flex; flex-direction: column; border: 1px solid var(--smpm-line); border-radius: var(--smpm-radius); overflow: hidden; background: var(--smpm-bg); }
.smpm-gb-card__img { aspect-ratio: 3 / 2; background: var(--smpm-soft); }
.smpm-gb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smpm-gb-card__body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; flex: 1; }
.smpm-gb-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.smpm-gb-meta, .smpm-gb-facts, .smpm-gb-rating { font-size: .9rem; color: var(--smpm-muted); }
.smpm-gb-summary { margin: .25rem 0 0; font-size: .92rem; }
.smpm-gb-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .9rem; }
.smpm-gb-price { font-size: .85rem; color: var(--smpm-muted); }
.smpm-gb-price strong { font-size: 1.15rem; color: var(--smpm-text); }

/* Checkout — responds to its own width so narrow theme columns stack cleanly */
.smpm-gb-checkout { container-type: inline-size; }
.smpm-gb-checkout__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
.smpm-gb-checkout__grid .smpm-gb-sum { order: -1; position: static; }
@container (min-width: 760px) {
	.smpm-gb-checkout__grid { gap: 2rem; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); }
	.smpm-gb-checkout__grid .smpm-gb-sum { order: 0; position: sticky; }
}
@container (max-width: 520px) { .smpm-gb-row { flex-direction: column; } }
.smpm-gb-form h2 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
.smpm-gb-form h2:first-child { margin-top: 0; }
.smpm-gb-row { display: flex; gap: .75rem; margin-bottom: .75rem; }
@media (max-width: 560px) { .smpm-gb-row { flex-direction: column; } }
.smpm-gb-payment { min-height: 60px; margin-bottom: 1rem; }
.smpm-gb-card-input { padding: 14px 12px; border: 1px solid var(--smpm-line); border-radius: 8px; background: var(--smpm-bg); }
.smpm-gb-card-input.StripeElement--focus { border-color: var(--smpm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--smpm-accent) 18%, transparent); }
.smpm-gb-card-input.StripeElement--invalid { border-color: var(--smpm-error); }
.smpm-gb-check { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; font-size: .95rem; cursor: pointer; }
.smpm-gb-check input { margin-top: .3rem; accent-color: var(--smpm-accent); }
.smpm-gb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.smpm-gb-msg { min-height: 1.25rem; margin: .5rem 0; font-size: .95rem; }
.smpm-gb-msg.is-error { color: var(--smpm-error); }
.smpm-gb-fine { font-size: .82rem; color: var(--smpm-muted); margin: .75rem 0 0; }

.smpm-gb-sum { position: sticky; top: 2rem; border: 1px solid var(--smpm-line); border-radius: var(--smpm-radius); padding: 1.25rem; background: var(--smpm-bg); }
.smpm-gb-sum__head { display: flex; gap: .9rem; align-items: center; }
.smpm-gb-sum__head img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.smpm-gb-sum__head h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.smpm-gb-sum__trip { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; padding: 1rem 0; border-block: 1px solid var(--smpm-line); }
.smpm-gb-sum__trip dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .02em; color: var(--smpm-muted); }
.smpm-gb-sum__trip dd { margin: 0; font-weight: 600; font-size: .95rem; }
.smpm-gb .smpm-gb-party { min-height: 36px; padding: .25rem .5rem; width: auto; min-width: 72px; font-weight: 600; }
.smpm-gb-plans { border: 0; padding: 0; margin: 0 0 1rem; }
.smpm-gb-plans legend { font-weight: 600; margin-bottom: .4rem; }
.smpm-gb-plan { display: flex; gap: .6rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--smpm-line); border-radius: 8px; margin-bottom: .4rem; cursor: pointer; }
.smpm-gb-plan span { flex: 1; min-width: 0; }
.smpm-gb-plan strong { white-space: nowrap; }
.smpm-gb-plan input { accent-color: var(--smpm-accent); }
.smpm-gb-lines { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0; }
.smpm-gb-lines td, .smpm-gb-lines th { padding: .35rem 0; border: 0; background: none; }
.smpm-gb-lines td:last-child, .smpm-gb-lines th:last-child { text-align: right; white-space: nowrap; }
.smpm-gb-lines tfoot th { padding-top: .75rem; border-top: 1px solid var(--smpm-line); font-size: 1.1rem; }
.smpm-gb-coupon { display: flex; gap: .5rem; margin-top: 1rem; }
.smpm-gb-coupon input { flex: 1; min-width: 0; }
.smpm-gb-coupon .smpm-gb-btn { min-height: 44px; }

/* Confirmation */
.smpm-gb-confirm { max-width: 560px; margin: 2rem auto; text-align: center; padding: 2rem 1.5rem; border: 1px solid var(--smpm-line); border-radius: var(--smpm-radius); }
.smpm-gb-confirm__badge { width: 56px; height: 56px; line-height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: var(--smpm-accent); color: var(--smpm-on-accent); font-size: 1.6rem; }
.smpm-gb-confirm h2 { margin: 0 0 .5rem; }
.smpm-gb-confirm__code strong { font-size: 1.3rem; letter-spacing: .04em; }

/* Featured homes */
.smpm-gb-featured .smpm-gb-card__img { display: block; }
.smpm-gb-featured .smpm-gb-card h3 { font-size: 1.15rem; }

/* Reviews */
.smpm-gb-reviews { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.smpm-gb-review { margin: 0; padding: 1.25rem 1.25rem 1.1rem; background: var(--smpm-bg); border: 1px solid var(--smpm-line); border-radius: var(--smpm-radius); display: flex; flex-direction: column; gap: .6rem; }
.smpm-gb-review__stars { color: var(--smpm-accent); letter-spacing: .15em; font-size: .95rem; }
.smpm-gb-review blockquote { margin: 0; padding: 0; border: 0; font-size: 1rem; line-height: 1.55; color: var(--smpm-text); font-style: normal; flex: 1; }
.smpm-gb-review blockquote::before, .smpm-gb-review blockquote::after { content: none; }
.smpm-gb-review figcaption { display: flex; flex-direction: column; font-size: .9rem; color: var(--smpm-muted); }
.smpm-gb-review figcaption strong { color: var(--smpm-text); }

/* ---------- Property pages ([smpm_home]) ---------- */
.smpm-gb-home { color: var(--smpm-text); }
.smpm-gb-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; gap: 8px; border-radius: 14px; overflow: hidden; }
.smpm-gb-gallery__item { display: block; overflow: hidden; background: #e9ebed; }
.smpm-gb-gallery__item.is-main { grid-row: span 2; }
.smpm-gb-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.smpm-gb-gallery__item:hover img { transform: scale(1.03); }
.smpm-gb-gallery__item:nth-child(n+6) { display: none; }
.smpm-gb-more-photos { margin: 10px 0 0; }
.smpm-gb-more-photos summary { cursor: pointer; font-weight: 700; color: var(--smpm-on-accent); display: inline-block; padding: 8px 16px; border: 2px solid var(--smpm-on-accent); border-radius: 999px; }
.smpm-gb-gallery-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.smpm-gb-gallery-all img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; }
.smpm-gb-home__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; margin-top: 32px; align-items: start; }
.smpm-gb-home__tag { font-size: 1.25rem; font-weight: 600; margin: 0 0 4px; }
.smpm-gb-home__facts { color: var(--smpm-muted); margin: 0 0 24px; }
.smpm-gb-home__section { border-top: 1px solid #e3e6e9; padding-top: 20px; margin-top: 20px; }
.smpm-gb-home__section h2 { font-size: 1.5rem; margin: 0 0 10px; }
.smpm-gb-home__section p { line-height: 1.7; margin: 0 0 12px; }
.smpm-gb-amenities { columns: 2; column-gap: 32px; padding-left: 1.1em; margin: 0; line-height: 1.9; }
.smpm-gb-home__book { position: sticky; top: 24px; }
.smpm-gb-bookbox { background: #fff; border: 1px solid #e3e6e9; border-radius: 14px; padding: 22px; box-shadow: 0 6px 24px rgba(28,43,56,.08); }
.smpm-gb-bookbox .smpm-gb-price { margin: 0 0 14px; font-size: 1rem; }
.smpm-gb-bookbox .smpm-gb-price strong { font-size: 1.6rem; }
.smpm-gb-bookbox__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.smpm-gb-bookbox label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--smpm-muted); }
.smpm-gb-bookbox input, .smpm-gb-bookbox select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px; border: 1px solid #cfd4d9; border-radius: 8px; font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--smpm-text); background: #fff; }
.smpm-gb-bookbox .smpm-gb-btn { width: 100%; margin-top: 6px; border: 0; cursor: pointer; font-size: 1.05rem; padding: 14px; }
.smpm-gb-bookbox__note { font-size: .85rem; color: var(--smpm-muted); margin: 12px 0 0; text-align: center; }
@media (max-width: 900px) {
	.smpm-gb-home__layout { grid-template-columns: 1fr; gap: 24px; }
	.smpm-gb-home__book { position: static; order: -1; }
	.smpm-gb-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
	.smpm-gb-gallery__item.is-main { grid-column: span 2; grid-row: span 2; }
	.smpm-gb-gallery__item:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) { .smpm-gb-amenities { columns: 1; } }
