.commercial-page {
  --cp-green: #004b38;
  --cp-green-dark: #00372a;
  --cp-gold: #efaa22;
  --cp-line: #dfe5df;
  color: #17201c;
  background:
    radial-gradient(circle at 5% 64%, rgba(221, 171, 74, .05), transparent 24%),
    #fbfbf8;
  font-size: 14px;
}

.cp-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.cp-hero {
  position: relative;
  min-height: 305px;
  color: white;
  background:
    url("../images/photo-1486406146926-c627a92ad1ab.jpg") center 52% / cover no-repeat,
    var(--cp-green-dark);
}
.cp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 55, 42, .98) 0%, rgba(0, 55, 42, .89) 38%, rgba(0, 55, 42, .3) 78%);
}
.cp-hero-content { position: relative; z-index: 1; padding-top: 39px; }
.cp-hero nav { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.cp-hero nav span { color: rgba(255,255,255,.68); font-size: 20px; }
.cp-hero h1 { margin: 14px 0 4px; font: 700 clamp(40px, 4.3vw, 55px)/1.08 "Manrope", Arial, sans-serif; }
.cp-hero h2 { margin: 0 0 11px; color: #f0b42d; font-size: 18px; line-height: 1.45; }
.cp-hero p { margin: 0; color: rgba(255,255,255,.92); font-size: 14px; line-height: 1.65; }

.cp-filter-card {
  position: relative;
  z-index: 4;
  margin-top: -38px;
  padding: 19px 22px 20px;
  border: 1px solid rgba(0, 58, 41, .05);
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 13px 34px rgba(0, 54, 39, .11);
}
.cp-filter-row { display: grid; align-items: end; gap: 20px; }
.cp-filter-primary { grid-template-columns: .9fr .9fr 3.25fr; padding-bottom: 16px; border-bottom: 1px solid #e7e9e5; }
.cp-filter-secondary { grid-template-columns: 1.35fr 1.05fr .9fr .8fr; padding: 16px 0; border-bottom: 1px solid #e7e9e5; }
.cp-filter-more { grid-template-columns: 1fr 1fr 1fr 2.4fr; padding-top: 16px; }
.cp-filter-card label, .cp-range-group, .cp-type-group, .cp-purpose {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #303a35;
  font-size: 13px;
  font-weight: 600;
}
.cp-filter-card label { display: flex; flex-direction: column; gap: 8px; }
.cp-filter-card select, .cp-filter-card input {
  width: 100%;
  height: 43px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #dfe3de;
  border-radius: 6px;
  outline: 0;
  color: #2d3732;
  background: white;
  font-size: 13px;
}
.cp-filter-card select:focus, .cp-filter-card input:focus { border-color: #258b6c; box-shadow: 0 0 0 2px rgba(37,139,108,.08); }
.cp-type-group { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cp-type-group legend, .cp-purpose legend, .cp-range-group > span { display: block; grid-column: 1 / -1; margin-bottom: 8px; font-size: 13px; }
.cp-type-group button, .cp-purpose button {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dde2dd;
  border-radius: 6px;
  color: #36423c;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}
.cp-type-group button svg { width: 17px; height: 17px; color: #17694e; }
.cp-type-group button.active, .cp-purpose button.active { border-color: var(--cp-green); color: white; background: var(--cp-green); }
.cp-type-group button.active svg { color: #efb32d; }
.cp-range-group > div { display: flex; align-items: center; gap: 7px; }
.cp-range-group b { color: #717a75; font-size: 12px; font-weight: 500; }
.cp-range-group:first-child select { max-width: 76px; }
.cp-purpose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cp-blank-label > span { margin-bottom: 0; }
.cp-filter-actions { display: flex; justify-content: flex-end; gap: 14px; }
.cp-reset-button, .cp-search-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 27px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.cp-reset-button { min-width: 105px; border: 1px solid #bfc9c2; color: #314039; background: white; }
.cp-search-button { min-width: 220px; border: 0; color: white; background: var(--cp-green); box-shadow: 0 6px 14px rgba(0,65,46,.14); }
.cp-search-button svg { width: 18px; height: 18px; color: #f0b42d; }

.cp-listing { padding-top: 23px; padding-bottom: 20px; }
.cp-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.cp-toolbar > p { margin: 0; color: #4e5853; font-size: 13px; }
.cp-toolbar > div { display: flex; align-items: center; gap: 13px; }
.cp-toolbar label { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.cp-toolbar select { width: 160px; height: 40px; padding: 0 12px; border: 1px solid #dfe3de; border-radius: 6px; background: white; font-size: 13px; }
.cp-view-buttons { display: flex; gap: 4px; padding: 4px; border-radius: 7px; background: #f0f1ed; }
.cp-view-buttons button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #535d58; background: transparent; }
.cp-view-buttons button.active { color: #f2bd38; background: var(--cp-green); }
.cp-view-buttons svg { width: 17px; height: 17px; }
.cp-listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.cp-property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cp-property-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde2dd;
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 13px rgba(0, 48, 34, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cp-property-card:hover { transform: translateY(-3px); box-shadow: 0 13px 24px rgba(0, 48, 34, .11); }
.cp-property-card[hidden] { display: none; }
.cp-property-image { position: relative; height: 162px; background-position: center; background-size: cover; }
.cp-image-one, .cp-image-six, .cp-image-eleven { background-image: url("../images/photo-1486406146926-c627a92ad1ab.jpg"); }
.cp-image-two, .cp-image-four, .cp-image-eight { background-image: url("../images/photo-1497366754035-f200968a6e72.jpg"); }
.cp-image-three, .cp-image-nine, .cp-image-twelve { background-image: url("../images/photo-1497366811353-6870744d04b2.jpg"); }
.cp-image-five, .cp-image-ten { background-image: url("../images/photo-1553413077-190dd305871c.jpg"); }
.cp-image-seven { background-image: url("../images/photo-1503387762-592deb58ef4e.jpg"); }
.cp-badge, .cp-focus { position: absolute; left: 9px; padding: 4px 7px; border-radius: 4px; color: white; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.cp-badge { top: 9px; }
.cp-badge.gold { color: #3d2c04; background: #f1bc37; }
.cp-badge.orange { color: #3d2c04; background: #f09a1c; }
.cp-badge.green { background: #08714f; }
.cp-badge.blue { background: #2f69b0; }
.cp-focus { bottom: 7px; background: rgba(0, 78, 56, .94); }
.cp-favourite {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 43, 31, .25);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.4));
}
.cp-favourite svg { width: 21px; height: 21px; }
.cp-favourite.saved { color: #eca821; background: white; }
.cp-favourite.saved svg { fill: currentColor; }
.cp-card-body { padding: 11px 12px 13px; }
.cp-card-body h2 { margin: 0 0 6px; color: #18201c; font-size: 15px; line-height: 1.3; }
.cp-card-body > p { display: flex; align-items: center; gap: 5px; margin: 0 0 6px; color: #65706a; font-size: 12px; }
.cp-card-body > p svg { width: 13px; height: 13px; color: #166a4e; }
.cp-meta { display: flex; justify-content: space-between; gap: 7px; margin: 9px 0; padding-bottom: 9px; border-bottom: 1px solid #e8ebe8; color: #66706b; font-size: 11px; }
.cp-meta span { display: flex; align-items: center; gap: 4px; }
.cp-meta svg { width: 13px; height: 13px; }
.cp-card-body strong { display: block; margin-bottom: 2px; color: #0d4837; font-size: 16px; }
.cp-card-body small { color: #69736e; font-size: 11px; }
.cp-property-grid.list-view { grid-template-columns: 1fr; }
.cp-property-grid.list-view .cp-property-card { display: grid; grid-template-columns: 230px 1fr; }
.cp-property-grid.list-view .cp-property-image { min-height: 205px; height: 100%; }
.cp-property-grid.list-view .cp-card-body { padding: 17px; }
.cp-property-grid.list-view .cp-card-body h2 { font-size: 18px; }

.cp-investment-panel { padding: 22px 15px 16px; border: 1px solid #e1e4df; border-radius: 8px; background: #f7f6f0; }
.cp-investment-panel > h2 { margin: 0 4px 17px; color: #123d30; font: 700 24px/1.25 "Manrope", Arial, sans-serif; }
.cp-investment-panel article { display: grid; grid-template-columns: 31px 1fr; gap: 10px; margin-bottom: 11px; padding: 14px 11px; border-radius: 7px; background: white; }
.cp-investment-panel article > svg { width: 25px; height: 25px; color: #176c50; }
.cp-investment-panel h3 { margin: 0 0 5px; color: #1a2722; font-size: 12px; line-height: 1.4; }
.cp-investment-panel article p { margin: 0; color: #59635e; font-size: 11px; line-height: 1.55; }
.cp-market-insight { margin-top: 14px; padding: 17px 13px; border-radius: 7px; background: #e9eee7; }
.cp-market-insight h3 { color: #184c3b; font-size: 14px; }
.cp-market-insight p { color: #4f5b55; font-size: 12px; line-height: 1.65; }
.cp-market-insight small { color: #6b746f; font-size: 10px; }
.cp-empty-state { padding: 55px 20px; border: 1px dashed #cad2cc; border-radius: 9px; text-align: center; background: white; }
.cp-empty-state svg { width: 42px; height: 42px; color: var(--cp-green); }
.cp-empty-state h2 { margin: 10px 0 3px; font-size: 21px; }
.cp-empty-state p { margin: 0; color: #68716c; }
.cp-pagination { display: flex; justify-content: center; gap: 8px; padding: 24px 0 3px; }
.cp-pagination button { min-width: 33px; height: 33px; padding: 0 8px; border: 1px solid #dce1dc; border-radius: 5px; color: #45504b; background: white; font-size: 12px; }
.cp-pagination button.active { border-color: var(--cp-green); color: white; background: var(--cp-green); }

.cp-contact-cta {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 24px;
  padding: 20px 31px;
  border-radius: 11px;
  color: white;
  background: linear-gradient(100deg, #00513b, #003b2e);
  box-shadow: 0 10px 25px rgba(0, 58, 41, .11);
}
.cp-contact-cta > div:first-child { display: flex; align-items: center; gap: 21px; }
.cp-contact-cta > div > svg { width: 54px; height: 54px; color: #e9ae27; }
.cp-contact-cta p { margin: 0; }
.cp-contact-cta p strong { display: block; font: 700 22px/1.25 "Manrope", Arial, sans-serif; }
.cp-contact-cta p span { display: block; margin-top: 6px; font-size: 13px; }
.cp-cta-actions { text-align: center; }
.cp-cta-actions a { min-width: 240px; height: 49px; display: flex; align-items: center; justify-content: center; gap: 30px; border-radius: 6px; color: #14362a; background: #f2b83b; font-size: 13px; font-weight: 800; }
.cp-cta-actions p { margin-top: 9px; font-size: 12px; }
.cp-cta-actions p strong { display: inline; font-family: inherit; font-size: 13px; }
.cp-bottom { display: grid; grid-template-columns: minmax(0, 1.45fr) .85fr; gap: 23px; padding-bottom: 28px; }
.cp-faq > h2 { margin: 0 0 11px; color: #1d2823; font-size: 19px; }
.cp-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.cp-faq article { overflow: hidden; border: 1px solid #dfe4df; border-radius: 6px; background: white; }
.cp-faq button { width: 100%; min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 0; color: #39433e; background: white; text-align: left; font-size: 12px; }
.cp-faq button svg { width: 15px; height: 15px; flex: 0 0 auto; }
.cp-faq article > p { display: none; margin: 0; padding: 0 11px 11px; color: #66706b; font-size: 12px; line-height: 1.55; }
.cp-faq article.open > p { display: block; }
.cp-faq article.open button svg { transform: rotate(45deg); }
.cp-expert-card {
  min-height: 170px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e0e4df;
  border-radius: 9px;
  background:
    linear-gradient(90deg, #fff 4%, rgba(255,255,255,.92) 43%, rgba(255,255,255,.12) 73%),
    url("../images/photo-1497366811364-ccf3f6b31b3b.jpg") center / cover no-repeat;
}
.cp-expert-card > div { width: 64%; padding: 18px 20px; }
.cp-expert-card h2 { margin: 0 0 7px; color: #143f32; font: 700 21px/1.18 "Manrope", Arial, sans-serif; }
.cp-expert-card p { margin: 0 0 13px; color: #4d5953; font-size: 12px; line-height: 1.5; }
.cp-expert-card a { display: inline-flex; min-height: 39px; align-items: center; padding: 0 15px; border-radius: 5px; color: white; background: var(--cp-green); font-size: 11px; font-weight: 700; }
.commercial-page + footer .footer-cta { display: none; }

@media (max-width: 1100px) {
  .cp-filter-primary { grid-template-columns: 1fr 1fr; }
  .cp-type-group { grid-column: 1 / -1; }
  .cp-filter-secondary { grid-template-columns: 1fr 1fr; }
  .cp-filter-more { grid-template-columns: repeat(3, 1fr); }
  .cp-filter-actions { grid-column: 1 / -1; }
  .cp-listing-layout { grid-template-columns: 1fr; }
  .cp-investment-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cp-investment-panel > h2, .cp-market-insight { grid-column: 1 / -1; }
  .cp-investment-panel article { margin: 0; }
}

@media (max-width: 760px) {
  .cp-shell { width: calc(100% - 30px); }
  .cp-hero { min-height: 315px; }
  .cp-hero-content { padding-top: 42px; }
  .cp-hero p br { display: none; }
  .cp-filter-card { margin-top: -32px; padding: 16px; }
  .cp-filter-primary, .cp-filter-secondary, .cp-filter-more { grid-template-columns: 1fr 1fr; gap: 15px; }
  .cp-type-group, .cp-filter-actions { grid-column: 1 / -1; }
  .cp-type-group { grid-template-columns: repeat(3, 1fr); }
  .cp-property-grid { grid-template-columns: 1fr 1fr; }
  .cp-investment-panel { grid-template-columns: 1fr 1fr; }
  .cp-contact-cta { grid-template-columns: 1fr; }
  .cp-cta-actions { display: flex; align-items: center; gap: 15px; text-align: left; }
  .cp-cta-actions p { margin: 0; }
  .cp-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .commercial-page { width: 100vw; max-width: 100vw; overflow-x: hidden; }
  .cp-shell { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
  .cp-hero-content, .cp-filter-card, .cp-listing, .cp-contact-cta, .cp-bottom { min-width: 0; }
  .cp-hero h1 { max-width: 100%; font-size: 35px; overflow-wrap: anywhere; }
  .cp-hero h2 { font-size: 16px; }
  .cp-hero h2, .cp-hero p { max-width: 100%; overflow-wrap: anywhere; }
  .cp-filter-card form, .cp-filter-row, .cp-filter-row > * { min-width: 0; max-width: 100%; }
  .cp-filter-card select, .cp-filter-card input, .cp-type-group button { min-width: 0; max-width: 100%; }
  .cp-filter-primary, .cp-filter-secondary, .cp-filter-more { grid-template-columns: 1fr; }
  .cp-type-group, .cp-filter-actions { grid-column: auto; }
  .cp-type-group { grid-template-columns: 1fr 1fr; }
  .cp-range-group > div { flex-wrap: wrap; }
  .cp-range-group input, .cp-range-group select { flex: 1 1 40%; }
  .cp-range-group:first-child select { max-width: none; }
  .cp-filter-actions { flex-direction: column-reverse; }
  .cp-reset-button, .cp-search-button { width: 100%; }
  .cp-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .cp-toolbar > div { width: 100%; justify-content: space-between; }
  .cp-toolbar label { align-items: flex-start; flex-direction: column; gap: 5px; }
  .cp-property-grid { grid-template-columns: 1fr; }
  .cp-property-image { height: 210px; }
  .cp-property-grid.list-view .cp-property-card { grid-template-columns: 1fr; }
  .cp-property-grid.list-view .cp-property-image { min-height: 210px; }
  .cp-investment-panel { grid-template-columns: 1fr; }
  .cp-investment-panel > h2, .cp-market-insight { grid-column: auto; }
  .cp-contact-cta { padding: 21px; }
  .cp-contact-cta > div:first-child { align-items: flex-start; }
  .cp-contact-cta p strong { font-size: 20px; }
  .cp-cta-actions { align-items: stretch; flex-direction: column; text-align: center; }
  .cp-cta-actions a { min-width: 0; width: 100%; }
  .cp-faq-grid { grid-template-columns: 1fr; }
}
