/* ===== Headings: centred, same size & style ===== */
.al-sec h2, .communities-custom .communities-main-title, .featured-custom .featured-main-title {
  color: #000 !important; text-align: center !important; font-size: 40px !important; font-weight: 300 !important;
  text-transform: uppercase !important; letter-spacing: .5px; line-height: 1.15; margin: 0 0 24px !important;
}
.al-sec h2:empty { display: none !important; }
#sec-s0p04g8 .featured-header { display: none !important; }
.al-sec-content-richText h3 { color: #3A3A3A !important; text-align: center; font-size: 16px; letter-spacing: 3px; text-transform: uppercase; margin: -12px 0 24px; }
.al-sec-content-richText, .al-sec-content-richText p { color: #000; }
.al-sec-content-richText img { max-width: 100%; height: auto; }
@media (max-width: 768px) { .al-sec h2, .communities-custom .communities-main-title { font-size: 28px !important; } }

/* ===== Inner content pages (text blocks that start with an H1): left aligned ===== */
.al-sec-content-richText:has(h1) h1 { color: #000; text-align: left !important; font-size: 40px; font-weight: 300; text-transform: uppercase; letter-spacing: .5px; line-height: 1.15; margin: 0 0 12px; }
.al-sec-content-richText:has(h1) h2, .al-sec-content-richText:has(h1) h3, .al-sec-content-richText:has(h1) h4, .al-sec-content-richText:has(h1) p, .al-sec-content-richText:has(h1) li { text-align: left !important; }
.al-sec-content-richText:has(h1) h2 { font-size: 28px !important; margin: 32px 0 12px !important; }
.al-sec-content-richText:has(h1) h3 { margin: 24px 0 12px; }
.al-sec-content-richText:has(h1) h1 + h3 { margin-top: 0; }
@media (max-width: 768px) { .al-sec-content-richText:has(h1) h1 { font-size: 28px; } }

/* ===== Breadcrumbs: black / grey ===== */
.al-bc { --al-bc-cur: #000000 !important; }
.al-bc a { color: #5C5C5C !important; text-decoration: none; }
.al-bc a:hover { color: #000 !important; }
.al-bc [aria-current], .al-bc li:last-child { color: #000 !important; font-weight: 600; }
.al-bc .sep { color: #9E9E9E !important; }

/* ===== Blog cards without a photo: no empty placeholder ===== */
.al-blg-card .ph:not([style*="url"]):not(:has(img)) { display: none !important; }

/* ===== About: agent card photo ===== */
.ab-card .ab-card-photo { max-height: none !important; }
.ab-card { width: 100% !important; max-width: 420px !important; }

/* ===== Featured Listings intro: centred, same width as the carousel ===== */
.al-sec-content-richText:has(+ .al-sec-listings-featured) .wrap { max-width: 1180px !important; padding-left: 27px !important; padding-right: 27px !important; }
.al-sec-content-richText:has(+ .al-sec-listings-featured) p { text-align: center !important; max-width: none !important; margin-left: 0; margin-right: 0; }
.al-sec-listings-featured .featured-custom { padding-top: 10px !important; }

/* ===== Hero ===== */
.al-sec-hero-media h1.hero-head { color: #fff !important; font-size: 44px !important; max-width: none !important; white-space: nowrap; text-transform: none !important; }
.al-sec-hero-media h1.hero-head + div { max-width: 1040px !important; font-size: 16px !important; line-height: 1.6 !important; }
@media (max-width: 1100px) { .al-sec-hero-media h1.hero-head { white-space: normal; font-size: 32px !important; } }
.al-sec-hero-media .al-mh-btns a {
  box-sizing: border-box; width: 220px; min-height: 50px; display: inline-flex !important; align-items: center; justify-content: center; text-align: center;
  padding: 0 20px !important; line-height: 1.2 !important;
  background: rgba(255,255,255,.85) !important; color: #000 !important; border: 1px solid rgba(255,255,255,.85) !important;
  border-radius: 0 !important; font-size: 14px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 1px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.al-sec-hero-media .al-mh-btns a:hover { background: #000 !important; color: #fff !important; border-color: #000 !important; }
@media (max-width: 560px) { .al-sec-hero-media .al-mh-btns a { width: 100%; } }

/* ===== Search bar on black (homepage) ===== */
.al-sec-hero-media ~ .al-sec-search-bar { background: #000; }

/* ===== Buttons & button-links (a link wrapping only <strong>): black bg, white text, grey hover ===== */
.btn-accent, .al-sec a.btn-accent, .communities-custom .communities-view-all-btn, .al-sec-content-richText p > a:has(> strong:only-child),
.al-cf button[type=submit], .featured-card-footer a {
  display: inline-flex !important; align-items: center; justify-content: center; text-align: center; line-height: 1.2 !important; min-height: 46px; box-sizing: border-box;
  background: #000 !important; color: #fff !important; border: 1px solid #000 !important; border-radius: 0 !important;
  padding: 0 32px !important; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; text-decoration: none !important;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn-accent:hover, .al-sec a.btn-accent:hover, .communities-custom .communities-view-all-btn:hover, .al-sec-content-richText p > a:has(> strong:only-child):hover,
.al-cf button[type=submit]:hover, .featured-card-footer a:hover { background: #3A3A3A !important; border-color: #3A3A3A !important; color: #fff !important; }
.al-sec-content-richText a strong { color: inherit; }
.al-sec-content-richText p a:not(:has(> strong:only-child)) { color: #000; text-decoration: underline; }
/* homepage search button: white with black text, grey hover */
.al-sec-hero-media ~ .al-sec-search-bar .al-qsb-go.btn-accent { background: #fff !important; color: #000 !important; border-color: #fff !important; }
.al-sec-hero-media ~ .al-sec-search-bar .al-qsb-go.btn-accent:hover { background: #3A3A3A !important; color: #fff !important; border-color: #3A3A3A !important; }

/* ===== Buy / Sell rows: image matches text height ===== */
.split-row:has(img[src*="-guide"]) { align-items: stretch !important; gap: 48px; }
.split-side:has(img[src*="-guide"]) { position: relative; min-height: 320px; }
.split-side:has(img[src*="-guide"]) > .al-sec-image-single, .split-side:has(img[src*="-guide"]) .wrap, .split-side:has(img[src*="-guide"]) a { position: absolute !important; inset: 0; padding: 0 !important; margin: 0 !important; max-width: none !important; height: 100%; }
.split-side img[src*="-guide"] { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.split-row:has(img[src*="-guide"]) .split-main .al-sec-content-richText .wrap { padding-top: 0; }
@media (max-width: 768px) { .split-side:has(img[src*="-guide"]) { min-height: 260px; } }

/* ===== Featured Communities: 4 in a row on desktop ===== */
@media (min-width: 992px) { #sec-szz1esx .communities-cards-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; } }
@media (min-width: 992px) { #sec-sznws21 .communities-cards-grid { grid-template-columns: repeat(3, 1fr) !important; } }

/* ===== Get in Touch ===== */
.al-sec-contact-form .wrap { max-width: 1100px !important; }
.al-sec-contact-form .al-cf-layout { display: grid !important; grid-template-columns: 38% 1fr; gap: 0 !important; box-shadow: 0 20px 50px rgba(0,0,0,.12); align-items: stretch; }
.al-sec-contact-form .al-cf-agent { background: #000 !important; color: #fff !important; padding: 48px 40px !important; margin: 0 !important; border-radius: 0 !important; }
.al-sec-contact-form .al-cf-agent * { color: #fff !important; }
.al-sec-contact-form .al-cf-agent-name { font-size: 20px; font-weight: 600; }
.al-sec-contact-form .al-cf-agent-role { opacity: .7; font-size: 13px; margin-bottom: 20px; }
.al-sec-contact-form .al-cf-agent-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); text-decoration: none; }
.al-sec-contact-form .al-cf-agent-row svg { fill: #fff !important; width: 18px; height: 18px; flex: 0 0 18px; }
.al-sec-contact-form .al-cf-agent-socials { margin-top: 24px; display: flex; gap: 10px; }
.al-sec-contact-form .al-cf-agent-social { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.4); display: inline-flex; align-items: center; justify-content: center; transition: background-color .25s ease; }
.al-sec-contact-form .al-cf-agent-social:hover { background: #3A3A3A; }
.al-sec-contact-form .al-cf-agent-social svg { fill: #fff !important; }
.al-sec-contact-form form.al-cf { background: #fff !important; color: #000 !important; padding: 48px 40px !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.al-sec-contact-form form.al-cf label, .al-sec-contact-form form.al-cf .lbl { color: #000 !important; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.al-sec-contact-form .al-cf-input, .al-sec-contact-form input, .al-sec-contact-form textarea, .al-sec-contact-form select { background: #fff !important; color: #000 !important; border: 0 !important; border-bottom: 1px solid #BDBDBD !important; border-radius: 0 !important; padding: 12px 0 !important; box-shadow: none !important; }
.al-sec-contact-form input:focus, .al-sec-contact-form textarea:focus { outline: none; border-bottom-color: #000 !important; }
.al-sec-contact-form button[type=submit] { width: 100%; margin-top: 12px; }
@media (max-width: 860px) { .al-sec-contact-form .al-cf-layout { grid-template-columns: 1fr; } .al-sec-contact-form .al-cf-agent, .al-sec-contact-form form.al-cf { padding: 32px 24px !important; } }