/* AK AMPRE Search - site colours: black buttons like the rest of
   the website (global fa80eca #000000), white text, cream sections.
   No teal/blue, no pink: theme/WPL button rules are overridden
   explicitly below, so no other plugin's button colour can leak in. */
:root {
  --ak-idx-teal: #000000;
  --ak-idx-teal-dark: #222222;
  --ak-idx-dark: #1a2b33;
  --ak-idx-border: #d9e2e5;
  --ak-idx-text: #1a2b33;
  --ak-idx-muted: #5a6b73;
}
.ak-idx-hero {
  background-color: var(--ak-idx-dark);
  background-size: cover;
  background-position: center;
  padding: 64px 16px;
}
.ak-idx-hero-panel {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(20, 32, 38, 0.82);
  color: #fff;
  padding: 32px;
  border-radius: 8px;
}
.ak-idx-hero-title { color: #fff; text-align: center; letter-spacing: 0.04em; margin: 0 0 20px; }
.ak-idx-ai-form { display: flex; gap: 8px; }
.ak-idx-ai-form input[type="text"] { flex: 1 1 auto; min-width: 0; width: auto; padding: 12px 14px; border: 0; border-radius: 4px; font-size: 16px; }
.ak-idx-ai-form .ak-idx-btn { flex: 0 0 auto; }
.ak-idx-btn { background: #fff; color: var(--ak-idx-dark); border: 1px solid var(--ak-idx-border); padding: 10px 16px; border-radius: 4px; cursor: pointer; }
.ak-idx-btn-teal { background: var(--ak-idx-teal); color: #fff; border-color: var(--ak-idx-teal); font-weight: 700; }
.ak-idx-btn-teal:hover { background: var(--ak-idx-teal-dark); }
.ak-idx-btn-outline { background: transparent; }
/* "For more options" is a plain white underlined text link on the
   dark hero, never a filled button. The WPL plugin styles every
   bare <button> pink/red, so this needs the explicit override. */
.ak-idx-inline .ak-idx-ai-row button.ak-idx-more-toggle,
.ak-idx-search-page .ak-idx-ai-row button.ak-idx-more-toggle,
button.ak-idx-more-toggle {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 !important;
  margin: 0 !important;
  position: static !important;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
}
.ak-idx-search-page .ak-idx-ai-row button.ak-idx-more-toggle { color: var(--ak-idx-text) !important; }
/* WPL also sets position:absolute on every bare <button>; cancel it
   on all of our buttons so none of them jump out of place. */
.ak-idx-btn, .ak-idx-view-btn, .ak-idx-preset, .ak-idx-pagination button, .ak-idx-chip, .ak-idx-header-btn, .ak-idx-header-item, .ak-idx-header-view-all { position: static !important; }
.ak-idx-ai-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 14px; }
.ak-idx-more-toggle { background: none; border: 0; color: #fff; cursor: pointer; text-decoration: underline; }
.ak-idx-ai-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ak-idx-chip { background: #fff; color: var(--ak-idx-dark); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.ak-idx-low-confidence { color: #ffd166; }
.ak-idx-expanded { margin-top: 20px; background: #fff; color: var(--ak-idx-text); padding: 20px; border-radius: 6px; }
.ak-idx-search-by-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.ak-idx-search-by-row input[type="text"] { flex: 1; min-width: 220px; padding: 10px; border: 1px solid var(--ak-idx-border); border-radius: 4px; }
.ak-idx-filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .ak-idx-filter-grid { grid-template-columns: 1fr; } .ak-idx-ai-form { flex-direction: column; } }
.ak-idx-filter label { display: block; font-weight: 600; margin-bottom: 6px; }
.ak-idx-filter select, .ak-idx-filter input[type="text"], .ak-idx-filter input[type="number"] { width: 100%; padding: 9px; border: 1px solid var(--ak-idx-border); border-radius: 4px; box-sizing: border-box; }
.ak-idx-price-row { display: flex; gap: 8px; }
.ak-idx-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ak-idx-preset { background: #eef4f5; border: 1px solid var(--ak-idx-border); border-radius: 999px; padding: 5px 10px; cursor: pointer; font-size: 12px; }
.ak-idx-checkboxes { max-height: 160px; overflow: auto; border: 1px solid var(--ak-idx-border); padding: 8px; border-radius: 4px; }
.ak-idx-checkboxes label { font-weight: 400; }
.ak-idx-note { color: var(--ak-idx-muted); font-size: 12px; }
.ak-idx-keyword-row { display: flex; gap: 8px; }
.ak-idx-keyword-row input { flex: 1; }
.ak-idx-results { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
.ak-idx-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; font-family: 'Nunito Sans', sans-serif; }
.ak-idx-view-btn { background: #fff; border: 1px solid var(--ak-idx-border); color: var(--ak-idx-text); padding: 10px 16px; border-radius: 4px; cursor: pointer; font-family: 'Nunito Sans', sans-serif; font-size: 15px; }
.ak-idx-view-btn.is-active { background: var(--ak-idx-teal); color: #fff; border-color: var(--ak-idx-teal); }
.ak-idx-sort { display: flex; align-items: center; gap: 8px; font-family: 'Nunito Sans', sans-serif; color: var(--ak-idx-text); }
.ak-idx-sort select { padding: 10px; border: 1px solid var(--ak-idx-border); border-radius: 4px; font-family: 'Nunito Sans', sans-serif; color: var(--ak-idx-text); background: #fff; }
.ak-idx-view-btn.is-active, .ak-idx-btn.is-active { background: var(--ak-idx-teal); color: #fff; border-color: var(--ak-idx-teal); }
.ak-idx-count { font-weight: 700; margin-right: auto; }
.ak-idx-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) { .ak-idx-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ak-idx-cards { grid-template-columns: 1fr; } }
.ak-idx-card { border: 1px solid var(--ak-idx-border); border-radius: 8px; overflow: hidden; background: #fff; }
.ak-idx-card-photo { display: block; position: relative; aspect-ratio: 4 / 3; background: #eef4f5; }
.ak-idx-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-idx-card-photo-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ak-idx-muted); }
.ak-idx-card-status { position: absolute; top: 8px; left: 8px; background: var(--ak-idx-teal); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.ak-idx-card-body { padding: 12px; }
.ak-idx-card-price { font-size: 20px; font-weight: 800; color: var(--ak-idx-dark); text-decoration: none; display: block; }
.ak-idx-card-address { color: var(--ak-idx-text); text-decoration: none; display: block; margin: 4px 0; }
.ak-idx-card-meta, .ak-idx-card-mls, .ak-idx-card-brokerage { margin: 4px 0; color: var(--ak-idx-muted); font-size: 14px; }
.ak-idx-card-divider { display: none; }
/* --- Dark cards: black boxes like the dental site's featured cards
   (added 2026-11-25, v1.0.24). Used by [ak_idx_results dark="1"].
   3 columns like the featured row, 25px radius, white serif title,
   grey description, divider, white price. --- */
.ak-idx-dark .ak-idx-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1020px) { .ak-idx-dark .ak-idx-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ak-idx-dark .ak-idx-cards { grid-template-columns: 1fr; } }
.ak-idx-dark .ak-idx-card { background: #000; border: 1px solid #2e2e2e; border-radius: 25px; }
.ak-idx-dark .ak-idx-card-body { padding: 20px; }
.ak-idx-dark .ak-idx-card-title { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-size: 20px; line-height: 1.3; font-weight: 500; }
.ak-idx-dark .ak-idx-card-title a { color: #fff; text-decoration: none; }
.ak-idx-dark .ak-idx-card-address { color: #bdbdbd; font-size: 15px; }
.ak-idx-dark .ak-idx-card-divider { display: block; height: 1px; background: #3a3a3a; margin: 14px 0; }
.ak-idx-dark .ak-idx-card-price-line { color: #fff; font-weight: 700; font-size: 18px; }
.ak-idx-dark .ak-idx-card-meta, .ak-idx-dark .ak-idx-card-brokerage { color: #9a9a9a; }
.ak-idx-dark .ak-idx-card-readmore { color: #fff; }
.ak-idx-dark .ak-idx-count, .ak-idx-dark .ak-idx-sort { color: #fff; }
/* Homepage "Find Your Perfect Neighborhood" section (Elementor
   section 208bae9) has a black background, so the results toolbar
   text (count + Sort By label) must be white there; the cards stay
   the light default so they stand out on the black. */
.elementor-element-208bae9 .ak-idx-count,
.elementor-element-208bae9 .ak-idx-sort { color: #fff; }
.ak-idx-dark .ak-idx-no-results { color: #fff; }
.ak-idx-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; align-items: center; }
.ak-idx-pagination button { padding: 8px 12px; border: 1px solid var(--ak-idx-border); background: #fff; border-radius: 4px; cursor: pointer; }
.ak-idx-pagination button.is-current { background: var(--ak-idx-teal); color: #fff; border-color: var(--ak-idx-teal); }
.ak-idx-disclaimer { font-size: 12px; color: var(--ak-idx-muted); border-top: 1px solid var(--ak-idx-border); padding-top: 12px; margin-top: 20px; }
/* --- Valuation: two boxes side by side (added 2026-11-24, v1.0.15) --- */
.ak-idx-valuation { max-width: 1400px; margin: 32px auto; padding: 0 16px; }
.ak-idx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .ak-idx-duo { grid-template-columns: 1fr; } }
.ak-idx-duo-box { position: relative; min-height: 420px; border-radius: 6px; overflow: hidden; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; padding: 32px; color: #fff; }
.ak-idx-duo-box::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.ak-idx-duo-box > * { position: relative; z-index: 1; }
.ak-idx-duo-dream { background-image: url('https://akrealestategroup.ca/wp-content/uploads/2026/09/Banner.jpg'); }
.ak-idx-duo-worth { background-image: url('https://akrealestategroup.ca/wp-content/uploads/2026/09/banner-2.png'); }
.ak-idx-duo-box h2 { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; color: #fff; font-size: 32px; line-height: 1.2; font-weight: 500; margin: 0 0 8px; }
.ak-idx-duo-box p { color: #fff; margin: 0 0 16px; }
.ak-idx-duo-box form { display: flex; }
.ak-idx-duo-box form input[type="text"] { flex: 1; min-width: 0; padding: 12px 14px; border: 0; border-radius: 4px 0 0 4px; font-family: 'Nunito Sans', sans-serif; font-size: 15px; }
.ak-idx-duo-box form .ak-idx-btn { border-radius: 0 4px 4px 0; white-space: nowrap; }
/* --- Valuation wizard: 3 steps like the reference (added 2026-11-24, v1.0.16) --- */
.ak-idx-lead-form { max-width: 860px; margin: 24px auto 0; padding: 24px; border: 1px solid var(--ak-idx-border); border-radius: 6px; background: #fff; }
.ak-idx-wizard-title { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 500; margin: 0 0 16px; text-align: center; }
.ak-idx-wizard-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.ak-idx-wizard-steps li { flex: 1; text-align: center; font-size: 13px; padding: 8px 4px; border-bottom: 2px solid var(--ak-idx-border); color: var(--ak-idx-muted); }
.ak-idx-wizard-steps li.is-active { border-bottom-color: #000; color: #000; font-weight: 700; }
.ak-idx-wizard-steps li.is-done { border-bottom-color: #000; color: #000; }
.ak-idx-wizard-found { font-size: 15px; margin: 0 0 8px; }
.ak-idx-wizard .ak-idx-wizard-found a { color: var(--ak-idx-text); text-decoration: underline; }
.ak-idx-wizard-map { height: 250px; border-radius: 6px; margin: 12px 0 16px; position: relative; z-index: 1; }
.ak-idx-wizard-map .leaflet-top, .ak-idx-wizard-map .leaflet-bottom { z-index: 500; }
.ak-idx-wizard-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* display:grid on the field groups beats the UA [hidden] rule, so
   without this the inactive flow's greyed-out fields stay visible. */
.ak-idx-wizard [hidden] { display: none !important; }
.ak-idx-wizard-fields-single { grid-template-columns: 1fr; }
@media (max-width: 760px) { .ak-idx-wizard-fields { grid-template-columns: 1fr; } }
.ak-idx-lead-form label { display: block; margin: 8px 0; }
.ak-idx-lead-form input, .ak-idx-lead-form select, .ak-idx-lead-form textarea { width: 100%; padding: 9px; border: 1px solid var(--ak-idx-border); border-radius: 4px; box-sizing: border-box; font-family: 'Nunito Sans', sans-serif; font-size: 15px; }
.ak-idx-wizard-actions { display: flex; gap: 12px; margin-top: 16px; }
.ak-idx-wizard-actions .ak-idx-btn { position: static !important; }
.ak-idx-btn-outline { background: #fff !important; color: var(--ak-idx-text) !important; border: 1px solid var(--ak-idx-border) !important; }
.ak-idx-wizard-success { padding: 16px 0; font-size: 16px; text-align: center; }
.ak-idx-lead-result { margin-top: 12px; }
/* --- Home Worth calculator (added 2026-11-26, v1.0.31): like the
   Home Affordability Calculator plugin's format but for a property's
   worth. Site fonts (Bodoni Moda headings, Nunito Sans body) and
   black buttons, matching the group site's design. The "What's My
   Home Worth?" box sends the visitor here with ?address=... --- */
.ak-idx-btn-black { background: #000 !important; color: #fff !important; border-color: #000 !important; font-weight: 700; }
/* --- Home Worth calculator (added 2026-11-26, v1.0.31; card style
   v1.0.33 to match the reference the user picked): a clean white
   card on a light grey page, no lead form, no hero banner. The
   theme's own page title is hidden on this page only, so the
   heading shows once, inside the card. --- */
.page-id-5249 .page-header { display: none; }
.ak-idx-worth { max-width: none; margin: 0; padding: 48px 16px; font-family: 'Nunito Sans', sans-serif; color: #333; background: #f4f6f8; width: 100vw; margin-left: calc(50% - 50vw); box-sizing: border-box; }
.ak-idx-worth-card { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08); padding: 36px 32px; box-sizing: border-box; }
.ak-idx-worth-card-title { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-size: 32px; line-height: 1.2; font-weight: 500; color: #000; text-align: center; margin: 0 0 6px; }
.ak-idx-worth-card-sub { font-size: 15px; color: #666; text-align: center; margin: 0 0 28px; }
.ak-idx-worth-form label { display: block; font-size: 14px; font-weight: 700; color: #333; margin-bottom: 16px; }
.ak-idx-worth-form input, .ak-idx-worth-form select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #ddd; border-radius: 6px; font-family: 'Nunito Sans', sans-serif; font-size: 15px; color: #333; background: #fff; box-sizing: border-box; }
.ak-idx-worth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 480px) { .ak-idx-worth-row { grid-template-columns: 1fr; } }
.ak-idx-worth-btn { display: block; width: 100%; background: #000; color: #fff; border: none; border-radius: 6px; padding: 14px; font-family: 'Nunito Sans', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.ak-idx-worth-btn:hover { background: #333; }
.ak-idx-worth-btn:disabled { opacity: 0.6; cursor: default; }
.ak-idx-worth-error { color: #b00020; font-weight: 700; margin-top: 12px; }
.ak-idx-worth-result { margin-top: 24px; padding: 24px; background: #f0eee8; border-radius: 8px; text-align: center; }
.ak-idx-worth-result-label { font-size: 15px; color: #333; margin: 0 0 4px; }
.ak-idx-worth-value { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-size: 40px; line-height: 1.15; font-weight: 500; color: #000; margin: 0 0 8px; }
.ak-idx-worth-property { font-size: 14px; color: #333; margin: 0 0 12px; }
.ak-idx-worth-note { font-size: 12px; line-height: 1.5; color: #666; margin: 0; }
/* --- Map view (added 2026-11-24, v1.0.12) --- */
.ak-idx-map-canvas { height: 480px; border-radius: 6px; position: relative; z-index: 1; }
.ak-idx-map-canvas .leaflet-top, .ak-idx-map-canvas .leaflet-bottom { z-index: 500; }
.ak-idx-map-note { font-size: 14px; color: var(--ak-idx-muted); margin: 8px 0 16px; }

/* --- Single listing page (added 2026-11-24, v1.0.8; hero removed v1.0.9:
   the site's generic Banner.jpg showed a different luxury house than
   the property, so the page now opens like the site's own listing pages:
   title and price in the container, then the real photos. --- */
/* Floating-header sites (dental site, commercial scope): the header
   overlays the top of the page, so the listing content needs top
   padding to clear it. The group site has a normal header and is
   unaffected. Since v1.0.25 the commercial listing page has its own
   hero banner at the very top (under the transparent header, like
   the site's own listing pages), so it needs no top padding. */
/* Full-width hero breakout uses 100vw, which on Windows includes the
   vertical scrollbar width and can cause a horizontal scrollbar;
   clip it. clip does not create a scroll container, so sticky
   headers keep working. */
html, body { overflow-x: clip; }
.ak-idx-listing.ak-idx-commercial { padding-top: 0; margin-top: 0; }
.ak-idx-listing { max-width: 1200px; margin: 24px auto; padding: 0 16px; font-family: 'Nunito Sans', sans-serif; color: var(--ak-idx-text); }
.ak-idx-listing .ak-idx-listing-title, .ak-idx-listing section h2 { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; color: #000; }
.ak-idx-listing .ak-idx-listing-title { font-size: 36px; line-height: 1.2; font-weight: 500; margin: 8px 0 12px; }
.ak-idx-listing-back { margin: 0 0 12px; }
.ak-idx-listing-back a { color: var(--ak-idx-text) !important; text-decoration: none; font-weight: 700; font-family: 'Nunito Sans', sans-serif; }
.ak-idx-listing-eyebrow { font-family: 'Nunito Sans', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; color: var(--ak-idx-muted); }
.ak-idx-listing-price { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 500; color: #000; margin: 0 0 8px; }
/* --- Commercial listing hero, two-column layout and facts pill
   (added 2026-11-26, v1.0.25): matches the dental site's own
   listing pages - a hero banner with the property photo and centred
   white serif title under the transparent header, a main column plus
   a Recent listings sidebar, and one grey facts pill. --- */
.ak-idx-listing-hero { position: relative; min-height: 620px; border-radius: 0; overflow: hidden; background-color: #000; background-size: cover; background-position: center; display: flex; align-items: center; width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-top: 0; margin-bottom: 40px; }
.ak-idx-listing-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0.62) 100%); }
.ak-idx-listing-hero-inner { position: relative; z-index: 1; text-align: left; padding: 170px 24px 64px; max-width: 1200px; width: 100%; margin: 0 auto; }
.ak-idx-listing-hero-crumb { display: inline-block; background: #000; color: #fff; font-size: 14px; padding: 8px 18px; border-radius: 999px; margin: 0 0 20px; }
.ak-idx-listing-hero .ak-idx-listing-hero-crumb a { color: #fff; text-decoration: none; }
.ak-idx-listing-hero .ak-idx-listing-hero-title { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; color: #fff; font-size: 52px; line-height: 1.15; font-weight: 500; margin: 0 0 16px; }
.ak-idx-listing-hero-eyebrow { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.ak-idx-listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .ak-idx-listing-layout { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .ak-idx-listing-hero { min-height: 480px; } .ak-idx-listing-hero-inner { padding-top: 140px; } .ak-idx-listing-hero .ak-idx-listing-hero-title { font-size: 34px; } }
.ak-idx-facts-pill { display: flex; flex-wrap: wrap; gap: 6px 18px; background: #f0f0f0; border-radius: 999px; padding: 14px 22px; margin: 24px 0; font-size: 14px; color: var(--ak-idx-text); }
.ak-idx-facts-pill span { white-space: nowrap; }
.ak-idx-listing-sidebar .ak-idx-recent { background: #fff; border: 1px solid var(--ak-idx-border); border-radius: 12px; padding: 24px; }
.ak-idx-listing-sidebar .ak-idx-recent h2 { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 500; color: #000; margin: 0 0 8px; padding-bottom: 12px; border-bottom: 2px solid #000; }
.ak-idx-listing-sidebar .ak-idx-recent-item { display: block; padding: 14px 0; border-bottom: 1px solid var(--ak-idx-border); text-decoration: none; color: var(--ak-idx-text); }
.ak-idx-listing-sidebar .ak-idx-recent-item:last-child { border-bottom: 0; }
.ak-idx-recent-title { display: block; font-weight: 700; color: #000; margin-bottom: 4px; }
.ak-idx-recent-date { display: block; font-size: 13px; color: var(--ak-idx-muted); }
.ak-idx-slider { margin: 16px 0; }
.ak-idx-slider-main { position: relative; border-radius: 6px; overflow: hidden; background: #000; }
.ak-idx-slider-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ak-idx-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0 !important; background: rgba(0, 0, 0, 0.65) !important; color: #fff !important; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; margin: 0; }
.ak-idx-slider-arrow:hover { background: #000; }
.ak-idx-slider-prev { left: 12px; }
.ak-idx-slider-next { right: 12px; }
.ak-idx-slider-counter { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 20px; }
.ak-idx-slider-thumbs { display: flex !important; flex-wrap: nowrap !important; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.ak-idx-slider-thumb { flex: 0 0 96px !important; width: 96px !important; height: 72px !important; padding: 0; margin: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; opacity: 0.65; }
.ak-idx-slider-thumb.is-active { border-color: #000; opacity: 1; }
.ak-idx-slider-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-idx-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; padding: 20px; background: #F0EEE8; border-radius: 6px; text-align: center; }
@media (max-width: 760px) { .ak-idx-facts { grid-template-columns: repeat(2, 1fr); } }
.ak-idx-fact-value { display: block; font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 500; color: #000; }
.ak-idx-fact-type .ak-idx-fact-value { font-size: 17px; line-height: 1.3; }
.ak-idx-fact-label { display: block; font-size: 13px; color: var(--ak-idx-muted); margin-top: 4px; }
.ak-idx-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ak-idx-details div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ak-idx-border); padding: 8px 0; }
.ak-idx-details dt { font-weight: 700; }
.ak-idx-listing-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0; padding-top: 20px; border-top: 1px solid var(--ak-idx-border); }
.ak-idx-listing-nav a { color: var(--ak-idx-text) !important; text-decoration: none; font-weight: 700; }
.ak-idx-listing-nav a span { font-weight: 400; color: var(--ak-idx-muted); font-size: 14px; }
.ak-idx-listing-next { text-align: right; margin-left: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Inline search inside the existing hero (added 2026-11-24) --- */
/* No new section or background: transparent, inherits the hero's dark overlay and white text. */
.ak-idx-inline { color: #fff; text-align: left; }
.ak-idx-inline .ak-idx-ai-label, .ak-idx-inline .ak-idx-more-toggle { color: #fff; }
.ak-idx-inline .ak-idx-expanded { text-align: left; }

/* --- Dedicated results page (added 2026-11-24) --- */
/* Plain white page in the site's own view: no hero, no dark panel. */
/* Site fonts only: Bodoni Moda (group site) or Playfair Display (dental site) headings, Nunito Sans body. No pink: */
/* every button gets an explicit border and dark text, so no theme */
/* default button colour can show through. */
.ak-idx-search-page { background: #fff; color: var(--ak-idx-text); max-width: 1200px; margin: 0 auto; padding: 32px 16px; font-family: 'Nunito Sans', sans-serif; }
.ak-idx-search-page h2, .ak-idx-search-page h3 { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; }
.ak-idx-search-page .ak-idx-ai-label, .ak-idx-search-page .ak-idx-more-toggle { color: var(--ak-idx-text); }
.ak-idx-search-page .ak-idx-expanded { box-shadow: none; border: 1px solid var(--ak-idx-border); }
.ak-idx-btn, .ak-idx-preset, .ak-idx-pagination button { font-family: 'Nunito Sans', sans-serif; color: var(--ak-idx-text); }
.ak-idx-btn-teal, .ak-idx-view-btn.is-active, .ak-idx-pagination button.is-current { color: #fff; }

/* --- Website-view cards (added 2026-11-24) --- */
/* 3-column grid like the site's own listings, serif title, Read More. */
.ak-idx-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1020px) { .ak-idx-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ak-idx-cards { grid-template-columns: 1fr; } }
.ak-idx-card { box-shadow: 0 4px 20px rgba(0,0,0,0.12); border: 0; border-radius: 6px; }
.ak-idx-card-photo { aspect-ratio: 16 / 10; }
.ak-idx-card-body { padding: 20px; }
.ak-idx-card-title { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.ak-idx-card-title a { color: var(--ak-idx-text); text-decoration: none; }
.ak-idx-card-address { color: var(--ak-idx-muted); font-size: 14px; margin: 4px 0; }
.ak-idx-card-price-line { color: var(--ak-idx-text); font-size: 15px; margin: 8px 0; }
.ak-idx-card-readmore { color: var(--ak-idx-text); font-weight: 700; text-decoration: none; }

/* --- Header dynamic search (added 2026-11-21) --- */
.ak-idx-header-search { width: 100%; max-width: 720px; margin: 0 auto; position: relative; box-sizing: border-box; }
.ak-idx-header-search-compact { max-width: 560px; }
.ak-idx-header-form { display: flex; gap: 8px; align-items: stretch; }
.ak-idx-header-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--ak-idx-border); border-radius: 4px; font-size: 15px; box-sizing: border-box; }
.ak-idx-header-btn { white-space: nowrap; flex-shrink: 0; }
.ak-idx-header-note { font-size: 12px; color: var(--ak-idx-muted); margin: 6px 0 0; }
.ak-idx-header-dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 9999; background: #fff; border: 1px solid var(--ak-idx-border); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.16); max-height: 420px; overflow: auto; text-align: left; }
.ak-idx-header-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; background: #fff; border: 0; border-bottom: 1px solid #eef4f5; cursor: pointer; text-align: left; font-size: 14px; color: var(--ak-idx-text); }
.ak-idx-header-item:hover, .ak-idx-header-item.is-active { background: #eef7f8; }
.ak-idx-header-item img, .ak-idx-header-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: #eef4f5; flex-shrink: 0; display: block; }
.ak-idx-header-item-type { background: var(--ak-idx-teal); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; flex-shrink: 0; }
.ak-idx-header-item-text small { color: var(--ak-idx-muted); }
.ak-idx-header-view-all { width: 100%; padding: 10px 12px; background: #f7fafb; border: 0; cursor: pointer; font-weight: 700; color: var(--ak-idx-teal-dark); text-align: left; }
.ak-idx-header-empty { padding: 12px; color: var(--ak-idx-muted); font-size: 14px; }
@media (max-width: 640px) {
  .ak-idx-header-search { max-width: 100%; }
  .ak-idx-header-form { flex-wrap: wrap; }
  .ak-idx-header-input { flex: 1 1 100%; }
  .ak-idx-header-btn { flex: 1 1 100%; }
  .ak-idx-header-dropdown { max-height: 60vh; }
  .ak-idx-header-item img, .ak-idx-header-thumb { width: 48px; height: 36px; }
}
