/* Property listings: archive, single, homepage tiles */
.ap-wrap { max-width: 1280px; margin: 0 auto; padding: 0 30px; }
.ap-banner { background: #0c242b center/cover no-repeat; color: #fff; text-align: center; padding: 120px 0; }
.ap-banner h1 { color: #fff; margin: 0; padding: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; font-weight: 700; }
.ap-banner p { color: #fff; font-size: 20px; margin: 12px 0 0; padding: 0; }
.ap-section { padding: 70px 0 90px; }

/* Grid of tiles */
.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; margin-top: 10px; text-align: center; }
.ap-card { background: transparent; }
.ap-card-media { position: relative; display: block; aspect-ratio: 3 / 2.25; background: #e6e9ea; overflow: hidden; }
.ap-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ap-card:hover .ap-card-media img { transform: scale(1.03); }
.ap-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #888; }
.ap-card-body { padding: 20px 6px 0; }
.ap-card-title { margin: 0 0 6px; padding: 0; font-size: 22px; line-height: 1.25; font-weight: 700; color: #0c0c0c; }
.ap-card-title a { color: inherit; text-decoration: none; font-size: 24px; font-weight: 600; }
.ap-price { margin: 0 0 14px; padding: 0; font-size: 18px; font-weight: 700; color: #069246; }
.ap-price--lg { font-size: 34px; margin-bottom: 20px; }
.ap-excerpt { margin: 0 0 22px; padding: 0; font-size: 15px; line-height: 1.7; color: #000000; }
.ap-btn { display: inline-block; padding: 11px 24px; border: 2px solid #069246; border-radius: 3px; background: transparent; color: #069246; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; transition: background .2s, color .2s; }
.ap-btn:hover, .ap-btn:focus { background: #06773a; border-color: #06773a; color: #fff; }

/* Status badge */
.ap-badge { position: absolute; top: 0; left: 0; padding: 7px 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.ap-badge--available { background: #283479; color: #fff; }
.ap-badge--sold { background: #ffe600; color: #0c0c0c; }
.ap-card.is-sold .ap-card-media img { filter: none; }

/* Amenity icons */
.ap-amenities { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid #e3e6e7; }
.ap-amenities li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; color: #383a3c; font-weight: 600; }
.ap-icon { flex: none; color: #069246; }
.ap-amenities--card { justify-content: center; border-top: 0; padding: 0 0 14px; gap: 6px 18px; }
.ap-amenities--card li { gap: 6px; font-size: 15px; font-weight: 400; }
.ap-amenities--card .ap-icon { width: 18px; height: 18px; }
.ap-more { text-align: center; margin: 45px 0 0; padding: 0; }
.ap-empty { text-align: center; padding: 30px 0; }

/* Archive pagination */
.ap-archive .navigation.pagination { margin-top: 50px; text-align: center; }
.ap-archive .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid #d4d8d9; border-radius: 4px; color: #383a3c; text-decoration: none; }
.ap-archive .page-numbers.current { background: #0c242b; border-color: #0c242b; color: #fff; }

/* Single */
.ap-single .ap-section { padding: 40px 0 80px; }
.ap-single-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 30px; }
.ap-single .ap-badge { position: static; display: inline-block; margin-bottom: 8px; }
.ap-single-title { margin: 0 0 6px; padding: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; font-weight: 700; color: #0c0c0c; }
.ap-single .ap-price { font-size: 30px; font-weight: 400; color: #383a3c; margin: 0 0 14px; }
.ap-single .ap-amenities--card { justify-content: flex-start; padding: 0; }
.ap-contact { flex: 0 0 300px; background: #f0f1f3; border-radius: 8px; padding: 20px 24px; }
.ap-contact h2 { margin: 0 0 6px; padding: 0; font-size: 24px; line-height: 1.2; font-weight: 600; }
.ap-contact-phone { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 700; color: #069246; text-decoration: none; }
.ap-contact p { margin: 0; padding: 0; font-size: 14px; line-height: 1.5; }

/* Slider */
.ap-slider { position: relative; background: #e6e9ea; }
.ap-slides { aspect-ratio: 3 / 2; max-height: 640px; width: 100%; position: relative; overflow: hidden; }
.ap-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.ap-slide.is-active { opacity: 1; }
.ap-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.ap-nav--prev { left: 6px; } .ap-nav--next { right: 6px; }
.ap-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ap-dots li { margin: 0; padding: 0; }
.ap-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.ap-dots button.is-active { background: #fff; }

.ap-single-cols { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 34px; margin-top: 50px; align-items: start; }
.ap-single h2.ap-h2 { margin: 0 0 20px; padding: 0; font-size: 40px; line-height: 1.2; font-weight: 700; }
.ap-description > :last-child { margin-bottom: 0; }
.ap-cta { background: #283479; color: #fff; border-radius: 8px; padding: 40px 30px; }
.ap-cta h2 { color: #fff; margin: 0 0 14px; padding: 0; font-size: 30px; line-height: 1.25; font-weight: 600; }
.ap-cta p { color: #fff; margin: 0 0 20px; padding: 0; font-size: 15px; line-height: 1.6; }
.ap-video { margin-top: 50px; }
.ap-video-frame { position: relative; aspect-ratio: 16 / 9; }
.ap-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ap-single-cols .et_pb_button,
.ap-single-cols .et_pb_button:hover {
	padding: 16px 20px !important;
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: 120% !important;
	display: inline-block;
}

@media (max-width: 980px) {
	.ap-grid { grid-template-columns: repeat(2, 1fr); }
	.ap-single-head { flex-direction: column; gap: 24px; }
	.ap-contact { flex-basis: auto; width: 100%; }
	.ap-single-cols { grid-template-columns: 1fr; }
	.ap-banner { padding: 80px 0; }
}
@media (max-width: 600px) {
	.ap-grid { grid-template-columns: 1fr; }
	.ap-wrap { padding: 0 20px; }
	.ap-section { padding: 45px 0 60px; }
}

/* Shortcode pagination */
.ap-pagination { display: flex; justify-content: center; align-items: stretch; margin-top: 50px; font-size: 14px; }
.ap-pagination > * { padding: 8px 14px; border: 1px solid #d4d8d9; margin-left: -1px; color: #383a3c; text-decoration: none; background: #fff; line-height: 1.2; }
.ap-pagination-info { background: #f4f6f6; }
.ap-pagination a:hover { background: #f4f6f6; }
.ap-pagination a.is-current { background: #069246; border-color: #069246; color: #fff; }

/* AJAX loading state */
.ap-listing { transition: opacity .2s ease; }
.ap-listing.is-loading { opacity: .45; pointer-events: none; }

/* Homepage variant: [alandale_properties layout="home"] */
.ap-listing--home .ap-grid { gap: 26px; }
.ap-card--home { background: #fff; border: 1px solid #dcdfe1; border-radius: 6px; padding: 10px 10px 20px; text-align: left; box-shadow: none; }
.ap-card--home:hover { transform: none; box-shadow: 0 6px 18px rgba(12, 36, 43, .10); }
.ap-card--home .ap-card-media { aspect-ratio: 3 / 2.2; }
.ap-strip { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 0; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5; }
.ap-strip--available { background: #28377A; color: #fff; }
.ap-strip--sold { background: #FEF200; color: #0c0c0c; }
.ap-card--home .ap-card-title { margin: 16px 0 2px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.ap-card--home .ap-price { margin: 0 0 12px; font-size: 18px; font-weight: 400; color: #555; }
.ap-amenities--home { justify-content: flex-start; padding: 0 0 18px; gap: 6px 14px; }
.ap-amenities--home li { font-size: 15px; font-weight: 400; gap: 5px; }
.ap-amenities--home .ap-icon { width: 17px; height: 17px; }
.ap-card--home .ap-btn--solid { background: #069246; border-color: #069246; color: #fff; padding: 16px 20px; font-size: 18px; border-radius: 4px; }
.ap-card--home .ap-btn--solid:hover, .ap-card--home .ap-btn--solid:focus { background: #06773a; border-color: #06773a; }
.ap-card--home .ap-amenities--home { justify-content: flex-start; margin: 0; padding: 0 0 18px; }
article.ap-card.ap-card--home.status-publish.has-post-thumbnail.hentry {
    padding: 16px;
	border-radius: 10px;
}
/* Amenity icons are sized by height (the supplied SVGs have different aspect ratios) */
.ap-amenities .ap-icon { width: auto; height: 14px; }
.ap-amenities--card .ap-icon, .ap-amenities--home .ap-icon { width: auto; height: 13px; }
.ap-summary .ap-amenities .ap-icon, .ap-single-head .ap-amenities .ap-icon { height: 16px; }

/* Homepage cards on mobile: specs in 2 columns */
@media (max-width: 600px) {
	.ap-card--home .ap-amenities--home { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding-bottom: 18px; }
	.ap-card--home .ap-amenities--home li { font-size: 14px; gap: 8px; }
	.ap-card--home .ap-amenities--home .ap-icon { height: 15px; }
}
