/* REP Rentals — minimal structural styles. Override the variables (or the classes) in Breakdance. */
:root {
	--rep-primary: #1f4e79;
	--rep-secondary: #333333;
	--rep-accent: #d9a441;
	--rep-border: #e2e2e2;
	--rep-radius: 6px;
	--rep-gap: 24px;
}

/* ---- Directory ---- */
.rep-rentals { display: block; }
.rep-rentals-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--rep-gap);
}
.rep-rentals-status { margin: 0 0 12px; font-size: .9em; opacity: .75; }
.rep-rentals-empty { grid-column: 1 / -1; }
.rep-rentals-more { text-align: center; margin-top: var(--rep-gap); }
.rep-rentals-disclaimer { margin-top: var(--rep-gap); font-size: .8em; opacity: .7; }
.rep-rentals.is-loading .rep-rentals-grid { opacity: .5; pointer-events: none; }

/* ---- Filters ---- */
.rep-rental-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: flex-end;
	margin-bottom: var(--rep-gap);
	padding: 16px;
	border: 1px solid var(--rep-border);
	border-radius: var(--rep-radius);
}
.rep-rental-filter__field { display: flex; flex-direction: column; gap: 4px; font-size: .85em; min-width: 140px; flex: 1 1 140px; }
.rep-rental-filter__field--price { max-width: 140px; }
.rep-rental-filter__field--check { flex-direction: row; align-items: center; flex: 0 0 auto; min-width: 0; padding-bottom: 8px; }
.rep-rental-filter__field select,
.rep-rental-filter__field input[type="number"] { padding: 8px; border: 1px solid var(--rep-border); border-radius: var(--rep-radius); font: inherit; }
.rep-rental-filter__actions { display: flex; gap: 8px; align-items: center; }
.rep-rental-filter__reset { background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; color: inherit; }

/* ---- Card ---- */
.rep-rental-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--rep-border);
	border-radius: var(--rep-radius);
	overflow: hidden;
	background: #fff;
}
.rep-rental-card--featured { border-color: var(--rep-accent); }
.rep-rental-image { position: relative; display: block; aspect-ratio: 4 / 3; background: #f0f0f0; }
.rep-rental-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rep-rental-image__placeholder { display: block; width: 100%; height: 100%; }
.rep-rental-badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; font-size: .75em; font-weight: 600; background: var(--rep-accent); color: #fff; border-radius: var(--rep-radius); }
.rep-rental-content { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.rep-rental-type { font-size: .75em; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.rep-rental-title { margin: 0; font-size: 1.1em; line-height: 1.3; }
.rep-rental-title a { color: inherit; text-decoration: none; }
.rep-rental-location { font-size: .9em; opacity: .8; }
.rep-rental-details { font-size: .9em; }
.rep-rental-price { font-weight: 700; color: var(--rep-primary); }
.rep-rental-card .rep-rental-button { margin-top: auto; align-self: flex-start; }

/* ---- Buttons ---- */
.rep-rental-button {
	display: inline-block;
	padding: 10px 18px;
	background: var(--rep-primary);
	color: #fff;
	border: 1px solid var(--rep-primary);
	border-radius: var(--rep-radius);
	text-decoration: none;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.rep-rental-button:hover { opacity: .9; color: #fff; }
.rep-rental-button--secondary { background: transparent; color: var(--rep-primary); }

/* ---- Single ---- */
.rep-rental-single { margin-top: var(--rep-gap); }
.rep-rental-notice { padding: 10px 14px; border: 1px solid var(--rep-accent); border-radius: var(--rep-radius); }
.rep-rental-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: var(--rep-gap); }
.rep-rental-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--rep-radius); }
.rep-rental-summary { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; margin-bottom: 16px; }
.rep-rental-price--large { font-size: 1.5em; }
.rep-rental-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 var(--rep-gap); padding: 16px; border: 1px solid var(--rep-border); border-radius: var(--rep-radius); }
.rep-rental-spec dt { font-size: .75em; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.rep-rental-spec dd { margin: 2px 0 0; font-weight: 600; }
.rep-rental-heading { font-size: 1.1em; margin: 0 0 8px; }
.rep-rental-amenities ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 var(--rep-gap); }
.rep-rental-amenities li { padding: 4px 10px; border: 1px solid var(--rep-border); border-radius: 999px; font-size: .85em; }
.rep-rental-description { margin-bottom: var(--rep-gap); }
.rep-rental-contact { padding: 16px; border: 1px solid var(--rep-border); border-radius: var(--rep-radius); margin-bottom: var(--rep-gap); }
.rep-rental-contact__name { font-weight: 600; }
.rep-rental-contact__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---- Submission form ---- */
.rep-rental-form { display: block; }
.rep-rental-form__section { border: 1px solid var(--rep-border); border-radius: var(--rep-radius); padding: 16px; margin: 0 0 var(--rep-gap); display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.rep-rental-form__section legend { font-weight: 600; padding: 0 6px; }
.rep-rental-form__field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.rep-rental-form__field--wide { grid-column: 1 / -1; }
.rep-rental-form__field--check { flex-direction: row; align-items: flex-start; gap: 8px; }
.rep-rental-form__field--check label { display: flex; gap: 8px; align-items: flex-start; }
.rep-rental-form__field input:not([type="checkbox"]):not([type="file"]),
.rep-rental-form__field select,
.rep-rental-form__field textarea { width: 100%; padding: 10px; border: 1px solid var(--rep-border); border-radius: var(--rep-radius); font: inherit; box-sizing: border-box; }
.rep-rental-form__req { color: #b32d2e; }
.rep-rental-form__label { font-weight: 600; }
.rep-rental-form__amenities label { display: inline-flex; gap: 6px; margin: 0 16px 6px 0; }
.rep-rental-form__error { color: #b32d2e; font-size: .85em; }
.rep-rental-form__errors { padding: 12px 16px; margin-bottom: 16px; border: 1px solid #b32d2e; border-radius: var(--rep-radius); color: #b32d2e; }
.rep-rental-form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rep-rental-submit--success { padding: 16px; border: 1px solid var(--rep-primary); border-radius: var(--rep-radius); }

@media (max-width: 600px) {
	.rep-rentals-grid { grid-template-columns: 1fr; }
	.rep-rental-filter__field { flex-basis: 100%; }
	.rep-rental-filter__field--price { max-width: none; }
}
