/**
 * Velora identity on legacy shell pages (properties, auth, blog, etc.)
 * Scoped to body.vl-shell — theme_version 1 only.
 * Shares tokens with Home via velora-tokens.css.
 * Maps Residia markup onto the Home editorial language (vl-card / vl-btn / vl-footer).
 */
body.vl-shell {
  --color-primary: var(--velora-primary);
  --color-primary-rgb: 36, 48, 40;
  --color-secondary: var(--velora-secondary);
  --color-dark: var(--velora-dark);
  --color-medium: var(--velora-muted);
  --color-white: #FFFFFF;
  --font-family-base: var(--velora-font-display);
  --font-body: var(--velora-font-body);

  background: var(--velora-bg);
  color: var(--velora-text);
  font-family: var(--velora-font-body) !important;
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.vl-shell.vl-shell-rtl {
  direction: rtl;
}

/* ——— Typography (match Home) ——— */
body.vl-shell :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .title, .product-title, .section-title .title) {
  font-family: var(--velora-font-display) !important;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--velora-text);
  line-height: 1.15;
}

body.vl-shell .page-title-area .title,
body.vl-shell .page-title-area h1,
body.vl-shell .breadcrumb-area .title {
  color: #fff !important;
}

/* Kill legacy pill / soft radii */
body.vl-shell .radius-sm,
body.vl-shell .radius-md,
body.vl-shell .radius-lg,
body.vl-shell .radius-xl,
body.vl-shell .btn,
body.vl-shell button.btn,
body.vl-shell a.btn,
body.vl-shell .product-default,
body.vl-shell .auth-form,
body.vl-shell .filter-form-area .filter-form,
body.vl-shell .sidebar-widget,
body.vl-shell .widget,
body.vl-shell .form-control,
body.vl-shell .nice-select,
body.vl-shell .card,
body.vl-shell .accordion-item,
body.vl-shell .blog-item,
body.vl-shell .single-blog,
body.vl-shell .team-item,
body.vl-shell .agent-item {
  border-radius: var(--velora-radius) !important;
}

body.vl-shell .page-title-area,
body.vl-shell .page-title-area.with-radius,
body.vl-shell .page-title-area.header-next,
body.vl-shell .breadcrumb-area,
body.vl-shell .inner-banner {
  border-radius: 0 0 var(--velora-radius) var(--velora-radius) !important;
  background-image:
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--velora-dark) 72%, transparent),
      color-mix(in srgb, var(--velora-primary) 45%, transparent)
    ),
    url("/assets/tenant-front/images/velora/banner.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ——— Buttons = Home .vl-btn language ——— */
body.vl-shell .btn,
body.vl-shell button.btn,
body.vl-shell a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.55rem;
  font-family: var(--velora-font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  border-radius: var(--velora-radius) !important;
  transition:
    background 0.25s var(--velora-ease),
    color 0.25s var(--velora-ease),
    border-color 0.25s var(--velora-ease),
    box-shadow 0.25s var(--velora-ease);
}

body.vl-shell .btn-primary {
  background: var(--velora-primary) !important;
  border-color: var(--velora-primary) !important;
  color: var(--velora-on-primary) !important;
}

body.vl-shell .btn-primary::before {
  display: none !important;
}

body.vl-shell .btn-primary:hover,
body.vl-shell .btn-primary:focus {
  background: var(--velora-primary-deep) !important;
  border-color: var(--velora-primary-deep) !important;
  color: var(--velora-on-primary) !important;
  box-shadow: 0 8px 22px rgba(36, 48, 40, 0.22);
}

body.vl-shell .btn-primary:focus-visible {
  outline: 2px solid var(--velora-accent);
  outline-offset: 3px;
}

body.vl-shell .btn-outline,
body.vl-shell .btn-outline-primary {
  border-color: var(--velora-primary) !important;
  color: var(--velora-primary) !important;
  background: transparent !important;
}

body.vl-shell .btn-sm {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.72rem !important;
}

/* ——— Header (match Home solid language) ——— */
body.vl-shell .header-area {
  border-bottom: 1px solid transparent;
}

body.vl-shell .header-area.is-sticky,
body.vl-shell .header-area.header-static {
  background: color-mix(in srgb, var(--velora-surface) 94%, transparent) !important;
  box-shadow: var(--velora-shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--velora-border);
}

body.vl-shell .header-area .nav-link {
  font-family: var(--velora-font-body) !important;
  font-weight: 500 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.02em;
  color: var(--velora-text) !important;
  position: relative;
}

body.vl-shell .header-area .nav-link:hover,
body.vl-shell .header-area .nav-link:focus {
  color: var(--velora-primary) !important;
}

body.vl-shell .header-area.is-sticky .nav-link,
body.vl-shell .header-area.is-sticky .nice-select,
body.vl-shell .header-area.is-sticky .wishlist-btn,
body.vl-shell .header-area.header-static .nav-link {
  color: var(--velora-text) !important;
}

body.vl-shell .header-area .menu-toggler span,
body.vl-shell .header-area.is-sticky .menu-toggler span {
  background: var(--velora-primary) !important;
}

body.vl-shell .header-area .btn-primary {
  background: var(--velora-primary) !important;
  border-color: var(--velora-primary) !important;
  color: var(--velora-on-primary) !important;
}

body.vl-shell .header-area .nice-select {
  font-family: var(--velora-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--velora-radius) !important;
  border-color: var(--velora-border) !important;
}

/* ——— Property / project cards = Home .vl-card editorial ——— */
body.vl-shell .product-default:not(.product-inline) {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  min-height: 360px;
  background: var(--velora-card-ink) !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

body.vl-shell .product-default:not(.product-inline):hover {
  box-shadow: var(--velora-shadow) !important;
}

body.vl-shell .product-default:not(.product-inline) .product-img {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

body.vl-shell .product-default:not(.product-inline) .product-img .lazy-container,
body.vl-shell .product-default:not(.product-inline) .product-img a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 !important;
}

body.vl-shell .product-default:not(.product-inline) .product-img img,
body.vl-shell .product-default:not(.product-inline) .product-img .lazy-container {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    linear-gradient(180deg, transparent 35%, rgba(20, 22, 20, 0.82) 100%),
    url("/assets/tenant-front/images/velora/property.jpg") center / cover no-repeat;
}

body.vl-shell .product-default:not(.product-inline) .product-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(20, 22, 20, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

body.vl-shell .product-default:not(.product-inline) .product-details {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.35rem 1.25rem 1.4rem;
  background: transparent;
  color: #fff;
}

body.vl-shell .product-default:not(.product-inline) .product-title,
body.vl-shell .product-default:not(.product-inline) .product-title a {
  font-family: var(--velora-font-display) !important;
  font-size: 1.35rem !important;
  font-weight: 400 !important;
  color: #fff !important;
  letter-spacing: -0.02em;
}

body.vl-shell .product-default:not(.product-inline) .product-location,
body.vl-shell .product-default:not(.product-inline) .product-info,
body.vl-shell .product-default:not(.product-inline) .author,
body.vl-shell .product-default:not(.product-inline) .author a,
body.vl-shell .product-default:not(.product-inline) .product-category,
body.vl-shell .product-default:not(.product-inline) .color-medium {
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: var(--velora-font-body);
  font-size: 0.82rem;
}

body.vl-shell .product-default:not(.product-inline) .product-price,
body.vl-shell .product-default:not(.product-inline) .product-price span {
  font-family: var(--velora-font-display) !important;
  color: var(--velora-accent) !important;
  font-weight: 400 !important;
  font-size: 1.25rem !important;
}

body.vl-shell .product-default .label,
body.vl-shell .product-default .product-label,
body.vl-shell .badge {
  background: var(--velora-primary) !important;
  color: var(--velora-on-primary) !important;
  border-radius: var(--velora-radius) !important;
  font-family: var(--velora-font-body) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0 !important;
}

body.vl-shell .product-default .btn-wishlist {
  border-radius: var(--velora-radius) !important;
  background: color-mix(in srgb, var(--velora-surface) 92%, transparent) !important;
  border: 1px solid var(--velora-border) !important;
  color: var(--velora-primary) !important;
  width: 38px;
  height: 38px;
  z-index: 3;
}

body.vl-shell .product-default:not(.product-inline) .btn-wishlist {
  background: rgba(255, 255, 255, 0.92) !important;
}

body.vl-shell .product-default .product-location i,
body.vl-shell .product-default .product-info i {
  color: var(--velora-accent) !important;
}

/* Inline related cards on detail keep compact surface style */
body.vl-shell .product-default.product-inline {
  background: var(--velora-surface) !important;
  border: 1px solid var(--velora-border) !important;
  min-height: 0;
  color: var(--velora-text);
}

/* Project cards */
body.vl-shell .card.product-default:not(.product-inline) .card-body,
body.vl-shell .card.product-default:not(.product-inline) .card-text {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* ——— Filters / sidebar ——— */
body.vl-shell .filter-form-area .filter-form,
body.vl-shell .sidebar-widget,
body.vl-shell .widget {
  background: var(--velora-surface);
  border: 1px solid var(--velora-border);
  box-shadow: var(--velora-shadow-soft);
  padding: 1.25rem;
}

body.vl-shell .filter-form-area h3,
body.vl-shell .filter-form-area h4,
body.vl-shell .widget .title {
  font-family: var(--velora-font-display) !important;
  color: var(--velora-text);
  border-bottom: 1px solid var(--velora-border);
  padding-bottom: 0.65rem;
  font-size: 1.35rem !important;
}

body.vl-shell .filter-form label,
body.vl-shell .filter-form .form-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--velora-muted);
}

body.vl-shell .filter-form .noUi-connect {
  background: var(--velora-primary);
}

body.vl-shell .home-banner .noUi-target,
body.vl-shell .filter-form .noUi-target {
  overflow: visible;
  height: 10px;
  margin: 0.65rem 0 0.35rem;
  padding: 0 0.5rem;
}

body.vl-shell .home-banner .noUi-horizontal .noUi-handle,
body.vl-shell .filter-form .noUi-horizontal .noUi-handle {
  width: 16px;
  height: 16px;
  top: -5px;
  border-color: var(--velora-primary);
  background: var(--velora-surface);
}

body.vl-shell .header-area .more-option .language .nice-select {
  border-color: var(--velora-border) !important;
  border-radius: 999px !important;
  background: var(--velora-surface) !important;
  color: var(--velora-text) !important;
  font-family: var(--velora-font-body);
}

body.vl-shell .map-area,
body.vl-shell #map,
body.vl-shell .leaflet-container {
  border-radius: var(--velora-radius) !important;
  border: 1px solid var(--velora-border);
  overflow: hidden;
}

/* ——— Forms / auth (shared language) ——— */
body.vl-shell .form-control,
body.vl-shell .nice-select,
body.vl-shell textarea.form-control {
  border: 0 !important;
  border-bottom: 1px solid var(--velora-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--velora-text) !important;
  font-family: var(--velora-font-body);
  box-shadow: none !important;
  min-height: 3rem;
  padding-inline: 0 !important;
}

body.vl-shell .form-control:focus,
body.vl-shell textarea.form-control:focus {
  border-bottom-color: var(--velora-accent) !important;
  box-shadow: none !important;
}

body.vl-shell .auth-form {
  background: var(--velora-surface) !important;
  border: 1px solid var(--velora-border) !important;
  box-shadow: var(--velora-shadow);
  padding: 2rem 2.15rem;
}

body.vl-shell .auth-form .title h4 {
  font-family: var(--velora-font-display) !important;
  position: relative;
  padding-bottom: 0.75rem;
}

body.vl-shell .auth-form .title h4::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: var(--velora-accent);
}

body.vl-shell.vl-shell-rtl .auth-form .title h4::after {
  left: auto;
  right: 0;
}

body.vl-shell .authentication-area {
  background:
    radial-gradient(ellipse at top left, color-mix(in srgb, var(--velora-primary) 8%, transparent), transparent 55%),
    var(--velora-bg);
}

/* ——— Team / agent ——— */
body.vl-shell .team-item,
body.vl-shell .agent-item,
body.vl-shell .single-agent {
  background: var(--velora-surface);
  border: 1px solid var(--velora-border);
  overflow: hidden;
  box-shadow: var(--velora-shadow-soft);
}

body.vl-shell .team-item img,
body.vl-shell .agent-item img,
body.vl-shell .single-agent img {
  object-fit: cover;
  background: url("/assets/tenant-front/images/velora/agent.jpg") center / cover no-repeat;
}

body.vl-shell .team-item h4,
body.vl-shell .agent-item h4,
body.vl-shell .single-agent h4,
body.vl-shell .team-item h3 {
  font-family: var(--velora-font-display) !important;
}

/* ——— Page banner overlay ——— */
body.vl-shell .page-title-area::before,
body.vl-shell .breadcrumb-area::before {
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--velora-dark) 72%, transparent),
    color-mix(in srgb, var(--velora-primary) 45%, transparent)
  );
}

/* ——— Footer = Home .vl-footer ——— */
body.vl-shell .footer-area {
  background: var(--velora-dark) !important;
  border-top: 3px solid var(--velora-accent) !important;
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

body.vl-shell .footer-area .footer-widget h3,
body.vl-shell .footer-area .footer-widget .title {
  font-family: var(--velora-font-body) !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 1.15rem;
}

body.vl-shell .footer-area a {
  color: rgba(255, 255, 255, 0.72);
}

body.vl-shell .footer-area a:hover {
  color: #fff;
}

body.vl-shell .footer-area .footer-widget .footer-links li a:hover {
  color: var(--velora-accent);
}

body.vl-shell .footer-area .copyright-area,
body.vl-shell .footer-area .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

/* ——— Pagination / FAQ ——— */
body.vl-shell .pagination .page-link {
  border-radius: var(--velora-radius) !important;
  border-color: var(--velora-border);
  color: var(--velora-text);
  font-family: var(--velora-font-body);
}

body.vl-shell .pagination .page-item.active .page-link,
body.vl-shell .pagination .page-link:hover {
  background: var(--velora-primary);
  border-color: var(--velora-primary);
  color: var(--velora-on-primary);
}

body.vl-shell .accordion-button,
body.vl-shell .faq-item .faq-title {
  font-family: var(--velora-font-display) !important;
  color: var(--velora-text);
}

body.vl-shell .accordion-button:not(.collapsed) {
  color: var(--velora-primary);
  background: color-mix(in srgb, var(--velora-primary) 6%, var(--velora-surface));
}

/* ——— Blog ——— */
body.vl-shell .blog-item,
body.vl-shell .single-blog {
  background: var(--velora-surface);
  border: 1px solid var(--velora-border);
  overflow: hidden;
  box-shadow: var(--velora-shadow-soft);
}

body.vl-shell .blog-item .blog-img,
body.vl-shell .single-blog .blog-img {
  background: url("/assets/tenant-front/images/velora/blog.jpg") center / cover no-repeat;
}

body.vl-shell .blog-area .card,
body.vl-shell .related-posts .card,
body.vl-shell .blog-details-area .card {
  background: var(--velora-surface);
  border: 1px solid var(--velora-border);
  border-radius: var(--velora-radius);
  box-shadow: var(--velora-shadow-soft);
  overflow: hidden;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.vl-shell .blog-area .card:hover,
body.vl-shell .related-posts .card:hover {
  border-color: var(--velora-primary);
  box-shadow: var(--velora-shadow);
}

body.vl-shell .blog-area .card-title,
body.vl-shell .related-posts .card-title,
body.vl-shell .blog-details-area .title {
  font-family: var(--velora-font-display) !important;
  color: var(--velora-text);
}

body.vl-shell .related-posts h4,
body.vl-shell .blog-details-area .item-single .title {
  font-family: var(--velora-font-display) !important;
}

body.vl-shell .blog-area .card-btn,
body.vl-shell .related-posts .card-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--velora-primary);
}

body.vl-shell .blog-area .card-text,
body.vl-shell .related-posts .card-text {
  color: var(--velora-muted);
  font-size: 0.95rem;
}

/* Hide Residia decorative shapes */
body.vl-shell .shape,
body.vl-shell .shape [class^="shape-"] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

/* Contact info cards */
body.vl-shell .contact-area .card {
  background: var(--velora-surface) !important;
  border: 1px solid var(--velora-border) !important;
  box-shadow: none !important;
  border-radius: var(--velora-radius) !important;
}

body.vl-shell .contact-area .card .icon,
body.vl-shell .contact-area .color-1 .icon,
body.vl-shell .contact-area .color-2 .icon,
body.vl-shell .contact-area .color-3 .icon,
body.vl-shell .contact-area .color-4 .icon,
body.vl-shell .contact-area .color-5 .icon,
body.vl-shell .contact-area .color-6 .icon,
body.vl-shell .contact-area .color-7 .icon,
body.vl-shell .contact-area .color-8 .icon {
  background: color-mix(in srgb, var(--velora-primary) 8%, var(--velora-mist)) !important;
  color: var(--velora-primary) !important;
  border-radius: var(--velora-radius) !important;
}

body.vl-shell .contact-area .card .icon i {
  color: var(--velora-primary) !important;
}

body.vl-shell .contact-area .card-text a {
  color: var(--velora-text);
  font-family: var(--velora-font-body);
}

body.vl-shell .contact-area .card-text a:hover {
  color: var(--velora-accent);
}

/* Icons — shared weight/color */
body.vl-shell i[class*="fa-"],
body.vl-shell i[class*="fal"],
body.vl-shell i[class*="far"],
body.vl-shell i[class*="fas"] {
  line-height: 1;
}

/* Empty / broken image quiet fallback */
body.vl-shell img[src=""],
body.vl-shell .icon img[src=""],
body.vl-shell img[src$="/featured"],
body.vl-shell img[src$="/featured/"],
body.vl-shell img[src$="/featureds"],
body.vl-shell img[src$="/featureds/"] {
  display: none;
}

body.vl-shell .lazy-container:has(> img[src$="/featured"]),
body.vl-shell .lazy-container:has(> img[src$="/featured/"]),
body.vl-shell .lazy-container:has(> img[src$="/featureds"]),
body.vl-shell .lazy-container:has(> img[src$="/featureds/"]),
body.vl-shell .lazy-container:has(> img[src=""]) {
  background: url("/assets/tenant-front/images/velora/property.jpg") center / cover no-repeat;
}

body.vl-shell img[src*="/assets/images/placeholder.png"] {
  opacity: 0;
}

body.vl-shell .lazy-container:has(> img[src*="/assets/images/placeholder.png"]) {
  background: url("/assets/tenant-front/images/velora/property.jpg") center / cover no-repeat;
}

/* ——— Loader (theme 1) ——— */
body.vl-shell #preLoader.vl-preloader,
#preLoader.vl-preloader {
  background: var(--velora-bg) !important;
}

#preLoader.vl-preloader .vl-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}

#preLoader.vl-preloader .vl-loader__mark {
  width: 64px;
  height: 64px;
  display: block;
}

#preLoader.vl-preloader .loader svg,
#preLoader.vl-preloader .loader .icon {
  display: none !important;
}

.request-loader[data-vl-loader="1"] {
  background: color-mix(in srgb, var(--velora-bg) 92%, transparent) !important;
}

.request-loader[data-vl-loader="1"] img {
  width: 56px;
  height: 56px;
}

body.vl-shell .go-top {
  background: var(--velora-primary);
  color: var(--velora-on-primary);
  border-radius: var(--velora-radius) !important;
}

/* Container width parity with Home */
body.vl-shell .container {
  max-width: var(--velora-container-max);
}

@media (prefers-reduced-motion: reduce) {
  body.vl-shell *,
  body.vl-shell *::before,
  body.vl-shell *::after,
  #preLoader.vl-preloader * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
