/* Public + shared polish — cards, filters, detail, contact bar */

:root {
  --amlaki-callbar-h: 4.15rem;
}

.skip-link {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -4rem;
  z-index: 4000;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: #0ea5e9;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.75rem;
}

.amlaki-nav-panel-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.amlaki-nav-panel-btn i {
  font-size: 1rem;
  line-height: 1;
}

.agency-logo-img {
  display: block;
  object-fit: contain;
  object-position: center;
}

.agency-logo-img--nav {
  height: 2rem;
  max-width: 7.5rem;
  flex-shrink: 0;
}

.home-nav-brand .agency-logo-img--nav + .home-nav-name {
  max-width: 9rem;
}

.agency-logo-img--sidebar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.agency-logo-img--panel {
  max-height: 2rem;
  max-width: 9rem;
}

.agency-logo-img--footer {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
}

.landing-sidebar-panel {
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem !important;
}

html[data-theme="light"] .landing-sidebar-panel {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.amlaki-site :focus-visible,
.auth-page :focus-visible {
  outline: 2px solid color-mix(in srgb, var(--afram-accent, #38bdf8) 80%, #fff);
  outline-offset: 2px;
}

/* Listing cards */
.amlaki-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.amlaki-card__media {
  overflow: hidden;
}
.amlaki-card__media img {
  transition: transform .45s ease;
}
@media (hover: hover) {
  .amlaki-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .22);
    border-color: color-mix(in srgb, var(--afram-accent, #38bdf8) 42%, transparent);
  }
  html[data-theme="light"] .amlaki-card:hover {
    box-shadow: 0 16px 36px rgba(15, 23, 42, .1);
  }
  .amlaki-card:hover .amlaki-card__media img {
    transform: scale(1.06);
  }
}
.amlaki-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.amlaki-card__price strong {
  color: var(--afram-accent, #38bdf8);
}

/* Public filters */
.amlaki-filter .form-control,
.amlaki-filter .form-select,
.amlaki-hero-search .form-control,
.amlaki-hero-search .form-select,
.amlaki-hero-search .btn {
  min-height: 44px;
  font-size: 16px;
}
.amlaki-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.amlaki-quick a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--home-line, rgba(255,255,255,.12));
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--home-surface, #0c1422) 70%, transparent);
}
.amlaki-quick a.is-active,
.amlaki-quick a:hover {
  border-color: transparent;
  background: linear-gradient(145deg, var(--brand-primary, #2f6fed), var(--brand-gradient-end, var(--brand-accent, #0d9f7a)));
  color: #fff;
}

/* Gallery */
.amlaki-gallery > img {
  cursor: default;
}
.amlaki-gallery__thumbs img {
  cursor: pointer;
  opacity: .78;
  border: 2px solid transparent;
  transition: opacity .15s ease, border-color .15s ease;
}
.amlaki-gallery__thumbs img.is-active,
.amlaki-gallery__thumbs img:hover {
  opacity: 1;
  border-color: var(--afram-accent, #38bdf8);
}

.amlaki-detail-hero > aside.amlaki-side {
  position: sticky;
  top: 5.4rem;
  align-self: start;
}

.amlaki-cta-stack .btn + .btn {
  margin-top: 0.5rem;
}

/* Sticky call bar on phones */
.amlaki-callbar {
  display: none;
}
@media (max-width: 991.98px) {
  .amlaki-callbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.45rem;
    position: fixed;
    inset-inline: 0.7rem;
    bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
    z-index: 1070;
    padding: 0.45rem;
    border-radius: 16px;
    background: color-mix(in srgb, #0b1220 88%, transparent);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px rgba(0,0,0,.35);
  }
  html[data-theme="light"] .amlaki-callbar {
    background: rgba(255,255,255,.94);
    border-color: rgba(15,23,42,.1);
  }
  .amlaki-callbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 42px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .amlaki-callbar.has-3 a {
    font-size: 0.72rem;
    padding-inline: 0.2rem;
  }
  .amlaki-callbar a.is-primary {
    background: linear-gradient(145deg, var(--brand-primary, #2f6fed), var(--brand-gradient-end, var(--brand-accent, #0d9f7a)));
    color: #fff;
  }
  .amlaki-callbar a.is-ghost {
    background: transparent;
    border: 1px solid rgba(148,163,184,.35);
    color: inherit;
  }
  .amlaki-site.has-callbar {
    padding-bottom: calc(var(--amlaki-callbar-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
  }
  .amlaki-detail-hero > aside.amlaki-side {
    position: static;
  }
  .amlaki-page {
    padding-top: 5rem;
  }
  .amlaki-page.amlaki-public-map {
    padding-top: 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .home-chips {
    justify-content: center;
  }
  .amlaki-page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .amlaki-page-head .btn {
    width: 100%;
    justify-content: center;
  }
  .amlaki-gallery > img {
    height: 220px;
  }
  .amlaki-gallery__thumbs img {
    width: 64px;
    height: 50px;
    flex: 0 0 64px;
    object-fit: cover;
  }
}

/* Empty listings */
.amlaki-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.4rem 1rem;
  border: 1px dashed var(--home-line, rgba(255,255,255,.12));
  border-radius: 1.1rem;
  color: var(--home-muted, #94a3b8);
}
.amlaki-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--afram-accent, #38bdf8);
}

html[data-theme="light"] .amlaki-quick a {
  background: #fff;
  border-color: #e2e8f0;
}
html[data-theme="light"] .amlaki-quick a.is-active {
  color: #fff;
}

.amlaki-public-map__canvas.amlaki-map--tall {
  height: min(62vh, 560px);
  min-height: 320px;
}
.amlaki-public-map__results {
  max-height: min(42vh, 380px);
  overflow: auto;
}
.amlaki-public-map .amlaki-map-item a {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.amlaki-public-map .amlaki-map-item a:hover {
  color: var(--afram-accent, #38bdf8);
}
@media (max-width: 991.98px) {
  .amlaki-public-map__canvas.amlaki-map--tall {
    height: 42vh;
    min-height: 260px;
  }
}

html[data-theme="light"] .amlaki-public-map .amlaki-page-head h1,
html[data-theme="light"] .amlaki-public-map .amlaki-side h2 {
  color: #0f172a;
}
html[data-theme="light"] .amlaki-public-map .amlaki-page-head p,
html[data-theme="light"] .amlaki-public-map .amlaki-side .text-muted {
  color: #64748b;
}
html[data-theme="light"] .amlaki-public-map .amlaki-filter,
html[data-theme="light"] .amlaki-public-map .amlaki-side {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .amlaki-public-map .amlaki-public-map__canvas {
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* ════════════════════════════════════════════════════════
   Public footer — professional layout (v8)
   ════════════════════════════════════════════════════════ */
.amlaki-footer {
  position: relative;
  overflow: hidden;
  margin-top: 2.75rem;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--afram-accent, #0284c7) 14%, transparent), transparent 42%),
    radial-gradient(circle at 8% 100%, color-mix(in srgb, #6366f1 10%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    rgba(3, 7, 14, 0.92) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.amlaki-footer__accent {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary, #2563eb) 0%, color-mix(in srgb, var(--brand-primary, #2563eb) 70%, var(--brand-accent, #0d9f7a)) 45%, var(--brand-accent, #0d9f7a) 100%);
}

.amlaki-footer__grid {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.amlaki-footer__brand .landing-footer-brand {
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.amlaki-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.25;
}

.amlaki-footer__brand-text strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: #f8fafc;
}

.amlaki-footer__brand-text small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.amlaki-footer__brand .landing-footer-mark {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 14px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--afram-accent, #0284c7) 28%, transparent), rgba(255, 255, 255, 0.04));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--afram-accent, #0284c7) 22%, transparent);
}

.amlaki-footer__brand .landing-footer-desc {
  max-width: 20rem;
  margin-bottom: 0.85rem;
  line-height: 1.75;
}

.amlaki-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-primary, #2563eb) 0%, color-mix(in srgb, var(--brand-primary, #2563eb) 65%, var(--brand-accent, #0d9f7a)) 55%, var(--brand-accent, #0d9f7a) 100%);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--afram-accent, #0284c7) 28%, transparent);
  transition: transform 0.18s ease, filter 0.18s ease;
}

@media (hover: hover) {
  .amlaki-footer__cta:hover {
    color: #fff !important;
    transform: translateY(-1px);
    filter: brightness(1.05);
  }
}

.amlaki-footer__social .landing-footer-social-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
}

.amlaki-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #e2e8f0;
}

.amlaki-footer__heading span {
  display: inline-block;
  position: relative;
  padding-bottom: 0.45rem;
}

.amlaki-footer__heading span::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 1.85rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--afram-accent, #38bdf8), transparent);
}

.amlaki-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.12rem 0;
  font-size: 0.86rem;
}

.amlaki-footer__links a i {
  font-size: 0.72rem;
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) {
  .amlaki-footer__links a:hover i {
    opacity: 1;
    transform: translateX(-2px);
  }
}

.amlaki-footer__contact li + li {
  margin-top: 0.65rem;
}

.amlaki-footer__contact i {
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--afram-accent, #0284c7) 12%, rgba(255, 255, 255, 0.04));
  font-size: 0.92rem;
}

.amlaki-footer__office {
  padding: 0.15rem 0;
}

.amlaki-footer__routes {
  margin-top: 1rem;
}

.amlaki-footer__routes a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  font-size: 0.76rem;
}

.amlaki-footer__routes a i {
  font-size: 0.88rem;
}

.amlaki-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  padding: 1rem 0 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.22));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.amlaki-footer__copyright {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.amlaki-footer__credit {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--brand-accent, var(--home-accent, #0d9f7a)) 6%, rgba(255, 255, 255, 0.03));
}

.amlaki-footer__credit-label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.amlaki-footer__credit-body {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.amlaki-footer__credit-brand,
.amlaki-footer__credit-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--home-accent, var(--brand-accent, #38bdf8));
  transition: color 0.15s ease, opacity 0.15s ease;
}

.amlaki-footer__credit-brand strong,
.amlaki-footer__credit-name {
  font-weight: 800;
  color: #e2e8f0;
}

.amlaki-footer__credit-brand:hover,
.amlaki-footer__credit-phone:hover {
  color: color-mix(in srgb, var(--home-accent, var(--brand-accent, #38bdf8)) 82%, #fff);
}

.amlaki-footer__credit-brand i,
.amlaki-footer__credit-phone i {
  font-size: 0.88rem;
  opacity: 0.92;
}

html[data-theme="light"] .amlaki-footer {
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, #0284c7 8%, transparent), transparent 42%),
    linear-gradient(180deg, #f8fafc, #fff 32%) !important;
  border-top-color: #e2e8f0 !important;
}

html[data-theme="light"] .amlaki-footer__brand-text strong,
html[data-theme="light"] .amlaki-footer__heading {
  color: #0f172a;
}

html[data-theme="light"] .amlaki-footer__brand-text small,
html[data-theme="light"] .amlaki-footer__copyright,
html[data-theme="light"] .amlaki-footer__credit-label {
  color: #64748b;
}

html[data-theme="light"] .amlaki-footer__credit {
  border-color: #e2e8f0;
  background: #f8fafc;
}

html[data-theme="light"] .amlaki-footer__credit-brand strong,
html[data-theme="light"] .amlaki-footer__credit-name {
  color: #0f172a;
}

html[data-theme="light"] .amlaki-footer__bottom {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .amlaki-footer__contact i {
  background: color-mix(in srgb, #0284c7 8%, #f1f5f9);
}

@media (max-width: 991.98px) {
  .amlaki-footer {
    margin-top: 2rem;
  }

  .amlaki-footer__grid {
    padding-top: 2rem;
  }

  .amlaki-footer__office {
    grid-column: 1 / -1;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }

  html[data-theme="light"] .amlaki-footer__office {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }
}

@media (max-width: 575.98px) {
  .amlaki-footer .landing-footer-pair,
  .amlaki-footer__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.85rem;
    grid-column: 1 / -1;
  }

  .amlaki-footer .landing-footer-pair .landing-footer-col,
  .amlaki-footer__pair .landing-footer-col {
    min-width: 0;
  }

  .amlaki-footer__heading {
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
  }

  .amlaki-footer__links a {
    font-size: 0.78rem;
    gap: 0.22rem;
  }

  .amlaki-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .amlaki-footer__credit {
    width: 100%;
    justify-content: flex-start;
  }
}
