/* =========================================================
   YR LISTINGS MANAGER - SINGLE PROPERTY 0.4.0
   Compact, premium, responsive property presentation
   ========================================================= */

html.yrpd-no-scroll,
html.yrpd-no-scroll body {
  overflow: hidden;
}

body.yr-property-template {
  margin: 0;
  background: #f4f8fc;
}

.yrpd-page,
.yrpd-page * {
  box-sizing: border-box;
}

.yrpd-page {
  --yrpd-navy: #061a33;
  --yrpd-navy-2: #0a315c;
  --yrpd-blue: #0b74c7;
  --yrpd-blue-2: #1598dc;
  --yrpd-aqua: #39c7e6;
  --yrpd-sky: #f4f8fc;
  --yrpd-white: #ffffff;
  --yrpd-ink: #172033;
  --yrpd-muted: #64748b;
  --yrpd-line: #dbe6ef;
  --yrpd-shadow: 0 18px 48px rgba(6, 26, 51, 0.10);

  width: 100%;
  overflow: hidden;
  color: var(--yrpd-ink);
  background: var(--yrpd-white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.yrpd-page a {
  text-decoration: none;
}

.yrpd-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Compact property hero */

.yrpd-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 34px;
  color: var(--yrpd-white);
  background:
    radial-gradient(circle at 92% 0%, rgba(57, 199, 230, 0.20), transparent 29%),
    linear-gradient(135deg, #0b74c7 0%, #0a315c 45%, #061a33 100%);
}

.yrpd-hero::after {
  content: "";
  position: absolute;
  top: -145px;
  right: -115px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  pointer-events: none;
}

.yrpd-back {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 850;
  transition: color 0.2s ease, transform 0.2s ease;
}

.yrpd-back:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.yrpd-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-top: 20px;
}

.yrpd-heading {
  min-width: 0;
}

.yrpd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.yrpd-badges span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yrpd-heading h1 {
  max-width: 780px;
  margin: 13px 0 7px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.yrpd-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.55;
}

.yrpd-price-card {
  min-width: 230px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.yrpd-price-card span {
  display: block;
  color: rgba(255, 255, 255, 0.63);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.yrpd-price-card strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

/* Main area and image gallery */

.yrpd-main {
  padding: 34px 0 76px;
  background:
    linear-gradient(180deg, #f4f8fc 0%, #ffffff 76%);
}

.yrpd-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 215px 215px;
  gap: 9px;
  overflow: hidden;
  border: 1px solid var(--yrpd-line);
  border-radius: 22px;
  background: #dfe8f0;
  box-shadow: var(--yrpd-shadow);
}

.yrpd-gallery a {
  display: block;
  overflow: hidden;
  background: #dce6ee;
}

.yrpd-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.yrpd-gallery a:hover img {
  transform: scale(1.025);
  filter: brightness(0.95);
}

.yrpd-gallery-main {
  grid-row: 1 / 3;
}

.yrpd-gallery.is-single {
  display: block;
  width: 100%;
  height: clamp(310px, 39vw, 500px);
}

.yrpd-gallery.is-single a,
.yrpd-gallery.is-single img {
  width: 100%;
  height: 100%;
}

.yrpd-photo-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 26, 51, 0.78);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.yrpd-no-image {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yrpd-muted);
  font-weight: 700;
}

/* Content layout */

.yrpd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 26px;
  margin-top: 26px;
}

.yrpd-content {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.yrpd-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--yrpd-line);
  border-radius: 17px;
  box-shadow: 0 12px 32px rgba(6, 26, 51, 0.06);
}

.yrpd-specs > div {
  min-width: 0;
  padding: 17px 12px;
  text-align: center;
  border-right: 1px solid var(--yrpd-line);
}

.yrpd-specs > div:last-child {
  border-right: 0;
}

.yrpd-specs strong {
  display: block;
  color: var(--yrpd-navy);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.05;
}

.yrpd-specs span {
  display: block;
  margin-top: 5px;
  color: var(--yrpd-muted);
  font-size: 11px;
  font-weight: 750;
}

.yrpd-section {
  padding: 25px 27px;
  background: #ffffff;
  border: 1px solid var(--yrpd-line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(6, 26, 51, 0.05);
}

.yrpd-section > span,
.yrpd-contact-card > span {
  color: var(--yrpd-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.yrpd-section h2,
.yrpd-contact-card h2 {
  margin: 7px 0 15px;
  color: var(--yrpd-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.yrpd-description {
  color: #42526a;
  font-size: 15.5px;
  line-height: 1.75;
}

.yrpd-description p:first-child {
  margin-top: 0;
}

.yrpd-description p:last-child {
  margin-bottom: 0;
}

.yrpd-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
}

.yrpd-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--yrpd-line);
}

.yrpd-facts dt {
  color: var(--yrpd-muted);
  font-size: 13px;
}

.yrpd-facts dd {
  margin: 0;
  color: var(--yrpd-navy);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

/* Contact sidebar */

.yrpd-sidebar {
  align-self: start;
  position: sticky;
  top: 154px;
}

.yrpd-contact-card {
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(57, 199, 230, 0.12), transparent 32%),
    #ffffff;
  border: 1px solid var(--yrpd-line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(6, 26, 51, 0.10);
}

.yrpd-contact-card p {
  margin: 0 0 18px;
  color: var(--yrpd-muted);
  font-size: 14px;
  line-height: 1.65;
}

.yrpd-primary,
.yrpd-secondary {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yrpd-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yrpd-blue), var(--yrpd-navy));
  box-shadow: 0 12px 26px rgba(11, 116, 199, 0.20);
}

.yrpd-secondary {
  color: var(--yrpd-navy);
  background: #ffffff;
  border: 1px solid var(--yrpd-line);
}

.yrpd-primary:hover,
.yrpd-secondary:hover {
  transform: translateY(-2px);
}

.yrpd-secondary:hover {
  border-color: rgba(11, 116, 199, 0.35);
}

.yrpd-agent {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--yrpd-line);
}

.yrpd-agent strong,
.yrpd-agent span,
.yrpd-agent small {
  display: block;
}

.yrpd-agent strong {
  color: var(--yrpd-navy);
  font-size: 16px;
}

.yrpd-agent span {
  margin-top: 4px;
  color: var(--yrpd-blue);
  font-size: 13px;
  font-weight: 850;
}

.yrpd-agent small {
  margin-top: 4px;
  color: var(--yrpd-muted);
  font-size: 11px;
  line-height: 1.45;
}

/* Lightbox */

.yrpd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2, 11, 21, 0.92);
}

.yrpd-lightbox.is-open {
  display: flex;
}

.yrpd-lightbox img {
  max-width: min(1200px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.yrpd-lightbox button {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

/* Header fallback: uses the same classes as the global site header */

.yr-property-template .yr-site-header,
.yr-property-template .yr-site-header * {
  box-sizing: border-box;
}

.yr-property-template .yr-site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.admin-bar.yr-property-template .yr-site-header {
  top: 32px;
}

.yr-property-template .yr-header-container {
  width: min(1500px, calc(100% - 72px));
  margin-inline: auto;
}

.yr-property-template .yr-topbar {
  color: #ffffff;
  background: linear-gradient(135deg, #041c38, #082f57);
  font-size: 12px;
}

.yr-property-template .yr-topbar-inner,
.yr-property-template .yr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.yr-property-template .yr-topbar-inner {
  min-height: 34px;
}

.yr-property-template .yr-topbar-right {
  display: flex;
  gap: 18px;
}

.yr-property-template .yr-topbar a,
.yr-property-template .yr-topbar span {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 700;
}

.yr-property-template .yr-main-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(6, 26, 51, 0.10);
  box-shadow: 0 10px 28px rgba(6, 26, 51, 0.06);
  backdrop-filter: blur(16px);
}

.yr-property-template .yr-header-inner {
  min-height: 76px;
}

.yr-property-template .yr-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #102033;
  text-decoration: none;
}

.yr-property-template .yr-brand-mark {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b74c7, #041c38);
  font-size: 15px;
  font-weight: 950;
}

.yr-property-template .yr-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.yr-property-template .yr-brand-text strong {
  color: #041c38;
  font-size: 18px;
  font-weight: 950;
}

.yr-property-template .yr-brand-text small {
  margin-top: 4px;
  color: #0b74c7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.yr-property-template .yr-main-nav {
  display: flex;
  gap: 24px;
}

.yr-property-template .yr-main-nav a {
  color: #102033;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.yr-property-template .yr-main-nav a:hover,
.yr-property-template .yr-main-nav a.yr-active {
  color: #0b74c7;
}

.yr-property-template .yr-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yr-property-template .yr-header-phone,
.yr-property-template .yr-header-cta {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  text-decoration: none;
}

.yr-property-template .yr-header-phone {
  flex-direction: column;
  padding: 0 13px;
  color: #041c38;
  background: #f7fbff;
  border: 1px solid rgba(11, 116, 199, 0.16);
}

.yr-property-template .yr-header-phone span {
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.yr-property-template .yr-header-phone strong {
  margin-top: 2px;
  font-size: 12px;
}

.yr-property-template .yr-header-cta {
  padding: 0 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b74c7, #041c38);
  font-size: 12px;
  font-weight: 900;
}

.yr-property-template .yr-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(11, 116, 199, 0.18);
  border-radius: 13px;
  background: #f7fbff;
  cursor: pointer;
}

.yr-property-template .yr-menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #041c38;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.yr-property-template .yr-menu-toggle.yr-menu-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.yr-property-template .yr-menu-toggle.yr-menu-open span:nth-child(2) {
  opacity: 0;
}

.yr-property-template .yr-menu-toggle.yr-menu-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.yr-property-template .yr-mobile-nav {
  display: none;
  padding: 8px 0 14px;
  background: #ffffff;
  border-bottom: 1px solid rgba(6, 26, 51, 0.10);
  box-shadow: 0 18px 38px rgba(6, 26, 51, 0.10);
}

.yr-property-template .yr-mobile-nav.yr-mobile-nav-open {
  display: block;
}

.yr-property-template .yr-mobile-nav > a,
.yr-property-template .yr-mobile-contact {
  width: min(100% - 28px, 1180px);
  margin-inline: auto;
}

.yr-property-template .yr-mobile-nav > a {
  display: block;
  padding: 12px 0;
  color: #041c38;
  border-bottom: 1px solid rgba(6, 26, 51, 0.08);
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
}

.yr-property-template .yr-mobile-contact {
  margin-top: 13px;
  padding: 13px 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, #041c38, #082f57);
}

.yr-property-template .yr-mobile-contact a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 12px;
}

/* Footer fallback */

.yr-property-template .yrf-footer,
.yr-property-template .yrf-footer * {
  box-sizing: border-box;
}

.yr-property-template .yrf-footer {
  color: #ffffff;
  background: #04182f;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.yr-property-template .yrf-footer a {
  text-decoration: none;
}

.yr-property-template .yrf-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.yr-property-template .yrf-cta {
  padding: 43px 0;
  background: linear-gradient(135deg, #0b74c7, #082b52);
}

.yr-property-template .yrf-cta-inner,
.yr-property-template .yrf-legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.yr-property-template .yrf-cta-content h2 {
  margin: 5px 0 0;
  color: #ffffff;
  font: 900 clamp(29px, 3vw, 43px)/1.05 Georgia, serif;
}

.yr-property-template .yrf-cta-content > span,
.yr-property-template .yrf-cta-content p {
  color: rgba(255, 255, 255, 0.76);
}

.yr-property-template .yrf-cta-content > span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.yr-property-template .yrf-cta-content p {
  margin: 11px 0 0;
  font-size: 14px;
}

.yr-property-template .yrf-cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.yr-property-template .yrf-btn {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}

.yr-property-template .yrf-btn-light {
  color: #04182f;
  background: #ffffff;
}

.yr-property-template .yrf-btn-outline {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.yr-property-template .yrf-main {
  padding: 54px 0 46px;
  background: linear-gradient(180deg, #061c36, #04182f);
}

.yr-property-template .yrf-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(140px, 0.8fr));
  gap: 38px;
}

.yr-property-template .yrf-brand,
.yr-property-template .yrf-brand-text {
  display: inline-flex;
}

.yr-property-template .yrf-brand {
  align-items: center;
  gap: 11px;
}

.yr-property-template .yrf-brand-text {
  flex-direction: column;
}

.yr-property-template .yrf-brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b74c7, #04182f);
  font-weight: 950;
}

.yr-property-template .yrf-brand-text strong,
.yr-property-template .yrf-column h3 {
  color: #ffffff;
}

.yr-property-template .yrf-brand-text small {
  margin-top: 4px;
  color: #39c7e6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.yr-property-template .yrf-brand-description,
.yr-property-template .yrf-links a,
.yr-property-template .yrf-contact-item,
.yr-property-template .yrf-legal p,
.yr-property-template .yrf-legal-links a {
  color: rgba(255, 255, 255, 0.64);
}

.yr-property-template .yrf-brand-description {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.65;
}

.yr-property-template .yrf-brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.yr-property-template .yrf-brand-badges span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  font-size: 10px;
}

.yr-property-template .yrf-column h3 {
  margin: 0 0 16px;
  font-size: 14px;
}

.yr-property-template .yrf-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yr-property-template .yrf-links a {
  font-size: 12px;
}

.yr-property-template .yrf-contact-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.yr-property-template .yrf-contact-item {
  display: flex;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.yr-property-template .yrf-contact-icon {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #ffffff;
  background: #0b74c7;
  font-size: 9px;
  font-weight: 900;
}

.yr-property-template .yrf-contact-item small,
.yr-property-template .yrf-contact-item strong {
  display: block;
}

.yr-property-template .yrf-contact-item small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.yr-property-template .yrf-contact-item strong {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.yr-property-template .yrf-legal {
  padding: 20px 0 24px;
  background: #020b15;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yr-property-template .yrf-legal p,
.yr-property-template .yrf-legal-links a {
  font-size: 9px;
  line-height: 1.6;
}

.yr-property-template .yrf-legal-links {
  display: flex;
  gap: 13px;
}

.yr-property-template .yrf-disclaimer,
.yr-property-template .yrf-credit {
  margin-top: 12px !important;
}

/* Responsive */

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

  .yr-property-template .yr-main-nav,
  .yr-property-template .yr-header-actions {
    display: none;
  }

  .yr-property-template .yr-menu-toggle {
    display: inline-block;
  }

  .yr-property-template .yrf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .yrpd-layout {
    grid-template-columns: 1fr;
  }

  .yrpd-sidebar {
    position: static;
  }

  .yrpd-contact-card {
    max-width: 620px;
  }

  .yrpd-gallery {
    grid-template-rows: 185px 185px;
  }

  .yr-property-template .yrf-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .yrpd-container,
  .yr-property-template .yrf-container {
    width: calc(100% - 24px);
  }

  .yr-property-template .yr-header-container {
    width: 100%;
    padding-inline: 12px;
  }

  .yr-property-template .yr-topbar-inner {
    min-height: auto;
    padding: 7px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .yr-property-template .yr-topbar-right {
    flex-direction: column;
    gap: 3px;
  }

  .yr-property-template .yr-header-inner {
    min-height: 64px;
  }

  .yrpd-hero {
    padding: 24px 0 27px;
  }

  .yrpd-hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .yrpd-heading h1 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .yrpd-price-card {
    min-width: 0;
    width: min(100%, 330px);
  }

  .yrpd-price-card strong {
    white-space: normal;
  }

  .yrpd-main {
    padding-top: 24px;
  }

  .yrpd-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 130px;
  }

  .yrpd-gallery-main {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .yrpd-gallery.is-single {
    height: 285px;
  }

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

  .yrpd-specs > div:nth-child(2) {
    border-right: 0;
  }

  .yrpd-specs > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--yrpd-line);
  }

  .yrpd-section {
    padding: 22px 20px;
  }

  .yrpd-facts {
    grid-template-columns: 1fr;
  }

  .yr-property-template .yrf-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .yr-property-template .yrf-btn {
    width: 100%;
    max-width: 340px;
  }

  .yr-property-template .yrf-grid {
    grid-template-columns: 1fr;
  }

  .yr-property-template .yrf-legal-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .admin-bar.yr-property-template .yr-site-header {
    top: 46px;
  }

  .yrpd-heading p {
    font-size: 13px;
  }

  .yrpd-gallery {
    grid-template-rows: 220px 110px;
  }

  .yrpd-gallery.is-single {
    height: 245px;
  }

  .yrpd-specs strong {
    font-size: 20px;
  }

  .yrpd-contact-card {
    padding: 21px;
  }
}
