:root {
  --jr-bg: #f7f6f6;
  --jr-surface: #ffffff;
  --jr-ink: #121212;
  --jr-muted: #6f6f6f;
  --jr-border: #e2e2e2;
  --jr-brand: #7a2c88;
  --jr-brand-dark: #5d1f67;
  --jr-brand-soft: #f3e8f6;
  --jr-shadow: 0 18px 45px rgba(18, 18, 18, 0.08);
  --jr-radius-xl: 28px;
  --jr-radius-lg: 22px;
  --jr-radius-md: 16px;
  --jr-radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(122, 44, 136, 0.08), transparent 30%),
    var(--jr-bg);
  color: var(--jr-ink);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--jr-brand);
}

button,
input,
textarea,
select {
  font: inherit;
}

textarea {
  resize: vertical;
}

.jr-container {
  width: min(1310px, calc(100% - 2rem));
  margin: 0 auto;
}

.jr-main {
  padding-bottom: 2rem;
}

.jr-btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--jr-brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.jr-btn:hover,
input[type="submit"]:hover {
  background: var(--jr-brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.jr-btn-outline {
  background: transparent;
  color: var(--jr-brand);
  border: 2px solid var(--jr-brand);
}

.jr-btn-outline:hover {
  color: #fff;
}

.jr-notice {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--jr-radius-sm);
  background: #eef9ef;
  color: #165b22;
  border: 1px solid #cfe5d1;
}

.jr-topbar {
  background: var(--jr-brand);
  color: #fff;
}

.jr-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
}

.jr-topbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.jr-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.96rem;
}

.jr-topbar-item:hover {
  color: #fff;
  opacity: 0.92;
}

.jr-topbar-note {
  opacity: 0.82;
}

.jr-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  line-height: 0;
}

.jr-icon svg {
  width: 100%;
  height: 100%;
}

.jr-icon-sm {
  width: 1rem;
  height: 1rem;
}

.jr-icon-xs {
  width: 0.7rem;
  height: 0.7rem;
}

.jr-icon-social,
.jr-icon-app {
  width: 1.15rem;
  height: 1.15rem;
}

.jr-widget {
  margin: 0;
}

.jr-widget-title {
  margin: 0 0 0.85rem;
  font-family: "Montserrat", "Roboto", sans-serif;
}

.jr-widget-area-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.jr-widget-area p:last-child {
  margin-bottom: 0;
}

.jr-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 18, 18, 0.06);
}

.jr-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(320px, 1.15fr);
  grid-template-areas: "brand nav search";
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1rem 0;
}

.jr-header-inner.has-header-actions {
  grid-template-columns: auto minmax(0, 1fr) minmax(320px, 1.15fr) auto;
  grid-template-areas: "brand nav search actions";
}

.jr-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--jr-border);
  background: #fff;
}

.jr-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--jr-ink);
  border-radius: 999px;
}

.jr-branding {
  grid-area: brand;
}

.jr-branding .custom-logo-link,
.jr-branding-image {
  display: inline-flex;
  align-items: center;
}

.jr-branding .custom-logo,
.jr-branding-image img {
  width: auto;
  max-width: 250px;
  max-height: 92px;
}

.jr-header-nav {
  grid-area: nav;
}

.jr-header-search {
  grid-area: search;
}

.jr-menu,
.jr-footer-links-menu,
.jr-footer-policy-menu {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin: 0;
  padding: 0;
}

.jr-menu a {
  font-weight: 700;
  color: var(--jr-ink);
}

.jr-header-searchbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem;
  background: #fff;
  border: 1px solid var(--jr-border);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(18, 18, 18, 0.06);
}

.jr-header-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  white-space: nowrap;
}

.jr-header-searchform {
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr) auto;
  gap: 0.6rem;
  width: 100%;
  align-items: center;
}

.jr-header-select {
  position: relative;
  display: flex;
  align-items: center;
}

.jr-header-select select,
.jr-header-searchform input {
  width: 100%;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  color: var(--jr-ink);
}

.jr-header-select select {
  padding-right: 1.2rem;
  appearance: none;
}

.jr-header-select .jr-icon {
  position: absolute;
  right: 0;
  pointer-events: none;
}

.jr-header-searchform input:focus,
.jr-header-select select:focus {
  outline: none;
}

.jr-header-searchsubmit {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
}

.jr-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.jr-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.jr-header-actions .jr-widget-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.jr-home-shell {
  padding: 2rem 0 0;
}

.jr-home-layout {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.jr-home-sidebar,
.jr-home-hero,
.jr-home-editor,
.jr-section-card,
.jr-like-strip,
.jr-request-card,
.jr-page-hero-copy,
.jr-page-hero-media,
.jr-page-article,
.jr-property-gallery,
.jr-property-summary {
  background: var(--jr-surface);
  border: 1px solid rgba(18, 18, 18, 0.06);
  border-radius: var(--jr-radius-lg);
  box-shadow: var(--jr-shadow);
}

.jr-home-sidebar {
  position: sticky;
  top: 112px;
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

.jr-home-sidebar .jr-widget-area {
  display: grid;
  gap: 1.5rem;
}

.jr-home-sidebar h2,
.jr-filter-card h3,
.jr-section-head h2,
.jr-page-hero-copy h1,
.jr-property-summary h1 {
  margin: 0;
  font-family: "Montserrat", "Roboto", sans-serif;
}

.jr-home-sidebar-section h2 {
  margin-bottom: 1rem;
}

.jr-home-sidebar-section + .jr-home-sidebar-section {
  padding-top: 1.35rem;
  border-top: 1px solid var(--jr-border);
}

.jr-home-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.jr-home-category-list li + li {
  border-top: 1px solid var(--jr-border);
}

.jr-home-category-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0;
  font-weight: 600;
}

.jr-home-category-list img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.jr-home-main {
  display: grid;
  gap: 1.5rem;
}

.jr-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
}

.jr-home-kicker,
.jr-page-kicker {
  margin: 0;
  color: var(--jr-brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jr-home-hero-copy h1,
.jr-page-hero-copy h1,
.jr-property-summary h1 {
  margin: 0.6rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.jr-home-hero-copy p:last-of-type,
.jr-page-hero-copy p,
.jr-section-copy {
  margin: 0.9rem 0 0;
  color: var(--jr-muted);
}

.jr-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.jr-home-hero-media {
  overflow: hidden;
  border-radius: var(--jr-radius-md);
}

.jr-home-hero-media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.jr-home-editor,
.jr-section-card,
.jr-like-strip,
.jr-request-card,
.jr-page-hero-copy,
.jr-page-article,
.jr-property-summary {
  padding: 1.5rem;
}

.jr-editor-content > *:first-child,
.jr-page-article > *:first-child {
  margin-top: 0;
}

.jr-editor-content > *:last-child,
.jr-page-article > *:last-child {
  margin-bottom: 0;
}

.jr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.jr-section-head a {
  color: var(--jr-brand);
  font-weight: 700;
}

.jr-products-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.jr-products-layout-archive {
  align-items: start;
}

.jr-filter-sidebar {
  display: grid;
  gap: 1rem;
}

.jr-filter-intro {
  padding: 1rem 1.15rem;
  border-radius: var(--jr-radius-md);
  background: #151515;
  color: #fff;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 700;
}

.jr-filter-card {
  padding: 1rem 1.15rem;
  border-radius: var(--jr-radius-md);
  border: 1px solid var(--jr-border);
  background: #fcfcfc;
}

.jr-filter-card ul {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.jr-filter-card a {
  font-weight: 600;
  color: var(--jr-ink);
}

.jr-filter-card a[aria-current="page"] {
  color: var(--jr-brand);
}

.jr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.jr-card-grid > .jr-section-copy {
  grid-column: 1 / -1;
  margin: 0;
}

.jr-card-item {
  overflow: hidden;
  border: 1px solid var(--jr-border);
  border-radius: var(--jr-radius-md);
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 18, 18, 0.05);
}

.jr-card-media {
  display: block;
  aspect-ratio: 1 / 0.8;
  background: #f2f2f2;
  overflow: hidden;
}

.jr-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.25s ease;
}

.jr-card-item:hover .jr-card-media img {
  transform: scale(1.03);
}

.jr-card-body {
  padding: 1.1rem;
}

.jr-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--jr-brand-soft);
  color: var(--jr-brand);
  font-size: 0.75rem;
  font-weight: 700;
}

.jr-card-body h3 {
  margin: 0.8rem 0 0.45rem;
  font-size: 1.05rem;
}

.jr-card-body h3 a {
  color: var(--jr-ink);
}

.jr-card-meta,
.jr-card-price {
  margin: 0;
}

.jr-card-meta {
  color: var(--jr-muted);
}

.jr-card-price {
  margin-top: 0.65rem;
  color: var(--jr-brand);
  font-weight: 800;
}

.jr-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--jr-brand);
  color: #fff;
  font-weight: 700;
}

.jr-card-link:hover {
  color: #fff;
}

.jr-like-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.jr-like-tile a {
  display: grid;
  gap: 0.65rem;
  font-weight: 700;
}

.jr-like-tile img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  border-radius: var(--jr-radius-sm);
  border: 1px solid var(--jr-border);
  background: #f2f2f2;
  object-fit: contain;
  padding: 0.7rem;
}

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

label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d8d8d8;
  border-radius: var(--jr-radius-sm);
  background: #fff;
}

.jr-request-submit {
  margin: 1rem 0 0;
}

.jr-footer {
  margin-top: 2.5rem;
  padding: 2.5rem 0 1.2rem;
  background: linear-gradient(145deg, #171119 0%, #2d1833 55%, #160f18 100%);
  color: #fff;
}

.jr-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 280px;
  gap: 1.5rem;
}

.jr-footer-main {
  display: grid;
  gap: 1rem;
}

.jr-footer-main .jr-widget-area,
.jr-footer-side .jr-widget-area {
  display: grid;
  gap: 1rem;
}

.jr-footer-bottom .jr-widget-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.jr-footer-links,
.jr-footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.15rem;
}

.jr-footer-links a,
.jr-footer-policy a {
  color: #fff;
  font-weight: 600;
}

.jr-footer-copy {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
}

.jr-footer-side {
  display: grid;
  gap: 1rem;
}

.jr-footer-heading {
  margin: 0;
  font-size: 1rem;
}

.jr-footer-socials,
.jr-footer-app-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.jr-footer-socials a,
.jr-footer-app-icons a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.jr-footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.jr-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.jr-page-hero {
  padding: 2rem 0 1.5rem;
}

.jr-page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1.5rem;
  align-items: center;
}

.jr-page-hero-media {
  overflow: hidden;
}

.jr-page-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.jr-page-content {
  padding-bottom: 0.5rem;
}

.jr-property-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.jr-property-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.jr-property-gallery img {
  max-height: 540px;
  object-fit: contain;
}

.jr-property-price {
  margin: 0.7rem 0 0;
  color: var(--jr-brand);
  font-size: 1.3rem;
  font-weight: 800;
}

.jr-property-meta {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.jr-request-form-compact {
  margin-top: 1.5rem;
}

.jr-request-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .jr-header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand nav"
      "search search";
  }

  .jr-header-inner.has-header-actions {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions actions"
      "nav nav nav"
      "search search search";
  }

  .jr-home-layout,
  .jr-products-layout,
  .jr-footer-grid,
  .jr-page-hero-inner,
  .jr-property-layout {
    grid-template-columns: 1fr;
  }

  .jr-home-sidebar {
    position: static;
  }

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

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

@media (max-width: 820px) {
  .jr-topbar-inner {
    justify-content: center;
  }

  .jr-header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "toggle brand"
      "nav nav"
      "search search";
  }

  .jr-header-inner.has-header-actions {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "toggle brand actions"
      "nav nav nav"
      "search search search";
  }

  .jr-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .jr-header-nav .jr-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--jr-border);
    border-radius: var(--jr-radius-md);
    background: #fff;
    overflow: hidden;
  }

  .jr-header-nav .jr-menu.is-open {
    display: flex;
  }

  .jr-header-nav .jr-menu li + li {
    border-top: 1px solid var(--jr-border);
  }

  .jr-header-nav .jr-menu a {
    display: block;
    padding: 0.95rem 1rem;
  }

  .jr-header-searchbar,
  .jr-home-hero {
    grid-template-columns: 1fr;
  }

  .jr-header-searchform {
    grid-template-columns: 1fr;
  }

  .jr-header-link span {
    display: none;
  }

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

@media (max-width: 640px) {
  .jr-container {
    width: min(100% - 1.2rem, 1310px);
  }

  .jr-home-shell {
    padding-top: 1rem;
  }

  .jr-home-sidebar,
  .jr-home-hero,
  .jr-home-editor,
  .jr-section-card,
  .jr-like-strip,
  .jr-request-card,
  .jr-page-hero-copy,
  .jr-page-article,
  .jr-property-gallery,
  .jr-property-summary {
    border-radius: var(--jr-radius-md);
  }

  .jr-card-grid,
  .jr-like-grid,
  .jr-request-grid,
  .jr-request-grid-compact {
    grid-template-columns: 1fr;
  }

  .jr-home-hero-copy h1,
  .jr-page-hero-copy h1,
  .jr-property-summary h1 {
    font-size: 1.9rem;
  }

  .jr-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
