/*
 * Kunduz Real Estate  executive layer on evapp-modern.css (dossier-precios pattern)
 * Fintech-grade surfaces, ink CTAs, trust bar, premium listing cards
 */

:root {
  --k-brand: #1e3d5c;
  --k-brand-mid: #2d5a87;
  --k-accent: #c9a66b;
  --k-accent-soft: rgb(201 166 107 / 0.18);
  --k-chrome-bg: var(--r-ink);
  --k-nav-height: 5.25rem;
}

@media (max-width: 991px) {
  :root {
    --k-nav-height: 4.75rem;
  }
}

html {
  scroll-padding-top: calc(var(--k-nav-height) + 0.75rem);
}

body.k-page {
  font-family: var(--r-font);
  background: var(--r-surface-subtle);
  color: var(--r-ink);
}

.k-container {
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
}

/*  Nav  matches footer chrome  */
.k-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--k-chrome-bg);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  transition: background 0.3s, box-shadow 0.3s;
  isolation: isolate;
}

/* evapp-modern.css targets #mainNav for Bootstrap sites  keep Kunduz nav self-contained */
#mainNav.k-nav {
  background: var(--k-chrome-bg) !important;
  border-bottom: 1px solid rgb(255 255 255 / 0.08) !important;
  border-radius: 0 !important;
}

#mainNav.k-nav.is-scrolled {
  background: var(--k-chrome-bg) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.22);
}

#mainNav.k-nav .k-nav__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  /* Keep .k-container width + horizontal inset  width:100% was pinning the logo to the viewport edge */
  width: min(100% - 2rem, 1140px) !important;
  max-width: 1140px;
  margin-inline: auto !important;
  min-height: 5.25rem;
  gap: 0.75rem;
  position: relative;
}

@media (max-width: 991px) {
  #mainNav.k-nav {
    background: var(--k-chrome-bg) !important;
  }

  #mainNav.k-nav .k-nav__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.65rem;
    min-height: 4.75rem;
  }

  .k-nav__brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(78vw, 300px);
  }

  .k-nav__brand .k-logo--nav-lockup {
    width: auto;
    max-width: min(100%, 280px);
    height: clamp(2.85rem, 12vw, 3.5rem);
  }

  .k-nav__toggle {
    display: inline-flex !important;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 25;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

.k-nav.is-scrolled {
  background: var(--k-chrome-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.22);
}

/* Inner pages: keep the same chrome as a scrolled home header (no layout jump on navigation) */
.k-page--static #mainNav.k-nav,
.k-page--detail #mainNav.k-nav,
.k-page--stays #mainNav.k-nav,
.k-page--stay-detail #mainNav.k-nav {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.22);
}

.k-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  gap: 1rem;
}

.k-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(42vw, 220px);
  color: #fff;
  isolation: isolate;
}

@media (min-width: 992px) {
  .k-nav__brand {
    max-width: 240px;
  }
}

.k-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
}

/* Castor mark  transparent PNG, no blend mode */
.k-logo--mark,
.k-logo--footer {
  mix-blend-mode: normal;
}

/* Legacy black-bg PNG lockups */
.k-logo--lockup {
  mix-blend-mode: lighten;
}

.k-logo--lockup {
  height: clamp(2.35rem, 5.5vw, 3rem);
  max-width: min(220px, 58vw);
}

/* Castor mark  sized like property portal header icons (Idealista/Fotocasa ~4872px) */
.k-logo--mark {
  width: clamp(3.25rem, 7vw, 4.5rem);
  height: clamp(3.25rem, 7vw, 4.5rem);
  max-width: none;
}

/* Header lockup  castor emblem + KUNDUZ wordmark (transparent PNG) */
.k-logo--nav-lockup {
  height: clamp(2.5rem, 6vw, 3.35rem);
  width: auto;
  max-width: min(240px, 62vw);
  mix-blend-mode: normal;
}

.k-logo--footer {
  width: clamp(2rem, 4vw, 2.5rem);
  height: clamp(2rem, 4vw, 2.5rem);
  max-width: none;
  margin: 0;
}

.k-logo--login {
  display: block;
  width: clamp(5rem, 14vw, 6.5rem);
  height: clamp(5rem, 14vw, 6.5rem);
  max-width: none;
  margin: 0 auto 1.25rem;
}

.k-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  padding: 0.35rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
  color: #fff;
  cursor: pointer;
}

.k-nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (min-width: 992px) {
  .k-nav__toggle { display: none; }
}

.k-nav__panel {
  display: none;
}

.k-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

@media (max-width: 991px) {
  .k-nav__panel {
    display: none;
    flex-direction: column;
    position: fixed;
    top: calc(4.75rem + 0.35rem);
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 1040;
    max-height: calc(100dvh - 4.75rem - 1rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 14px;
    background: rgb(15 23 42 / 0.98);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.35);
  }

  .k-nav__panel.is-open,
  .k-nav__panel:has(#navMenu.is-open) {
    display: flex;
  }

  .k-nav__links {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .k-nav__links a {
    display: block;
    width: 100%;
  }

  .k-nav__lang-desktop {
    display: none !important;
  }

  .k-nav__lang-item {
    list-style: none;
    margin-top: 0.25rem;
    padding: 0.65rem 0.85rem 0.65rem;
    border-top: 1px solid rgb(255 255 255 / 0.12);
  }

  .k-nav__cta-item {
    list-style: none;
    margin: 0;
    padding: 0.65rem 0.85rem 0.85rem;
    border-top: 1px solid rgb(255 255 255 / 0.12);
  }

  .k-nav__cta-item .k-btn--nav-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    white-space: normal;
    font-size: 0.8125rem;
    padding: 0.55rem 0.75rem;
    line-height: 1.2;
  }

  .k-nav__panel .k-nav__actions {
    display: none !important;
  }

  .k-nav__lang-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.52);
  }

  .k-lang-switch--menu {
    display: flex;
    width: 100%;
  }

  .k-lang-switch--menu .k-lang-option {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.8125rem;
  }

  body.k-nav-open {
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  #mainNav.k-nav .k-nav__inner {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 1rem;
  }

  .k-nav__panel {
    display: contents;
  }

  .k-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    min-width: max-content;
    grid-column: 2;
    justify-self: center;
  }

  .k-nav__actions {
    grid-column: 3;
    justify-self: end;
  }

  .k-nav__lang-item {
    display: none;
  }

  .k-nav__cta-item {
    display: none;
  }

  .k-nav__lang-desktop {
    display: inline-flex;
  }
}

.k-nav__links a {
  color: rgb(255 255 255 / 0.72);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.k-nav__links a:hover,
.k-nav__links a[aria-current="page"] {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.k-btn--nav-ghost {
  background: rgb(255 255 255 / 0.08) !important;
  color: rgb(255 255 255 / 0.88) !important;
  border: 1px solid rgb(255 255 255 / 0.18) !important;
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.65rem;
  line-height: 1.2;
}

.k-btn--nav-ghost:hover {
  background: rgb(255 255 255 / 0.14) !important;
  color: #fff !important;
  transform: none;
}

.k-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.k-lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
}

.k-lang-option {
  margin: 0;
  border: none;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.65rem;
  line-height: 1.2;
  cursor: pointer;
  color: rgb(255 255 255 / 0.72);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.k-lang-option:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.k-lang-option--active {
  color: #fff !important;
  background: rgb(255 255 255 / 0.18) !important;
  cursor: default;
}

.k-lang-option:focus {
  outline: none;
}

.k-lang-option:focus-visible {
  outline: 2px solid var(--k-accent);
  outline-offset: 1px;
  z-index: 1;
}

/*  Buttons (evapp ink + brand)  */
.k-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: var(--r-font);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

button.k-btn,
input[type="submit"].k-btn,
input[type="button"].k-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.k-btn:hover { transform: translateY(-1px); }

.k-btn--ink {
  background: var(--r-ink) !important;
  color: #fff !important;
  border-color: var(--r-ink) !important;
  box-shadow: var(--r-shadow-sm);
}

.k-btn--ink:hover {
  background: #1f2937 !important;
  box-shadow: var(--r-shadow-md);
}

.k-btn--primary {
  background: var(--k-brand) !important;
  color: #fff !important;
  border-color: var(--k-brand) !important;
  box-shadow: 0 4px 16px rgb(30 61 92 / 0.28);
}

.k-btn--primary:hover {
  background: var(--k-brand-mid) !important;
}

.k-btn--outline {
  background: var(--r-surface) !important;
  color: var(--r-ink) !important;
  border: 1px solid var(--r-line-strong) !important;
  box-shadow: var(--r-shadow-sm);
}

.k-btn--outline:hover {
  background: var(--r-surface-band) !important;
}

.k-btn--ghost {
  background: transparent;
  color: rgb(255 255 255 / 0.82);
  border: 1px solid transparent;
}

.k-btn--ghost:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.k-page .k-btn--ghost {
  color: var(--r-ink-soft);
}

.k-page .k-btn--ghost:hover {
  background: rgb(10 13 18 / 0.05);
  color: var(--r-ink);
}

.k-nav .k-btn--ghost {
  color: rgb(255 255 255 / 0.82);
}

.k-nav .k-btn--ghost:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

/*  Masthead / hero (dossier-masthead)  */
.k-masthead {
  padding-top: clamp(7rem, 13vw, 9rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, var(--r-surface-band) 0%, var(--r-surface) 62%);
  position: relative;
  overflow: hidden;
}

.k-masthead::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  background: radial-gradient(circle, rgb(45 90 135 / 0.08) 0%, transparent 68%);
  pointer-events: none;
}

.k-masthead__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  position: relative;
}

@media (min-width: 900px) {
  .k-masthead__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.k-masthead__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-brand-mid);
  background: rgb(45 90 135 / 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.k-masthead h1 {
  font-family: var(--r-display);
  font-size: clamp(2.125rem, 5.5vw, 3.125rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--r-ink);
  margin: 0 0 1rem;
}

.k-masthead__lead {
  color: var(--r-ink-soft);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.k-masthead__brand-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.k-masthead__aside {
  display: none;
}

@media (min-width: 900px) {
  .k-masthead__aside {
    display: block;
    border-radius: var(--r-radius-xl);
    overflow: hidden;
    border: 1px solid var(--r-line);
    box-shadow: var(--r-shadow-lg);
    aspect-ratio: 4/5;
    max-height: 420px;
    background: var(--r-surface-band) center/cover no-repeat;
  }
}

/* Hub hero variant */
.k-masthead--hub {
  padding-bottom: clamp(3rem, 6vw, 4rem);
}

.k-masthead--hub .k-masthead__grid {
  grid-template-columns: 1fr;
}

/*  Search (elevated card)  */
.k-search-card {
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-lg);
  box-shadow: var(--r-shadow-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.k-search-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-muted);
  margin: 0 0 0.75rem 0.25rem;
}

.k-search {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .k-search {
    grid-template-columns: 1.4fr 1fr 1fr auto;
    align-items: stretch;
  }
}

.k-search input,
.k-search select {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--r-line);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-family: var(--r-font);
  background: var(--r-surface-subtle);
  color: var(--r-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.k-search input:focus,
.k-search select:focus {
  outline: none;
  border-color: var(--k-brand-mid);
  box-shadow: 0 0 0 3px rgb(45 90 135 / 0.12);
  background: var(--r-surface);
}

.k-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Admin list panels  filters + actions (listings, blog, ) */
.k-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: 12px;
  box-shadow: var(--r-shadow-sm);
}

.k-admin-toolbar__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.k-admin-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 200px);
  flex: 1 1 160px;
  max-width: 220px;
  margin: 0;
}

.k-admin-toolbar__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-muted);
}

.k-admin-toolbar__control {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.625rem 2rem 0.625rem 0.85rem;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: var(--r-font);
  font-weight: 500;
  background: #fff;
  color: var(--r-ink);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.k-admin-toolbar__control:hover {
  border-color: #bfbfbf;
}

.k-admin-toolbar__control:focus {
  outline: none;
  border-color: var(--r-ink);
  box-shadow: 0 0 0 2px rgb(17 24 39 / 0.08);
  background: #fff;
}

.k-admin-toolbar--blog .k-admin-toolbar__field {
  flex: 1 1 220px;
  max-width: min(100%, 280px);
}

.k-admin-toolbar__action {
  flex: 0 0 auto;
  align-self: flex-end;
}

.k-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

body.k-page--admin .k-admin__main .k-btn--ghost {
  background: var(--r-surface);
  color: var(--r-ink);
  border: 1px solid var(--r-line-strong);
  box-shadow: var(--r-shadow-sm);
}

body.k-page--admin .k-admin__main .k-btn--ghost:hover {
  background: var(--r-surface-band);
  color: var(--r-ink);
  border-color: var(--k-brand-mid);
}

@media (max-width: 560px) {
  .k-admin-toolbar__field {
    max-width: none;
    flex-basis: 100%;
  }

  .k-admin-toolbar__action {
    width: 100%;
    justify-content: center;
  }
}

.k-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--r-line);
  background: var(--r-surface);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--r-ink-soft);
  transition: all 0.2s;
  box-shadow: var(--r-shadow-sm);
}

.k-chip.is-active,
.k-chip:hover {
  border-color: var(--k-brand-mid);
  color: var(--k-brand);
  background: rgb(45 90 135 / 0.08);
}

/* Trust  uses evapp-trust from evapp-modern */
.k-trust .evapp-trust-icon {
  color: var(--k-brand-mid);
}

/*  Sections  */
.k-section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: var(--r-surface);
}

.k-section--band {
  background: var(--r-surface-band);
}

.k-section__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.k-section__header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.k-section__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-muted);
  margin-bottom: 0.5rem;
}

.k-section__header h1,
.k-section__header h2 {
  font-family: var(--r-display);
  font-size: clamp(1.875rem, 4vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--r-ink);
  margin: 0 0 0.75rem;
  line-height: 1.12;
}

.k-section__sub {
  color: var(--r-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0;
}

/*  Country cards (hub)  */
.k-countries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.k-country-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  box-shadow: var(--r-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.k-country-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--r-shadow-lg);
  border-color: rgb(45 90 135 / 0.25);
}

.k-country-card__img {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.k-country-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgb(10 13 18 / 0.55) 100%);
}

.k-country-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  position: relative;
}

.k-country-card h2 {
  font-family: var(--r-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.k-country-card p {
  margin: 0;
  color: var(--r-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.k-country-card__cta {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--k-brand-mid);
}

/*  Feature cards (how it works)  */
.k-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.k-feature-card {
  padding: 1.75rem;
  border-radius: var(--r-radius);
  border: 1px solid var(--r-line);
  background: var(--r-surface);
  box-shadow: var(--r-shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
  height: 100%;
}

.k-feature-card:hover {
  box-shadow: var(--r-shadow-md);
  border-color: var(--r-line-strong);
}

.k-feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(45 90 135 / 0.12), var(--k-accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--k-brand-mid);
}

.k-feature-card h3 {
  font-family: var(--r-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--r-ink);
}

.k-feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--r-muted);
  line-height: 1.55;
}

/*  Category hub (home)  */
.k-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.k-category-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  border-radius: var(--r-radius);
  border: 1px solid var(--r-line);
  background: var(--r-surface);
  box-shadow: var(--r-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.k-category-card:hover {
  box-shadow: var(--r-shadow-md);
  border-color: var(--k-brand-mid);
  transform: translateY(-1px);
}

.k-category-card.is-active {
  border-color: var(--k-brand-mid);
  box-shadow: 0 0 0 1px var(--k-brand-mid), var(--r-shadow-sm);
  background: linear-gradient(180deg, rgb(45 90 135 / 0.04), var(--r-surface));
}

.k-category-card__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(45 90 135 / 0.12), var(--k-accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--k-brand-mid);
}

.k-category-card__icon svg {
  width: 22px;
  height: 22px;
}

.k-category-card__body h3 {
  font-family: var(--r-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--r-ink);
}

.k-category-card__body p {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  color: var(--r-muted);
  line-height: 1.45;
}

.k-category-card__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--k-brand-mid);
}

/*  Listing grid (dossier-price-card style)  */
.k-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.k-listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius);
  overflow: hidden;
  box-shadow: var(--r-shadow-sm);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.k-listing-card:hover {
  box-shadow: var(--r-shadow-md);
  border-color: var(--r-line-strong);
  transform: translateY(-3px);
}

.k-listing-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.k-listing-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--r-surface-band);
  overflow: hidden;
}

.k-listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.k-listing-card__media--detail {
  border-radius: var(--r-radius-lg);
  margin-bottom: 1.25rem;
}

.k-listing-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgb(10 13 18 / 0.15));
  pointer-events: none;
}

.k-listing-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
  min-width: 0;
}

.k-listing-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.k-listing-card__price {
  font-family: var(--r-display);
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--r-ink);
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.k-listing-card__title,
.k-listing-card h3 {
  font-family: var(--r-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: normal;
}

.k-listing-card__meta {
  font-size: 0.8125rem;
  color: var(--r-muted);
  line-height: 1.45;
  margin: 0.15rem 0 0;
  margin-top: auto;
  padding-top: 0.35rem;
  overflow-wrap: anywhere;
}

.k-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: rgb(45 90 135 / 0.1);
  color: var(--k-brand-mid);
  flex-shrink: 0;
  align-self: flex-start;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.k-badge--investment {
  background: var(--k-accent-soft);
  color: #5c4520;
}

/* Legacy grid alias */
.k-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.k-grid.k-listings-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/*  Footer (stacked rows)  */
.k-footer {
  background: var(--k-chrome-bg);
  color: #9ca3af;
  padding: 0.55rem 0 0.45rem;
  border-radius: var(--r-radius-lg) var(--r-radius-lg) 0 0;
  margin-top: 0;
}

.k-footer--stack {
  padding: 0.5rem 0 0.4rem;
}

.k-footer a {
  color: #d1d5db;
  text-decoration: none;
}

.k-footer a:hover { color: #fff; }

.k-footer__stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.k-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  min-width: 0;
}

.k-footer__row--brand {
  gap: 0.5rem 0.85rem;
}

.k-footer__row--links,
.k-footer__row--areas {
  font-size: 0.8125rem;
  line-height: 1.35;
}

.k-footer__row--areas {
  color: #9ca3af;
}

.k-footer__row--areas a {
  color: #9ca3af;
  font-size: 0.75rem;
}

.k-footer__row--meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.k-footer__sep {
  color: rgb(255 255 255 / 0.28);
  user-select: none;
}

.k-footer__email {
  font-size: 0.8125rem;
}

.k-footer__col--mark-only .k-logo--footer,
.k-footer__brand-link--solo .k-logo--footer {
  width: 2.25rem;
  height: 2.25rem;
}

.k-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.k-footer__legal {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #6b7280;
  max-width: 52rem;
}

@media (max-width: 767px) {
  .k-footer,
  .k-footer--stack {
    padding: 0.45rem 0 0.35rem;
    border-radius: 0;
  }

  .k-footer__stack {
    gap: 0.28rem;
  }

  .k-footer__row--links,
  .k-footer__row--areas {
    gap: 0.25rem 0.55rem;
  }
}

.k-footer__col--brand {
  max-width: 20rem;
}

.k-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.k-footer__brand-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.k-footer__brand-link--solo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 0.35rem;
}

.k-footer__col--mark-only .k-logo--footer {
  width: clamp(2rem, 4vw, 2.5rem);
  height: clamp(2rem, 4vw, 2.5rem);
}

.k-footer__col--mark-only .k-footer__contact {
  margin: 0;
  font-size: 0.8125rem;
}

.k-footer__brand-text {
  min-width: 0;
}

.k-footer__brand-name {
  margin: 0;
  font-family: var(--r-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
}

.k-footer__brand-name span {
  color: var(--k-accent);
  font-weight: 500;
}

.k-footer__tagline {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #9ca3af;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.k-footer__contact {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
}

.k-footer__heading {
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.k-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.k-footer__links a {
  font-size: 0.8125rem;
  line-height: 1.35;
}

.k-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-top: 0.5rem;
}

.k-footer--compact .k-footer__bar {
  padding-top: 0.4rem;
}

.k-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
}

.k-footer__legal {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
  max-width: 32rem;
  text-align: right;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .k-footer__legal {
    text-align: left;
  }
}

/* Legacy footer aliases (older pages) */
.k-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.k-footer__brand {
  margin: 0;
  font-family: var(--r-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.k-footer__brand span {
  color: var(--k-accent);
  font-weight: 500;
}

.k-btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.k-btn--whatsapp {
  background: #25d366;
  color: #fff;
  border: 1px solid #20bd5a;
}

.k-btn--whatsapp:hover {
  background: #20bd5a;
  color: #fff;
}

.k-page--detail {
  padding-top: var(--k-nav-height);
  background: var(--r-surface-band);
}

.k-detail-root {
  min-height: 50vh;
}

.k-detail--loading {
  padding: 4rem 0;
}

/*  Listing detail (Idealista / Zillow-style)  */
.k-detail__hero {
  background: var(--r-ink);
}

.k-detail__hero .k-gallery {
  max-width: 1280px;
  margin: 0 auto;
}

.k-detail__body {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.k-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .k-detail__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .k-detail__aside {
    order: -1;
  }

  .k-detail-card {
    position: static !important;
  }
}

.k-detail__head {
  margin-bottom: 1.75rem;
}

.k-detail__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.k-detail__mode-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  color: var(--r-muted);
}

.k-detail__title {
  font-family: var(--r-display);
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--r-ink);
}

.k-detail__location {
  font-size: 1.0625rem;
  color: var(--r-muted);
  margin: 0 0 0.35rem;
}

.k-detail__address {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.9375rem;
  color: var(--r-ink-soft);
  margin: 0 0 1.25rem;
}

.k-detail__address svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--k-brand-mid);
}

.k-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  box-shadow: var(--r-shadow-sm);
}

.k-detail-stat {
  flex: 1 1 25%;
  min-width: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 1rem 0.75rem;
  text-align: center;
  border-right: 1px solid var(--r-line);
}

.k-detail-stat:last-child {
  border-right: none;
}

@media (max-width: 520px) {
  .k-detail-stat {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--r-line);
  }

  .k-detail-stat:nth-child(2n) {
    border-right: none;
  }
}

.k-detail-stat__icon {
  color: var(--k-brand-mid);
  line-height: 0;
}

.k-detail-stat__value {
  font-family: var(--r-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--r-ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.k-detail-stat__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--r-muted);
}

.k-detail-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--r-line);
}

.k-detail-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.k-detail-block__title {
  font-family: var(--r-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--r-ink);
}

.k-detail__prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--r-ink-soft);
  max-width: 65ch;
}

.k-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.k-detail-tags li {
  padding: 0.45rem 0.9rem;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--r-ink-soft);
}

.k-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius);
  overflow: hidden;
  background: var(--r-surface);
}

.k-detail-fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--r-line);
  border-right: 1px solid var(--r-line);
}

.k-detail-fact dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--r-muted);
}

.k-detail-fact dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--r-ink);
}

.k-dossier__note {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--r-ink-soft);
}

.k-detail__aside {
  min-width: 0;
  width: 100%;
}

.k-detail-card {
  position: sticky;
  top: 5.5rem;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-lg);
  box-shadow: var(--r-shadow-md);
  padding: 1.35rem 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.k-detail-card__mode {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--r-muted);
  margin: 0 0 0.35rem;
}

.k-detail-card__price {
  font-family: var(--r-display);
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--r-ink);
  margin: 0 0 0.5rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.k-detail-card__ref {
  font-size: 0.8125rem;
  color: var(--r-muted);
  margin: 0 0 1rem;
}

.k-detail-card__costs {
  margin: 0 0 1rem;
  padding: 0.75rem 0 0;
  list-style: none;
  border-top: 1px solid var(--r-line);
}

.k-detail-card__costs li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  color: var(--r-muted);
}

.k-detail-card__costs strong {
  color: var(--r-ink);
}

.k-detail-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.k-detail-card__actions .k-btn--block {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.k-detail-card__hint {
  font-size: 0.75rem;
  color: var(--r-muted);
  text-align: center;
  margin: 0;
}

/*  Book visit modal  */
body.k-viewing-open {
  overflow: hidden;
}

.k-viewing-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.k-viewing-modal[hidden] {
  display: none !important;
}

.k-viewing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.58);
  backdrop-filter: blur(4px);
}

.k-viewing-modal__dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: min(92vh, 780px);
  overflow: auto;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.k-viewing-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.k-viewing-modal__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-accent, #0f766e);
  font-weight: 700;
}

.k-viewing-modal__head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.k-viewing-modal__close {
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--k-muted, #64748b);
}

.k-viewing-modal__body {
  padding: 1rem 1.35rem 1.35rem;
}

.k-viewing-modal__lead {
  margin: 0 0 1rem;
  color: var(--k-muted, #64748b);
  font-size: 0.92rem;
}

.k-cal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.k-cal__month-panel,
.k-cal__slots-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.k-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.k-cal__title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  text-transform: capitalize;
}

.k-cal__nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--k-ink, #0f172a);
}

.k-cal__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.k-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.k-cal__weekdays span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--k-muted, #94a3b8);
}

.k-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.k-cal-day {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f8fafc;
  color: #94a3b8;
  font: inherit;
  cursor: default;
  padding: 0;
  display: grid;
  place-items: center;
}

.k-cal-day--pad {
  background: transparent;
  border: 0;
}

.k-cal-day--available {
  background: #fff;
  color: var(--k-ink, #0f172a);
  border-color: rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.k-cal-day--available:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.35);
}

.k-cal-day--selected {
  background: linear-gradient(145deg, #0f766e, #115e59);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.35);
}

.k-cal-day--today:not(.k-cal-day--selected) {
  box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.45);
}

.k-cal-day__num {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
}

.k-cal-day__dot {
  position: absolute;
  bottom: 0.35rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #14b8a6;
}

.k-cal-day--selected .k-cal-day__dot {
  background: #fff;
}

.k-cal__hours {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--k-muted, #64748b);
  line-height: 1.4;
}

.k-cal__slots-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  text-transform: capitalize;
}

.k-cal__slots-sub {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--k-muted, #64748b);
}

.k-cal__times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-height: 280px;
  overflow: auto;
  padding-right: 0.15rem;
}

.k-cal-time {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.k-cal-time:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.1);
}

.k-cal-time.is-active {
  background: var(--k-ink, #0f172a);
  color: #fff;
  border-color: var(--k-ink, #0f172a);
}

.k-viewing-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.k-viewing-form label.k-marketing-consent {
  margin-bottom: 0;
  font-weight: 400;
}

.k-viewing-form input:not([type="checkbox"]):not([type="radio"]),
.k-viewing-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.k-viewing-form__slot {
  margin: 0.5rem 0 1rem;
  font-weight: 600;
}

.k-viewing-form__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.k-viewing-modal__success {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 0.92rem;
}

.k-cal__steps {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0 1.25rem;
  counter-reset: step;
}

.k-cal__steps li {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--k-muted);
  padding: 0.35rem 0.25rem;
  border-bottom: 2px solid #e5e7eb;
}

.k-cal__steps li.is-active {
  color: var(--k-ink);
  border-bottom-color: var(--k-ink);
  font-weight: 600;
}

.k-cal__steps li.is-done {
  color: #027a48;
  border-bottom-color: #6ce9a6;
}

.k-viewing-form__summary {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.k-tasacion {
  display: grid;
  gap: 1rem;
}

.k-tasacion__title {
  margin: 0.25rem 0;
}

.k-tasacion__lead {
  color: var(--k-muted);
  margin: 0 0 0.5rem;
}

.k-tasacion__price {
  font-weight: 600;
  margin: 0 0 1rem;
}

.k-platform__heading {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.k-platform__modules {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.k-platform-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.k-platform__tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.k-platform__tabs .is-active {
  background: var(--k-ink);
  color: #fff;
}

.k-form__section--lang {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--k-ink) 12%, transparent);
}

.k-form__hint--section {
  margin-bottom: 0.35rem;
}

.k-platform__tabs--lang {
  margin: 0.5rem 0 1rem;
}

.k-lang-panel .k-field + .k-field {
  margin-top: 0.85rem;
}

.k-form__grid--tas-settings {
  margin-top: 0.75rem;
}

.k-admin__nav-label--admin,
.k-admin__nav-admin {
  /* visibility controlled via data-admin-only + JS */
}

@media (max-width: 720px) {
  .k-cal__layout {
    grid-template-columns: 1fr;
  }

  .k-cal__times {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/*  Gallery (hero + thumbnails)  */
.k-gallery {
  outline: none;
}

.k-gallery__stage {
  position: relative;
  background: #0a0d12;
}

.k-gallery__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 45vw, 520px);
  max-height: min(72vh, 640px);
  overflow: hidden;
}

.k-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.k-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.k-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.k-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.95);
  color: var(--r-ink);
  font-size: 1.625rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.k-gallery__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.k-gallery__nav--prev { left: 1rem; }
.k-gallery__nav--next { right: 1rem; }

.k-gallery__counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgb(10 13 18 / 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.k-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  overflow-x: auto;
  background: rgb(10 13 18 / 0.92);
  scrollbar-width: thin;
}

.k-gallery__thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  background: none;
}

.k-gallery__thumb.is-active,
.k-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--k-accent);
}

.k-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.k-gallery__thumb--collage {
  width: 5rem;
  background: rgb(255 255 255 / 0.08);
}

.k-gallery__thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  width: 100%;
  height: 100%;
}

.k-gallery__thumb-tile {
  overflow: hidden;
  display: block;
  min-height: 0;
}

.k-gallery__thumb-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Collage finale slide */
.k-gallery__slide--collage {
  background: #0a0d12;
}

.k-gallery__slide--collage .k-collage {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 5px;
  padding: 5px;
}

.k-collage__cell {
  position: relative;
  padding: 0;
  border: none;
  overflow: hidden;
  cursor: pointer;
  background: #1a1f28;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.k-collage__cell:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  z-index: 1;
}

.k-collage__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.k-collage__cell:hover img {
  transform: scale(1.06);
}

.k-collage__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(10 13 18 / 0.72);
  color: #fff;
  font-family: var(--r-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.k-collage__veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgb(10 13 18 / 0.85));
  pointer-events: none;
  z-index: 1;
}

.k-collage__caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  pointer-events: none;
}

.k-collage__badge {
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.95);
  color: var(--r-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.k-collage__hint {
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.85);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.5);
}

/* 2 photos: split */
.k-collage--duo {
  grid-template-columns: 1fr 1fr;
}

/* 3 photos: hero + stack */
.k-collage--trio {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.k-collage--trio .k-collage__cell:first-child {
  grid-row: 1 / -1;
}

/* 4 photos: hero left + three on the right */
.k-collage--quad {
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.k-collage--quad .k-collage__cell:first-child {
  grid-row: 1 / -1;
}

.k-collage--quad .k-collage__cell:nth-child(4) {
  grid-column: 2 / 4;
}

/* 5+ photos: editorial mosaic */
.k-collage--mosaic {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.k-collage--mosaic .k-collage__cell:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1 / -1;
}

.k-collage--mosaic .k-collage__cell:nth-child(2) {
  grid-column: 4 / 6;
}

.k-collage--mosaic .k-collage__cell:nth-child(3) {
  grid-column: 6 / 7;
}

.k-collage--mosaic .k-collage__cell:nth-child(4) {
  grid-column: 4 / 5;
}

.k-collage--mosaic .k-collage__cell:nth-child(5) {
  grid-column: 5 / 7;
}

/* Legacy detail aliases */
.k-detail-panel,
.k-detail-title,
.k-detail-location,
.k-detail-description,
.k-detail-section,
.k-detail-section__title,
.k-spec-grid,
.k-spec-row,
.k-feature-list,
.k-carousel {
  /* kept for backwards compat  superseded by .k-detail-* */
}

/*  Admin  */
[hidden] {
  display: none !important;
}

.k-admin {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow-x: clip;
}

.k-admin > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .k-admin { grid-template-columns: minmax(0, 1fr); }
  .k-admin__sidebar { display: none; }
}

.k-admin__sidebar {
  background: var(--r-ink);
  color: #e8eaed;
  padding: 1.75rem 1.25rem;
  border-right: 1px solid rgb(255 255 255 / 0.06);
}

.k-admin__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0 0.45rem;
}

.k-logo--sidebar {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  object-fit: contain;
}

.k-admin__brand-text strong {
  display: block;
  font-family: var(--r-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
}

.k-admin__brand-text span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--k-accent);
  margin-top: 0.12rem;
}

.k-admin__sidebar a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  transition: background 0.2s, color 0.2s;
}

.k-admin__sidebar a:hover,
.k-admin__sidebar a.is-active {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.k-admin__nav-label {
  margin: 1rem 0 0.35rem;
  padding: 0 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.35);
}

.k-admin__nav-label:first-of-type {
  margin-top: 0;
}

.k-admin__logout {
  margin-top: 1.5rem !important;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding-top: 1rem !important;
}

.k-admin__title {
  margin: 0 0 1rem;
  font-family: var(--r-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.k-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.k-type-tab {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  background: var(--r-surface);
  font-family: var(--r-font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.k-type-tab:hover {
  border-color: var(--k-brand-mid);
}

.k-type-tab.is-active {
  background: var(--r-ink);
  border-color: var(--r-ink);
  color: #fff;
}

.k-form__sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.k-form__section {
  border: 1px solid var(--r-line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem 0.5rem;
  margin: 0 0 1.25rem;
  background: var(--r-surface-subtle);
}

.k-form__section legend {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-brand-mid);
  padding: 0 0.35rem;
}

.k-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0 1rem;
}

.k-form__grid > div {
  min-width: 0;
}

.k-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.k-form__check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}

.k-form__check input {
  width: auto;
  margin: 0;
}

.k-form__mode {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--r-line);
  border-radius: 12px;
  background: var(--r-surface);
}

.k-form__mode-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--r-ink);
}

.k-form__mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.k-form__mode-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--r-surface-subtle);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.k-form__mode-option:has(input:checked) {
  background: var(--r-ink);
  border-color: var(--r-ink);
  color: #fff;
}

.k-form__mode-option input {
  width: auto;
  margin: 0;
  accent-color: var(--k-accent);
}

.k-admin__sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.k-admin__sidebar-top .k-lang-switch {
  align-self: flex-start;
}

body.k-page--admin {
  background: var(--r-surface-subtle);
  overflow-x: clip;
}

body.k-page--admin .k-btn--primary {
  background: var(--r-ink) !important;
  color: #fff !important;
  box-shadow: var(--r-shadow-sm);
}

body.k-page--admin .k-btn--primary:hover {
  background: #1f2937 !important;
  box-shadow: var(--r-shadow-md);
}

.k-form__hint {
  font-size: 0.8125rem;
  color: var(--k-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.k-form__hint code {
  font-size: 0.75rem;
  background: rgb(0 0 0 / 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.k-admin-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
  width: fit-content;
}

.k-admin-tabs__btn {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--k-muted, #64748b);
}

.k-admin-tabs__btn.is-active {
  background: #fff;
  color: var(--k-ink, #0f172a);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.k-admin-tabs__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.k-section--publish-stay {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.k-form--card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.k-admin-toolbar--calendar {
  margin-top: 0;
}

.k-admin-toolbar--calendar .k-admin-toolbar__field {
  flex: 0 1 180px;
  max-width: 200px;
}

.k-panel--calendar {
  overflow-x: auto;
  padding: 0;
}

.k-table--calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.k-table--calendar th,
.k-table--calendar td {
  vertical-align: middle;
  padding: 0.85rem 0.75rem;
}

.k-table--calendar th:nth-child(1),
.k-table--calendar td:nth-child(1) {
  width: 7.5rem;
}

.k-table--calendar th:nth-child(2),
.k-table--calendar td:nth-child(2) {
  width: 6.5rem;
}

.k-table--calendar th:nth-child(5),
.k-table--calendar td:nth-child(5) {
  width: 7.5rem;
}

.k-table--calendar th:nth-child(6),
.k-table--calendar td:nth-child(6) {
  width: 9rem;
}

.k-table--calendar th:nth-child(7),
.k-table--calendar td:nth-child(7) {
  width: 6.5rem;
}

.k-table--calendar tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.k-table--calendar tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.k-table--calendar tbody tr.is-empty {
  cursor: default;
}

.k-table--calendar tbody tr.is-empty:hover {
  background: transparent;
}

.k-cal-cell-date {
  font-weight: 600;
  color: var(--r-ink);
  white-space: nowrap;
}

.k-cal-cell-time {
  font-size: 0.8125rem;
  color: var(--r-muted);
  white-space: nowrap;
}

.k-cal-cell-client {
  min-width: 0;
}

.k-cal-cell-client__name {
  font-weight: 600;
  color: var(--r-ink);
  line-height: 1.35;
}

.k-cal-cell-client__meta {
  display: block;
  font-size: 0.75rem;
  color: var(--r-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.k-cal-cell-listing {
  font-size: 0.875rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.k-cal-cell-manager {
  font-size: 0.8125rem;
  color: var(--r-muted);
}

.k-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.k-badge--pending {
  color: #ad6800;
  background: #fff7e6;
  border-color: #ffd591;
}

.k-badge--confirmed {
  color: #0958d9;
  background: #e6f4ff;
  border-color: #91caff;
}

.k-badge--declined,
.k-badge--cancelled {
  color: #cf1322;
  background: #fff1f0;
  border-color: #ffa39e;
}

.k-badge--completed {
  color: #389e0d;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.k-appt-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 1rem 1rem;
}

.k-appt-modal[hidden] {
  display: none !important;
}

.k-appt-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.k-appt-modal__wrap {
  position: relative;
  width: min(100%, 520px);
  animation: k-appt-modal-in 0.22s ease-out;
}

@keyframes k-appt-modal-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.k-appt-modal__content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.k-appt-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.k-appt-modal__close:hover {
  color: rgba(0, 0, 0, 0.88);
  background: rgba(0, 0, 0, 0.06);
}

.k-appt-modal__header {
  padding: 1.15rem 2.5rem 0.85rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}

.k-appt-modal__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.k-appt-modal__header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}

.k-appt-modal__body {
  padding: 1rem 1.25rem;
}

.k-appt-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin: 0;
}

.k-appt-modal__item {
  margin: 0;
}

.k-appt-modal__item--full {
  grid-column: 1 / -1;
}

.k-appt-modal__item dt {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.k-appt-modal__item dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.88);
  word-break: break-word;
}

.k-appt-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.k-appt-modal__footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (max-width: 560px) {
  .k-appt-modal__grid {
    grid-template-columns: 1fr;
  }

  .k-appt-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .k-appt-modal__footer-actions {
    justify-content: stretch;
  }

  .k-appt-modal__footer-actions .k-btn {
    flex: 1 1 auto;
  }
}

.k-admin-toolbar--stays .k-admin-toolbar__field {
  flex: 0 1 180px;
  max-width: 200px;
}

.k-table__actions--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.k-stay-ical__help {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.k-stay-ical__help p {
  margin: 0 0 0.5rem;
}

.k-stay-ical__help p:last-child {
  margin-bottom: 0;
}

.k-stay-ical__help code {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.k-form--viewing-settings {
  max-width: 760px;
}

.k-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.k-table__actions {
  white-space: nowrap;
}

.k-table__actions .k-btn,
.k-table__actions .k-table-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  min-height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--r-line-strong);
  background: var(--r-surface);
  color: var(--r-ink);
  box-shadow: var(--r-shadow-sm);
}

.k-admin .k-table__actions .k-btn--ghost,
.k-admin .k-table__actions .k-table-btn {
  background: var(--r-surface-subtle);
  color: var(--r-ink);
}

.k-admin .k-table__actions .k-btn--ghost:hover,
.k-admin .k-table__actions .k-table-btn:hover {
  background: var(--r-surface-band);
  border-color: var(--k-brand-mid);
  color: var(--r-ink);
}

.k-admin .k-table__actions .k-table-btn--danger {
  color: #b42318;
  border-color: rgb(180 35 24 / 0.35);
  background: rgb(180 35 24 / 0.06);
}

.k-admin .k-table__actions .k-table-btn--danger:hover {
  background: rgb(180 35 24 / 0.12);
  border-color: #b42318;
  color: #912018;
}

.k-table__actions .k-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.k-admin__main {
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  background: var(--r-surface-subtle);
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 560px) {
  .k-admin__main {
    padding: 1rem 0.85rem 1.5rem;
  }
}

.k-panel {
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--r-shadow-sm);
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 560px) {
  .k-panel {
    padding: 1rem;
  }
}

.k-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--r-ink);
}

.k-form input,
.k-form select,
.k-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--r-line);
  border-radius: 12px;
  font-family: var(--r-font);
  margin-bottom: 1rem;
  background: var(--r-surface-subtle);
}

.k-form input[type="checkbox"],
.k-form input[type="radio"] {
  width: auto;
  max-width: none;
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.k-field input,
.k-field select,
.k-field textarea {
  margin-bottom: 0;
}

.k-form input:focus,
.k-form select:focus,
.k-form textarea:focus {
  outline: none;
  border-color: var(--k-brand-mid);
  box-shadow: 0 0 0 3px rgb(45 90 135 / 0.1);
  background: var(--r-surface);
}

.k-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.k-table th,
.k-table td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--r-line);
}

.k-table th {
  font-weight: 600;
  color: var(--r-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.k-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.k-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.k-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.k-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--r-ink);
  padding: 2rem 0;
}

.k-login__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.k-login__box {
  width: min(100% - 2rem, 420px);
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--r-radius-lg);
  padding: 2.25rem;
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.35);
}

.k-login__box h1 {
  color: #fff;
}

.k-login__box > p {
  color: rgb(255 255 255 / 0.65) !important;
}

.k-login__box .k-form label {
  color: rgb(255 255 255 / 0.85);
}

.k-login__box .k-form input {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.12);
  color: #fff;
}

.k-login__box .k-form input:focus {
  background: rgb(255 255 255 / 0.1);
  border-color: var(--k-accent);
}

.k-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--r-muted);
  font-size: 1rem;
  background: var(--r-surface-band);
  border-radius: var(--r-radius);
  border: 1px dashed var(--r-line);
}

/* Hero aliases (templates may still use k-hero) */
.k-hero {
  padding-top: clamp(7rem, 13vw, 9rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, var(--r-surface-band) 0%, var(--r-surface) 62%);
  position: relative;
  overflow: hidden;
}

.k-hero h1 {
  font-family: var(--r-display);
  font-size: clamp(2.125rem, 5.5vw, 3.125rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.k-hero__brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.k-hero__lead {
  color: var(--r-ink-soft);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

/*  Admin listing form (marketing polish)  */
.k-form-hero {
  margin-bottom: 1.5rem;
}

.k-form-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--k-accent);
}

.k-form-hero__title {
  margin-bottom: 0.35rem;
}

.k-form-hero__lead {
  margin: 0;
  max-width: 42rem;
  color: var(--k-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.k-listing-form {
  padding-bottom: 5.5rem;
  min-width: 0;
  max-width: 100%;
}

.k-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.k-form-layout--listing {
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 1.5rem;
}

.k-form-layout__main,
.k-form-layout__rail {
  min-width: 0;
  max-width: 100%;
}

.k-form-layout__rail {
  position: sticky;
  top: 1.25rem;
  align-self: start;
}

@media (max-width: 1080px) {
  .k-form-layout--listing {
    grid-template-columns: minmax(0, 1fr);
  }

  .k-form-layout__rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
  }

  .k-form-layout__rail .k-form-card {
    margin-bottom: 0;
  }
}

@media (max-width: 980px) {
  .k-form-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.k-form__row {
  display: grid;
  gap: 0 1.15rem;
  margin-bottom: 0.25rem;
  min-width: 0;
}

.k-form__row > .k-field {
  min-width: 0;
}

.k-form__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.k-form__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .k-form__row--2,
  .k-form__row--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.k-field {
  margin-bottom: 1rem;
  min-width: 0;
  max-width: 100%;
}

.k-field--wide {
  grid-column: 1 / -1;
  min-width: 0;
}

.k-spec-grid .k-field {
  margin-bottom: 0.85rem;
}

.k-field--hidden,
.k-field--hidden[hidden] {
  display: none !important;
}

.k-field__req {
  color: #b42318;
  font-weight: 600;
  font-size: 0.75rem;
}

.k-market-hint {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #f6f8fb;
  border: 1px solid #e5e7eb;
  color: var(--k-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.k-market-hint--investment {
  background: #f0f7ff;
  border-color: #c7ddff;
}

.k-form__checks--wrap {
  flex-wrap: wrap;
}

.k-detail-meta {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid #e5e7eb;
  list-style: none;
  line-height: 1.55;
  color: var(--r-ink-soft);
}

.k-detail-meta li + li {
  margin-top: 0.35rem;
}

.k-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--r-ink);
  overflow-wrap: anywhere;
}

.k-listing-form .k-field__control,
.k-listing-form .k-stepper,
.k-listing-form .k-input-affix,
.k-listing-form .k-input-group,
.k-listing-form .k-segment {
  max-width: 100%;
  box-sizing: border-box;
}

.k-listing-form .k-field__control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.85rem;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-family: var(--r-font);
  font-size: 0.9375rem;
  background: #fff;
  color: var(--r-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}

.k-listing-form .k-field__control:hover {
  border-color: #bfbfbf;
}

.k-listing-form .k-field__control:focus {
  outline: none;
  border-color: var(--r-ink);
  box-shadow: 0 0 0 2px rgb(17 24 39 / 0.08);
}

.k-field__control--area {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.55;
}

.k-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.k-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.k-stepper:hover {
  border-color: #bfbfbf;
}

.k-stepper:focus-within {
  border-color: var(--r-ink);
  box-shadow: 0 0 0 2px rgb(17 24 39 / 0.08);
}

.k-stepper__btn {
  flex: 0 0 2.25rem;
  min-width: 2.25rem;
  border: none;
  background: #fafafa;
  color: var(--r-ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.k-stepper__btn:hover:not(:disabled) {
  background: #f0f0f0;
  color: #000;
}

.k-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.k-stepper__input {
  flex: 1;
  min-width: 0;
  border: none;
  border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--r-font);
  background: #fff;
  color: var(--r-ink);
  padding: 0.55rem 0.35rem;
}

.k-stepper__input:focus {
  outline: none;
}

.k-stepper.is-empty .k-stepper__input {
  color: var(--k-muted);
  font-weight: 500;
}

.k-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.15rem;
  align-items: start;
  min-width: 0;
}

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

@media (max-width: 640px) {
  .k-spec-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
}

.k-input-affix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.k-input-affix:hover {
  border-color: #bfbfbf;
}

.k-input-affix:focus-within {
  border-color: var(--r-ink);
  box-shadow: 0 0 0 2px rgb(17 24 39 / 0.08);
}

.k-input-affix .k-field__control {
  padding-right: 0.85rem;
}

.k-input-affix .k-field__control--plain {
  border: none;
  box-shadow: none;
  background: transparent;
  min-width: 0;
}

.k-input-affix .k-field__control--plain:focus {
  box-shadow: none;
}

.k-input-affix__suffix {
  position: static;
  transform: none;
  padding-right: 0.85rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--k-muted);
  pointer-events: none;
}

.k-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.k-input-group:hover {
  border-color: #bfbfbf;
}

.k-input-group:focus-within {
  border-color: var(--r-ink);
  box-shadow: 0 0 0 2px rgb(17 24 39 / 0.08);
}

.k-input-group__addon {
  flex: 0 0 auto;
  border: none;
  border-right: 1px solid #f0f0f0;
  border-radius: 0;
  background: #fafafa;
  padding: 0.62rem 0.75rem;
  font-weight: 600;
  min-width: 4.5rem;
}

.k-input-group__input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.62rem 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--r-font);
  background: transparent;
  color: var(--r-ink);
}

.k-input-group__input:focus {
  outline: none;
}

.k-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.k-segment__item {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.k-segment__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.k-segment__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--r-ink);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.k-segment__item:hover span {
  border-color: #bfbfbf;
}

.k-segment__item.is-active span,
.k-segment__item input:checked + span {
  background: var(--r-ink);
  border-color: var(--r-ink);
  color: #fff;
}

.k-form-card--price {
  background: var(--r-surface);
  border-color: var(--r-line);
}

.k-form-card--specs {
  padding-bottom: 1rem;
}

.k-form-card--specs .k-form__checks--chips {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--r-line);
}

.k-photo-drop {
  border-color: rgb(17 24 39 / 0.18);
  background: linear-gradient(180deg, rgb(17 24 39 / 0.03) 0%, rgb(255 255 255 / 0.85) 100%);
}

.k-photo-drop:hover,
.k-photo-drop.is-dragover {
  border-color: var(--r-ink);
  background: rgb(17 24 39 / 0.04);
}

.k-form-card {
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: 18px;
  padding: 1.35rem 1.45rem 0.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--r-shadow-sm);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 640px) {
  .k-form-card {
    padding: 1rem 0.95rem 0.25rem;
    border-radius: 14px;
    margin-bottom: 1rem;
  }

  .k-form-card__head p {
    margin-bottom: 0.85rem;
  }
}

.k-form-card--accent {
  background: linear-gradient(180deg, rgb(45 90 135 / 0.06) 0%, var(--r-surface) 100%);
  border-color: rgb(45 90 135 / 0.18);
}

.k-form-card--photos {
  padding-bottom: 1.1rem;
}

.k-form-card__head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--r-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--r-ink);
}

.k-form-card__head p {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--k-muted);
  line-height: 1.5;
}

.k-form__grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.k-form__grid--stack {
  grid-template-columns: 1fr;
}

.k-form__checks--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.k-form__checks--chips .k-form__check {
  padding: 0.45rem 0.85rem;
  max-width: 100%;
  flex: 0 1 auto;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  background: var(--r-surface-subtle);
  transition: background 0.2s, border-color 0.2s;
}

@media (max-width: 640px) {
  .k-form__checks--chips .k-form__check {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: min(100%, 9.5rem);
    font-size: 0.8125rem;
  }

  .k-form__checks--wrap .k-form__check {
    flex: 1 1 100%;
  }
}

.k-form__checks--chips .k-form__check:has(input:checked) {
  background: rgb(45 90 135 / 0.08);
  border-color: rgb(45 90 135 / 0.35);
}

.k-form-sticky {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 1rem 0 0.25rem;
  background: linear-gradient(180deg, rgb(248 249 251 / 0) 0%, var(--r-surface-subtle) 35%);
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  .k-form-sticky {
    flex-direction: column-reverse;
    align-items: stretch;
    padding-bottom: 0.5rem;
  }

  .k-form-sticky .k-btn {
    width: 100%;
    justify-content: center;
  }

  .k-form-hero__lead {
    font-size: 0.875rem;
  }

  .k-type-tabs {
    gap: 0.4rem;
  }

  .k-type-tab {
    flex: 1 1 auto;
    text-align: center;
    padding-inline: 0.75rem;
  }

  .k-segment__item span {
    min-width: 2rem;
    height: 2rem;
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }

  .k-input-group__addon {
    min-width: 3.75rem;
    padding-inline: 0.55rem;
    font-size: 0.875rem;
  }

  .k-form__mode-options {
    flex-direction: column;
    align-items: stretch;
  }

  .k-form__mode-option {
    justify-content: center;
  }
}

.k-btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
}

.k-photo-uploader {
  display: grid;
  gap: 1rem;
}

.k-photo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 180px;
  padding: 1.5rem;
  border: 2px dashed rgb(45 90 135 / 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(45 90 135 / 0.04) 0%, rgb(255 255 255 / 0.6) 100%);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.k-photo-drop:hover,
.k-photo-drop.is-dragover {
  border-color: var(--k-brand-mid);
  background: rgb(45 90 135 / 0.07);
}

.k-photo-drop--compact {
  min-height: 96px;
}

.k-photo-drop__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--r-ink);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 300;
}

.k-photo-drop__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--r-ink);
}

.k-photo-drop__hint {
  font-size: 0.78rem;
  color: var(--k-muted);
  text-align: center;
}

.k-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.k-photo-thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--r-line);
  background: #eef1f5;
}

.k-photo-thumb.is-cover {
  box-shadow: 0 0 0 2px var(--k-accent);
}

.k-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.k-photo-thumb__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.72);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.k-photo-thumb__actions {
  position: absolute;
  inset: auto 0.35rem 0.35rem 0.35rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.k-photo-thumb:hover .k-photo-thumb__actions {
  opacity: 1;
}

.k-photo-thumb__btn {
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: var(--r-ink);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
}

.k-photo-thumb__btn--remove {
  font-size: 1.15rem;
}

.k-photo-add {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed rgb(45 90 135 / 0.25);
  border-radius: 14px;
  background: var(--r-surface-subtle);
  color: var(--k-brand-mid);
  font-size: 1.75rem;
  font-weight: 300;
  cursor: pointer;
}

.k-photo-status {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--k-brand-mid);
}

.k-photo-status--error {
  color: #b42318;
}

.k-table__thumb {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--r-line);
  display: block;
  background: #eef1f5;
}

.k-table__thumb--empty {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--k-muted);
}

/* Admin listing form  intl phone + flag country picker */
#listingForm .k-field--phone .iti,
.k-contact-form .k-field--phone .iti {
  width: 100%;
  display: block;
}

#listingForm .k-field--phone .iti--separate-dial-code,
.k-contact-form .k-field--phone .iti--separate-dial-code {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-sm, 10px);
  background: var(--r-surface);
  overflow: hidden;
}

#listingForm .k-field--phone .iti--separate-dial-code:focus-within,
.k-contact-form .k-field--phone .iti--separate-dial-code:focus-within {
  border-color: var(--r-accent, #1a1a1a);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.08);
}

#listingForm .k-field--phone .iti__flag-container,
.k-contact-form .k-field--phone .iti__flag-container {
  z-index: 2;
}

#listingForm .k-field--phone .iti--separate-dial-code input,
.k-contact-form .k-field--phone .iti--separate-dial-code input {
  flex: 1;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.85rem;
  border: none;
  border-radius: 0;
  font: inherit;
  background: transparent;
}

#listingForm .k-field--phone .iti__selected-dial-code,
.k-contact-form .k-field--phone .iti__selected-dial-code {
  display: inline-block;
  margin-left: 0.35rem;
  padding-right: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--r-ink);
  white-space: nowrap;
}

#listingForm .k-field--phone .iti--separate-dial-code .iti__selected-flag,
.k-contact-form .k-field--phone .iti--separate-dial-code .iti__selected-flag {
  background: var(--r-surface-subtle, #f5f5f5);
  border-right: 1px solid var(--r-line);
  padding-right: 0.5rem;
}

.k-field--phone {
  position: relative;
  overflow: visible;
}

.k-field--phone:focus-within {
  z-index: 30;
}

/* Contact CMS  fixed dial prefix from Paνs select (not intl-tel dropdown) */
.k-phone-inline {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-sm, 10px);
  background: var(--r-surface);
  overflow: visible;
}

.k-phone-inline:focus-within {
  border-color: var(--r-accent, #1a1a1a);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.08);
}

.k-form-card:has(.evapp-country-ui),
.k-form-card:has(.k-phone-country),
.k-field:has(.evapp-country-ui),
.k-field:has(.k-phone-inline) {
  overflow: visible;
}

.k-field:has(.evapp-country-ui),
.k-field:has(.k-phone-inline) {
  position: relative;
  z-index: 1;
}

.k-phone-country {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  border-right: 1px solid var(--r-line);
  background: var(--r-surface-subtle, #f5f5f5);
}

.k-phone-country__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 3.25rem;
  padding: 0 0.45rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--r-ink);
  position: relative;
  z-index: 2;
}

.k-phone-country__trigger:hover {
  background: rgb(0 0 0 / 0.04);
}

.k-phone-country__flag.fi {
  width: 1.35em;
  line-height: 1;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.k-phone-country.is-empty .k-phone-country__flag.fi-xx {
  opacity: 0.55;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
}

.k-phone-country__chev {
  font-size: 0.55rem;
  opacity: 0.55;
  line-height: 1;
}

.k-phone-country__dropdown,
.evapp-country-ui__dropdown.evapp-country-ui__dropdown--portal {
  position: absolute;
  z-index: 10050;
  left: 0;
  top: calc(100% + 4px);
  min-width: 11rem;
  max-height: min(220px, 45vh);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--r-line);
  background: var(--r-surface);
  box-shadow: var(--r-shadow-md);
}

.k-phone-country__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  max-height: min(212px, 43vh);
  overflow-y: auto;
}

.k-phone-country__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--r-ink);
}

.k-phone-country__item:hover {
  background: var(--r-surface-subtle);
}

.k-phone-country__opt-flag.fi {
  width: 1.25em;
  flex-shrink: 0;
  border-radius: 2px;
}

.k-phone-inline__prefix {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  padding: 0.625rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--r-ink);
  background: var(--r-surface-subtle, #f5f5f5);
  border-right: 1px solid var(--r-line);
  white-space: nowrap;
  user-select: none;
}

.k-phone-inline__prefix[hidden] {
  display: none !important;
}

.k-phone-inline--no-country .k-phone-inline__input {
  color: var(--r-ink);
}

.k-phone-inline--no-country .k-phone-inline__input::placeholder {
  color: var(--r-muted);
}

#listingForm .k-phone-inline input[type="tel"],
#listingForm .k-phone-inline .k-phone-inline__input,
#panelContactCms .k-phone-inline input[type="tel"],
#panelContactCms .k-phone-inline .k-phone-inline__input,
.k-contact-form .k-phone-inline input[type="tel"],
.k-contact-form .k-phone-inline .k-phone-inline__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.75rem;
  width: auto;
  max-width: 100%;
  padding: 0.625rem 0.85rem;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
  font: inherit;
  color: var(--r-ink);
  cursor: text;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  -webkit-user-select: text;
  user-select: text;
}

#listingForm .k-form-layout__rail .k-form-card:has(.k-phone-inline) {
  overflow: visible;
}

#listingForm .k-field--phone-inline .iti,
#panelContactCms .k-field--phone-inline .iti,
.k-contact-form .k-field--phone-inline .iti {
  display: none !important;
}

#listingForm .k-field--phone-inline,
#panelContactCms .k-field--phone-inline,
.k-contact-form .k-field--phone-inline {
  min-width: 0;
  overflow: visible;
}

#panelContactCms .k-form,
#panelContactCms .k-form--contact-cms,
#listingForm {
  overflow: visible;
}

#panelContactCms .k-form--contact-cms {
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--r-shadow-sm);
  min-width: 0;
  max-width: 100%;
}

#panelContactCms .k-field--address,
#panelContactCms .k-address-autocomplete {
  overflow: visible;
}

#panelContactCms .k-address-suggest {
  z-index: 50;
}

#panelContactCms .k-field--map {
  margin-top: 0.5rem;
}

#panelBlogForm,
#panelContactCms,
#panelUsers {
  min-width: 0;
  max-width: 100%;
}

#panelBlogForm .k-form,
#panelUsers .k-form {
  overflow-x: clip;
  overflow-y: visible;
}

.k-blog-form {
  min-width: 0;
  max-width: 100%;
}

.k-blog-form .k-field {
  min-width: 0;
}

.k-blog-form textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.k-field--nested {
  margin-top: 0.75rem;
}

.k-field--optional {
  min-width: 0;
  max-width: 100%;
}

.k-field--optional summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--r-ink-soft);
  margin-bottom: 0.35rem;
}

.k-field--optional[open] summary {
  margin-bottom: 0.5rem;
}

.k-blog-form .k-cover-upload,
.k-blog-form .k-photo-drop,
.k-blog-form .k-photo-grid {
  max-width: 100%;
  min-width: 0;
}

.k-blog-form .k-photo-drop__hint {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

@media (max-width: 640px) {
  .k-blog-form .k-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .k-blog-form .k-form__actions .k-btn {
    width: 100%;
    justify-content: center;
  }
}

body.k-page--admin .iti--container {
  z-index: 10050;
}

body.k-page--admin .iti__country-list {
  z-index: 10051;
  max-height: min(260px, 50vh);
  border-radius: 10px;
  box-shadow: var(--r-shadow-md);
  border: 1px solid var(--r-line);
}

.k-cover-upload {
  border: 1px dashed var(--r-line);
  border-radius: var(--r-radius-sm, 10px);
  padding: 1rem;
  background: var(--r-surface-subtle);
}

.k-cover-upload__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.k-cover-upload__preview {
  position: relative;
  margin: 0;
  max-width: 320px;
}

.k-cover-upload__preview img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--r-line);
}

.k-cover-upload__preview .k-photo-thumb__btn--remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.k-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.k-contact-phone__flag {
  width: 1.25rem;
  line-height: 1;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.k-hours-picker {
  padding: 1rem 1.1rem;
  background: var(--r-surface-alt, #f8f9fb);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-md, 12px);
}

.k-hours-picker__preview {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--r-ink-soft);
  line-height: 1.5;
}

.k-hours-picker__split {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--r-ink);
  cursor: pointer;
}

.k-hours-picker__split input {
  margin-top: 0.15rem;
}

.k-hours-picker__split-row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--r-line);
}

.k-select--time,
.k-select--hours {
  min-height: 2.75rem;
  font-variant-numeric: tabular-nums;
}

#listingForm .evapp-country-ui__trigger.k-field__control,
#panelContactCms .evapp-country-ui__trigger {
  width: 100%;
  min-height: 2.75rem;
}

#listingForm .evapp-country-ui__dropdown,
#panelContactCms .evapp-country-ui__dropdown {
  z-index: 30;
}

/* Static pages (contact, tasaciσn, blog)  clear fixed header */
.k-page--static #pageRoot.k-section--band {
  padding-top: calc(var(--k-nav-height) + clamp(1.5rem, 4vw, 2.5rem));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.k-page--stays > .k-section.k-section--band {
  padding-top: calc(var(--k-nav-height) + clamp(1.5rem, 4vw, 2.5rem));
}

.k-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.5rem;
  align-items: start;
}

.k-contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.k-contact-form__section + .k-contact-form__section {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--r-line);
}

.k-contact-form__section-title {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--r-muted);
}

.k-contact-form__row {
  display: grid;
  gap: 0.85rem;
}

.k-contact-form__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .k-contact-form__row--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.k-contact-form__footer {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--r-line);
}

.k-contact-form__footer .k-marketing-consent-block {
  margin-bottom: 1rem;
}

.k-contact-form__submit {
  width: 100%;
}

.k-contact-page__aside {
  display: grid;
  gap: 1rem;
}

.k-contact-page__aside-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--r-ink);
}

.k-contact-page__steps {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--r-ink-soft);
  line-height: 1.55;
}

.k-contact-page__steps li + li {
  margin-top: 0.45rem;
}

.k-contact-page__office .k-contact-map {
  margin-top: 0.85rem;
}

@media (max-width: 900px) {
  .k-contact__grid,
  .k-contact-page__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.k-contact-form .k-field {
  margin-bottom: 1rem;
}

.k-contact-form .k-field > label,
.k-contact-aside strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.k-contact-form input:not([type="checkbox"]):not([type="radio"]),
.k-contact-form textarea,
.k-contact-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-sm, 10px);
  font: inherit;
  box-sizing: border-box;
  background: #fff;
}

.k-contact-form textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.55;
}

.k-contact-form__status--ok {
  color: #067647;
}

.k-contact-form__status--err {
  color: #b42318;
}

.k-contact-aside__row {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.k-contact-aside__row span,
.k-contact-aside__row a {
  display: block;
  color: var(--r-ink-soft);
}

.k-contact-map {
  height: 220px;
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  border: 1px solid var(--r-line);
  margin-top: 0.5rem;
}

.k-contact-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.k-contact-highlight {
  padding: 1.25rem;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-lg);
}

.k-contact-highlight h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.k-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.k-blog-card {
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  background: var(--r-surface);
  box-shadow: var(--r-shadow-sm);
}

.k-blog-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.k-blog-card__img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}

.k-blog-card__body {
  padding: 1rem 1.15rem 1.25rem;
}

.k-blog-card__body time {
  font-size: 0.75rem;
  color: var(--r-muted);
}

.k-blog-card__body h2 {
  margin: 0.35rem 0;
  font-size: 1.125rem;
}

.k-blog-post__back {
  margin-bottom: 1rem;
}

.k-blog-post__header time {
  display: block;
  font-size: 0.875rem;
  color: var(--r-ink-muted);
  margin-bottom: 0.5rem;
}

.k-blog-post__header h1 {
  margin: 0 0 0.75rem;
}

.k-blog-post__excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--r-ink-soft);
  max-width: 65ch;
  margin: 0 0 1.5rem;
}

.k-blog-post__gallery {
  margin: 0 0 2rem;
  max-width: 960px;
}

.k-blog-post__gallery .k-gallery {
  border-radius: var(--r-radius-lg);
  overflow: hidden;
}

.k-blog-post__cover {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-radius-lg);
  margin: 1rem 0 1.5rem;
}

.k-blog-post__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 65ch;
  color: var(--r-ink-soft);
}

.k-field--address {
  position: relative;
  overflow: visible;
}

.k-address-autocomplete {
  position: relative;
}

.k-address-suggest {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: min(280px, 40vh);
  overflow: auto;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-sm, 10px);
  box-shadow: var(--r-shadow-md);
}

.k-address-suggest__item {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: none;
  border-bottom: 1px solid var(--r-line);
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--r-ink);
  cursor: pointer;
}

.k-address-suggest__item:last-child {
  border-bottom: none;
}

.k-address-suggest__item:hover,
.k-address-suggest__item:focus-visible {
  background: var(--r-surface-subtle, #f5f5f5);
}

/*  Country flag in admin tables  */
.k-table-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.k-table-flag .fi {
  width: 1.25rem;
  line-height: 1;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(10 13 18 / 0.08);
}

.k-table-flag__code {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--r-muted);
}

/*  Marketing consent (RGPD / LOPDP / U.S.)  */
.k-marketing-consent-block {
  clear: both;
  margin: 0.25rem 0 1.35rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--r-line);
}

.k-check,
.k-marketing-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--r-ink);
}

.k-check input[type="checkbox"],
.k-marketing-consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--r-accent, #0f766e);
}

.k-marketing-consent > span,
.k-check > span {
  flex: 1;
  min-width: 0;
}

.k-marketing-consent {
  align-items: flex-start;
}

.k-marketing-consent__hint {
  margin: 0.5rem 0 0;
  padding-left: calc(1.05rem + 0.65rem);
  font-size: 0.8125rem;
  color: var(--r-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  align-items: baseline;
  line-height: 1.5;
}

.k-viewing-form .k-marketing-consent-block {
  margin-bottom: 1rem;
}

.k-viewing-form .k-marketing-consent {
  margin-bottom: 0;
}

.k-contact-form .k-marketing-consent-block + .k-btn,
.k-contact-form__footer .k-marketing-consent-block + .k-btn,
.k-tasacion-page__form .k-marketing-consent-block + .k-btn {
  margin-top: 0;
}

.k-marketing-consent__link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: inherit;
  color: var(--r-accent, #0f766e);
  text-decoration: underline;
  cursor: pointer;
}

.k-marketing-consent__link:hover {
  color: var(--r-ink, #0f172a);
}

body.k-marketing-modal-open {
  overflow: hidden;
}

.k-marketing-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.k-marketing-modal[hidden] {
  display: none !important;
}

.k-marketing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.58);
  backdrop-filter: blur(4px);
}

.k-marketing-modal__dialog {
  position: relative;
  width: min(100%, 640px);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.k-marketing-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 1;
}

.k-marketing-modal__head h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.k-marketing-modal__close {
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--r-muted, #64748b);
  flex-shrink: 0;
}

.k-marketing-modal__body {
  padding: 1rem 1.25rem 1.35rem;
}

.k-marketing-modal__text {
  color: var(--r-ink-soft, #475569);
  font-size: 0.92rem;
  line-height: 1.6;
}

.k-marketing-modal__text p {
  margin: 0;
}

.k-marketing-modal__text p + p {
  margin-top: 0.85rem;
}

/*  Dedicated tasaciσn page  */
.k-tasacion-page__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .k-tasacion-page__grid {
    grid-template-columns: 1fr;
  }
}

.k-tasacion-page__aside-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--r-ink);
}

.k-tasacion-page__steps {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--r-ink-soft);
  line-height: 1.55;
}

.k-tasacion-page__steps li + li {
  margin-top: 0.45rem;
}

/*  Internal feature dossier (URL-only)  */
.k-page--dossier .k-dossier-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--r-surface-band) 0%, var(--r-surface) 100%);
  border-bottom: 1px solid var(--r-line);
}

.k-dossier-hero__lead {
  max-width: 42rem;
  color: var(--r-ink-soft);
  margin-top: 0.75rem;
}

.k-dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
}

.k-dossier-feature {
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--r-shadow-sm);
}

.k-dossier-feature__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-blue, #0066eb);
  margin: 0 0 0.35rem;
}

.k-dossier-feature h2 {
  margin: 0 0 0.5rem;
  font-family: var(--r-display);
  letter-spacing: -0.03em;
}

.k-dossier-feature__lead {
  margin: 0 0 0.75rem;
  color: var(--r-ink-soft);
  line-height: 1.55;
}

.k-dossier-feature__list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--r-ink-soft);
  font-size: 0.9375rem;
}

.k-dossier-feature__shot {
  margin: 0;
  border-radius: var(--r-radius);
  overflow: hidden;
  border: 1px solid var(--r-line);
}

.k-dossier-feature__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.k-location-map {
  height: 220px;
  border-radius: var(--r-radius-lg);
  border: 1px solid var(--r-line);
  overflow: hidden;
}

.k-location-tools {
  margin-top: 0.5rem;
}

.k-location-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.k-chip--suggest {
  font-size: 0.75rem;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.k-form__hint--ok {
  color: #067647;
}

.k-form__hint--err {
  color: #b42318;
}

.k-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}

/*  Admin contact ticket inbox  */
.k-contact-inbox {
  margin-bottom: 1.5rem;
}

.k-contact-inbox__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.k-contact-inbox__layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  min-height: 420px;
}

@media (max-width: 960px) {
  .k-contact-inbox__layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
}

.k-contact-inbox__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 520px;
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--k-line, var(--r-line));
  border-radius: var(--r-radius-sm, 10px);
  background: #fafbfc;
}

.k-contact-ticket {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.k-contact-ticket:hover {
  border-color: rgb(45 90 135 / 0.18);
}

.k-contact-ticket.is-active {
  border-color: var(--k-brand-mid, #2d5a87);
  box-shadow: 0 0 0 1px rgb(45 90 135 / 0.12);
}

.k-contact-ticket.is-unread {
  border-left: 3px solid var(--k-brand-mid, #2d5a87);
}

.k-contact-ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.k-contact-ticket__id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--k-brand-mid, #2d5a87);
}

.k-contact-ticket__name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.k-contact-ticket__preview {
  font-size: 0.8125rem;
  color: var(--k-muted, var(--r-muted));
  line-height: 1.45;
}

.k-contact-ticket__meta {
  font-size: 0.75rem;
  color: var(--k-muted, var(--r-muted));
}

.k-contact-inbox__detail {
  border: 1px solid var(--k-line, var(--r-line));
  border-radius: var(--r-radius-sm, 10px);
  background: #fff;
  padding: 1rem 1.15rem;
  min-height: 320px;
}

.k-contact-inbox__detail-empty {
  color: var(--k-muted, var(--r-muted));
  margin: 2rem 0;
  text-align: center;
}

.k-contact-ticket-detail__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--k-line, var(--r-line));
}

.k-contact-ticket-detail__title {
  margin: 0;
  font-size: 1.05rem;
}

.k-contact-ticket-detail__facts {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.k-contact-ticket-detail__facts div {
  display: grid;
  gap: 0.15rem;
}

.k-contact-ticket-detail__facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--k-muted, var(--r-muted));
}

.k-contact-ticket-detail__facts dd {
  margin: 0;
  font-size: 0.9375rem;
}

.k-contact-ticket-detail__message {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--k-line, var(--r-line));
  white-space: pre-wrap;
  line-height: 1.55;
}

.k-badge--ticket-new {
  background: rgb(45 90 135 / 0.12);
  color: var(--k-brand-mid, #2d5a87);
}

.k-badge--ticket-read {
  background: rgb(102 112 133 / 0.12);
  color: #667085;
}
