:root {
  --km-red: #c5161d;
  --km-black: #111111;
  --km-white: #ffffff;
  --km-gray: #dbdee6;
  --km-surface: #e8eaef;
}

html {
  -webkit-locale: "tr";
}

/* Masaüstünde biraz daha geniş; mobilde etkisi yok (max-width sadece büyük ekranda devreye girer) */
.max-w-6xl {
  max-width: 80rem; /* 1280px — önceki 1152px */
}

body {
  background: var(--km-gray);
  color: #1a1a1a;
  overflow-x: hidden;
}

.km-header {
  color: var(--km-white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.km-utility-bar {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.km-utility-text {
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.km-header-brand {
  background: #000000;
  border-bottom: none;
  color: var(--km-white);
}

.km-brand-copy {
  border-left: 4px solid var(--km-red);
  padding-left: 1.15rem;
}

.km-brand-tagline {
  color: rgba(255, 255, 255, 0.72) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem !important;
  font-weight: 600;
  margin-top: 0.35rem;
}

.km-header-nav {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-top: 3px solid var(--km-red);
  border-bottom: 1px solid #dfe3ea;
  box-shadow: 0 8px 22px rgba(15, 17, 21, 0.07);
  color: #1a1a1a;
}

.km-header-nav > div {
  display: flex;
  justify-content: center;
}

.km-nav-menu {
  width: 100%;
  justify-content: center;
  align-items: stretch;
  gap: 0.2rem;
  min-height: 58px;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.km-nav-menu .km-nav-link {
  letter-spacing: 0.03em;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
  padding: 0.95rem 1.15rem;
  color: #2b3340;
  background: transparent;
  border-bottom: 3px solid transparent;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.km-nav-menu .km-nav-link::after {
  display: none;
}

.km-nav-menu .km-nav-link:hover {
  color: var(--km-red);
  background: rgba(197, 22, 29, 0.06);
  border-bottom-color: rgba(197, 22, 29, 0.45);
  transform: translateY(-1px);
}

.km-nav-menu .km-nav-link.is-active,
.km-nav-menu .km-nav-link[aria-current="page"] {
  color: var(--km-red);
  background: rgba(197, 22, 29, 0.08);
  border-bottom-color: var(--km-red);
  box-shadow: inset 0 -1px 0 rgba(197, 22, 29, 0.15);
}

@media (min-width: 768px) {
  .km-nav-menu {
    justify-content: space-evenly;
    gap: 0.35rem;
    min-height: 62px;
  }

  .km-nav-menu .km-nav-link {
    flex: 1 1 0;
    max-width: 11rem;
    font-size: 0.95rem;
    padding: 1rem 0.75rem;
  }
}

@media (min-width: 1024px) {
  .km-nav-menu .km-nav-link {
    font-size: 1rem;
    padding: 1.05rem 1rem;
    max-width: 12.5rem;
  }
}

@media (max-width: 640px) {
  .km-nav-menu:not(.km-nav-menu--desktop) {
    /* mobile drawer controlled below */
  }
}

.km-nav-bar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  min-height: 58px;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.km-nav-search {
  display: flex;
  align-items: center;
  margin-right: 0.25rem;
}

.km-nav-search input {
  width: min(10.5rem, 26vw);
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  background: #fff;
  color: #1a1a1a;
}

.km-nav-search input:focus {
  outline: 2px solid rgba(197, 22, 29, 0.2);
  border-color: var(--km-red);
}

.km-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.km-search-input {
  flex: 1;
  min-width: min(100%, 280px);
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  background: #fff;
}

.km-search-input:focus {
  outline: 2px solid rgba(197, 22, 29, 0.2);
  border-color: var(--km-red);
}

.km-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  min-width: 44px;
  height: 44px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0 0.7rem 0 0.55rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.km-nav-toggle-label {
  display: none;
}

.km-nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  flex-shrink: 0;
}

.km-nav-toggle-bars span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #222;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.km-nav-open .km-nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.km-nav-open .km-nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

body.km-nav-open .km-nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.km-whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.km-whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.km-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem;
}

.km-lightbox[hidden] {
  display: none !important;
}

.km-lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.km-lightbox .km-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.km-lightbox-prev {
  left: 1rem;
}

.km-lightbox-next {
  right: 1rem;
}

.km-lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.km-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

body.km-lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .km-lightbox {
    padding: 3.25rem 0.35rem;
  }

  .km-lightbox-prev {
    left: 0.35rem;
  }

  .km-lightbox-next {
    right: 0.35rem;
  }

  .km-lightbox .km-gallery-nav {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 767px) {
  .km-nav-toggle {
    display: inline-flex;
  }

  .km-nav-toggle-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--km-red);
    line-height: 1;
    white-space: nowrap;
  }

  .km-nav-bar {
    justify-content: flex-start;
    min-height: 52px;
  }

  .km-header-nav > div {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .km-header-nav .km-nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid #e8ebf0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    z-index: 40;
    min-height: 0;
    padding: 0.35rem 0 0.5rem;
  }

  body.km-nav-open .km-header-nav .km-nav-menu {
    display: flex;
  }

  .km-header-nav {
    position: relative;
  }

  .km-header-nav .km-nav-menu .km-nav-link {
    flex: none;
    max-width: none;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid #eef1f5;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
    transform: none;
  }

  .km-header-nav .km-nav-menu .km-nav-link:hover {
    transform: none;
  }

  .km-whatsapp-float {
    width: 52px;
    height: 52px;
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

.km-social-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.km-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.km-social-link:hover {
  background: var(--km-red);
  border-color: var(--km-red);
  color: #ffffff;
  transform: translateY(-1px);
}

.km-social-link:focus-visible {
  outline: 2px solid rgba(255, 91, 98, 0.75);
  outline-offset: 2px;
}

.km-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.km-logo-box {
  width: 175px;
  height: 175px;
  background: transparent;
  border-radius: 12px;
  border: none;
  overflow: visible;
  display: grid;
  place-items: center;
  box-shadow: none;
  flex-shrink: 0;
}

.km-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.km-logo-wrap h1 {
  font-size: clamp(2rem, 3.8vw, 3rem) !important;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

body.km-home .km-logo-box {
  width: 205px;
  height: 205px;
}

body.km-home .km-logo-wrap h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem) !important;
}

.km-nav-link {
  position: relative;
  opacity: 0.92;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.km-nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.18rem;
  height: 2px;
  background: #ff5b62;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.km-nav-link:hover {
  color: #ff5b62;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.km-nav-link:hover::after,
.km-nav-link:focus-visible::after {
  transform: scaleX(1);
}

.km-nav-link:focus-visible {
  outline: 2px solid rgba(255, 91, 98, 0.7);
  outline-offset: 2px;
}

.km-nav-link.is-active,
.km-nav-link[aria-current="page"] {
  color: #ffffff;
  opacity: 1;
  background: linear-gradient(135deg, rgba(197, 22, 29, 0.9), rgba(255, 91, 98, 0.8));
  box-shadow: 0 8px 20px rgba(197, 22, 29, 0.28);
}

.km-nav-link.is-active::after,
.km-nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: #ffffff;
}

.km-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.km-map-section-head {
  padding: 1.5rem 1.5rem 0;
}

.km-map-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 3px solid var(--km-red);
}

.km-map-section-address {
  color: #555;
  font-size: 1rem;
}

.km-map-preview {
  display: block;
  position: relative;
  margin: 1.25rem 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: #ececec;
}

.km-map-preview:hover .km-map-open-hint,
.km-map-preview:focus-visible .km-map-open-hint {
  opacity: 1;
}

.km-map-preview iframe {
  width: 100%;
  height: min(420px, 58vw);
  min-height: 260px;
  border: 0;
  display: block;
  pointer-events: none;
}

.km-map-open-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.38);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.km-map-open-label {
  background: var(--km-red);
  color: var(--km-white);
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.km-map-section-foot {
  padding: 1rem 1.5rem 1.5rem;
}

@media (max-width: 767px) {
  .km-map-open-hint {
    opacity: 1;
    align-items: flex-end;
    padding-bottom: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08) 55%, transparent);
  }
}

.km-btn-primary {
  background: var(--km-red);
  color: var(--km-white);
}

.km-btn-primary:hover {
  background: #a91117;
}

.km-card {
  background: var(--km-surface);
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.km-badge {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.km-badge-red {
  background: #fdecee;
  color: #9c0f15;
}

.km-badge-black {
  background: #ececec;
  color: #242424;
}

.km-footer {
  background: #0f1115;
  color: #f7f7f7;
}

.km-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.km-footer-copy,
.km-footer-credit {
  margin: 0;
  color: rgba(247, 247, 247, 0.82);
}

.km-footer-credit {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgba(247, 247, 247, 0.65);
}

.km-hero {
  position: relative;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: end;
}

.km-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(20deg, rgba(8, 10, 14, 0.85), rgba(8, 10, 14, 0.25)), var(--hero-image, url("./ls2-bayilik.jpg"));
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s ease;
}

.km-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem;
  max-width: 700px;
}

/* —— Mobil: üst panel (logo) + hero slider —— */
@media (max-width: 767px) {
  .km-header-brand > div {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .km-logo-wrap {
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .km-logo-box {
    width: 76px;
    height: 76px;
  }

  body.km-home .km-logo-box {
    width: 84px;
    height: 84px;
  }

  .km-logo-wrap h1 {
    font-size: 1.15rem !important;
    letter-spacing: 0.02em;
    line-height: 1.15;
    word-break: break-word;
  }

  body.km-home .km-logo-wrap h1 {
    font-size: 1.25rem !important;
  }

  .km-brand-copy {
    border-left-width: 3px;
    padding-left: 0.65rem;
    min-width: 0;
    flex: 1 1 0;
  }

  .km-brand-tagline {
    font-size: 0.58rem !important;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
    line-height: 1.35;
  }

  .km-utility-bar > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .km-utility-text {
    font-size: 0.6rem;
    line-height: 1.4;
    max-width: 100%;
  }

  .km-hero {
    min-height: 240px;
    border-radius: 12px;
  }

  .km-hero::before {
    background-position: center 35%;
  }

  .km-hero-content {
    padding: 1.1rem 0.95rem 1.25rem;
    max-width: 100%;
  }

  .km-hero-content > p:first-child {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.12em;
  }

  .km-hero-content h2 {
    font-size: 1.2rem !important;
    line-height: 1.25;
  }

  .km-hero-content > p[data-hero-text],
  .km-hero-content > p.mt-4 {
    margin-top: 0.5rem !important;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
  }

  .km-hero-content .mt-6 {
    margin-top: 0.75rem !important;
    gap: 0.5rem;
  }

  .km-hero-content .mt-6 a {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  main.max-w-6xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 380px) {
  .km-logo-wrap {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .km-brand-copy {
    border-left: none;
    border-top: 3px solid var(--km-red);
    padding-left: 0;
    padding-top: 0.5rem;
    width: 100%;
  }

  .km-logo-box,
  body.km-home .km-logo-box {
    width: 72px;
    height: 72px;
  }
}

.km-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.km-section-title::after {
  content: "";
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, var(--km-red), transparent);
}

.km-home-section-head {
  background: linear-gradient(135deg, var(--km-surface), #dde1e8);
  border: 1px solid #cfd4dc;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.km-home-title {
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-family: "Segoe UI", "Inter", "Arial", sans-serif;
}

.km-faq-group-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--km-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.km-faq-list {
  display: grid;
  gap: 0.65rem;
}

.km-faq-item {
  background: var(--km-surface);
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.km-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  padding-right: 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  position: relative;
  user-select: none;
}

.km-faq-item summary::-webkit-details-marker {
  display: none;
}

.km-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--km-red);
  line-height: 1;
}

.km-faq-item[open] summary {
  background: rgba(197, 22, 29, 0.06);
  border-bottom: 1px solid #e8e8e8;
}

.km-faq-item[open] summary::after {
  content: "−";
}

.km-faq-item p {
  margin: 0;
  padding: 1rem 1.15rem 1.15rem;
  color: #444;
  line-height: 1.65;
  font-size: 0.98rem;
}

.km-faq-cta {
  background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
}

.km-home-title.km-section-title::after {
  height: 3px;
  background: linear-gradient(90deg, var(--km-red), rgba(197, 22, 29, 0.35), transparent);
}

.km-section-transition {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(197, 22, 29, 0), rgba(197, 22, 29, 0.25), rgba(197, 22, 29, 0));
  margin-top: -0.1rem;
  margin-bottom: -0.2rem;
}

.km-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.km-feature-item {
  background: var(--km-surface);
  border: 1px solid #cfd4dc;
  border-radius: 12px;
  padding: 1rem;
}

.km-category-card {
  border-radius: 14px;
  border: 1px solid #cfd4dc;
  background: var(--km-surface);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.km-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.km-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.km-stat-item {
  border-radius: 12px;
  background: var(--km-surface);
  border: 1px solid #cfd4dc;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 900px) {
  .km-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.km-link {
  color: var(--km-red);
  font-weight: 600;
}

.km-link:hover {
  text-decoration: underline;
}

.km-feature-li {
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.km-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.km-listing-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 768px) {
  .km-listing-layout {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.km-filter-select--inline {
  width: auto;
  min-width: 11rem;
}

.km-filter-count--inline {
  margin: -0.5rem 0 0;
}

.km-filter-count--inline:not([hidden]) {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.km-listing-sidebar {
  position: sticky;
  top: 1rem;
}

.km-filter-card {
  background: var(--km-surface);
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.km-filter-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--km-red);
}

.km-filter-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.45rem;
}

.km-filter-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  background: #fff;
  color: #111;
}

.km-filter-select:focus {
  outline: 2px solid rgba(197, 22, 29, 0.25);
  border-color: var(--km-red);
}

.km-filter-count {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: #666;
  font-weight: 600;
}

.km-listing-main {
  min-width: 0;
}

@media (max-width: 767px) {
  .km-listing-sidebar {
    position: static;
  }

  .km-filter-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
    align-items: center;
  }

  .km-filter-title {
    grid-column: 1 / -1;
  }

  .km-filter-label {
    margin: 0;
  }

  .km-filter-count {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
  }
}

.km-listing-card {
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.km-listing-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #e8eaee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.km-listing-media--compact {
  border-radius: 10px;
}

.km-listing-media-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.km-listing-link {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.km-listing-link:hover h3 {
  color: var(--km-red);
}

.km-listing-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.km-status-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.km-status-badge--sold {
  background: #111;
}

.km-status-badge--reserved {
  background: #c2410c;
}

.km-detail-status-banner {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.km-detail-status-banner--sold {
  background: #111;
  color: #fff;
}

.km-detail-status-banner--reserved {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.km-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.km-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.km-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.km-detail-gallery {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #ececec;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-detail-main-image {
  width: 100%;
  max-height: min(520px, 68vh);
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.km-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.km-gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.km-gallery-prev {
  left: 0.75rem;
}

.km-gallery-next {
  right: 0.75rem;
}

.km-gallery-counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.km-thumb-btn {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.km-thumb-btn.is-active {
  border-color: var(--km-red);
}

.km-thumb-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #ececec;
}

@media (max-width: 900px) {
  .km-detail-grid {
    grid-template-columns: 1fr;
  }

  .km-detail-main-image {
    max-height: min(360px, 55vh);
  }
}

.km-acc-section {
  background: #e3e6eb;
  border-radius: 4px;
  padding: 1.25rem 1rem 1.1rem;
}

.km-acc-group-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: #222831;
}

.km-acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.45rem;
}

@media (min-width: 1100px) {
  .km-acc-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.km-acc-cat-card {
  aspect-ratio: 1;
  background: #656a72;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 0.35rem 0.45rem;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.12);
  min-height: 108px;
  min-width: 0;
}

.km-acc-cat-card:hover {
  transform: translateY(-1px);
  background: #6f747d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.18);
}

.km-acc-cat-icon {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.15rem 0.05rem;
}

.km-acc-cat-icon .km-acc-cat-svg {
  width: 68px;
  height: 68px;
  max-width: 90%;
  max-height: 100%;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.98;
}

.km-acc-cat-card--photo {
  padding: 0.3rem 0.3rem 0.35rem;
}

.km-acc-cat-card--photo .km-acc-cat-icon {
  background: transparent;
  margin: 0;
  padding: 0.15rem 0.1rem 0;
  align-self: stretch;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.km-acc-cat-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  mix-blend-mode: multiply;
}

.km-acc-cat-label {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  padding-top: 0.15rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .km-acc-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.35rem;
  }

  .km-acc-cat-card {
    min-height: 96px;
    padding: 0.35rem 0.25rem 0.3rem;
  }

  .km-acc-cat-card--photo {
    padding: 0.25rem 0.2rem 0.3rem;
  }

  .km-acc-cat-label {
    font-size: 0.5rem;
    line-height: 1.1;
    padding-top: 0.1rem;
  }
}

.km-acc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--km-red);
  margin-bottom: 0.75rem;
}

.km-acc-back:hover {
  text-decoration: underline;
}

.km-ls2-banner {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .km-ls2-banner {
    grid-template-columns: 180px 1fr;
    gap: 1.25rem;
  }
}

.km-ls2-banner-img {
  width: 100%;
  max-width: 180px;
  max-height: 130px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  justify-self: center;
}

@media (min-width: 768px) {
  .km-ls2-banner-img {
    max-width: 180px;
    max-height: 120px;
    justify-self: start;
  }
}
