@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   GeneratePress Child — Custom Styles
   Sections: Base / GP Override / Single (kv-) / Archive (kva-) / 404 / Print
   ========================================================================== */

/* --- GP container override for property pages --- */
/* Only target #page and .site-content wrappers.
   Do NOT use broad .grid-container — it would also hit
   .inside-header.grid-container and .inside-navigation.grid-container,
   stripping their padding and shifting the header left. */
body.post-type-archive-property #page,
body.post-type-archive-property #page.grid-container,
body.post-type-archive-property #page.container.grid-container,
body.post-type-archive-property.full-width-content .container.grid-container,
body.post-type-archive-property > .site#page,
body.post-type-archive-property .site-content,
body.post-type-archive-property .content-area,
body.tax-property-type #page,
body.tax-property-type #page.grid-container,
body.tax-property-type #page.container.grid-container,
body.tax-property-type.full-width-content .container.grid-container,
body.tax-property-type > .site#page,
body.tax-property-type .site-content,
body.tax-property-type .content-area,
body.tax-misto #page,
body.tax-misto #page.grid-container,
body.tax-misto #page.container.grid-container,
body.tax-misto.full-width-content .container.grid-container,
body.tax-misto > .site#page,
body.tax-misto .site-content,
body.tax-misto .content-area,
body.tax-area #page,
body.tax-area #page.grid-container,
body.tax-area #page.container.grid-container,
body.tax-area.full-width-content .container.grid-container,
body.tax-area > .site#page,
body.tax-area .site-content,
body.tax-area .content-area,
body.tax-settlement #page,
body.tax-settlement #page.grid-container,
body.tax-settlement #page.container.grid-container,
body.tax-settlement.full-width-content .container.grid-container,
body.tax-settlement > .site#page,
body.tax-settlement .site-content,
body.tax-settlement .content-area,
body.tax-features-list #page,
body.tax-features-list #page.grid-container,
body.tax-features-list #page.container.grid-container,
body.tax-features-list.full-width-content .container.grid-container,
body.tax-features-list > .site#page,
body.tax-features-list .site-content,
body.tax-features-list .content-area,
body.tax-rooms #page,
body.tax-rooms #page.grid-container,
body.tax-rooms #page.container.grid-container,
body.tax-rooms.full-width-content .container.grid-container,
body.tax-rooms > .site#page,
body.tax-rooms .site-content,
body.tax-rooms .content-area,
body.tax-building-type #page,
body.tax-building-type #page.grid-container,
body.tax-building-type #page.container.grid-container,
body.tax-building-type.full-width-content .container.grid-container,
body.tax-building-type > .site#page,
body.tax-building-type .site-content,
body.tax-building-type .content-area,
body.tax-complex #page,
body.tax-complex #page.grid-container,
body.tax-complex #page.container.grid-container,
body.tax-complex.full-width-content .container.grid-container,
body.tax-complex > .site#page,
body.tax-complex .site-content,
body.tax-complex .content-area,
body.single-property #page,
body.single-property #page.grid-container,
body.single-property #page.container.grid-container,
body.single-property.full-width-content .container.grid-container,
body.single-property > .site#page,
body.single-property .site-content,
body.single-property .content-area,
body.error404 #page,
body.error404 #page.grid-container,
body.error404 #page.container.grid-container,
body.error404.full-width-content .container.grid-container,
body.error404 > .site#page,
body.error404 .site-content,
body.error404 .content-area {
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Override GP's .site-content{display:flex} — flex shrinks content to intrinsic width */
body.post-type-archive-property .site-content,
body.tax-property-type .site-content,
body.tax-misto .site-content,
body.tax-area .site-content,
body.tax-settlement .site-content,
body.tax-features-list .site-content,
body.tax-rooms .site-content,
body.tax-building-type .site-content,
body.tax-complex .site-content,
body.single-property .site-content,
body.error404 .site-content {
  display: block !important;
}


/* ==========================================================================
   SINGLE LISTING (kv-)
   Template: single-property.php
   ========================================================================== */

.kv-single-wrap {
  font-family: 'Manrope', sans-serif;
  background: #f4f3f6;
  min-height: 100vh;
  padding: 40px 0 80px;
}
.kv-single-container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* --- Header (above gallery, no background) --- */
.kv-header { margin-bottom: 24px; }
.kv-header__title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.kv-header__actions { display: flex; gap: 8px; }
.kv-header-action-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #d1d5db; border-radius: 10px;
  background: #fff; color: #4b5563;
  cursor: pointer; transition: all 0.2s;
  padding: 0;
}
.kv-header-action-btn:hover { background: #f1f5f9; border-color: #9ca3af; color: #1e293b; }

/* Referral link button (wider, with text label) */
.kv-referral-btn {
  width: auto !important; padding: 0 12px !important; gap: 6px;
  font-family: 'Manrope', sans-serif; font-size: .78rem; font-weight: 600;
  color: #5c776f; border-color: #5c776f;
}
.kv-referral-btn:hover { background: #eef3f1; border-color: #4a6259; color: #4a6259; }
.kv-referral-btn--copied { background: #f0fdf4 !important; border-color: #22c55e !important; color: #16a34a !important; }
.kv-referral-label { white-space: nowrap; }

.kv-header__title-row .kv-single-title { margin-bottom: 0; flex: 1; }
.kv-header .kv-tag { margin-bottom: 10px; }
.kv-header .kv-single-address { margin-bottom: 0; }

/* --- Breadcrumb --- */
.kv-breadcrumb { font-size: 0.82rem; color: #9ca3af; margin-bottom: 24px; }
.kv-breadcrumb a { color: #5c776f; text-decoration: none; }
.kv-breadcrumb a:hover { color: #3d5a52; text-decoration: underline; }
.kv-bc-sep { margin: 0 5px; color: #c9c4d3; font-size: 0.9rem; }
.kv-bc-current { color: #413a4c; font-weight: 600; }
/* Inside archive header: centered, no bottom gap (header padding handles spacing) */
.kva-header .kv-breadcrumb { text-align: left; margin-bottom: 12px; }

/* --- Layout --- */
.kv-single-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .kv-single-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .kv-left-col,
  .kv-sidebar {
    display: contents !important;
  }
  .kv-sidebar { position: static !important; }
  /* gallery → price → features → characteristics → description → agents → map */
  .kv-gallery-wrap      { order: 1 !important; }
  .kv-price-card        { order: 2 !important; }
  .kv-features-card     { order: 3 !important; }
  .kv-content-card      { order: 4 !important; }
  .kv-description-card  { order: 5 !important; }
  .kv-contact-card      { order: 6 !important; }
  .kv-map-card          { order: 7 !important; }
  .kv-nearby-card       { order: 8 !important; }
  .kv-similar-section    { order: 9 !important; }

  /* Force all blocks to full width after JS reorder flattens the DOM */
  .kv-gallery-wrap,
  .kv-price-card,
  .kv-content-card,
  .kv-features-card,
  .kv-description-card,
  .kv-contact-card,
  .kv-map-card,
  .kv-nearby-card,
  .kv-similar-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .kv-content-card,
  .kv-description-card,
  .kv-map-card,
  .kv-nearby-card {
    margin-top: 0 !important;
  }
}

/* --- Gallery --- */
.kv-gallery-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.09); background: #413a4c; max-width: 100%; }
.kv-gallery__main { position: relative; aspect-ratio: 16/10; overflow: hidden; cursor: zoom-in; }
.kv-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.kv-gallery__main:hover img { transform: scale(1.03); }
.kv-gallery__badge { display: none; position: absolute; top: 16px; right: 16px; font-size: 0.65rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; z-index: 2; }
.kv-gallery__badge--eoselya { display: inline-block; background: #1d4ed8; color: #fff; }
.kv-gallery__count { position: absolute; bottom: 14px; right: 16px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; z-index: 2; backdrop-filter: blur(4px); }
.kv-gallery__thumbs { display: flex; gap: 4px; padding: 4px; background: #413a4c; overflow: hidden; flex-wrap: nowrap; }
.kv-gallery__thumb { flex: 0 0 80px; height: 60px; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: 0.55; transition: opacity 0.2s, outline 0.2s; outline: 2px solid transparent; position: relative; }
.kv-gallery__thumb.active, .kv-gallery__thumb:hover { opacity: 1; outline: 2px solid #5c776f; }
.kv-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Responsive thumb limits: mobile 4, tablet 6, desktop 10 */
.kv-gallery__thumb:nth-child(n+11) { display: none; }
@media (max-width: 860px) { .kv-gallery__thumb:nth-child(n+7) { display: none; } }
@media (max-width: 600px) { .kv-gallery__thumb:nth-child(n+5) { display: none; } }
/* "+N more" overlay on last visible thumb */
.kv-gallery__thumb--more { opacity: 1 !important; cursor: pointer; }
.kv-gallery__thumb-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); color: #fff; font-family: 'Manrope', sans-serif; font-size: 0.88rem; font-weight: 700; border-radius: 6px; backdrop-filter: blur(2px); pointer-events: none; }
.kv-gallery__placeholder { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-size: 5rem; background: linear-gradient(135deg, #e0e4ef, #c7cfe0); }

/* --- Lightbox --- */
.kv-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.93); z-index: 99999; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.kv-lightbox.open { display: flex; }
.kv-lightbox__inner { max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.kv-lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: 12px; object-fit: contain; display: block; box-shadow: 0 8px 60px rgba(0,0,0,0.6); }
.kv-lightbox__close { position: fixed; top: 20px; right: 24px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.4rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 2; }
.kv-lightbox__close:hover { background: rgba(255,255,255,0.28); }
.kv-lightbox__prev, .kv-lightbox__next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 1.4rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 2; }
.kv-lightbox__prev { left: 20px; }
.kv-lightbox__next { right: 20px; }
.kv-lightbox__prev:hover, .kv-lightbox__next:hover { background: rgba(255,255,255,0.25); }
.kv-lightbox__caption { position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.85); font-size: 0.88rem; font-family: 'Manrope', sans-serif; background: rgba(0,0,0,0.4); padding: 6px 16px; border-radius: 20px; backdrop-filter: blur(4px); white-space: nowrap; }
.kv-lightbox__counter { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.82rem; font-family: 'Manrope', sans-serif; font-weight: 600; }

/* --- Map card (single) --- */
.kv-map-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-top: 20px; }
.kv-map-card__header { padding: 16px 22px 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #9ca3af; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 6px; }

/* --- Nearby POI card (What's nearby?) --- */
.kv-nearby-card { background: #fff; border-radius: 16px; padding: 28px; margin-top: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.kv-nearby-subtitle { font-size: 0.82rem; color: #9ca3af; margin: 4px 0 20px; }
.kv-nearby-categories { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .kv-nearby-categories { grid-template-columns: 1fr; } }
.kv-nearby-category__header { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; margin-bottom: 4px; }
.kv-nearby-category__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #eef3f1; color: #5c776f; flex-shrink: 0; }
.kv-nearby-category__label { font-size: 0.88rem; font-weight: 700; color: #374151; }
.kv-nearby-category__count { font-size: 0.72rem; font-weight: 600; color: #9ca3af; background: #f4f3f6; padding: 2px 8px; border-radius: 10px; margin-left: auto; }
.kv-nearby-list { list-style: none; margin: 0; padding: 0; }
.kv-nearby-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 8px 40px; border-bottom: 1px solid #fafafa; gap: 12px; }
.kv-nearby-item:last-child { border-bottom: none; }
.kv-nearby-item__name { font-size: 0.86rem; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kv-nearby-item__distance { font-size: 0.78rem; font-weight: 600; color: #5c776f; white-space: nowrap; flex-shrink: 0; background: #eef3f1; padding: 3px 10px; border-radius: 12px; }

/* --- Similar Properties carousel (kv-similar-) --- */
.kv-similar-section { margin-top: 32px; }
.kv-similar-carousel-wrap { position: relative; }
.kv-similar-carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: 4px 0 16px; /* breathing room for shadow + scrollbar */
  scrollbar-width: thin; scrollbar-color: #d1d5db transparent;
}
.kv-similar-carousel::-webkit-scrollbar { height: 6px; }
.kv-similar-carousel::-webkit-scrollbar-track { background: transparent; }
.kv-similar-carousel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.kv-similar-card {
  flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start;
  background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.kv-similar-card__img-link { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; }
.kv-similar-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.kv-similar-card__img-link:hover .kv-similar-card__img { transform: scale(1.05); }
.kv-similar-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f4f3f6; font-size: 2rem; }
.kv-similar-card__badge { display: none; position: absolute; top: 10px; left: 10px; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.kv-similar-card__badge--eoselya { display: inline-block; background: #1d4ed8; color: #fff; }
.kv-similar-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.kv-similar-section .kv-similar-card h3.kv-similar-card__title { font-size: 0.92rem !important; font-weight: 600 !important; color: #413a4c !important; margin: 0 0 4px !important; padding: 0 !important; line-height: 1.3 !important; display: -webkit-box !important; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.kv-similar-card__price { font-size: 1.15rem; font-weight: 800; color: #413a4c; margin-bottom: 4px; }
.kv-similar-card__address { font-size: 0.82rem; color: #6b7280; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-similar-card__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 0.8rem; color: #6b7280; margin-bottom: 12px; }
.kv-similar-card__cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: #5c776f; color: #fff; font-size: 0.82rem; font-weight: 600;
  padding: 8px 16px; border-radius: 10px; text-decoration: none;
  transition: background 0.2s; margin-top: auto;
}
.kv-similar-card__cta:hover { background: #4a6259; color: #fff; text-decoration: none; }
/* Arrows */
.kv-similar-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s, box-shadow 0.2s; color: #374151;
}
.kv-similar-arrow:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.14); }
.kv-similar-arrow--prev { left: -16px; }
.kv-similar-arrow--next { right: -16px; }
/* Responsive — tablet: 2 cards */
@media (max-width: 860px) {
  .kv-similar-card { flex: 0 0 calc((100% - 16px) / 2); }
  .kv-similar-arrow { display: none !important; }
  .kv-similar-section { margin-top: 0 !important; }
}
/* Responsive — mobile: 1 card */
@media (max-width: 600px) {
  .kv-similar-card { flex: 0 0 85%; }
}

/* --- Content card --- */
.kv-content-card { background: #fff; border-radius: 16px; padding: 28px; margin-top: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
/* --- Description card --- */
.kv-description-card { background: #fff; border-radius: 16px; padding: 28px; margin-top: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.kv-description-card p, .kv-description-card .entry-content p { font-size: 0.92rem; color: #4b5563; line-height: 1.7; }
.kv-content-card p, .kv-content-card .entry-content p { font-size: 0.92rem; color: #4b5563; line-height: 1.7; }

/* --- Sidebar --- */
.kv-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; align-self: start; }

/* --- Price card --- */
.kv-price-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.kv-price-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #9ca3af; margin-bottom: 6px; }
.kv-price-value { font-size: 2.2rem; font-weight: 800; color: #413a4c; letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.kv-price-uah { font-size: 1rem; font-weight: 500; color: #6b7280; margin-bottom: 20px; letter-spacing: -0.3px; }

/* --- Contact card --- */
.kv-contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.kv-contact-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.kv-contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.kv-contact-name {
  font-size: 1rem;
  font-weight: 700;
  color: #413a4c;
  line-height: 1.3;
}
.kv-contact-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kv-cta-btn { display: block; width: 100%; background: #5c776f; color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 0.95rem; font-weight: 700; font-family: 'Manrope', sans-serif; cursor: pointer; text-align: center; text-decoration: none; transition: background 0.2s; }
.kv-cta-btn:hover { background: #4a6259; color: #fff; text-decoration: none; }
.kv-cta-btn--outline { background: transparent; border: 2px solid #5c776f; color: #5c776f; margin-top: 10px; }
.kv-cta-btn--outline:hover { background: #eef3f1; color: #4a6259; }

/* --- Details grid (inside content card, 2 columns) --- */
.kv-section-title { font-size: 1.1rem; font-weight: 800; color: #413a4c; margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.kv-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 12px 0 0; padding: 16px 0; border-top: 1px solid #f3f4f6; }
.kv-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 0.88rem; }
.kv-detail-row__label { color: #6b7280; display: flex; align-items: center; gap: 6px; }
.kv-detail-row__value { font-weight: 700; color: #413a4c; text-align: right; }

/* --- Contact card --- */
.kv-contact-card { background: #fff; border-radius: 16px; padding: 24px 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.kv-contact-card h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #9ca3af; margin: 0 0 18px; }
.kv-contact-user { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.kv-contact-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #5c776f, #413a4c); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.kv-contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kv-contact-name { font-size: 1rem; font-weight: 700; color: #413a4c; margin: 0 0 2px; }
.kv-contact-email { font-size: 0.78rem; color: #9ca3af; margin: 0; }
.kv-contact-phone-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #f0fdf4; color: #16a34a; border: 1.5px solid #bbf7d0; border-radius: 10px; padding: 12px; font-size: 0.95rem; font-weight: 700; font-family: 'Manrope', sans-serif; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.kv-contact-phone-btn:hover { background: #dcfce7; border-color: #86efac; color: #15803d; text-decoration: none; }

/* --- Share & Print actions --- */
.kv-actions { display: flex; gap: 8px; margin-top: 12px; }

.kv-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 8px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  background: #f9fafb; color: #374151;
  font-size: 0.82rem; font-weight: 600;
  font-family: 'Manrope', sans-serif;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
}
.kv-action-btn:hover { background: #f1f5f9; border-color: #cbd5e1; color: #1e293b; text-decoration: none; }
.kv-action-btn svg { flex-shrink: 0; }

/* Share popup */
.kv-share-wrap { position: relative; }

.kv-share-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  padding: 18px; z-index: 9999;
  border: 1px solid #e5e7eb;
}
.kv-share-popup.open { display: block; }

.kv-share-popup__title {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #9ca3af; margin: 0 0 14px;
}
.kv-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.kv-share-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  padding: 8px 4px; border-radius: 10px;
  text-decoration: none; color: #374151;
  font-size: 0.68rem; font-weight: 600; line-height: 1.3;
  transition: background 0.15s; cursor: pointer;
  border: none; background: transparent;
  font-family: 'Manrope', sans-serif; text-align: center;
}
.kv-share-item:hover { background: #f1f5f9; text-decoration: none; color: #1e293b; }
.kv-share-item__icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* --- Taxonomy tags --- */
.kv-taxonomy-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kv-taxonomy-tag { background: #f1f5f9; color: #475569; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; text-decoration: none; transition: background 0.2s; }
.kv-taxonomy-tag:hover { background: #e2e8f0; color: #1e293b; text-decoration: none; }

.kv-tag { display: inline-block; background: #fff; color: #9b6b56; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 5px 12px; border-radius: 8px; border: 1.5px solid #9b6b56; margin-bottom: 12px; }
.kv-single-title { font-size: 1.6rem; font-weight: 800; color: #413a4c; margin: 0 0 6px; line-height: 1.3; letter-spacing: -0.5px; }
.kv-single-address { font-size: 0.88rem; color: #6b7280; margin-bottom: 8px; }

/* --- Print-only contact text (hidden on screen) --- */
.kv-print-phone, .kv-print-email { display: none; }

/* --- Features card --- */
.kv-features-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.kv-features-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #413a4c;
  margin: 0 0 18px;
}
.kv-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.kv-features-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  padding: 6px 0;
}
.kv-features-list__check {
  color: #22c55e;
  font-size: 0.85rem;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .kv-features-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kv-details-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ARCHIVE LISTING (kva-)
   Template: archive-property.php
   ========================================================================== */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }

.kva-wrap {
  font-family: 'Manrope', sans-serif;
  background: #f4f3f6;
  min-height: 100vh;
}

.kva-container {
  width: 90%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 900px) {
  .kva-container { width: 100%; padding: 0 16px; box-sizing: border-box; }
}

/* --- Archive header --- */
.kva-header {
  padding: 32px 0 20px;
  text-align: center;
}
.kva-header h1 {
  font-size: 1.9rem; font-weight: 800;
  color: #413a4c; letter-spacing: -.5px; margin: 0 0 6px;
}
.kva-header p { color: #6b7280; font-size: .92rem; margin: 0; }

/* Referral button in archive header */
.kva-referral-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 18px;
  border: 1.5px solid #5c776f; border-radius: 10px;
  background: #fff; color: #5c776f;
  font-family: 'Manrope', sans-serif; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.kva-referral-btn:hover { background: #eef3f1; border-color: #4a6259; color: #4a6259; }
.kva-referral-btn--copied { background: #f0fdf4 !important; border-color: #22c55e !important; color: #16a34a !important; }
.kva-referral-btn svg { flex-shrink: 0; }

/* --- Filter sidebar --- */
.kva-filter-block {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  border: 1px solid #eef0f2;
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
/* Thin scrollbar inside filter sidebar */
.kva-filter-block::-webkit-scrollbar { width: 4px; }
.kva-filter-block::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.kva-filter-block::-webkit-scrollbar-track { background: transparent; }
.kva-filter-block__label {
  font-size: .68rem; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: #9ca3af; margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f1f3;
}

/* --- Main layout: filter sidebar | cards | map --- */
.kva-body {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 60px;
}
.kva-body--no-map {
  grid-template-columns: 280px 1fr;
}

/* --- Cards column --- */
.kva-cards-col { display: grid; gap: 20px; align-content: start; }

/* --- 1-column: horizontal card layout (only ≥1441px) --- */
@media (min-width: 1441px) {
  .kva-cards-col[style*="repeat(1"] .kva-card { flex-direction: row; max-height: 240px; }
  .kva-cards-col[style*="repeat(1"] .kva-card__img { width: 40%; min-width: 0; height: 240px; max-height: 240px; flex-shrink: 0; }
  .kva-cards-col[style*="repeat(1"] .kva-card__body { padding: 20px 24px; overflow: hidden; }
}

/* Mid-desktop (1201–1440px): narrower sidebar, vertical cards */
@media (max-width: 1440px) {
  .kva-body { grid-template-columns: 260px 1fr 1fr; }
}

/* Tablet: hide map, filter sidebar + cards */
@media (max-width: 1200px) {
  .kva-body { grid-template-columns: 260px 1fr; }
  .kva-map-col { display: none; }
  .kva-cards-col { grid-template-columns: 1fr 1fr !important; }
  .kva-cards-col .kva-card { flex-direction: column !important; }
  .kva-cards-col .kva-card__img { width: 100% !important; min-width: 0 !important; height: 220px !important; }
}

/* Small tablet / mobile: single column, drawer replaces sidebar */
@media (max-width: 900px) {
  .kva-body { grid-template-columns: 1fr; }
  .kva-filter-block { display: none; }
  .kva-filter-toggle { display: inline-flex; }
  .kva-cards-col { grid-template-columns: 1fr 1fr !important; }
}

/* Mobile: 1 card */
@media (max-width: 600px) {
  .kva-container { overflow: hidden; padding: 0 16px; }
  .kva-cards-col { grid-template-columns: 1fr !important; }

  .kva-card {
    flex-direction: column !important;
  }
  .kva-card__img {
    width: 100% !important;
    min-width: 0 !important;
    height: 200px !important;
  }
}

/* --- Card --- */
.kva-card {
  background: #fff; border-radius: 16px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .22s, box-shadow .22s, outline .15s;
  outline: 2px solid transparent;
  cursor: pointer;
}
.kva-card:hover,
.kva-card.is-active {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
  outline: 2px solid #5c776f;
  text-decoration: none; color: inherit;
}

.kva-card__img {
  width: 100%; height: 220px;
  overflow: hidden; background: #dde0ea; flex-shrink: 0;
  position: relative; font-size: 0; line-height: 0;
}
.kva-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; vertical-align: bottom; margin: 0; padding: 0; }
.kva-card:hover .kva-card__img img,
.kva-card.is-active .kva-card__img img { transform: scale(1.06); }

.kva-card__badge {
  display: none;
  position: absolute; top: 10px; right: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 12px 12px; border-radius: 7px;
}
.kva-card__badge--eoselya { display: inline-block; background: #1d4ed8; color: #fff; }

.kva-card__body { padding: 18px 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }

.kva-card__id { display: inline-block; font-size: .82rem; font-weight: 700; color: #9b6b56; background: #f5ece8; padding: 4px 10px; border-radius: 8px; margin-bottom: 8px; letter-spacing: .03em; }
.kva-card__title { font-size: .95rem; font-weight: 700; color: #413a4c; margin: 0 0 4px; line-height: 1.3; }
.kva-card__address { font-size: .78rem; color: #6b7280; margin: 0 0 8px; }

.kva-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: .78rem; color: #374151; }
.kva-card__meta span { display: flex; align-items: center; gap: 3px; white-space: nowrap; }

.kva-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.kva-card__price { font-size: 1.15rem; font-weight: 800; color: #413a4c; letter-spacing: -.3px; }
.kva-card__btn {
  background: #5c776f; color: #fff; border-radius: 8px;
  padding: 6px 14px; font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: background .2s;
}
.kva-card__btn:hover { background: #4a6259; color: #fff; text-decoration: none; }

.kva-card__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#e0e4ef,#c7cfe0);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}

/* --- Map column --- */
.kva-map-col {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}

#kva-map { width: 100%; height: 100%; }

/* --- Custom Leaflet marker --- */
.kva-marker {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 800;
  padding: 5px 10px; border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
  background: #413a4c;
  color: #fff;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  line-height: 1;
}
.kva-marker.is-active {
  background: #dc2626;
  border-color: #fff;
  box-shadow: 0 4px 18px rgba(220,38,38,.55);
  transform: scale(1.22);
  z-index: 1000 !important;
}

/* --- Leaflet popup --- */
.kva-popup { font-family: 'Manrope', sans-serif; min-width: 210px; }
.kva-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin: 0 0 10px; display: block; vertical-align: bottom; }
.kva-popup__title { font-size: .88rem; font-weight: 700; color: #413a4c; margin: 0 0 6px; line-height: 1.3; }

.kva-popup__price {
  display: inline-block;
  background: #eef3f1; color: #4a6259;
  font-size: 1.05rem; font-weight: 800;
  padding: 3px 10px; border-radius: 8px;
  margin: 0 0 6px; letter-spacing: -.3px;
  border: 1.5px solid #bfdbfe;
}

.kva-popup__address { font-size: .75rem; color: #6b7280; margin: 0 0 10px; display: flex; align-items: flex-start; gap: 3px; }

.kva-popup__btn {
  display: block;
  background: #5c776f;
  color: #ffffff !important;
  text-align: center;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: .82rem; font-weight: 700;
  text-decoration: none !important;
  letter-spacing: .2px;
  transition: background .2s;
  border: none;
}
.kva-popup__btn:hover {
  background: #4a6259;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* --- Leaflet popup wrapper overrides --- */
.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.18) !important;
  border: 1px solid #e5e7eb;
}
.leaflet-popup-content { margin: 14px !important; }
.leaflet-popup-tip-container { display: none; }
.leaflet-popup-close-button {
  font-size: 18px !important;
  color: #6b7280 !important;
  right: 8px !important; top: 8px !important;
  width: 24px !important; height: 24px !important;
  line-height: 24px !important;
}

/* --- Empty state --- */
.kva-empty { text-align: center; padding: 60px 20px; color: #9ca3af; grid-column: 1 / -1; }

/* --- Pagination --- */
.kva-pagination { display: flex; justify-content: center; gap: 8px; padding: 20px 0 40px; grid-column: 1 / -1; }
.kva-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; font-size: .88rem; font-weight: 600; background: #fff; color: #374151; text-decoration: none; border: 1px solid #e5e7eb; transition: all .2s; }
.kva-pagination .page-numbers.current,
.kva-pagination .page-numbers:hover { background: #5c776f; color: #fff; border-color: #5c776f; text-decoration: none; }


/* ==========================================================================
   404 PAGE (kv-404-)
   Template: 404.php
   ========================================================================== */

/* Reset GP wrappers on 404 */
body.error404 .inside-article,
body.error404 .entry-content,
body.error404 .site-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.kv-404-wrap {
  font-family: 'Manrope', sans-serif;
  background: linear-gradient(180deg, #f4f3f6 0%, #eae9ef 100%);
  min-height: 80vh;
  padding: 48px 20px 80px;
}

.kv-404-container {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Hero ── */
.kv-404-hero {
  text-align: center;
  margin-bottom: 36px;
}

.kv-404-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.kv-404-house {
  font-size: 3.4rem;
  animation: kv404float 3s ease-in-out infinite;
}
.kv-404-magnifier {
  font-size: 2.4rem;
  animation: kv404float 3s ease-in-out infinite 0.5s;
}
@keyframes kv404float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.kv-404-code {
  font-size: 7rem;
  font-weight: 900;
  color: #413a4c;
  line-height: 1;
  letter-spacing: -4px;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #413a4c 0%, #5c776f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kv-404-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #413a4c;
  margin: 0 0 12px;
}

.kv-404-text {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 auto 0;
  max-width: 520px;
  line-height: 1.7;
}

/* ── Search ── */
.kv-404-search {
  max-width: 480px;
  margin: 32px auto;
}
.kv-404-search-form {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  background: #fff;
}
.kv-404-search-input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: #374151;
  outline: none;
  background: transparent;
}
.kv-404-search-input::placeholder { color: #9ca3af; }
.kv-404-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  border: none;
  background: #5c776f;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.kv-404-search-btn:hover { background: #4a6259; }

/* ── Action buttons ── */
.kv-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.kv-404-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5c776f;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(92,119,111,.2);
}
.kv-404-btn:hover {
  background: #4a6259;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(92,119,111,.3);
}

.kv-404-btn--outline {
  background: #fff;
  border: 2px solid #5c776f;
  color: #5c776f;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.kv-404-btn--outline:hover {
  background: #eef3f1;
  color: #4a6259;
  border-color: #4a6259;
}

/* ── Section titles ── */
.kv-404-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #413a4c;
  text-align: center;
  margin: 0 0 20px;
}

/* ── Category cards ── */
.kv-404-categories {
  margin-bottom: 48px;
}
.kv-404-cat-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.kv-404-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  min-width: 110px;
  text-decoration: none;
  color: #413a4c;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all 0.2s;
  border: 2px solid transparent;
}
.kv-404-cat-card:hover {
  border-color: #5c776f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  text-decoration: none;
  color: #413a4c;
}
.kv-404-cat-icon { font-size: 1.8rem; }
.kv-404-cat-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Recent listings grid ── */
.kv-404-recent {
  margin-bottom: 20px;
}
.kv-404-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kv-404-listing {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
}
.kv-404-listing:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  text-decoration: none;
  color: inherit;
}

.kv-404-listing__img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #e0e4ef;
}
.kv-404-listing__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.kv-404-listing:hover .kv-404-listing__img img { transform: scale(1.06); }

.kv-404-listing__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #e0e4ef, #c7cfe0);
}

.kv-404-listing__body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.kv-404-listing__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #413a4c;
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kv-404-listing__addr {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kv-404-listing__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #374151;
  margin-top: auto;
}
.kv-404-listing__price {
  font-weight: 800;
  color: #413a4c;
  font-size: 0.92rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .kv-404-code { font-size: 5rem; }
  .kv-404-title { font-size: 1.25rem; }
  .kv-404-recent-grid { grid-template-columns: repeat(2, 1fr); }
  .kv-404-cat-card { min-width: 90px; padding: 16px 18px; }
}

@media (max-width: 480px) {
  .kv-404-wrap { padding: 32px 16px 60px; }
  .kv-404-code { font-size: 4rem; letter-spacing: -2px; }
  .kv-404-recent-grid { grid-template-columns: 1fr; }
  .kv-404-actions { flex-direction: column; align-items: center; }
  .kv-404-btn { width: 100%; justify-content: center; }
  .kv-404-cat-grid { gap: 8px; }
  .kv-404-cat-card { min-width: 80px; padding: 14px 12px; }
}


/* ==========================================================================
   PRINT / PDF
   Logical order: Header → Photo → Price → Characteristics → Features →
                  Description → Contact
   ========================================================================== */

@media print {

  /* ── Hide non-essential chrome ── */
  .kv-gallery__thumbs,
  .kv-gallery__badge,
  .kv-gallery__count,
  .kv-lightbox,
  .kv-map-card,
  .kv-header__actions,
  .kv-share-popup,
  .kv-breadcrumb,
  .kv-tag,
  .kv-cta-btn,
  .kv-taxonomy-tags,
  .kv-referral-btn,
  .kv-similar-section,
  .wpml-ls-statics-footer,
  .wpml-ls-statics-shortcode_actions,
  [class*="wpml-ls"],
  header, footer, nav,
  .site-header, .site-footer,
  #wpadminbar { display: none !important; }

  /* ── Page basics ── */
  body { font-size: 11pt !important; background: #fff !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .kv-single-wrap { background: #fff !important; padding: 0 !important; }
  .kv-single-container { max-width: 100% !important; padding: 0 20px !important; }

  /* ── Flatten 2-col grid into ordered flex column ── */
  .kv-single-layout {
    display: flex !important; flex-direction: column !important;
    gap: 16px !important;
  }
  .kv-left-col,
  .kv-sidebar {
    display: contents !important;
  }

  /* ── Block order for logical PDF flow ── */
  .kv-gallery-wrap     { order: 1 !important; }
  .kv-price-card       { order: 2 !important; }
  .kv-content-card     { order: 3 !important; }
  .kv-features-card    { order: 4 !important; }
  .kv-description-card { order: 5 !important; }
  .kv-contact-card     { order: 6 !important; }
  .kv-nearby-card      { order: 7 !important; }

  /* ── Header ── */
  .kv-header { padding: 12px 0 8px !important; }
  .kv-single-title { font-size: 1.5rem !important; margin-bottom: 4px !important; }
  .kv-single-address { font-size: .9rem !important; margin: 0 !important; color: #374151 !important; }

  /* ── Gallery — centered image with rounded corners ── */
  .kv-gallery-wrap {
    box-shadow: none !important; border: none !important;
    border-radius: 16px !important; overflow: hidden !important;
    margin: 0 auto !important; width: 80% !important;
    max-width: 540px !important;
  }
  .kv-gallery__main {
    aspect-ratio: auto !important; max-height: none !important;
    cursor: default !important;
  }
  .kv-gallery__main img {
    width: 100% !important; height: auto !important;
    object-fit: contain !important;
    border-radius: 16px !important;
  }

  /* ── Price card — compact inline ── */
  .kv-price-card {
    box-shadow: none !important; border: 1.5px solid #5c776f !important;
    border-radius: 8px !important; padding: 8px 16px !important;
    break-inside: avoid; page-break-inside: avoid;
    width: 100% !important;
    display: flex !important; align-items: baseline !important;
    gap: 12px !important; flex-wrap: wrap !important;
  }
  .kv-price-label { font-size: .75rem !important; margin: 0 !important; }
  .kv-price-value { font-size: 1.15rem !important; margin: 0 !important; }
  .kv-price-uah { font-size: .8rem !important; margin: 0 !important; color: #6b7280 !important; }

  /* ── Characteristics card ── */
  .kv-content-card {
    box-shadow: none !important; border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    break-inside: avoid; page-break-inside: avoid;
    width: 100% !important;
  }
  .kv-details-grid {
    display: grid !important; grid-template-columns: 1fr 1fr !important;
    gap: 0 24px !important;
  }
  .kv-detail-row {
    padding: 8px 0 !important; border-bottom: 1px solid #f3f4f6 !important;
  }
  .kv-section-title { font-size: 1.1rem !important; }

  /* ── Features card ── */
  .kv-features-card {
    box-shadow: none !important; border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    break-inside: avoid; page-break-inside: avoid;
    width: 100% !important;
  }
  .kv-features-list {
    display: grid !important; grid-template-columns: 1fr 1fr !important;
    gap: 4px 24px !important;
  }

  /* ── Description card ── */
  .kv-description-card {
    box-shadow: none !important; border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    width: 100% !important;
  }

  /* ── Contact card — text-only ── */
  .kv-contact-card {
    display: block !important;
    box-shadow: none !important; border: 1px solid #e5e7eb !important;
    border-radius: 12px !important; padding: 16px 20px !important;
    break-inside: avoid; page-break-inside: avoid;
    width: 100% !important;
  }
  .kv-contact-header { margin-bottom: 8px !important; }
  .kv-contact-avatar { width: 40px !important; height: 40px !important; }
  .kv-contact-name { font-size: .95rem !important; }
  .kv-contact-role { font-size: .82rem !important; }

  /* Show phone & email as plain text */
  .kv-print-phone,
  .kv-print-email {
    display: block !important;
    font-size: .95rem; font-weight: 600; color: #374151;
    padding: 6px 0;
    border-top: 1px solid #f3f4f6;
  }
  .kv-print-phone { margin-top: 8px; }

  /* ── Prevent huge page breaks ── */
  .kv-gallery-wrap,
  .kv-price-card,
  .kv-content-card,
  .kv-features-card,
  .kv-description-card,
  .kv-contact-card,
  .kv-nearby-card {
    page-break-inside: avoid;
  }

  /* ── Nearby POI ── */
  .kv-nearby-card {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    width: 100% !important;
  }
  .kv-nearby-item__distance {
    background: none !important;
    padding: 0 !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   FRONT PAGE — kvh- prefix
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout ── */
.kvh-main {
  width: 100%;
  overflow-x: hidden;
}
.kvh-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.kvh-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1e293b;
}

/* ── GP overrides for front page ── */
body.home .site-content,
body.page-template-front-page .site-content {
  max-width: 100% !important;
  padding: 0 !important;
}
body.home #page,
body.page-template-front-page #page {
  max-width: 100% !important;
}

/* ═══ 1. HERO ═══ */
.kvh-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.kvh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.kvh-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kvh-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.75) 100%);
}
.kvh-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 860px;
  width: 100%;
}
.kvh-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.kvh-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin: 0 0 36px;
  line-height: 1.5;
}

/* ── Search Form ── */
.kvh-search {
  max-width: 800px;
  margin: 0 auto;
}

/* Row 1: main search bar */
.kvh-search__row--main {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow: hidden;
}

/* Row 2: filter pills */
.kvh-search__row--filters {
  display: flex;
  background: none;
  gap: 10px;
  padding: 14px 0 0;
  justify-content: center;
  flex-wrap: wrap;
}
.kvh-search__filter {
  flex: 0 0 auto;
}
.kvh-search__filter .kvh-search__select {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border-radius: 24px;
  padding: 10px 18px;
  font-size: .88rem;
  min-width: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.kvh-search__filter .kvh-search__select:hover,
.kvh-search__filter .kvh-search__select:focus {
  background: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.kvh-search__filter .kvh-search__select option {
  background: #1e293b;
  color: #fff;
}

.kvh-search__field {
  flex: 1;
  min-width: 0;
}
.kvh-search__field--select {
  flex: 0 0 auto;
  border-left: 1px solid #e5e7eb;
}
.kvh-search__input {
  width: 100%;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: #1e293b;
}
.kvh-search__input::placeholder {
  color: #94a3b8;
}
.kvh-search__select {
  border: none;
  padding: 16px 16px;
  font-size: .95rem;
  outline: none;
  background: transparent;
  color: #1e293b;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  min-width: 140px;
}
.kvh-search__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  background: #5c776f;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.kvh-search__btn:hover {
  background: #4a6259;
}
.kvh-search__btn svg {
  flex-shrink: 0;
}

/* ═══ 2. CATEGORIES ═══ */
.kvh-categories {
  padding: 64px 0;
  background: #f8fafc;
}
.kvh-categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.kvh-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #374151;
  transition: all .25s;
}
.kvh-cat-card:hover {
  border-color: #5c776f;
  box-shadow: 0 4px 20px rgba(92,119,111,.15);
  transform: translateY(-3px);
  color: #5c776f;
}
.kvh-cat-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kvh-cat-card__icon svg {
  width: 40px;
  height: 40px;
}
.kvh-cat-card__label {
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
}

/* ═══ 3. FEATURED OBJECTS ═══ */
.kvh-featured {
  padding: 64px 0;
}
.kvh-featured__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Card (matches archive kva-card style) --- */
.kvh-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .22s, box-shadow .22s, outline .15s;
  outline: 2px solid transparent;
  cursor: pointer;
}
.kvh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
  outline: 2px solid #5c776f;
  text-decoration: none;
  color: inherit;
}
.kvh-card__img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #dde0ea;
  flex-shrink: 0;
  position: relative;
  font-size: 0;
  line-height: 0;
}
.kvh-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
  vertical-align: bottom;
  margin: 0;
  padding: 0;
}
.kvh-card:hover .kvh-card__img img {
  transform: scale(1.06);
}
.kvh-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,#e0e4ef,#c7cfe0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.kvh-card__badge {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 7px;
}
.kvh-card__badge--eoselya {
  display: inline-block;
  background: #1d4ed8;
  color: #fff;
}
.kvh-card__body {
  padding: 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.kvh-card__id {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: #9b6b56;
  background: #f5ece8;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.kvh-card__title {
  font-size: .95rem;
  font-weight: 700;
  color: #413a4c;
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kvh-card__address {
  font-size: .78rem;
  color: #6b7280;
  margin: 0 0 4px;
}
.kvh-card__district {
  font-size: .78rem;
  color: #5c776f;
  font-weight: 600;
  margin: 0 0 8px;
}
.kvh-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: .78rem;
  color: #374151;
}
.kvh-card__meta span {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.kvh-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.kvh-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #413a4c;
  letter-spacing: -.3px;
}
.kvh-card__price--ask {
  color: #9ca3af;
  font-size: .9rem;
  font-weight: 500;
}
.kvh-card__btn {
  background: #5c776f;
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.kvh-card:hover .kvh-card__btn {
  background: #4a6259;
}

/* ── CTA ── */
.kvh-featured__cta {
  text-align: center;
  margin-top: 40px;
}
.kvh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.kvh-btn--outline {
  border: 2px solid #5c776f;
  color: #5c776f;
  background: transparent;
}
.kvh-btn--outline:hover {
  background: #5c776f;
  color: #fff;
}

/* ═══ 4. SEO + TRUST ═══ */
.kvh-seo {
  padding: 64px 0 80px;
  background: #f8fafc;
}
.kvh-seo__text {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}
.kvh-seo__text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1e293b;
}
.kvh-seo__text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}
.kvh-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.kvh-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}
.kvh-trust__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c776f;
}
.kvh-trust__icon svg {
  width: 36px;
  height: 36px;
}
.kvh-trust__number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
}
.kvh-trust__text {
  font-size: .88rem;
  color: #64748b;
  line-height: 1.4;
}


/* ═══ FRONT PAGE — Agents Carousel ═══ */

.kvh-agents {
  padding: 64px 0;
  background: #f8fafc;
}
.kvh-agents-carousel-wrap {
  position: relative;
}
.kvh-agents-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
  padding: 8px 0 16px;
}
.kvh-agents-carousel::-webkit-scrollbar {
  height: 6px;
}
.kvh-agents-carousel::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.kvh-agent-card {
  flex: 0 0 calc((100% - 48px) / 4);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.kvh-agent-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.kvh-agent-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
  margin-bottom: 12px;
}
.kvh-agent-card__name {
  font-size: .95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
}
.kvh-agent-card__role {
  font-size: .78rem;
  color: #64748b;
  margin: 0 0 8px;
}
.kvh-agent-card__count {
  font-size: .78rem;
  color: #5c776f;
  font-weight: 600;
  margin: 0 0 12px;
  background: rgba(92,119,111,.08);
  padding: 3px 10px;
  border-radius: 20px;
}
.kvh-agent-card__btn {
  font-size: .82rem;
  font-weight: 600;
  color: #5c776f;
  margin-top: auto;
}
.kvh-agents-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: box-shadow .2s;
  color: #374151;
}
.kvh-agents-arrow:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
}
.kvh-agents-arrow--prev { left: -16px; }
.kvh-agents-arrow--next { right: -16px; }


/* ═══ FRONT PAGE — Responsive ═══ */

@media (max-width: 1024px) {
  .kvh-featured__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .kvh-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .kvh-agent-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (max-width: 768px) {
  .kvh-hero {
    min-height: 440px;
  }
  .kvh-hero__title {
    font-size: 1.75rem;
  }
  .kvh-hero__subtitle {
    font-size: 1rem;
  }
  .kvh-search__row--main {
    flex-direction: column;
    border-radius: 16px 16px 0 0;
  }
  .kvh-search__field--select {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
  .kvh-search__btn {
    justify-content: center;
    border-radius: 0;
  }
  .kvh-search__select {
    min-width: 0;
    width: 100%;
  }
  .kvh-search__row--filters {
    gap: 6px;
    padding: 10px 0 0;
  }
  .kvh-search__filter .kvh-search__select {
    padding: 8px 10px;
    font-size: .82rem;
  }
  .kvh-featured__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .kvh-categories__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .kvh-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .kvh-section-title {
    font-size: 1.4rem;
    margin-bottom: 28px;
  }
  .kvh-categories,
  .kvh-featured,
  .kvh-seo,
  .kvh-agents {
    padding: 40px 0;
  }
  .kvh-agent-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
  .kvh-agents-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .kvh-hero__content {
    padding: 60px 16px 40px;
  }
  .kvh-hero__title {
    font-size: 1.5rem;
  }
  .kvh-featured__grid {
    grid-template-columns: 1fr;
  }
  .kvh-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kvh-cat-card {
    padding: 20px 12px;
  }
  .kvh-cat-card__icon {
    width: 40px;
    height: 40px;
  }
  .kvh-cat-card__icon svg {
    width: 32px;
    height: 32px;
  }
  .kvh-trust {
    grid-template-columns: 1fr;
  }
  .kvh-agent-card {
    flex: 0 0 85%;
  }
}


/* ── Description language tabs (single-property.php) ─────────── */
.kv-desc-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.kv-desc-tab {
  padding: 5px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  background: transparent;
  color: #6b7280;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.kv-desc-tab:hover {
  border-color: #1a1d2e;
  color: #1a1d2e;
}
.kv-desc-tab--active {
  background: #1a1d2e;
  border-color: #1a1d2e;
  color: #fff;
}


/* ── Agent (Author) page ──────────────────────────────────────── */
.kv-agent-page {
  padding: 40px 0 60px;
}
.kv-agent-page__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.kv-agent-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.kv-agent-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #e5e7eb;
}
.kv-agent-card__info {
  flex: 1;
  min-width: 0;
}
.kv-agent-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1d2e;
}
.kv-agent-card__role {
  color: #6b7280;
  font-size: .9rem;
  margin: 0 0 10px;
}
.kv-agent-card__bio {
  color: #374151;
  font-size: .95rem;
  margin: 0 0 16px;
  max-width: 600px;
}
.kv-agent-card__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.kv-agent-card__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid #1a1d2e;
  border-radius: 8px;
  color: #1a1d2e;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.kv-agent-card__contact:hover {
  background: #1a1d2e;
  color: #fff;
}
.kv-agent-card__count {
  color: #6b7280;
  font-size: .85rem;
  margin: 0;
}
.kv-agent-card__ref-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  background: transparent;
  color: #6b7280;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.kv-agent-card__ref-btn:hover {
  border-color: #1a1d2e;
  color: #1a1d2e;
}
/* ═══ AGENT CONTACT FORM ═══ */

.kv-agent-contact {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 32px;
}
.kv-agent-contact__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1a1d2e;
}
.kv-agent-contact__msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.kv-agent-contact__msg--ok {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
}
.kv-agent-contact__msg--err {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}
.kv-agent-contact__form {
  display: grid;
  gap: 16px;
}
.kv-agent-contact__field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.kv-agent-contact__field input,
.kv-agent-contact__field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: .9rem;
  color: #1e293b;
  background: #fff;
  transition: border-color .15s;
  box-sizing: border-box;
}
.kv-agent-contact__field input:focus,
.kv-agent-contact__field textarea:focus {
  outline: none;
  border-color: #5c776f;
  box-shadow: 0 0 0 3px rgba(92,119,111,.1);
}
.kv-agent-contact__field textarea {
  resize: vertical;
  min-height: 100px;
}
.kv-agent-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #5c776f;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.kv-agent-contact__btn:hover {
  background: #4a6259;
}

.kv-agent-listings__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1a1d2e;
}
.kv-agent-listings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .kv-agent-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .kv-agent-card__contacts {
    justify-content: center;
  }
  .kv-agent-card__ref-btn {
    position: static;
    margin-top: 12px;
  }
  .kv-agent-contact {
    padding: 20px;
  }
  .kv-agent-listings__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .kv-agent-listings__grid {
    grid-template-columns: 1fr;
  }
}


/* ── Mobile filter drawer (archive-property.php) ─────────────── */
.kva-filter-toggle {
  display: none; /* shown only on mobile via media query below */
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #1a1d2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
}
.kva-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
}
.kva-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(360px, 90vw);
  background: #fff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 32px rgba(0,0,0,.18);
  animation: kvaDrawerIn .22s ease;
}
/* hidden attribute must win over display:flex */
.kva-filter-drawer[hidden] { display: none; }
.kva-drawer-overlay[hidden] { display: none; }
@keyframes kvaDrawerIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.kva-filter-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1d2e;
}
.kva-filter-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  display: flex;
  align-items: center;
}
.kva-filter-drawer__close:hover { color: #1a1d2e; }
.kva-filter-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* mobile sidebar/toggle handled in the unified 900px breakpoint above */


/* ── Language switcher [kv_lang_switcher] ────────────────────── */
.kv-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}
.kv-lang-switcher__btn {
  padding: 4px 10px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 14px;
  color: rgba(255,255,255,.8);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1;
}
.kv-lang-switcher__btn:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.kv-lang-switcher__btn--active {
  background: #fff;
  border-color: #fff;
  color: #1a1d2e;
}


/* ==========================================================================
   NATIVE FILTER WIDGET (kvf-)
   Compact pill-tag design — no accordion, all sections visible.
   ========================================================================== */

/* ── Form ─────────────────────────────────────────────────────────────────── */
.kvf-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Search input ────────────────────────────────────────────────────────── */
.kvf-group--search { padding: 0 0 10px; }
.kvf-search {
  position: relative;
}
.kvf-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.kvf-search__input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: .82rem;
  font-family: 'Manrope', sans-serif;
  color: #1a1d2e;
  background: #fafafa;
  transition: border-color .15s, background .15s;
  box-sizing: border-box;
}
.kvf-search__input::placeholder { color: #b5bac4; }
.kvf-search__input:focus {
  outline: none;
  border-color: #5c776f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92,119,111,.12);
}

/* ── Search suggestions dropdown ─────────────────────────────── */
.kvf-search { position: relative; z-index: 10; }
.kvf-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e3e8;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  z-index: 100;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  margin: 0;
}
.kvf-suggest:empty { display: none; }

/* Group header */
.kvf-suggest__group {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9ca3af;
  padding: 8px 12px 4px;
  margin: 0;
}
.kvf-suggest__group ~ .kvf-suggest__group {
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
  padding-top: 10px;
}

/* Suggest item */
.kvf-suggest__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  color: #374151;
  font-size: .78rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  line-height: 1.4;
  background: none;
  border: none;
  border-radius: 6px;
  transition: background .12s;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  text-decoration: none;
}
.kvf-suggest__item:hover,
.kvf-suggest__item:focus,
.kvf-suggest__item.is-active {
  background: #f0f5f3;
  color: #1a1d2e;
  outline: none;
}
.kvf-suggest__text { flex: 1; min-width: 0; }
.kvf-suggest__count {
  font-size: .7rem;
  color: #9ca3af;
  flex-shrink: 0;
}
.kvf-suggest__price {
  font-size: .72rem;
  font-weight: 600;
  color: #5c776f;
  flex-shrink: 0;
}
.kvf-suggest__arrow {
  font-size: .72rem;
  color: #bbb;
  flex-shrink: 0;
  margin-left: 4px;
}
.kvf-suggest__thumb {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Listing item variant */
.kvf-suggest__item--listing {
  padding: 6px 12px;
}

/* Empty-state chips */
.kvf-suggest__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 10px 6px;
}
.kvf-suggest__chip {
  display: inline-block;
  padding: 5px 12px;
  font-size: .74rem;
  font-weight: 500;
  color: #374151;
  background: #f3f4f6;
  border-radius: 20px;
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.kvf-suggest__chip:hover,
.kvf-suggest__chip.is-active {
  background: #5c776f;
  color: #fff;
}

/* Hero search overrides */
.kvh-search__field { position: relative; }
.kvh-search__field .kvf-suggest {
  min-width: 340px;
  max-height: 420px;
  z-index: 200;
}

/* Mobile: bottom-sheet style dropdown */
@media (max-width: 767px) {
  .kvf-suggest {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 65vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,.15);
    padding: 12px 8px 20px;
    z-index: 9999;
  }
  .kvf-suggest::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 0 auto 10px;
  }
  .kvf-suggest__item {
    min-height: 44px;
    padding: 10px 14px;
    font-size: .82rem;
  }
  .kvf-suggest__chip {
    padding: 8px 16px;
    font-size: .78rem;
  }
}

/* ── Section group ────────────────────────────────────────────────────────── */
.kvf-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
}
.kvf-group + .kvf-group {
  border-top: 1px solid #f0f1f3;
}
.kvf-group { transition: opacity .2s; }

/* ── Section label (clickable accordion button) ───────────────────────────── */
.kvf-group__label,
.kvf-group__label--plain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  font-weight: 700;
  color: #374151;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  user-select: none;
  font-family: 'Manrope', sans-serif;
  line-height: 1.3;
}
.kvf-group__label:hover { color: #5c776f; }

/* Chevron indicator */
.kvf-group__label::after {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat center / contain;
  transition: transform .2s;
}
.kvf-group__label[aria-expanded="false"]::after {
  transform: rotate(-90deg);
}

/* Plain label (orderby) — no chevron */
label.kvf-group__label--plain::after { display: none; }
label.kvf-group__label--plain { cursor: default; }

/* ── Collapsible body ────────────────────────────────────────────────────── */
.kvf-group__body {
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease;
}
.kvf-group__body[hidden] {
  display: none;
}

/* ── Checkbox list — classic vertical checkboxes ─────────────────────────── */
.kvf-checkboxes,
.kvf-checkboxes--scroll {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 220px;
  overflow-y: auto;
}
.kvf-checkboxes::-webkit-scrollbar { width: 3px; }
.kvf-checkboxes::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.kvf-checkboxes--scroll { max-height: 180px; }

/* Custom checkbox appearance */
.kvf-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 2px;
  border: none;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 500;
  color: #374151;
  background: transparent;
  cursor: pointer;
  transition: background .12s;
  line-height: 1.3;
  user-select: none;
}
.kvf-checkbox:hover { background: #f9fafb; }
.kvf-checkbox.is-active { color: #1a1d2e; font-weight: 600; }

/* Styled checkbox square */
.kvf-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, background .15s;
}
.kvf-checkbox input[type="checkbox"]:checked {
  background: #5c776f;
  border-color: #5c776f;
}
.kvf-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.kvf-checkbox input[type="checkbox"]:hover { border-color: #5c776f; }
.kvf-checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(92,119,111,.15);
}

.kvf-checkbox__label { flex: 1; min-width: 0; }
.kvf-checkbox__count {
  font-size: .72rem;
  font-weight: 500;
  color: #9ca3af;
  flex-shrink: 0;
}

/* ── Room chips — compact pill style ─────────────────────────────────────── */
.kvf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kvf-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 5px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: #4b5563;
  background: #fff;
  cursor: pointer;
  transition: border-color .13s, background .13s, color .13s;
  user-select: none;
}
.kvf-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.kvf-chip:hover { border-color: #5c776f; color: #5c776f; background: #f0f5f3; }
.kvf-chip.is-active { background: #5c776f; border-color: #5c776f; color: #fff; }

/* ── Price range inputs ───────────────────────────────────────────────────── */
.kvf-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.kvf-range__sep {
  color: #d1d5db;
  font-size: .85rem;
  flex-shrink: 0;
  font-weight: 500;
}
.kvf-range__input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: .82rem;
  font-family: 'Manrope', sans-serif;
  color: #1a1d2e;
  background: #fafafa;
  transition: border-color .15s, background .15s;
  -moz-appearance: textfield;
}
.kvf-range__input::-webkit-inner-spin-button,
.kvf-range__input::-webkit-outer-spin-button { -webkit-appearance: none; }
.kvf-range__input::placeholder { color: #c4c9d4; }
.kvf-range__input:focus {
  outline: none;
  border-color: #5c776f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92,119,111,.12);
}
.kvf-range__input--full { width: 100%; flex: unset; }

/* ── Sorting select ────────────────────────────────────────────────────────── */
.kvf-select {
  width: 100%;
  padding: 7px 32px 7px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: .82rem;
  font-family: 'Manrope', sans-serif;
  color: #1a1d2e;
  background: #fafafa url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 8px center / 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .15s;
}
.kvf-select:focus {
  outline: none;
  border-color: #5c776f;
  box-shadow: 0 0 0 3px rgba(92,119,111,.12);
}

/* ── Actions ───────────────────────────────────────────────────────────────── */
.kvf-actions {
  border-top: 1px solid #f0f1f3;
  margin-top: 4px;
  padding-top: 14px;
  text-align: center;
}
.kvf-btn-apply { display: none; } /* hidden: AJAX instant apply, no button needed */
.kvf-btn-reset {
  display: inline-block;
  padding: 6px 16px;
  color: #9ca3af;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
  letter-spacing: .02em;
}
.kvf-btn-reset:hover { color: #5c776f; }

/* ── Loading overlay on card grid ────────────────────────────────────────── */
.kva-loading {
  opacity: .45;
  pointer-events: none;
  transition: opacity .18s;
  position: relative;
}
.kva-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.35);
  z-index: 1;
  border-radius: 4px;
}

/* ── Price ask variant ────────────────────────────────────────────────────── */
.kva-card__price--ask { color: #9ca3af; font-size: .9rem; }

/* ════════════════════════════════════════════════════════════════════════════
   BLOCK: kvh-stats — Agency statistics counters
   ════════════════════════════════════════════════════════════════════════════ */
.kvh-stats {
  padding: 64px 0;
  background: #f8fafc;
}
.kvh-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.kvh-stats__heading {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #1e293b;
}
.kvh-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.kvh-stats__item {
  background: #fff;
  border-radius: 16px;
  padding: 32px 20px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.kvh-stats__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}
.kvh-stats__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: #2563eb;
}
.kvh-stats__icon svg {
  width: 100%;
  height: 100%;
}
.kvh-stats__number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 8px;
}
.kvh-stats__label {
  font-size: .9rem;
  color: #64748b;
}

/* ════════════════════════════════════════════════════════════════════════════
   BLOCK: kvh-districts — Districts navigation grid
   ════════════════════════════════════════════════════════════════════════════ */
.kvh-districts {
  padding: 64px 0;
}
.kvh-districts__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.kvh-districts__heading {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #1e293b;
}
.kvh-districts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.kvh-districts__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.kvh-districts__card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.kvh-districts__name {
  font-weight: 600;
  font-size: .95rem;
  color: #1e293b;
}
.kvh-districts__count {
  font-size: .8rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 99px;
}

/* ════════════════════════════════════════════════════════════════════════════
   BLOCK: kvh-map — Full-width Leaflet map
   ════════════════════════════════════════════════════════════════════════════ */
.kvh-map {
  padding-top: 64px;
}
.kvh-map__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.kvh-map__heading {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #1e293b;
}
.kvh-map__canvas {
  width: 100%;
  background: #e8f0fe;
}

/* ════════════════════════════════════════════════════════════════════════════
   BLOCK: kvh-testimonials — Client reviews carousel
   ════════════════════════════════════════════════════════════════════════════ */
.kvh-testimonials {
  padding: 64px 0;
  background: #f8fafc;
}
.kvh-testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.kvh-testimonials__heading {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #1e293b;
}
.kvh-testimonials-wrap {
  position: relative;
}
.kvh-testimonials__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.kvh-testimonials__track::-webkit-scrollbar { height: 6px; }
.kvh-testimonials__track::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.kvh-testimonials__slide {
  flex: 0 0 calc((100% - 72px) / 4);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kvh-testimonials__quote {
  margin: 0;
  flex: 1;
}
.kvh-testimonials__icon {
  width: 24px;
  height: 24px;
  color: #2563eb;
  opacity: .4;
  margin-bottom: 12px;
  display: block;
}
.kvh-testimonials__text {
  font-size: .95rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}
.kvh-testimonials__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kvh-testimonials__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.kvh-testimonials__avatar--placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.kvh-testimonials__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kvh-testimonials__name {
  font-size: .9rem;
  font-weight: 600;
  color: #1e293b;
}
.kvh-testimonials__role {
  font-size: .8rem;
  color: #94a3b8;
}
.kvh-testimonials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: background .2s, color .2s;
}
.kvh-testimonials-arrow:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.kvh-testimonials-arrow--prev { left: -20px; }
.kvh-testimonials-arrow--next { right: -20px; }

/* Responsive — new blocks */
@media (max-width: 1024px) {
  .kvh-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .kvh-testimonials__slide { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .kvh-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kvh-districts__grid { grid-template-columns: repeat(2, 1fr); }
  .kvh-testimonials__slide { flex: 0 0 calc(100% - 32px); }
  .kvh-testimonials-arrow { display: none; }
}

