/* Zet Home — light, editorial tile system for the public property catalogue. */
:root {
  --tile-paper: #f2f7f7;
  --tile-surface: #ffffff;
  --tile-soft: #eaf3f4;
  --tile-line: #d2e2e4;
  --tile-ink: #12384b;
  --tile-blue: #126f87;
  --tile-accent: #dfe994;
  --tile-shadow: 0 14px 34px rgb(15 60 77 / 8%);
  --tile-shadow-hover: 0 22px 46px rgb(15 60 77 / 15%);
  --tile-radius: 22px;
}

body {
  background-color: var(--tile-paper);
  background-image:
    linear-gradient(rgb(18 111 135 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(18 111 135 / 3%) 1px, transparent 1px);
  background-size: 36px 36px;
}

.home-modern {
  background: transparent;
  color: var(--tile-ink);
}

.site-header,
.catalog-page-header,
.detail-header {
  background: rgb(255 255 255 / 94%) !important;
  border-bottom: 1px solid var(--tile-line) !important;
  box-shadow: 0 7px 22px rgb(15 60 77 / 5%);
}

.home-modern .hero {
  background: #f5fafb;
  border: 0;
  border-bottom: 1px solid var(--home-line);
}

.home-modern .hero-finder,
.home-modern .hero-actions .button,
.home-modern .hero-secondary {
  box-shadow: 0 7px 18px rgb(18 61 85 / 7%);
}

.home-modern .local-strip {
  background: var(--tile-surface);
  border: 1px solid var(--tile-line);
  border-radius: var(--tile-radius);
  box-shadow: var(--tile-shadow);
  margin: 20px auto 0;
  width: min(var(--max), calc(100% - 112px));
}

.home-modern .local-inner {
  min-height: 78px;
  width: 100%;
}

.home-modern .lake-story {
  background: transparent;
  border: 0;
  display: block !important;
  padding-block: clamp(42px, 6vw, 76px);
}

.home-modern .lake-story-inner {
  background: var(--tile-surface);
  border: 1px solid var(--tile-line);
  border-radius: calc(var(--tile-radius) + 4px);
  box-shadow: var(--tile-shadow);
  overflow: hidden;
  padding: clamp(20px, 4vw, 42px);
}

.home-modern .lake-story-visual {
  border-radius: 18px;
  box-shadow: none;
}

.home-modern .listings {
  background: transparent;
  padding-top: clamp(58px, 7vw, 94px);
}

.home-modern .section-heading {
  align-items: end;
  background: rgb(255 255 255 / 80%);
  border: 1px solid var(--tile-line);
  border-radius: 18px;
  box-shadow: 0 8px 21px rgb(15 60 77 / 4%);
  margin-bottom: 20px;
  padding: 22px 25px;
}

.home-modern .section-heading .eyebrow,
.home-modern .property-location,
.home-modern .listing-note > span,
.home-modern .service-number,
.home-modern .trust-grid article span {
  color: var(--tile-blue);
}

.property-tools {
  background: var(--tile-surface) !important;
  border: 1px solid var(--tile-line) !important;
  border-radius: var(--tile-radius) !important;
  box-shadow: var(--tile-shadow) !important;
}

.property-filters input,
.property-filters select,
.seller-form input,
.seller-form select,
.seller-form textarea {
  background: #fbfdfd !important;
  border-color: #b8d1d5 !important;
  border-radius: 10px !important;
}

.property-filters input:focus,
.property-filters select:focus,
.seller-form input:focus,
.seller-form select:focus,
.seller-form textarea:focus {
  border-color: var(--tile-blue) !important;
  box-shadow: 0 0 0 3px rgb(18 111 135 / 14%) !important;
}

.property-grid,
.home-modern .property-grid {
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.property {
  background: var(--tile-surface);
  border: 1px solid var(--tile-line) !important;
  border-radius: var(--tile-radius) !important;
  box-shadow: var(--tile-shadow) !important;
  overflow: hidden;
}

.property:hover {
  border-color: #9fc6cd !important;
  box-shadow: var(--tile-shadow-hover) !important;
  transform: translateY(-5px);
}

.property-photo {
  background: var(--tile-soft);
}

.property-photo::after {
  padding: 38px 18px 14px;
}

.property-tag,
.property-badge {
  border-radius: 999px !important;
}

.property-info {
  padding: 20px 19px 17px;
}

.property h3,
.price,
.property-facts strong {
  color: var(--tile-ink) !important;
}

.property-description,
.property-facts span,
.listing-source {
  color: #607983 !important;
}

.property-facts {
  border-bottom-color: var(--tile-line) !important;
}

.property-arrow {
  background: #f5fafb;
  border-color: #c8dde0 !important;
  border-radius: 10px !important;
  color: var(--tile-blue) !important;
}

.property:hover .property-arrow {
  background: var(--tile-accent) !important;
  border-color: var(--tile-accent) !important;
  color: var(--tile-ink) !important;
}

.property-actions {
  background: var(--tile-surface) !important;
  padding: 0 19px 19px !important;
}

.favorite-button,
.property-actions .detail-button {
  background: #f7fbfb !important;
  border-color: #c8dde0 !important;
  color: var(--tile-ink) !important;
}

.inquiry-button {
  background: var(--tile-ink) !important;
  border-color: var(--tile-ink) !important;
}

@media (min-width: 901px) {
  .homepage-featured-grid .property:first-child {
    grid-column: span 2;
  }

  .homepage-featured-grid .property:first-child .property-photo {
    aspect-ratio: 2.03;
  }
}

.services-section,
.home-modern .services-section {
  background: transparent !important;
  border: 0 !important;
}

.services-section .section {
  background: var(--tile-surface);
  border: 1px solid var(--tile-line);
  border-radius: calc(var(--tile-radius) + 4px);
  box-shadow: var(--tile-shadow);
  margin-top: 24px;
  padding: clamp(30px, 5vw, 60px);
}

.services-grid {
  gap: 16px;
}

.service {
  background: #f7fbfb;
  border: 1px solid var(--tile-line) !important;
  border-radius: 16px;
  min-height: 100%;
  padding: 24px 22px;
}

.service h3 {
  color: var(--tile-ink);
}

.about-section,
.trust-section,
.faq-section,
.seller-cta {
  background: var(--tile-surface);
  border: 1px solid var(--tile-line) !important;
  border-radius: calc(var(--tile-radius) + 2px);
  box-shadow: var(--tile-shadow);
  margin-top: 24px;
  padding: clamp(30px, 5vw, 60px) !important;
}

.trust-grid {
  gap: 14px;
}

.trust-grid article,
.faq-list details {
  background: #f7fbfb;
  border: 1px solid var(--tile-line) !important;
  border-radius: 14px;
}

.faq-list {
  gap: 10px;
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  padding: 17px 16px !important;
}

.faq-list p {
  padding: 0 16px 18px !important;
}

.seller-cta {
  align-items: center;
}

.contact-section,
.home-modern .contact-section {
  background: transparent !important;
  padding-bottom: clamp(50px, 7vw, 90px);
}

.contact-grid {
  gap: 18px;
  padding-block: 0 !important;
}

.contact-intro,
.contact-details {
  border-radius: var(--tile-radius);
  padding: clamp(28px, 4vw, 48px);
}

.contact-intro {
  background: linear-gradient(135deg, #0c465d, #127187);
  box-shadow: var(--tile-shadow);
}

.contact-details {
  background: var(--tile-surface);
  border: 1px solid var(--tile-line);
  box-shadow: var(--tile-shadow);
}

.home-modern .contact-details,
.home-modern .contact-person > p,
.home-modern .contact-email p {
  color: #607983;
}

.home-modern .contact-person > a,
.home-modern .contact-email > a {
  color: var(--tile-ink);
}

.home-modern .contact-person {
  border-bottom-color: var(--tile-line);
}

.share-strip {
  background: var(--tile-surface);
  border: 1px solid var(--tile-line);
  border-radius: 18px;
  box-shadow: var(--tile-shadow);
  margin-bottom: 24px;
  margin-top: 8px;
  padding: 24px !important;
}

.site-footer {
  background: transparent !important;
}

.catalog-hero {
  background: var(--tile-surface) !important;
  border: 1px solid var(--tile-line) !important;
  border-radius: calc(var(--tile-radius) + 4px);
  box-shadow: var(--tile-shadow);
  margin: 20px auto 0;
  overflow: hidden;
  width: min(var(--max), calc(100% - 112px));
}

.catalog-hero .shell {
  width: min(100% - 56px, 1168px);
}

.catalog-hero .button,
.button-lime {
  border-radius: 10px !important;
}

.catalog-page-header {
  padding-block: 12px !important;
}

.catalog-page-header > .shell {
  width: min(50%, calc(var(--max) / 2));
}

.catalog-page-header > .shell:first-child {
  margin-right: 0;
}

.catalog-page-header > .shell:last-child {
  margin-left: 0;
}

.places-page,
.seller-page,
.detail-main {
  background: transparent;
}

.places-hero,
.seller-hero {
  background: var(--tile-surface);
  border: 1px solid var(--tile-line);
  border-radius: var(--tile-radius);
  box-shadow: var(--tile-shadow);
  max-width: 820px !important;
  padding: clamp(28px, 5vw, 54px);
}

.places-grid,
.seller-layout {
  gap: 18px !important;
}

.place-card,
.seller-point,
.seller-form-wrap {
  background: var(--tile-surface) !important;
  border: 1px solid var(--tile-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--tile-shadow);
}

.places-cta {
  background: #e8f3f4 !important;
  border: 1px solid var(--tile-line);
  border-radius: var(--tile-radius) !important;
  box-shadow: var(--tile-shadow);
}

.detail-gallery,
.detail-copy {
  background: var(--tile-surface);
  border: 1px solid var(--tile-line);
  border-radius: var(--tile-radius);
  box-shadow: var(--tile-shadow);
}

.detail-gallery {
  padding: 12px;
}

.detail-copy {
  padding: clamp(24px, 4vw, 36px) !important;
}

.detail-image {
  border-radius: 14px !important;
  box-shadow: none !important;
}

/* The square branded poster is a complete composition; keep the whole image
   visible in the featured card instead of cropping its top or bottom. */
.property[data-listing-id="34668402"] .property-photo {
  aspect-ratio: 1 / 1;
  background: #071f35;
}

.property[data-listing-id="34668402"] .property-photo img {
  object-fit: contain;
}

.detail-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.detail-media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--tile-line);
  border-radius: 12px;
  background: #f6fafb;
}

.detail-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-media-card--floorplan {
  grid-column: 1 / -1;
  background: #fff;
}

.detail-media-card--floorplan img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.detail-media-card figcaption {
  padding: 8px 10px 9px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.detail-facts {
  border: 0 !important;
  gap: 10px !important;
}

.detail-facts div {
  background: #f6fafb;
  border: 1px solid var(--tile-line);
  border-radius: 12px;
  padding: 13px 11px;
}

.detail-fit,
.detail-contact-strip {
  border-color: var(--tile-line) !important;
  border-radius: 16px !important;
  box-shadow: none;
}

@media (max-width: 1200px) {
  .property-grid,
  .home-modern .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-modern .local-strip,
  .catalog-hero {
    width: calc(100% - 72px);
  }

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

  .homepage-featured-grid .property:first-child {
    grid-column: span 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .catalog-page-header > .shell {
    width: calc(50% - 18px);
  }
}

@media (max-width: 720px) {
  body {
    background-size: 28px 28px;
  }

  .home-modern .local-strip,
  .catalog-hero {
    width: calc(100% - 44px);
  }

  .home-modern .local-strip {
    margin-top: 14px;
  }

  .home-modern .local-inner {
    padding-inline: 18px;
  }

  .home-modern .lake-story-inner,
  .services-section .section,
  .about-section,
  .trust-section,
  .faq-section,
  .seller-cta {
    border-radius: 18px;
    padding: 24px 20px !important;
  }

  .home-modern .section-heading,
  .property-tools,
  .share-strip {
    border-radius: 16px !important;
    padding: 19px 17px !important;
  }

  .property-grid,
  .home-modern .property-grid {
    grid-template-columns: 1fr;
  }

  .homepage-featured-grid .property:first-child {
    grid-column: auto;
  }

  .property,
  .contact-intro,
  .contact-details,
  .places-hero,
  .seller-hero,
  .detail-gallery,
  .detail-copy {
    border-radius: 17px !important;
  }

  .property-info,
  .property-actions {
    padding-inline: 18px !important;
  }

  .catalog-hero {
    margin-top: 14px;
  }

  .catalog-hero .shell {
    width: calc(100% - 36px);
  }

  .catalog-page-header {
    gap: 8px !important;
    padding-inline: 22px !important;
  }

  .catalog-page-header > .shell {
    width: auto;
  }

  .catalog-page-header > .shell:first-child {
    flex: 1;
  }

  .detail-gallery {
    padding: 9px;
  }

  .detail-media-grid {
    gap: 8px;
    margin-top: 8px;
  }

  .detail-copy {
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .detail-image {
    aspect-ratio: 1 / 1;
  }

  .detail-media-grid {
    grid-template-columns: 1fr;
  }

  .detail-media-card--floorplan {
    grid-column: auto;
  }

  .detail-media-card img,
  .detail-media-card--floorplan img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .detail-media-card figcaption {
    padding: 10px 12px 11px;
    font-size: .875rem;
  }
}

/* Keep the complete branded poster aligned with the other featured cards. */
.homepage-featured-grid .property[data-listing-id="34668402"] {
  grid-column: auto;
}

.homepage-featured-grid .property[data-listing-id="34668402"] .property-photo {
  aspect-ratio: 1.57;
  background: #f6fbfc;
}

.detail-image[src*="featured-34668402.jpg"] {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f6fbfc;
  box-shadow: none;
}
