/* KyiteZay — rising-sun marketplace skin (loaded after style.css) */

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

:root {
  --kz-bg: #fff8f1;
  --kz-bg-deep: #ffe8cc;
  --kz-surface: #ffffff;
  --kz-ink: #1c1917;
  --kz-muted: #6b5e54;
  --kz-line: #f0d9c0;
  --kz-brand: #ff6a00;
  --kz-brand-dark: #e85d00;
  --kz-brand-deep: #c2410c;
  --kz-sun: #ffb703;
  --kz-sun-soft: #fff1d6;
  --kz-coral: #ff8c42;
  --kz-header: #fff7ed;
  --kz-header-ink: #1c1917;
  --kz-footer: #2a1810;
  --kz-footer-ink: rgba(255, 247, 237, 0.88);
  --kz-link: #c2410c;
  --kz-link-hover: #ff6a00;
  --kz-shadow: 0 12px 32px rgba(194, 65, 12, 0.12);
  --kz-radius: 14px;
  --kz-font: 'Outfit', sans-serif;
  --kz-display: 'Sora', 'Outfit', sans-serif;

  /* remap stock Flynax blues → rising sun */
  --kz-blue: var(--kz-brand);
  --kz-blue-dark: var(--kz-brand-dark);
  --kz-blue-deep: var(--kz-brand-deep);
  --kz-blue-soft: var(--kz-sun-soft);
  --kz-yellow: var(--kz-sun);
}

/* —— Base —— */
body.kyitezay-theme {
  font-family: var(--kz-font);
  color: var(--kz-ink);
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(255, 183, 3, 0.28), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(255, 106, 0, 0.16), transparent 52%),
    linear-gradient(180deg, #fffaf4 0%, var(--kz-bg) 42%, #ffe8cc 100%);
  background-attachment: fixed;
}

body.kyitezay-theme a {
  color: var(--kz-link);
}

body.kyitezay-theme a:hover {
  color: var(--kz-link-hover);
}

/* —— Header / navigation (readable menus) —— */
body.kyitezay-theme header.page-header {
  background: transparent;
}

body.kyitezay-theme header.page-header div.top-navigation {
  background: linear-gradient(180deg, #fffdf9 0%, var(--kz-header) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kz-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--kz-header-ink);
}

body.kyitezay-theme header.page-header div.top-navigation.kz-nav-scrolled {
  background: rgba(255, 253, 249, 0.97);
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.1);
}

/* Override stock blue header bar */
body.kyitezay-theme header.page-header:not(.main-menu-hidden) div.top-navigation,
body.kyitezay-theme header.page-header div.top-navigation {
  background: linear-gradient(180deg, #fffdf9 0%, var(--kz-header) 100%) !important;
}

body.kyitezay-theme #logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
}

body.kyitezay-theme #logo img {
  display: none;
}

body.kyitezay-theme #logo .kz-wordmark {
  font-family: var(--kz-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--kz-ink);
}

body.kyitezay-theme #logo .kz-wordmark span {
  color: var(--kz-brand);
}

/* Main menu links — high contrast on light header */
body.kyitezay-theme .main-menu .menu > div > a,
body.kyitezay-theme .main-menu a,
body.kyitezay-theme nav.main-menu a {
  color: var(--kz-header-ink) !important;
  font-weight: 600;
}

body.kyitezay-theme .main-menu .menu > div > a:hover,
body.kyitezay-theme .main-menu .menu > div > a.active,
body.kyitezay-theme .main-menu a:hover,
body.kyitezay-theme .main-menu a.active {
  color: var(--kz-brand) !important;
}

body.kyitezay-theme .main-menu span.menu-button,
body.kyitezay-theme .main-menu span.menu-button > span {
  color: var(--kz-header-ink) !important;
  background: var(--kz-sun-soft);
  border-color: var(--kz-line);
}

body.kyitezay-theme .main-menu span.menu-button > svg,
body.kyitezay-theme .main-menu span.menu-button svg path {
  fill: var(--kz-brand) !important;
  stroke: var(--kz-brand);
}

/* User / account icons in header */
body.kyitezay-theme .top-user-navigation a,
body.kyitezay-theme .user-navbar a,
body.kyitezay-theme .top-user-navigation .circle,
body.kyitezay-theme header.page-header .lang-selector a {
  color: var(--kz-header-ink) !important;
}

body.kyitezay-theme .header-usernav-icon-fill,
body.kyitezay-theme .circle > .default svg path,
body.kyitezay-theme .circle > .default svg [fill] {
  fill: var(--kz-brand) !important;
}

body.kyitezay-theme .circle_opened .header-usernav-icon-fill {
  fill: var(--kz-sun) !important;
}

/* Sell CTA */
body.kyitezay-theme .main-menu .button.add-property,
body.kyitezay-theme a.button.add-property {
  background: linear-gradient(135deg, var(--kz-brand) 0%, #ff8c42 55%, var(--kz-sun) 140%) !important;
  border-color: var(--kz-brand) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.15rem !important;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.kyitezay-theme .main-menu .button.add-property:hover,
body.kyitezay-theme a.button.add-property:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(255, 106, 0, 0.4);
  color: #fff !important;
}

/* Mobile menu drawer */
body.kyitezay-theme .mobile-menu,
body.kyitezay-theme .mobile-menu__nav,
body.kyitezay-theme .mobile-menu a {
  color: var(--kz-ink) !important;
  background: var(--kz-surface);
}

body.kyitezay-theme .mobile-menu a:hover,
body.kyitezay-theme .mobile-menu a.active {
  color: var(--kz-brand) !important;
  background: var(--kz-sun-soft);
}

/* —— Hero (home) —— */
body.kyitezay-theme.home-page header.page-header section.header-nav {
  min-height: min(72vh, 560px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(42, 24, 16, 0.45), rgba(255, 106, 0, 0.42) 55%, rgba(255, 183, 3, 0.35)),
    url('../img/kz-hero.jpg') center/cover no-repeat;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

body.kyitezay-theme.home-page header.page-header section.header-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(42, 24, 16, 0.28) 100%);
  pointer-events: none;
}

body.kyitezay-theme.home-page .kz-hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  animation: kz-rise 0.7s ease both;
}

body.kyitezay-theme.home-page .kz-hero-copy h1 {
  font-family: var(--kz-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 3rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.55rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

body.kyitezay-theme.home-page .kz-hero-copy p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.94);
}

body.kyitezay-theme.home-page section.horizontal-search {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  animation: kz-rise 0.85s 0.08s ease both;
}

body.kyitezay-theme section.horizontal-search .cd-form {
  background: var(--kz-surface);
  border-radius: 999px;
  padding: 0.4rem;
  box-shadow: var(--kz-shadow);
  border: 1px solid rgba(255, 255, 255, 0.75);
  gap: 0.35rem;
}

body.kyitezay-theme section.horizontal-search input.tags-autocomplete,
body.kyitezay-theme section.horizontal-search select.cd-dropdown,
body.kyitezay-theme section.horizontal-search input[type='text'] {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 999px !important;
  padding-left: 1rem !important;
  color: var(--kz-ink) !important;
}

body.kyitezay-theme section.horizontal-search input[type='submit'] {
  background: linear-gradient(135deg, var(--kz-brand), var(--kz-coral)) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 0.7rem 1.4rem !important;
  min-width: 6.5rem;
}

body.kyitezay-theme section.horizontal-search input[type='submit']:hover {
  filter: brightness(1.06);
  transform: scale(1.02);
}

@media (max-width: 767px) {
  body.kyitezay-theme section.horizontal-search .cd-form {
    border-radius: var(--kz-radius);
    flex-direction: column;
  }
  body.kyitezay-theme section.horizontal-search input[type='submit'] {
    width: 100%;
  }
}

/* Non-home header search strip */
body.kyitezay-theme:not(.home-page) header.page-header section.header-nav {
  background: linear-gradient(120deg, #ff8c42 0%, var(--kz-brand) 45%, var(--kz-sun) 100%) !important;
  border-bottom: none;
}

body.kyitezay-theme:not(.home-page) section.header-nav .cd-form,
body.kyitezay-theme:not(.home-page) section.horizontal-search .cd-form {
  background: #fff;
}

/* —— Buttons / forms (sitewide) —— */
body.kyitezay-theme input[type='submit']:not(.cancel),
body.kyitezay-theme button[type='submit'],
body.kyitezay-theme a.button:not(.add-property),
body.kyitezay-theme .button:not(.add-property):not(.cancel),
body.kyitezay-theme input.button:not(.cancel) {
  background: linear-gradient(135deg, var(--kz-brand), var(--kz-coral)) !important;
  border-color: var(--kz-brand) !important;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
}

body.kyitezay-theme input[type='submit']:not(.cancel):hover,
body.kyitezay-theme button[type='submit']:hover,
body.kyitezay-theme a.button:not(.add-property):hover,
body.kyitezay-theme .button:not(.add-property):not(.cancel):hover {
  background: var(--kz-brand-dark) !important;
  border-color: var(--kz-brand-dark) !important;
  color: #fff !important;
}

body.kyitezay-theme input[type='text'],
body.kyitezay-theme input[type='email'],
body.kyitezay-theme input[type='password'],
body.kyitezay-theme input[type='number'],
body.kyitezay-theme input[type='tel'],
body.kyitezay-theme input[type='search'],
body.kyitezay-theme input[type='url'],
body.kyitezay-theme textarea,
body.kyitezay-theme select,
body.kyitezay-theme .select2-container .select2-selection--single {
  border-color: var(--kz-line) !important;
  background: var(--kz-surface) !important;
  color: var(--kz-ink) !important;
  border-radius: 10px;
}

body.kyitezay-theme input:focus,
body.kyitezay-theme textarea:focus,
body.kyitezay-theme select:focus,
body.kyitezay-theme .select2-container--open .select2-selection--single,
body.kyitezay-theme .select2-container:not(.select2-container--disabled) .select2-selection--single:focus {
  border-color: var(--kz-brand) !important;
  background-color: var(--kz-sun-soft) !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}

body.kyitezay-theme .select2-container--default .select2-results__option--highlighted[aria-selected],
body.kyitezay-theme .select2-results__option--highlighted {
  background: var(--kz-brand) !important;
  color: #fff !important;
}

body.kyitezay-theme label,
body.kyitezay-theme .field .name,
body.kyitezay-theme .submit-cell > div.name {
  color: var(--kz-ink);
}

/* Checkbox / radio accents */
body.kyitezay-theme input[type='checkbox']:checked,
body.kyitezay-theme input[type='radio']:checked {
  accent-color: var(--kz-brand);
}

/* —— Boxes / widgets / sidebars —— */
body.kyitezay-theme .side_block,
body.kyitezay-theme .block,
body.kyitezay-theme .sidebar .block,
body.kyitezay-theme #controller_area .block,
body.kyitezay-theme .content-padding .block,
body.kyitezay-theme .box,
body.kyitezay-theme .widget,
body.kyitezay-theme .search-block,
body.kyitezay-theme .refine-search,
body.kyitezay-theme .keyword-search {
  background: var(--kz-surface);
  border: 1px solid var(--kz-line);
  border-radius: var(--kz-radius);
  box-shadow: 0 2px 0 rgba(194, 65, 12, 0.04);
}

body.kyitezay-theme .side_block > .header,
body.kyitezay-theme .block > header,
body.kyitezay-theme .block > .header,
body.kyitezay-theme .box > .header,
body.kyitezay-theme .side_block h3,
body.kyitezay-theme .block h3,
body.kyitezay-theme .sidebar .header,
body.kyitezay-theme .block-header {
  background: linear-gradient(90deg, var(--kz-sun-soft), #fff) !important;
  color: var(--kz-brand-deep) !important;
  border-bottom: 1px solid var(--kz-line);
  font-family: var(--kz-display);
  font-weight: 700;
}

body.kyitezay-theme .side_block a,
body.kyitezay-theme .block a,
body.kyitezay-theme .sidebar a {
  color: var(--kz-link);
}

body.kyitezay-theme .side_block a:hover,
body.kyitezay-theme .block a:hover {
  color: var(--kz-brand);
}

/* Category icons / boxes */
body.kyitezay-theme .categories,
body.kyitezay-theme .category-box,
body.kyitezay-theme ul.home-categories,
body.kyitezay-theme .categories-box {
  background: transparent;
}

body.kyitezay-theme .categories a,
body.kyitezay-theme .category-box a,
body.kyitezay-theme ul.home-categories a,
body.kyitezay-theme .categories .name,
body.kyitezay-theme .category-name {
  color: var(--kz-brand-deep) !important;
}

body.kyitezay-theme .categories svg path,
body.kyitezay-theme .category-box svg path,
body.kyitezay-theme ul.home-categories svg [stroke],
body.kyitezay-theme .categories .icon {
  stroke: var(--kz-brand) !important;
  fill: none;
  color: var(--kz-brand);
}

/* Tabs */
body.kyitezay-theme .tabs ul li a,
body.kyitezay-theme ul.tabs li a,
body.kyitezay-theme .nav-tabs a {
  color: var(--kz-muted) !important;
  background: transparent;
  border-color: var(--kz-line);
}

body.kyitezay-theme .tabs ul li.active a,
body.kyitezay-theme .tabs ul li a.active,
body.kyitezay-theme ul.tabs li.active a,
body.kyitezay-theme .nav-tabs .active a,
body.kyitezay-theme .tabs li.active {
  background: linear-gradient(135deg, var(--kz-brand-deep), var(--kz-brand)) !important;
  color: #fff !important;
  border-color: var(--kz-brand) !important;
}

/* —— Listing cards —— */
body.kyitezay-theme ul.featured > li,
body.kyitezay-theme .listings-grid > li,
body.kyitezay-theme .list-table > li,
body.kyitezay-theme section#listings ul > li,
body.kyitezay-theme .listing-item {
  background: var(--kz-surface);
  border-radius: var(--kz-radius);
  border: 1px solid var(--kz-line);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(194, 65, 12, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.kyitezay-theme ul.featured > li:hover,
body.kyitezay-theme .listings-grid > li:hover,
body.kyitezay-theme section#listings ul > li:hover {
  transform: translateY(-3px);
  box-shadow: var(--kz-shadow);
}

body.kyitezay-theme ul.featured .picture,
body.kyitezay-theme .listings-grid .picture,
body.kyitezay-theme section#listings .picture {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--kz-bg-deep);
}

body.kyitezay-theme ul.featured .picture img,
body.kyitezay-theme .listings-grid .picture img,
body.kyitezay-theme section#listings .picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.kyitezay-theme ul.card-info .title a,
body.kyitezay-theme .card-info .title a,
body.kyitezay-theme .item .title a,
body.kyitezay-theme section#listings .title a {
  color: var(--kz-ink) !important;
  font-weight: 600;
  font-size: 0.95rem;
}

body.kyitezay-theme ul.card-info .title a:hover,
body.kyitezay-theme .card-info .title a:hover {
  color: var(--kz-brand) !important;
}

body.kyitezay-theme .price_tag span,
body.kyitezay-theme li.price_tag span,
body.kyitezay-theme .price,
body.kyitezay-theme span.price {
  color: var(--kz-brand) !important;
  font-family: var(--kz-display);
  font-weight: 700;
}

body.kyitezay-theme .favorite span,
body.kyitezay-theme .add-to-favorites,
body.kyitezay-theme .icon-fav {
  color: var(--kz-brand);
}

body.kyitezay-theme .featured-tag,
body.kyitezay-theme .label-featured,
body.kyitezay-theme span.featured {
  background: var(--kz-sun) !important;
  color: var(--kz-ink) !important;
  font-weight: 700;
}

/* Listing details */
body.kyitezay-theme.listing-details-page #controller_area,
body.kyitezay-theme .listing-details,
body.kyitezay-theme .ld-info {
  color: var(--kz-ink);
}

body.kyitezay-theme.listing-details-page h1,
body.kyitezay-theme .listing-details h1 {
  font-family: var(--kz-display);
  color: var(--kz-ink);
}

body.kyitezay-theme .listing-details .price,
body.kyitezay-theme #controller_area .price_tag {
  color: var(--kz-brand) !important;
}

/* Pagination */
body.kyitezay-theme .pagination a,
body.kyitezay-theme .navigator a,
body.kyitezay-theme ul.paging a {
  color: var(--kz-brand-deep) !important;
  border-color: var(--kz-line);
  background: var(--kz-surface);
}

body.kyitezay-theme .pagination a:hover,
body.kyitezay-theme .pagination .active a,
body.kyitezay-theme .navigator a.active,
body.kyitezay-theme ul.paging li.active a {
  background: var(--kz-brand) !important;
  border-color: var(--kz-brand) !important;
  color: #fff !important;
}

/* Breadcrumbs */
body.kyitezay-theme .bread-crumbs a,
body.kyitezay-theme .breadcrumbs a {
  color: var(--kz-link);
}

body.kyitezay-theme .bread-crumbs span,
body.kyitezay-theme .breadcrumbs span {
  color: var(--kz-muted);
}

/* Section headings */
body.kyitezay-theme h1,
body.kyitezay-theme h2,
body.kyitezay-theme h3,
body.kyitezay-theme .caption,
body.kyitezay-theme .section-title {
  color: var(--kz-ink);
}

body.kyitezay-theme h2.caption,
body.kyitezay-theme .block-caption,
body.kyitezay-theme .home-section-title {
  font-family: var(--kz-display);
}

body.kyitezay-theme .view-all a,
body.kyitezay-theme a.view-all {
  color: var(--kz-brand) !important;
  font-weight: 600;
}

/* Alerts / notices */
body.kyitezay-theme .notice,
body.kyitezay-theme .info,
body.kyitezay-theme .notification,
body.kyitezay-theme .message_info {
  background: var(--kz-sun-soft);
  border-color: var(--kz-sun);
  color: var(--kz-ink);
}

/* Plans / pricing charts */
body.kyitezay-theme .plans-chart .plan,
body.kyitezay-theme .plan-item {
  border-color: var(--kz-line);
  background: var(--kz-surface);
}

body.kyitezay-theme .plans-chart .plan.active,
body.kyitezay-theme .plan-item.featured {
  border-color: var(--kz-brand);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.2);
}

/* Auth forms */
body.kyitezay-theme .auth-form-section,
body.kyitezay-theme #login_modal_source,
body.kyitezay-theme .tmp-dom,
body.kyitezay-theme .modal-window {
  color: var(--kz-ink);
}

body.kyitezay-theme .modal-window,
body.kyitezay-theme .ui-dialog {
  border-radius: var(--kz-radius);
  border-color: var(--kz-line);
}

body.kyitezay-theme .ui-dialog .ui-dialog-titlebar {
  background: linear-gradient(90deg, var(--kz-brand), var(--kz-sun)) !important;
  color: #fff !important;
}

/* Newsletter strip */
body.kyitezay-theme .newsletter {
  background: linear-gradient(110deg, var(--kz-brand-deep), var(--kz-brand) 50%, var(--kz-coral)) !important;
  color: #fff !important;
}

body.kyitezay-theme .newsletter a,
body.kyitezay-theme .newsletter__text {
  color: #fff !important;
}

/* —— Footer (match theme) —— */
body.kyitezay-theme footer.page-footer {
  background:
    radial-gradient(800px 280px at 15% 0%, rgba(255, 106, 0, 0.35), transparent 60%),
    radial-gradient(700px 240px at 90% 100%, rgba(255, 183, 3, 0.22), transparent 55%),
    linear-gradient(180deg, #3a2116 0%, var(--kz-footer) 55%, #1a0f0a 100%) !important;
  color: var(--kz-footer-ink) !important;
  margin-top: 3rem;
  border-top: 3px solid var(--kz-brand);
}

body.kyitezay-theme footer.page-footer a {
  color: rgba(255, 247, 237, 0.9) !important;
}

body.kyitezay-theme footer.page-footer a:hover {
  color: var(--kz-sun) !important;
}

body.kyitezay-theme footer.page-footer .footer__menu-title,
body.kyitezay-theme footer.page-footer h4 {
  color: #fff !important;
  font-family: var(--kz-display);
}

body.kyitezay-theme footer.page-footer .footer-data,
body.kyitezay-theme footer.page-footer .copyright,
body.kyitezay-theme .footer-data {
  color: rgba(255, 247, 237, 0.7) !important;
  border-top-color: rgba(255, 183, 3, 0.25) !important;
}

/* Remap common stock blues still hard-coded in style.css */
body.kyitezay-theme [style*='#4A90E2'],
body.kyitezay-theme [style*='#157ED2'],
body.kyitezay-theme [style*='#247ed2'] {
  /* inline styles left alone; covered by class overrides below */
}

body.kyitezay-theme .top-navigation,
body.kyitezay-theme .progress-bar > div,
body.kyitezay-theme .ui-slider .ui-slider-range,
body.kyitezay-theme .ui-slider .ui-slider-handle {
  background-color: var(--kz-brand);
}

body.kyitezay-theme .ui-slider .ui-slider-handle {
  border-color: var(--kz-brand-deep);
}

/* Map / search-on-map chrome */
body.kyitezay-theme.search-on-map-page header.page-header.fixed-menu div.top-navigation {
  background: var(--kz-header) !important;
}

body.kyitezay-theme.search-on-map-page footer.page-footer {
  background: var(--kz-footer) !important;
}

/* Load-more / secondary CTAs */
body.kyitezay-theme a.button.low,
body.kyitezay-theme .button.low,
body.kyitezay-theme #listings_load_more a,
body.kyitezay-theme .load-more a {
  background: var(--kz-brand-deep) !important;
  border-color: var(--kz-brand-deep) !important;
  color: #fff !important;
}

/* Tables */
body.kyitezay-theme table.list th,
body.kyitezay-theme .table th,
body.kyitezay-theme table.submit th {
  background: var(--kz-sun-soft);
  color: var(--kz-brand-deep);
  border-color: var(--kz-line);
}

body.kyitezay-theme table.list td,
body.kyitezay-theme .table td {
  border-color: var(--kz-line);
}

/* SVG icon fills that used stock blue/yellow */
body.kyitezay-theme svg .header-usernav-icon-fill {
  fill: var(--kz-brand) !important;
}

@keyframes kz-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.kyitezay-theme ul.featured > li {
  animation: kz-rise 0.55s ease both;
}

body.kyitezay-theme ul.featured > li:nth-child(1) { animation-delay: 0.02s; }
body.kyitezay-theme ul.featured > li:nth-child(2) { animation-delay: 0.06s; }
body.kyitezay-theme ul.featured > li:nth-child(3) { animation-delay: 0.10s; }
body.kyitezay-theme ul.featured > li:nth-child(4) { animation-delay: 0.14s; }
body.kyitezay-theme ul.featured > li:nth-child(5) { animation-delay: 0.18s; }
body.kyitezay-theme ul.featured > li:nth-child(6) { animation-delay: 0.22s; }
body.kyitezay-theme ul.featured > li:nth-child(7) { animation-delay: 0.26s; }
body.kyitezay-theme ul.featured > li:nth-child(8) { animation-delay: 0.30s; }

/* —— Hard remap of remaining stock blues —— */
body.kyitezay-theme input[type='button'],
body.kyitezay-theme input[type='submit'],
body.kyitezay-theme .file-input span,
body.kyitezay-theme a.button,
body.kyitezay-theme .btn {
  background: linear-gradient(135deg, var(--kz-brand), var(--kz-coral)) !important;
  border-color: var(--kz-brand) !important;
  color: #fff !important;
}

body.kyitezay-theme input[type='button']:hover,
body.kyitezay-theme input[type='submit']:hover,
body.kyitezay-theme a.button:hover,
body.kyitezay-theme .btn:hover,
body.kyitezay-theme .file-input span:hover {
  background: var(--kz-brand-dark) !important;
  color: #fff !important;
}

body.kyitezay-theme .side_block input[type='submit'],
body.kyitezay-theme .side_block input[type='button'],
body.kyitezay-theme .side_block a.button,
body.kyitezay-theme .side_block .btn,
body.kyitezay-theme section.contact-seller-bottom a.button,
body.kyitezay-theme .seller-short a.button,
body.kyitezay-theme a.button.contact-owner,
body.kyitezay-theme .call-owner a.button {
  background: transparent !important;
  border: 2px solid var(--kz-brand) !important;
  color: var(--kz-brand-deep) !important;
}

body.kyitezay-theme .side_block input[type='submit']:hover,
body.kyitezay-theme .side_block input[type='button']:hover,
body.kyitezay-theme .side_block a.button:hover,
body.kyitezay-theme .side_block .btn:hover,
body.kyitezay-theme section.contact-seller-bottom a.button:hover,
body.kyitezay-theme .seller-short a.button:hover {
  background: var(--kz-brand) !important;
  color: #fff !important;
}

body.kyitezay-theme ul.pagination > li.navigator a,
body.kyitezay-theme ul.pagination > li a {
  border-color: var(--kz-brand) !important;
  color: var(--kz-brand) !important;
  background: #fff !important;
}

body.kyitezay-theme ul.pagination > li.navigator a:hover,
body.kyitezay-theme ul.pagination > li.active a {
  background: var(--kz-brand) !important;
  color: #fff !important;
}

/* Location / geo detector — readable on light header */
body.kyitezay-theme .top-navigation .geo-location a,
body.kyitezay-theme .top-navigation [class*='location'] a,
body.kyitezay-theme .top-navigation .location-selector,
body.kyitezay-theme header.page-header .select-location,
body.kyitezay-theme header.page-header a[href*='location'],
body.kyitezay-theme .mf-location,
body.kyitezay-theme .geo_autocomplete_cont a,
body.kyitezay-theme span.circle + a,
body.kyitezay-theme .top-navigation a {
  color: var(--kz-brand-deep) !important;
}

body.kyitezay-theme .top-navigation .default svg [fill='#FFE500'],
body.kyitezay-theme .top-navigation svg .header-usernav-icon-fill {
  fill: var(--kz-brand) !important;
}

/* Favorite / print icons on details */
body.kyitezay-theme .listing-details .nav-icons a,
body.kyitezay-theme .icons a svg [stroke],
body.kyitezay-theme .favorite svg path,
body.kyitezay-theme .add-to-favorites svg path {
  stroke: var(--kz-brand) !important;
  fill: var(--kz-brand) !important;
  color: var(--kz-brand) !important;
}

/* Geo confirm modal */
body.kyitezay-theme .geo-prompt a,
body.kyitezay-theme #geo_popup a,
body.kyitezay-theme .popup a.button,
body.kyitezay-theme .notice a {
  color: var(--kz-brand-deep) !important;
}

body.kyitezay-theme .geo-prompt .button,
body.kyitezay-theme #geo_popup .button {
  background: var(--kz-brand) !important;
  border-color: var(--kz-brand) !important;
  color: #fff !important;
}

/* Category tile icons → brand */
body.kyitezay-theme .categories svg path[stroke],
body.kyitezay-theme .home-categories svg path[stroke],
body.kyitezay-theme .category-box svg path[stroke],
body.kyitezay-theme .categories .icon svg * {
  stroke: var(--kz-brand) !important;
}

body.kyitezay-theme .categories a:hover .name,
body.kyitezay-theme .home-categories a:hover {
  color: var(--kz-brand) !important;
}

/* Search dropdown leftover blue text */
body.kyitezay-theme section.horizontal-search .select2-selection__rendered,
body.kyitezay-theme section.horizontal-search .cd-dropdown {
  color: var(--kz-ink) !important;
}

/* Ad placeholder frames */
body.kyitezay-theme .banner,
body.kyitezay-theme .adsense,
body.kyitezay-theme [class*='banner'] {
  border-color: var(--kz-line) !important;
}

/* —— Listing media gallery (details) —— */
body.kyitezay-theme .listing-details .gallery.kz-media-gallery > #media,
body.kyitezay-theme .listing-details div.gallery > #media {
  border-radius: var(--kz-radius);
  background:
    linear-gradient(160deg, var(--kz-bg) 0%, var(--kz-bg-deep) 55%, #ffd9b0 100%);
  box-shadow: var(--kz-shadow);
  overflow: hidden;
}

body.kyitezay-theme .listing-details div.gallery > #media img.default-picture,
body.kyitezay-theme .listing-details div.gallery > #media iframe,
body.kyitezay-theme .listing-details div.gallery > #media #player,
body.kyitezay-theme .listing-details div.gallery > #media .map-container {
  background: var(--kz-sun-soft);
}

body.kyitezay-theme .listing-details div.gallery > #media img.default-picture {
  object-fit: cover;
  cursor: zoom-in;
}

body.kyitezay-theme .listing-details div.gallery .nav-buttons .nav-button {
  color: var(--kz-ink);
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid var(--kz-line);
  border-radius: 999px;
  font-family: var(--kz-font);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.12);
}

body.kyitezay-theme .listing-details div.gallery .nav-buttons .nav-button:hover {
  color: #fff !important;
  background: var(--kz-brand) !important;
  border-color: var(--kz-brand) !important;
}

body.kyitezay-theme .listing-details div.gallery > div.thumbs .f-button {
  --f-button-color: var(--kz-brand-deep);
  background: var(--kz-sun-soft);
  border: 1px solid var(--kz-line);
  border-radius: 12px;
}

body.kyitezay-theme .listing-details div.gallery > div.thumbs .f-button:hover {
  background: var(--kz-brand);
  border-color: var(--kz-brand);
  color: #fff;
}

body.kyitezay-theme .listing-details div.gallery > div.thumbs .f-carousel__slide {
  background: var(--kz-sun-soft);
  border-radius: 12px;
}

body.kyitezay-theme .listing-details div.gallery > div.thumbs .f-carousel__slide img,
body.kyitezay-theme .listing-details div.gallery > div.thumbs .f-carousel__slide video {
  border-radius: 12px;
  border: 2px solid transparent;
}

body.kyitezay-theme .listing-details div.gallery > div.thumbs .f-carousel__slide.active img,
body.kyitezay-theme .listing-details div.gallery > div.thumbs .f-carousel__slide.active video {
  border-color: var(--kz-brand);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.22);
}

body.kyitezay-theme .listing-details div.gallery .kz-gallery-count {
  font-family: var(--kz-font);
  background: rgba(28, 25, 23, 0.62);
  color: #fffaf4;
}

body.kyitezay-theme .listing-details .picture_locked {
  background-color: var(--kz-sun-soft);
}

/* Fancybox lightbox — rising-sun chrome */
body.kyitezay-theme .fancybox__container {
  --fancybox-bg: rgba(42, 24, 16, 0.92);
  --fancybox-color: #fffaf4;
  --f-button-color: #fffaf4;
  --f-button-hover-bg: rgba(255, 106, 0, 0.9);
  --f-button-active-bg: rgba(232, 93, 0, 0.95);
  --f-thumb-border-radius: 10px;
  --f-thumb-outline: 2px solid var(--kz-brand);
  --f-thumb-outline-color: var(--kz-brand);
}

body.kyitezay-theme .fancybox__toolbar,
body.kyitezay-theme .fancybox__caption {
  font-family: var(--kz-font);
}

body.kyitezay-theme .fancybox__slide {
  padding: 12px;
}

/* —— Grid / card picture slider —— */
body.kyitezay-theme .listing-picture-slider__navbar > span:hover:after,
body.kyitezay-theme .listing-picture-slider__navbar > span:after {
  box-shadow: inset 0 -3px 0 rgba(255, 106, 0, 0.85);
}

body.kyitezay-theme .listing-picture-slider__navbar > span:hover:after {
  box-shadow: inset 0 -3px 0 var(--kz-brand);
}

body.kyitezay-theme .listing-picture-slider__navbar > span > span {
  background: rgba(28, 25, 23, 0.38);
  backdrop-filter: blur(2px);
}

body.kyitezay-theme section#listings .main-column,
body.kyitezay-theme .featured .main-column,
body.kyitezay-theme article.item .main-column {
  box-shadow: 0 0 0 1px var(--kz-line), var(--kz-shadow) !important;
  border-radius: var(--kz-radius) !important;
  overflow: hidden;
  background: var(--kz-surface);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.kyitezay-theme article.item .main-column:hover {
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.35), 0 16px 36px rgba(194, 65, 12, 0.16) !important;
  transform: translateY(-2px);
}

body.kyitezay-theme article.item .picture,
body.kyitezay-theme .featured .picture {
  border-radius: calc(var(--kz-radius) - 2px) calc(var(--kz-radius) - 2px) 0 0;
  overflow: hidden;
  background: var(--kz-sun-soft);
}

body.kyitezay-theme article.item .picture img,
body.kyitezay-theme .featured .picture img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

body.kyitezay-theme article.item:hover .picture img,
body.kyitezay-theme .featured:hover .picture img {
  transform: scale(1.03);
}

body.kyitezay-theme article.item .picture .label,
body.kyitezay-theme .featured .picture .label {
  background: var(--kz-sun) !important;
  color: var(--kz-ink) !important;
  font-family: var(--kz-font);
  font-weight: 700;
  border-radius: 999px;
}

/* —— Full-width explore stack (Featured / Similar / Top searches / Categories) —— */
body.kyitezay-theme .kz-explore-stack {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  margin: 1.75rem 0 0.5rem;
  padding: 1.5rem 0 0.25rem;
  clear: both;
  border-top: 1px solid var(--kz-line);
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.35) 0%, transparent 100%);
}

body.kyitezay-theme .kz-explore-stack .kz-related-rails {
  width: 100%;
}

body.kyitezay-theme .kz-explore-stack .kz-seo-links {
  width: 100%;
  margin-top: 1.25rem;
}

body.kyitezay-theme .kz-explore-stack--browse {
  margin-top: 2rem;
  padding-top: 1.75rem;
}

/* Category hub chips align with explore stack */
body.kyitezay-theme .kz-ch-hub {
  width: 100%;
}

body.kyitezay-theme .kz-ch-subcats,
body.kyitezay-theme .kz-ch-keywords {
  width: 100%;
}

body.kyitezay-theme .kz-ch-chip {
  border-color: var(--kz-line);
  background: var(--kz-surface);
  color: var(--kz-ink);
}

body.kyitezay-theme .kz-ch-chip:hover {
  border-color: var(--kz-brand);
  color: var(--kz-brand-deep);
}

body.kyitezay-theme .kz-ch-keyword {
  color: var(--kz-brand-deep);
}

/* Related rails cards stay aligned with gallery look */
body.kyitezay-theme .kz-related-card {
  border-radius: var(--kz-radius);
  border-color: var(--kz-line);
  box-shadow: 0 0 0 1px transparent, 0 8px 20px rgba(194, 65, 12, 0.06);
  overflow: hidden;
  background: var(--kz-surface);
}

body.kyitezay-theme .kz-related-card__media {
  background: var(--kz-sun-soft);
}

body.kyitezay-theme .kz-related-card__media img {
  object-fit: cover;
}

body.kyitezay-theme .kz-related-rail__title {
  font-family: var(--kz-display);
  color: var(--kz-ink);
}

body.kyitezay-theme .kz-related-card__price {
  color: var(--kz-brand);
}

body.kyitezay-theme .kz-related-card__badge {
  background: var(--kz-sun);
  color: var(--kz-ink);
}

/* —— Top filter bar (browse pages) —— */
body.kyitezay-theme.kz-top-filters aside.left {
  display: none !important;
}

body.kyitezay-theme.kz-top-filters #content {
  flex: 0 0 100%;
  max-width: 100%;
}

body.kyitezay-theme.kz-top-filters .grid_navbar .filter-icon {
  /* filters live in the top bar on these pages */
  display: none !important;
}

body.kyitezay-theme .kz-filter-bar {
  border-color: var(--kz-line);
  background: rgba(255, 250, 244, 0.94);
  box-shadow: var(--kz-shadow);
}

body.kyitezay-theme .kz-filter-chip__btn {
  font-family: var(--kz-font);
}

body.kyitezay-theme .kz-filter-bar__submit {
  font-family: var(--kz-font);
}

/* —— Device-adaptive sections (phones / tablets) —— */
@media (max-width: 767.98px) {
  body.kyitezay-theme.kz-device-adaptive .inside-container.kz-adaptive-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  body.kyitezay-theme.kz-device-adaptive.home-page .kz-hero-copy {
    padding: 1.25rem 0.5rem 0.5rem;
  }

  body.kyitezay-theme.kz-device-adaptive.home-page .kz-hero-copy h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    line-height: 1.15;
  }

  body.kyitezay-theme.kz-device-adaptive.home-page .kz-hero-copy p {
    font-size: 0.95rem;
  }

  body.kyitezay-theme.kz-device-adaptive section.horizontal-search .cd-form {
    gap: 0.55rem;
  }

  body.kyitezay-theme.kz-device-adaptive .kz-explore-stack {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  body.kyitezay-theme.kz-device-adaptive .kz-related-rail__title,
  body.kyitezay-theme.kz-device-adaptive .kz-seo-links h2 {
    font-size: 1.15rem;
  }

  body.kyitezay-theme.kz-device-adaptive .newsletter {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  body.kyitezay-theme.kz-device-adaptive .newsletter__text {
    text-align: center;
    margin-bottom: 0.75rem;
  }

  /* Listing cards: denser grid on phones */
  body.kyitezay-theme.kz-device-adaptive section#listings.grid > .col,
  body.kyitezay-theme.kz-device-adaptive section#listings.grid > [class*='col-'] {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  body.kyitezay-theme.kz-device-adaptive ul.featured > li,
  body.kyitezay-theme.kz-device-adaptive .listings-grid > li {
    border-radius: 12px;
  }

  /* Filter bar: horizontal scroll friendly */
  body.kyitezay-theme.kz-device-adaptive .kz-filter-bar {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    border-radius: 12px;
  }

  /* Seller timeline full-bleed hero on phones */
  body.kyitezay-theme.kz-seller-timeline .kz-st__hero {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    border-radius: 0;
  }

  body.kyitezay-theme.kz-seller-timeline .kz-st__filter-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  body.kyitezay-theme.kz-seller-timeline .kz-st__tabs {
    position: sticky;
    top: 56px;
    z-index: 20;
    background: rgba(255, 250, 244, 0.96);
    backdrop-filter: blur(6px);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body.kyitezay-theme.kz-device-adaptive .kz-explore-stack {
    margin-top: 1.35rem;
  }

  body.kyitezay-theme.kz-device-adaptive.kz-top-filters #content {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Bottom mobile footer menu clearance when present */
@media (max-width: 767.98px) {
  body.kyitezay-theme.kz-device-adaptive:has(.mb-menu) footer.page-footer {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}
