/* Steve Austin Homes Listings: website display, matched to steveaustinhomes.com.
   Colours can be fine-tuned here (or in Divi → Theme Options → Custom CSS). */
.sah-listings, .sah-single, .sah-page {
	--sah-gold: #f8c12f;
	--sah-blue: #5163ab;
	--sah-red: #e1261c;
	--sah-cream: #f7f5ef;
	--sah-dark: #333;
	--sah-gray: #666;
	--sah-link: #2ea3f2;
}

/* ---------- Homes for Sale cards ---------- */
.sah-listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 5.5%; margin: 0 0 40px; }
.sah-card { background: #fff; border: 4px solid var(--sah-gold); border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); transition: border-color .2s ease; min-width: 0; }
.sah-card:hover, .sah-card:focus-within { border-color: var(--sah-blue); }
.sah-card__link { display: block; height: 100%; color: inherit !important; text-decoration: none !important; }
.sah-card__photo { aspect-ratio: 1.6 / 1; background: #eee; overflow: hidden; }
.sah-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sah-card__body { padding: 30px 26px 30px; }
.sah-card__address { color: var(--sah-dark); font-weight: 700; font-size: 22px; line-height: 1.15; margin: 0 0 10px; padding: 0; }
.sah-card__facts, .sah-card__meta { color: var(--sah-gray); font-size: 16px; line-height: 1.6; margin: 0; padding: 0; }
.sah-card__meta > span + span { margin-left: 8px; }
.sah-card__price { color: var(--sah-dark); font-weight: 700; }
.sah-status__emoji { margin-right: 4px; }
.sah-empty { padding: 16px 0; }

/* ---------- A home's own page ---------- */
.sah-page { width: 100%; padding: 40px 0 60px; }
.sah-title { color: var(--sah-dark); font-weight: 700; font-size: 46px; line-height: 1.1; padding: 0 0 30px; margin: 0; }
.sah-single { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: start; margin: 0 0 40px; }

.sah-slider { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); background: #222; }
.sah-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; outline: none; }
.sah-slider__track::-webkit-scrollbar { display: none; }
.sah-slider__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.sah-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sah-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: transparent; color: rgba(255, 255, 255, .85); font-size: 54px; line-height: 1; cursor: pointer; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); padding: 0; }
.sah-slider__arrow--prev { left: 6px; }
.sah-slider__arrow--next { right: 6px; }
.sah-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 40px; }
.sah-slider__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .5); cursor: pointer; }
.sah-slider__dot.is-active { background: #fff; }

.sah-info { background: var(--sah-cream); border-radius: 12px; padding: 30px 26px 40px; color: var(--sah-gray); }
.sah-info p { padding: 0; margin: 0; }
.sah-info__address { color: var(--sah-dark); font-weight: 700; font-size: 18px; line-height: 1.15; }
.sah-info__community { font-size: 20px; line-height: 1.4; }
.sah-info__price { color: var(--sah-dark); font-weight: 700; font-size: 24px; margin-top: 14px !important; }
.sah-info__mls { font-size: 20px; margin-top: 18px !important; }
.sah-info__mls a { color: var(--sah-link); text-decoration: none; }
.sah-info__status { font-size: 20px; line-height: 1.4; margin-top: 14px !important; }
.sah-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 6px; color: #fff !important; text-decoration: none !important; font-weight: 700; line-height: 1.2; }
.sah-btn--call { background: var(--sah-red); font-weight: 400; font-size: 22px; padding: 12px 16px; margin-top: 22px; border-radius: 4px; }
.sah-btn--call .sah-icon { width: 24px; height: 24px; fill: #fff; }
.sah-icons { list-style: none !important; margin: 30px 0 0 !important; padding: 0 !important; display: grid; gap: 20px; }
.sah-icons li { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0 !important; list-style: none; }
.sah-icons .sah-icon { width: 48px; height: 48px; flex: 0 0 48px; fill: var(--sah-gold); }
.sah-icons span { display: flex; flex-direction: column; text-transform: uppercase; font-size: 16px; line-height: 1.2; }
.sah-icons strong { color: var(--sah-dark); font-size: 22px; }
.sah-buttons { display: grid; gap: 18px; margin-top: 40px; }
.sah-btn--gold, .sah-btn--blue { text-transform: uppercase; font-size: 20px; padding: 18px 12px; letter-spacing: .02em; }
.sah-btn--gold { background: var(--sah-gold); }
.sah-btn--blue { background: var(--sah-blue); }
.sah-main { min-width: 0; }
.sah-description { color: var(--sah-gray); font-size: 16px; line-height: 1.7; margin-top: 30px; }
.sah-description:empty { display: none; }

/* Tablet and phone: one column, like the current site. */
@media (max-width: 980px) {
	.sah-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sah-single { display: flex; flex-direction: column; }
	.sah-main { display: contents; }
	.sah-description { order: 3; }   /* phone: photos, then the info box, then the description (like the current site) */
	.sah-info { order: 2; }
}
@media (max-width: 767px) {
	.sah-listings { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.sah-card__body { padding: 30px 20px; }
	.sah-title { font-size: 34px; padding-bottom: 24px; }
	.sah-page { padding-top: 24px; }
}

/* Print This Page: just the home. */
@media print {
	.sah-buttons, .sah-slider__arrow, .sah-slider__dots, .sah-btn--call { display: none !important; }
	.sah-single { grid-template-columns: 1fr; }
	.sah-slider__track { overflow: hidden; }
}
