/*
 * Diaz Immobilien — components & layout
 *
 * Layered on top of PicoCSS. All custom selectors are prefixed with `.diaz-`
 * or the component's domain (e.g. `.status-available`) to keep them easy to
 * grep and to avoid clashing with Pico's own rules.
 */

/* =========================================================================
 * Brand
 * ========================================================================= */

:root {
  --diaz-radius-sm: 0.5rem;
  --diaz-radius: 0.625rem;
  --diaz-radius-lg: 1rem;
  --diaz-radius-pill: 9999px;

  --diaz-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04),
                       0 8px 24px -12px rgba(15, 23, 42, 0.06);
  --diaz-shadow-raised: 0 1px 3px rgba(15, 23, 42, 0.05),
                        0 16px 32px -16px rgba(15, 23, 42, 0.10);
  --diaz-shadow-nav: 0 1px 0 rgba(15, 23, 42, 0.06),
                     0 8px 24px -16px rgba(15, 23, 42, 0.10);

  /* Brand accent — deep wine red. The base.html.twig inline style sets
     --diaz-primary to match, so anything in Pico's color system follows. */
  --diaz-accent: #9F1B2D;
  --diaz-accent-hover: #7F1422;
  --diaz-accent-soft: rgba(159, 27, 45, 0.10);
  --diaz-accent-softer: rgba(159, 27, 45, 0.06);

  /* Display heading font — Playfair Display, loaded alongside Inter. */
  --diaz-heading-font: "Playfair Display", Georgia, "Times New Roman", serif;

  --diaz-nav-bg: rgba(255, 255, 255, 0.88);
  --diaz-nav-border: rgba(15, 23, 42, 0.06);

  /* Horizontal page gutter — the outer padding shared by nav, sections, and footer grid. */
  --diaz-page-pad: clamp(1rem, 4vw, 2rem);

  /* Extra horizontal breathing room around the nav brand logo. Sits on top
     of the page gutter so the centred logo keeps a fixed minimum gap from
     the nav links on desktop. The mobile override drops it because the
     drawer replaces the inline nav. */
  --diaz-brand-pad: 3.5rem;
  --diaz-brand-pad-mobile: 1rem;
}

/* =========================================================================
 * Header / Navigation
 * ========================================================================= */

#header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--diaz-nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--diaz-nav-border);
  transition: padding 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
body.scrolled #header {
  box-shadow: var(--diaz-shadow-nav);
}

.diaz-nav {
  display: grid;
  /* Three columns: left nav  | brand (centered)  | right nav.
     Large horizontal padding on the brand gives the logo generous
     breathing room on both sides without affecting the nav links. */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 0;
  min-height: 96px;
  min-width: 0;
  padding-inline: var(--diaz-page-pad);
  padding-block: 0.75rem;
  transition: min-height 0.2s ease;
}
body.header-animated.scrolled .diaz-nav {
  min-height: 76px;
}

.diaz-nav__brand {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding-inline: var(--diaz-brand-pad);
}
.diaz-nav__menu {
  display: flex;
  align-items: center;
  min-width: 0;
}
.diaz-nav__menu--left {
  justify-content: flex-end;
}
.diaz-nav__menu--right {
  justify-content: flex-start;
}
.diaz-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.diaz-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--diaz-color);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.diaz-brand:hover {
  color: var(--diaz-color);
  text-decoration: none;
}
.diaz-brand__img {
  display: block;
  width: 72px;
  height: 72px;
  transition: width 0.2s ease, height 0.2s ease;
}
body.header-animated.scrolled .diaz-brand__img {
  width: 60px;
  height: 60px;
}
.diaz-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--diaz-primary);
  color: var(--diaz-primary-inverse);
}
.diaz-brand__mark svg { width: 22px; height: 22px; }
.diaz-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.diaz-brand__name {
  font-family: var(--diaz-heading-font);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.diaz-brand__tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--diaz-muted-color);
  letter-spacing: 0.01em;
  text-transform: none;
  margin-top: 2px;
}

.diaz-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.diaz-nav__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  min-width: 6rem;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #6b6b6b;
  text-decoration: none;
  border-radius: var(--diaz-radius-sm);
  transition: color 0.15s ease;
}
.diaz-nav__list a:hover,
.diaz-nav__list a:focus {
  color: #1a1a1a;
  text-decoration: none;
}
.diaz-nav__list a.active,
.diaz-nav__list a[aria-current="page"] {
  color: #9F1B2D;
  font-weight: 500;
}

.diaz-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background-color: #9F1B2D;
  color: #ffffff;
  border: 0;
  border-radius: var(--diaz-radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.diaz-cta-btn:hover {
  background-color: #7F1422;
  color: #ffffff;
  text-decoration: none;
}
.diaz-cta-btn:active { transform: translateY(0.5px); }

/* Mobile burger */
.diaz-burger {
  display: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--diaz-nav-border);
  background: transparent;
  color: #1a1a1a;
  border-radius: var(--diaz-radius-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}
.diaz-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.diaz-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.diaz-burger.is-open span:nth-child(2) { opacity: 0; }
.diaz-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .diaz-nav {
    /* Two columns on mobile: brand | burger. The desktop left/right
       nav menus are hidden here — they live in the drawer below. */
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }
  .diaz-nav__menu--left,
  .diaz-nav__menu--right { display: none; }
  .diaz-nav__brand { padding-inline: var(--diaz-brand-pad-mobile); justify-content: flex-start; }
  .diaz-burger {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
  .diaz-brand__img { width: 56px; height: 56px; }
  body.nav-open { overflow: hidden; }
}

/* Mobile drawer — hidden on desktop, fixed full-width panel below the
   header on mobile. Slides down from above via transform when .is-open
   is toggled. */
.diaz-nav__drawer {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--diaz-nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--diaz-nav-border);
  padding: 1rem 1.5rem 2rem;
  z-index: 49;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.diaz-nav__drawer.is-open { transform: translateY(0); }
.diaz-nav__drawer .diaz-nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.diaz-nav__drawer .diaz-nav__list a {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--diaz-nav-border);
  border-radius: 0;
  display: block;
  color: #1a1a1a;
}
.diaz-nav__drawer .diaz-nav__list a.active,
.diaz-nav__drawer .diaz-nav__list a[aria-current="page"] {
  color: #9F1B2D;
}

@media (max-width: 860px) {
  .diaz-nav__drawer { display: block; }
}

/* =========================================================================
 * Hero
 * ========================================================================= */

.diaz-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 12vw, 9rem);
  background: #ffffff;
  border-bottom: 1px solid var(--diaz-muted-border-color);
  overflow: hidden;
}
.diaz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, var(--diaz-accent-soft), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.diaz-hero__inner {
  box-sizing: border-box;
}
.diaz-hero__eyebrow {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.5rem;
  background: var(--diaz-accent-soft);
  color: var(--diaz-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--diaz-radius-pill);
}

/* ----- Image-hero variant (full-bleed background image) ----- */
.diaz-hero--image {
  padding: 0;
  min-height: clamp(540px, 78vh, 820px);
  display: flex;
  align-items: flex-end;
  border-bottom: 0;
  color: #ffffff;
}
.diaz-hero--image::before { display: none; }
.diaz-hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  animation: diaz-hero-zoom 14s ease-out forwards;
}
@keyframes diaz-hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}

/* Slideshow variant — 3 stacked cross-fading images.
   Each slide is on the same 18s loop; delays of 0/-6/-12s stagger them
   so the cross-fade is seamless. ~5.5s per slide, ~0.5s overlap. */
.diaz-hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.diaz-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform-origin: center;
  animation: diaz-hero-fade 18s infinite;
}
.diaz-hero__slide--1 { animation-delay:  0s;  }
.diaz-hero__slide--2 { animation-delay: -6s;  }
.diaz-hero__slide--3 { animation-delay: -12s; }
/* Each slide fades in, holds visible while the Ken Burns zoom eases
   from 1.06 → 1.0 over the first 30% of the cycle (5.4s of 18s), then
   fades out. The scale reset from 1.0 → 1.06 between 97% and 100% is
   masked by the opacity transition. */
@keyframes diaz-hero-fade {
  0%   { opacity: 1; transform: scale(1.06); }
  30%  { opacity: 1; transform: scale(1.0);  }
  33%  { opacity: 0; transform: scale(1.0);  }
  97%  { opacity: 0; transform: scale(1.0);  }
  100% { opacity: 1; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .diaz-hero__slide        { animation: none; transform: none; }
  .diaz-hero__slide--1     { opacity: 1; }
  .diaz-hero__slide--2,
  .diaz-hero__slide--3     { opacity: 0; }
}
.diaz-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    /* strong dark fade at the bottom, lighter at the top — keeps the
       top of the image visible and gives the text overlay solid contrast */
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      rgba(0, 0, 0, 0.75) 100%
    );
  z-index: -1;
}
.diaz-hero--image .diaz-hero__inner {
  text-align: left;
  max-width: 100%;
  width: 100%;
  padding-block: clamp(4rem, 8vw, 6rem);
  padding-inline: max(1.5rem, var(--diaz-page-pad));
  position: relative;
  z-index: 1;
}
.diaz-hero--image h1 {
  color: #ffffff;
  max-width: 22ch;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
}
.diaz-hero--image .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.1875rem);
  max-width: 52ch;
  margin-bottom: 2rem;
  margin-left: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.diaz-hero--image .diaz-hero__inner {
  text-align: left;
}
.diaz-hero--image .diaz-hero__eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.diaz-hero--image .diaz-hero__ctas {
  justify-content: flex-start;
}
.diaz-hero--image .diaz-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.diaz-hero--image .diaz-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: #ffffff;
}
.diaz-hero h1 {
  margin-bottom: 1.25rem;
}
.diaz-hero .lead {
  max-width: 56ch;
}
.diaz-hero__ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* =========================================================================
 * Buttons
 * ========================================================================= */

.diaz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background-color: #9F1B2D;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  border: 0;
  border-radius: var(--diaz-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.05s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.diaz-btn:hover {
  background-color: #7F1422;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}
.diaz-btn:active { transform: translateY(0); }
.diaz-btn--secondary {
  background: var(--diaz-card-background-color);
  color: var(--diaz-color);
  box-shadow: 0 0 0 1px var(--diaz-muted-border-color);
}
.diaz-btn--secondary:hover {
  background: var(--diaz-card-sectioning-background-color);
  color: var(--diaz-color);
}
.diaz-btn--ghost {
  background: transparent;
  color: var(--diaz-color);
  box-shadow: none;
}
.diaz-btn--ghost:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--diaz-color);
}

/* =========================================================================
 * Sections
 * ========================================================================= */

.diaz-section {
  padding-inline: var(--diaz-page-pad);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.diaz-section--alt {
  background: var(--diaz-card-sectioning-background-color);
}
.diaz-section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.diaz-section__header h2 { margin-bottom: 0.5rem; }
.diaz-section__header .lead { margin-inline: auto; }

/* =========================================================================
 * Property grid + cards
 * ========================================================================= */

.diaz-property-grid {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
@media (min-width: 1100px) {
  .diaz-property-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.diaz-property-card {
  display: flex;
  flex-direction: column;
  background: var(--diaz-card-background-color);
  border: 1px solid var(--diaz-card-border-color);
  border-radius: var(--diaz-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--diaz-color);
  box-shadow: var(--diaz-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.diaz-property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--diaz-shadow-raised);
  color: var(--diaz-color);
  text-decoration: none;
}

.diaz-property-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--diaz-card-sectioning-background-color);
  overflow: hidden;
}
.diaz-property-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.diaz-property-card:hover .diaz-property-card__media img {
  transform: scale(1.04);
}

.diaz-property-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.diaz-property-card__body {
  padding: 1.25rem 1.25rem 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.diaz-property-card__location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--diaz-muted-color);
  font-weight: 500;
}
.diaz-property-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--diaz-color);
  margin: 0;
}
.diaz-property-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--diaz-muted-border-color);
  margin-top: 0.75rem;
}
.diaz-property-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--diaz-color);
  line-height: 1.1;
}
.diaz-property-card__price-suffix {
  font-size: 0.75rem;
  color: var(--diaz-muted-color);
  font-weight: 500;
}
.diaz-property-card__facts {
  display: flex;
  gap: 0.875rem;
  font-size: 0.8125rem;
  color: var(--diaz-muted-color);
}
.diaz-property-card__facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* =========================================================================
 * Status / taxonomy badges
 * ========================================================================= */

.diaz-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--diaz-radius-pill);
  background: var(--diaz-card-background-color);
  color: var(--diaz-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.diaz-badge--type {
  background: var(--diaz-card-background-color);
  color: var(--diaz-color);
}
.diaz-badge--new {
  background: var(--diaz-primary);
  color: var(--diaz-primary-inverse);
}
.status-available {
  background: #0a8a3a;
  color: #ffffff;
}
.status-reserved {
  background: #c47a00;
  color: #ffffff;
}
.status-sold {
  background: #4a4a4a;
  color: #ffffff;
}

/* =========================================================================
 * Property detail page
 * ========================================================================= */

.diaz-property-detail__hero {
  position: relative;
  aspect-ratio: 21 / 9;
  background: var(--diaz-card-sectioning-background-color);
  overflow: hidden;
}
.diaz-property-detail__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diaz-property-detail__header {
  padding-block: 2rem 1.5rem;
  border-bottom: 1px solid var(--diaz-muted-border-color);
  margin-bottom: 2rem;
}
.diaz-property-detail__breadcrumbs { margin-bottom: 0.5rem; }
.diaz-property-detail__title { margin: 0 0 0.5rem; }
.diaz-property-detail__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--diaz-muted-color);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.diaz-property-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.diaz-property-detail__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--diaz-card-sectioning-background-color);
  border-radius: var(--diaz-radius);
}
.diaz-property-detail__price-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--diaz-color);
  letter-spacing: -0.02em;
}
.diaz-property-detail__price-suffix {
  font-size: 0.875rem;
  color: var(--diaz-muted-color);
}

/* Meta grid (key facts) */
.diaz-property-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--diaz-muted-border-color);
  border: 1px solid var(--diaz-muted-border-color);
  border-radius: var(--diaz-radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.diaz-property-meta__cell {
  background: var(--diaz-card-background-color);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.diaz-property-meta__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--diaz-muted-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.diaz-property-meta__value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--diaz-color);
  line-height: 1.2;
}
.diaz-property-meta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--diaz-accent-soft);
  color: var(--diaz-primary);
  margin-bottom: 0.25rem;
}

/* Description */
.diaz-property-description {
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.diaz-property-description h2 { margin-bottom: 1rem; }

/* Features list */
.diaz-property-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 0 0 2.5rem;
  list-style: none;
}
.diaz-property-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--diaz-color);
}
.diaz-property-features li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: var(--diaz-primary);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/14px no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/14px no-repeat;
}

/* Energy */
.diaz-property-energy {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--diaz-card-sectioning-background-color);
  border-radius: var(--diaz-radius);
  margin-bottom: 2.5rem;
}
.diaz-property-energy__label {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--diaz-muted-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.diaz-property-energy__scale {
  display: flex;
  gap: 2px;
  align-items: stretch;
}
.diaz-property-energy__cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 32px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  border-radius: 3px;
  background: #b8c5d0;
  text-decoration: none;
}
.diaz-property-energy__cell.is-active {
  outline: 2px solid var(--diaz-color);
  outline-offset: 1px;
  transform: scale(1.05);
}
.diaz-property-energy__details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--diaz-muted-color);
}
.diaz-property-energy__details strong {
  color: var(--diaz-color);
  font-weight: 600;
}

/* Map */
.diaz-property-map {
  border-radius: var(--diaz-radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--diaz-muted-border-color);
}
.diaz-property-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* Inquiry form (embedded on property page) */
.diaz-property-inquiry {
  background: var(--diaz-card-sectioning-background-color);
  border-radius: var(--diaz-radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
}
.diaz-property-inquiry h2 { margin-top: 0; }
.diaz-property-inquiry .diaz-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 640px) {
  .diaz-property-inquiry .diaz-form-row { grid-template-columns: 1fr; }
}

/* Agent card */
.diaz-agent-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--diaz-card-background-color);
  border: 1px solid var(--diaz-muted-border-color);
  border-radius: var(--diaz-radius);
  margin-bottom: 2rem;
}
.diaz-agent-card__avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--diaz-primary), color-mix(in oklab, var(--diaz-primary) 60%, white 40%));
  color: var(--diaz-primary-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.diaz-agent-card__body { flex: 1; }
.diaz-agent-card__name {
  font-weight: 600;
  color: var(--diaz-color);
  margin: 0 0 0.25rem;
}
.diaz-agent-card__role {
  font-size: 0.8125rem;
  color: var(--diaz-muted-color);
  margin: 0 0 0.5rem;
}
.diaz-agent-card__contact {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.875rem;
  color: var(--diaz-color);
}
.diaz-agent-card__contact a {
  color: var(--diaz-color);
  text-decoration: none;
}
.diaz-agent-card__contact a:hover {
  color: var(--diaz-primary);
  text-decoration: underline;
}

/* =========================================================================
 * Gallery
 * ========================================================================= */

.diaz-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  border-radius: var(--diaz-radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 21 / 9;
}
.diaz-gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--diaz-card-sectioning-background-color);
}
.diaz-gallery__item:first-child { grid-row: span 2; }
.diaz-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.diaz-gallery__item:hover img { transform: scale(1.04); }
.diaz-gallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.diaz-gallery__more:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  text-decoration: none;
}
@media (max-width: 720px) {
  .diaz-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: 4 / 3;
  }
  .diaz-gallery__item:first-child {
    grid-row: auto;
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }
}

/* Lightbox dialog */
dialog#diaz-lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}
dialog#diaz-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
dialog#diaz-lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: var(--diaz-radius);
}
dialog#diaz-lightbox button[data-lightbox-close] {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}
dialog#diaz-lightbox button[data-lightbox-close]:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =========================================================================
 * Listing page (Objekte)
 * ========================================================================= */

.diaz-listing__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.diaz-listing__header h1 { margin-bottom: 0.5rem; }
.diaz-listing__header .lead { margin-inline: auto; }

.diaz-listing__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--diaz-card-sectioning-background-color);
  border-radius: var(--diaz-radius);
  align-items: center;
}
.diaz-listing__filters-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--diaz-muted-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.5rem;
}

.diaz-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--diaz-card-background-color);
  color: var(--diaz-color);
  border: 1px solid var(--diaz-muted-border-color);
  border-radius: var(--diaz-radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.diaz-chip:hover {
  background: var(--diaz-primary);
  color: var(--diaz-primary-inverse);
  border-color: var(--diaz-primary);
  text-decoration: none;
}
.diaz-chip.is-active {
  background: var(--diaz-primary);
  color: var(--diaz-primary-inverse);
  border-color: var(--diaz-primary);
}

/* =========================================================================
 * Service / about blocks
 * ========================================================================= */

.diaz-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 920px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .diaz-services { grid-template-columns: 1fr; }
}
.diaz-service {
  padding: 2.25rem 1.875rem;
  background: #ffffff;
  border: 1px solid #ececea;
  border-radius: var(--diaz-radius-lg);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.diaz-service:hover {
  transform: translateY(-3px);
  box-shadow: var(--diaz-shadow-raised);
  border-color: transparent;
}
.diaz-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--diaz-accent-soft);
  color: var(--diaz-accent);
  margin: 0 auto 1.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.diaz-service:hover .diaz-service__icon {
  background: var(--diaz-accent);
  color: #ffffff;
}
.diaz-service h3 {
  font-family: var(--diaz-heading-font);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0 0 0.625rem;
  color: #1a1a1a;
}
.diaz-service p {
  color: var(--diaz-muted-color);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.diaz-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .diaz-about { grid-template-columns: 1fr; gap: 2rem; }
}
.diaz-about__image {
  border-radius: var(--diaz-radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--diaz-card-sectioning-background-color);
}
.diaz-about__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.diaz-about__text h2 { margin-top: 0; }
.diaz-about__text p { color: var(--diaz-muted-color); font-size: 1.0625rem; line-height: 1.65; }

/* ----- Team page ----- */
.diaz-team .team-portrait {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06),
              0 8px 24px -12px rgba(15, 23, 42, 0.12);
}
.diaz-team h2 {
  text-align: center;
  margin-top: 2.5rem;
}
.diaz-team h2:first-of-type { margin-top: 0.5rem; }
.diaz-team p strong:first-of-type {
  display: block;
  text-align: center;
  color: var(--diaz-muted-color);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

/* =========================================================================
 * Content article (default page)
 * ========================================================================= */

.diaz-content {
  max-width: 750px;
  margin-inline: auto;
  min-width: 0;
  padding-block: clamp(3rem, 5vw, 5.5rem);
  padding-inline: max(1.5rem, var(--diaz-page-pad));
  text-align: left;
}
.diaz-content__header {
  text-align: center;
  margin-bottom: 0.75rem;
}
.diaz-content__header h1 { margin: 0 0 3rem; }
.diaz-content__header .lead { margin: 0; }
.diaz-content__body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #2a2a2a;
  text-align: left;
  overflow-wrap: break-word;
  min-width: 0;
}
.diaz-content__body p { margin-block: 0 1.4em; }
.diaz-content__body h2 { margin-top: 3rem; margin-bottom: 1rem; }
.diaz-content__body h3 { margin-top: 2.25rem; margin-bottom: 0.75rem; }
.diaz-content__body img {
  border-radius: var(--diaz-radius);
  margin-block: 2rem;
  margin-inline: auto;
}
.diaz-content__body ul,
.diaz-content__body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
  text-align: left;
}
.diaz-content__body li {
  margin-bottom: 0.4em;
}

/* =========================================================================
 * Breadcrumbs
 * ========================================================================= */

.diaz-breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--diaz-muted-color);
  font-size: 0.875rem;
}
.diaz-breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.375rem;
  opacity: 0.6;
}
.diaz-breadcrumbs a {
  color: var(--diaz-muted-color);
  text-decoration: none;
}
.diaz-breadcrumbs a:hover {
  color: var(--diaz-primary);
  text-decoration: underline;
}

/* =========================================================================
 * Pagination
 * ========================================================================= */

.diaz-pagination {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin: 2.5rem 0 0;
  padding: 0;
}
.diaz-pagination a,
.diaz-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--diaz-radius-sm);
  text-decoration: none;
  color: var(--diaz-color);
  background: var(--diaz-card-background-color);
  border: 1px solid var(--diaz-muted-border-color);
  font-size: 0.9375rem;
  font-weight: 500;
}
.diaz-pagination a:hover {
  background: var(--diaz-primary);
  color: var(--diaz-primary-inverse);
  border-color: var(--diaz-primary);
  text-decoration: none;
}
.diaz-pagination .active span {
  background: var(--diaz-primary);
  color: var(--diaz-primary-inverse);
  border-color: var(--diaz-primary);
}
.diaz-pagination .disabled span {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================================================================
 * Forms
 * ========================================================================= */

.form-row {
  margin-bottom: 1.25rem;
}
.form-row-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--diaz-color);
  margin-bottom: 0.375rem;
}
.form-input,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea,
select {
  background: var(--diaz-form-element-background-color);
  color: var(--diaz-color);
  border: 1px solid var(--diaz-form-element-border-color);
  border-radius: var(--diaz-border-radius);
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--diaz-primary);
  box-shadow: 0 0 0 3px var(--diaz-form-element-focus-color);
  outline: none;
}
.form-errors {
  color: var(--diaz-del-color);
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}
.form-actions {
  margin-top: 1.5rem;
}
.form-actions button,
.form-actions input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--diaz-primary);
  color: var(--diaz-primary-inverse);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 0;
  border-radius: var(--diaz-radius);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.form-actions button:hover,
.form-actions input[type="submit"]:hover {
  background: var(--diaz-primary-hover);
}
.form-actions button[type="reset"] {
  background: transparent;
  color: var(--diaz-color);
  border: 1px solid var(--diaz-muted-border-color);
  margin-left: 0.5rem;
}
.form-actions button[type="reset"]:hover {
  background: var(--diaz-card-sectioning-background-color);
}

.form-wrapper input[type="checkbox"],
.form-wrapper input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: middle;
  margin-right: 0.5rem;
  accent-color: var(--diaz-primary);
}

/* =========================================================================
 * Toast / messages
 * ========================================================================= */

.diaz-messages { margin-bottom: 1.5rem; }
.diaz-toast {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background: var(--diaz-card-background-color);
  border: 1px solid var(--diaz-muted-border-color);
  border-left: 4px solid var(--diaz-primary);
  border-radius: var(--diaz-radius);
  margin-bottom: 0.5rem;
  box-shadow: var(--diaz-shadow-card);
}
.diaz-toast--success { border-left-color: #0a8a3a; }
.diaz-toast--error   { border-left-color: #c43030; }
.diaz-toast--warning { border-left-color: #c47a00; }

/* =========================================================================
 * Footer
 * ========================================================================= */

#footer {
  background: var(--diaz-card-sectioning-background-color);
  border-top: 1px solid var(--diaz-muted-border-color);
  padding-block: 3rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.875rem;
  color: var(--diaz-muted-color);
}
.diaz-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-inline: var(--diaz-page-pad);
}
@media (max-width: 860px) {
  .diaz-footer-grid { grid-template-columns: 1fr 1fr; }
  .diaz-footer-col--brand { grid-column: span 2; }
}
@media (max-width: 540px) {
  .diaz-footer-grid { grid-template-columns: 1fr; }
  .diaz-footer-col--brand { grid-column: auto; }
}
.diaz-footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--diaz-color);
  margin: 0 0 0.875rem;
}
.diaz-footer-col address {
  font-style: normal;
  color: var(--diaz-muted-color);
  line-height: 1.7;
}
.diaz-footer-col a {
  color: var(--diaz-muted-color);
  text-decoration: none;
  transition: color 0.15s ease;
}
.diaz-footer-col a:hover {
  color: var(--diaz-color);
  text-decoration: underline;
}
/* Footer lists: flat, no bullets, no indent — the column layout does
   the visual structuring. */
#footer ul,
#footer ul.diaz-footer-social,
.diaz-footer-col ul,
.diaz-footer-col ul.diaz-footer-social {
  list-style: none;
  list-style-type: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
#footer ul li,
.diaz-footer-col ul li {
  list-style: none;
  margin-bottom: 0.5rem;
}
.diaz-footer-col p { margin: 0 0 0.75rem; line-height: 1.7; }
.diaz-footer-logo {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--diaz-color);
  margin-bottom: 0.5rem;
}
.diaz-footer-social {
  display: flex;
  gap: 0.5rem;
}
.diaz-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--diaz-card-background-color);
  color: var(--diaz-color);
  border: 1px solid var(--diaz-muted-border-color);
}
.diaz-footer-social a:hover {
  background: var(--diaz-primary);
  color: var(--diaz-primary-inverse);
  border-color: var(--diaz-primary);
  text-decoration: none;
}
.diaz-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--diaz-muted-border-color);
  text-align: center;
  color: var(--diaz-muted-color);
  font-size: 0.8125rem;
}
.diaz-footer-bottom p { margin: 0; }

/* =========================================================================
 * Error page
 * ========================================================================= */

.diaz-error {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 600px;
  margin-inline: auto;
}
.diaz-error h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.5rem;
}
.diaz-error p { color: var(--diaz-muted-color); }

/* =========================================================================
 * Selection & focus
 * ========================================================================= */

::selection {
  background: var(--diaz-primary);
  color: var(--diaz-primary-inverse);
}
:focus-visible {
  outline: 2px solid var(--diaz-primary-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
