/* ============================================
   Customize your site by changing these variables
   ============================================ */
:root {
  /* Brand colors */
  --color-primary: #1a3c34;
  --color-primary-light: #2d5a4a;
  --color-accent: #c9a227;
  --color-accent-hover: #b8921f;

  /* Backgrounds */
  --color-bg: #faf8f5;
  --color-bg-card: #ffffff;
  --color-bg-hero: #1a3c34;

  /* Text */
  --color-text: #2d2d2d;
  --color-text-muted: #5c5c5c;
  --color-text-on-dark: #f5f2ed;

  /* Borders & shadows */
  --color-border: #e8e4de;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-heading: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  /* Spacing & layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --section-gap: 4rem;
  --radius: 12px;
  --radius-sm: 8px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Full-page listing view (new tab) – keep header & footer, hide main, show listing in middle */
body.listing-only-view {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.listing-only-view .site-header {
  order: 1;
  flex-shrink: 0;
  align-self: stretch;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
}
body.listing-only-view main { order: 2; display: none; }
body.listing-only-view .site-footer {
  order: 3;
  flex-shrink: 0;
  align-self: stretch;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 2.5rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}
.site-header nav {
  display: flex;
  gap: 1.5rem;
}
.site-header nav a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--color-primary); }

/* Hero */
.hero {
  background: var(--color-bg-hero);
  color: var(--color-text-on-dark);
  padding: 4rem 0;
  text-align: center;
}
.hero-content { max-width: 36rem; margin: 0 auto; }
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.hero-subtitle {
  margin: 0;
  font-size: 1.15rem;
  opacity: 0.9;
}

/* Listings section */
.listings-section {
  padding: var(--section-gap) 0;
}
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0;
  color: var(--color-primary);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.filter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.filters select,
.filters input[type="number"] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text);
  min-width: 120px;
  box-sizing: border-box;
}
.filters select {
  padding-right: 2rem;
  cursor: pointer;
}
.filters input[type="number"] {
  width: 7rem;
}
.filter-rooms-wrap,
.filter-okres-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.filter-rooms-buttons,
.filter-okres-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.filter-room-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-room-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-room-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.listing-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.2s;
  border: 1px solid var(--color-border);
}
.listing-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.listing-card a { display: block; position: relative; }
.listing-offer-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  color: #fff;
}
.listing-offer-sale { background: var(--color-primary); }
.listing-offer-lease { background: var(--color-primary-light); }
.listing-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-border);
}
.listing-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-body { padding: 1.25rem; }
.listing-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}
.listing-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--color-primary);
}
.listing-address {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.listing-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.listing-details {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.listing-details span { display: flex; align-items: center; gap: 0.35rem; }

.listings-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.listings-pagination .pagination-info {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.listings-pagination .pagination-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}
.listings-pagination .pagination-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-primary);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.listings-pagination .pagination-btn:hover:not(:disabled) {
  background: var(--color-bg);
  border-color: var(--color-primary);
}
.listings-pagination .pagination-btn.current {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  border-color: var(--color-primary);
}
.listings-pagination .pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.no-results {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
}

.listing-modal-close:hover { background: rgba(0, 0, 0, 0.7); }

/* Maximized Image Modal */
.max-image-modal {
  position: fixed;
  inset: 0;
  z-index: 300; /* Higher than listing modal */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.max-image-modal[hidden] { display: none; }
.max-image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}
.max-image-modal-panel {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  touch-action: none;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius);
}
.max-image-zoom-wrap {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.max-image-zoom-wrap:active { cursor: grabbing; }
.max-image-display {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius-sm);
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
  transition: none;
}
.max-image-modal-close {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 301;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.max-image-modal-close:hover { background: rgba(0, 0, 0, 0.7); }

.max-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.max-image-nav:hover { background: rgba(0, 0, 0, 0.5); }
.max-image-nav.prev { left: -4rem; }
.max-image-nav.next { right: -4rem; }

/* Thumbnail strip at bottom */
.max-image-thumbs-wrap {
  flex-shrink: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.5);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.max-image-thumbs-wrap[hidden] { display: none !important; }
.max-image-thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  min-width: min-content;
}
.max-image-thumb {
  flex-shrink: 0;
  width: 4rem;
  height: 3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.2s, opacity 0.2s;
}
.max-image-thumb:hover { opacity: 0.9; }
.max-image-thumb.active {
  border-color: var(--color-accent, #c9a227);
  box-shadow: 0 0 0 1px var(--color-accent, #c9a227);
}
.max-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .header-inner { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .site-header nav { gap: 0.85rem; }
  .site-header nav a { font-size: 0.9rem; }
  .logo-img { height: 2rem; }
  .max-image-nav.prev { left: 0.5rem; }
  .max-image-nav.next { right: 0.5rem; }
  .max-image-thumb { width: 3.25rem; height: 2.5rem; }
  .max-image-modal-close {
    top: max(0.5rem, env(safe-area-inset-top));
    left: max(0.5rem, env(safe-area-inset-left));
  }
}

@media (max-width: 768px) {
  .listing-modal {
    align-items: flex-start;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  .listing-modal-panel {
    max-height: calc(100vh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin-top: 0;
  }
  .listing-modal-close {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
  }
  .listing-detail-main {
    width: 100%;
  }
  .listing-detail-thumbs {
    min-height: 76px;
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
  }
  .listing-detail-thumbs button {
    width: 68px;
    height: 68px;
  }
  .listing-detail-thumbs {
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
  }
  .listing-detail-thumbs button {
    width: 56px;
    height: 56px;
  }
  .listing-detail-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
  }
  .listing-detail-nav.prev { left: 0.5rem; }
  .listing-detail-nav.next { right: 0.5rem; }
  body.listing-only-view .listing-detail-gallery {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    border-radius: 0;
  }
  body.listing-only-view .listing-modal-panel {
    padding: 1rem;
    padding-top: 0;
  }
}

/* Listing detail modal */
.listing-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.listing-modal[hidden] { display: none; }
.listing-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.listing-modal-panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}
.listing-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-on-dark);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.listing-modal-close:hover { background: rgba(0, 0, 0, 0.7); }

/* Full-page listing view (new tab) – inline between header & footer */
body.listing-only-view .listing-modal {
  order: 2;
  position: static !important;
  display: block !important;
  flex: 1;
  min-height: 0;
  padding-top: 4.5rem;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.listing-only-view .listing-modal-backdrop {
  display: none !important;
}
body.listing-only-view .listing-modal-panel {
  position: static !important;
  max-width: none;
  width: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0 var(--container-pad) 3rem;
  padding-top: 0;
  padding-bottom: 3rem;
  background: var(--color-bg);
}
body.listing-only-view .listing-modal-close {
  display: none !important;
}
body.listing-only-view .listing-detail-back-wrap {
  padding: 1rem 0 1rem;
  margin-bottom: 0;
}
.listing-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  margin: 1rem 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.listing-detail-back:hover {
  background: var(--color-bg);
  color: var(--color-primary-light);
}
/* Center photos/gallery in listing detail */
body.listing-only-view .listing-detail-gallery {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
body.listing-only-view .listing-detail-main {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}
body.listing-only-view .listing-detail-thumbs {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  align-self: stretch;
}
body.listing-only-view .listing-detail-body {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin: 0 auto 1.5rem;
  max-width: 48rem;
}
body.listing-only-view .listing-detail-makler {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin: 0 auto;
  max-width: 48rem;
}
@media (min-width: 769px) {
  body.listing-only-view .listing-detail-gallery {
    max-width: 44rem;
  }
  body.listing-only-view .listing-detail-main {
    max-width: 44rem;
  }
}

.listing-detail-gallery {
  position: relative;
  background: var(--color-border);
  display: flex;
  flex-direction: column;
}
.listing-detail-main {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  line-height: 0;
}
.listing-detail-main img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: bottom;
}
.listing-detail-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  min-height: 88px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.listing-detail-thumbs::-webkit-scrollbar {
  height: 6px;
}
.listing-detail-thumbs::-webkit-scrollbar-track {
  background: var(--color-border);
  border-radius: 3px;
}
.listing-detail-thumbs::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: 3px;
}
.listing-detail-thumbs button {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
  scroll-snap-align: center;
}
.listing-detail-thumbs button:hover,
.listing-detail-thumbs button.active {
  opacity: 1;
  border-color: var(--color-accent);
}
.listing-detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-text-on-dark);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.listing-detail-nav:hover { background: rgba(0, 0, 0, 0.7); }
.listing-detail-nav.prev { left: 1rem; }
.listing-detail-nav.next { right: 1rem; }

.listing-detail-body { padding: 1.5rem; }
.listing-detail-body .listing-offer-badge {
  position: static;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.listing-detail-body .listing-type { margin-bottom: 0.25rem; margin-left: 0.35rem; }
.listing-detail-body .listing-title { font-size: 1.5rem; margin-bottom: 0.35rem; }
.listing-detail-body .listing-address { margin-bottom: 1rem; }
.listing-detail-body .listing-price { font-size: 1.5rem; margin-bottom: 1rem; }
.listing-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.listing-detail-stats span {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.listing-detail-desc,
.listing-detail-more {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}
.listing-formatted {
  white-space: pre-wrap;
  word-wrap: break-word;
}
.listing-formatted b,
.listing-formatted strong { font-weight: 700; }
.listing-formatted i,
.listing-formatted em { font-style: italic; }
.listing-formatted u { text-decoration: underline; }
.listing-formatted p { margin: 0 0 0.5em; }
.listing-formatted p:last-child { margin-bottom: 0; }
.listing-detail-more { margin-bottom: 1.25rem; }
.listing-detail-media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.listing-media-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.08);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.listing-media-link:hover {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.15);
  color: var(--color-primary);
}
.listing-media-matterport::before { content: "360° "; font-weight: 600; }
.listing-media-youtube::before { content: "▶ "; font-weight: 600; }
.listing-detail-body .button { margin-top: 0.5rem; }
.listing-detail-back-wrap { padding: 1rem 1.5rem 0; margin-bottom: 0.5rem; }
.listing-btn-back { display: inline-block; text-decoration: none; }
.listing-btn-makler { cursor: pointer; border: none; font-family: inherit; margin-bottom: 1rem; }

.listing-detail-makler {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.listing-makler-heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-primary);
}
.listing-makler-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.listing-makler-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.listing-makler-info { min-width: 0; }
.listing-makler-name {
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}
.listing-makler-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.listing-makler-contact {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}
.listing-makler-contact a {
  color: var(--color-primary-light);
  text-decoration: none;
}
.listing-makler-contact a:hover { text-decoration: underline; color: var(--color-accent); }

/* About & Contact */
.about-section,
.contact-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--color-border);
}
.about-section h2,
.contact-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}
.about-section p,
.contact-section p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  max-width: 42rem;
}
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.button:hover { background: var(--color-accent-hover); }
.button-filter-reset {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  font-weight: 500;
}
.button-filter-reset:hover { background: var(--color-bg); color: var(--color-text); border-color: var(--color-text-muted); }

.about-page-hero {
  background: var(--color-bg-hero);
  color: var(--color-text-on-dark);
  padding: 4rem 0;
  text-align: center;
}
.about-page-hero .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.contact-page-section { padding-top: calc(var(--section-gap) * 1.5); }
.about-page-hero .hero-subtitle {
  margin: 0;
  font-size: 1.15rem;
  opacity: 0.9;
}

.about-content-section {
  padding: var(--section-gap) 0;
}
.about-content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  color: var(--color-primary);
}
.about-content-section p {
  max-width: 60rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.about-map-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.about-map-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: var(--color-primary);
}
.about-map-text {
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.about-map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 56rem;
  margin: 0 auto;
}
.about-map-col-map {
  min-width: 0;
}
.about-map-col-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-map-iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius);
  display: block;
  background: var(--color-border);
}
.about-map-place {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-primary);
}
.about-map-address {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.about-map-link {
  display: inline-block;
  align-self: flex-start;
}
@media (max-width: 700px) {
  .about-map-layout {
    grid-template-columns: 1fr;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.team-member {
  text-align: center;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  border: 1px solid var(--color-border);
}
.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--color-accent);
}
.team-member h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--color-primary);
}
.member-title {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}
.member-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}
.member-contact {
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}
.member-contact a {
  color: var(--color-primary-light);
  text-decoration: underline;
}
.member-contact a:hover { color: var(--color-accent); }
.member-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.member-socials a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.member-socials a:hover { color: var(--color-primary); }

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.site-footer p,
.site-footer .footer-legal {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.site-footer .footer-legal a,
.landing-copyright .footer-legal a {
  color: var(--color-primary-light);
  text-decoration: none;
}
.site-footer .footer-legal a:hover,
.landing-copyright .footer-legal a:hover {
  text-decoration: underline;
  color: var(--color-accent);
}
.footer-follow {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}
.footer-follow-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-right: 0.25rem;
}
.footer-social-link {
  display: inline-flex;
  color: var(--color-text-muted);
  transition: color 0.2s, transform 0.15s;
}
.footer-social-link:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}
.footer-social-link svg {
  width: 24px;
  height: 24px;
}
.landing-copyright .footer-follow-light .footer-follow-label,
.landing-copyright .footer-follow-light .footer-social-link {
  color: var(--color-text-muted);
}
.landing-copyright .footer-follow-light .footer-social-link:hover {
  color: var(--color-primary);
}

/* ========== Landing page (video + CTAs) ========== */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-page .site-header-landing {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border-bottom: none;
}
.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.landing-viewport {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
}
.landing-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-bg-hero);
}
.landing-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.landing-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 60, 52, 0.45) 0%, rgba(26, 60, 52, 0.7) 100%);
  pointer-events: none;
}
.landing-hero {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--color-text-on-dark);
  text-align: center;
  padding: 2rem var(--container-pad) 2rem;
  box-sizing: border-box;
}
.landing-hero-content {
  max-width: 36rem;
  margin: 0 auto;
}
.landing-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.landing-subtitle {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.5;
  opacity: 0.95;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.landing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.landing-btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
  min-width: 260px;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
}
.landing-btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.landing-btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.landing-btn-secondary {
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: rgba(255, 255, 255, 0.9);
}
.landing-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.site-header-landing .logo-img-light {
  filter: brightness(0) invert(1);
}
.site-header-landing .logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-header-landing .logo-img {
  width: 2.5rem;
  height: 2.5rem;
  max-width: none;
  object-fit: contain;
}
.site-header-landing nav a {
  color: var(--color-text-on-dark);
  text-decoration: none;
}
.site-header-landing nav a:hover {
  color: var(--color-accent);
}
.landing-copyright {
  padding: 1.5rem var(--container-pad);
  text-align: center;
}
.landing-copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Google reviews block – inside viewport at bottom of video */
.landing-google-in-viewport {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 1rem var(--container-pad) 3rem;
  text-align: center;
}
.landing-google-in-viewport .landing-google-title {
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}
.landing-google-in-viewport .landing-google-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}
.landing-google-reviews {
  background: var(--color-bg-card);
  padding: 2.5rem var(--container-pad);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

/* O nás page: Google reviews block with distinct background */
.about-google-reviews {
  background: #e8ebe9;
  padding: 2.5rem 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
  border-radius: var(--radius);
}
.about-google-reviews .landing-google-inner { max-width: 32rem; margin: 0 auto; }
.about-google-reviews .landing-google-title { color: var(--color-primary); }
.about-google-reviews .landing-google-text { color: var(--color-text-muted); }
.landing-google-inner {
  max-width: 32rem;
  margin: 0 auto;
}
.landing-google-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}
.landing-google-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}
.landing-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #5f6368;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.landing-google-btn:hover {
  border-color: #dadce0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--color-primary);
}
.landing-google-btn-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
}

/* ========== Predaj / prenájom – form + Naše služby ========== */
.predaj-form-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--color-border);
}
.predaj-form-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}
.section-intro {
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  max-width: 42rem;
}
.section-intro p { margin: 0 0 0.75rem; }
.section-intro p:last-child { margin-bottom: 0; }
.section-intro a { color: var(--color-primary-light); text-decoration: underline; }
.section-intro a:hover { color: var(--color-accent); }
.predaj-form {
  max-width: 28rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.predaj-form .form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.predaj-form .form-row-full { grid-column: 1 / -1; }
.predaj-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}
.predaj-form .required { color: var(--color-accent); }
.predaj-form input,
.predaj-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text);
}
.predaj-form input:focus,
.predaj-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(26, 60, 52, 0.15);
}
.predaj-form textarea { resize: vertical; min-height: 80px; }
.predaj-form .button { grid-column: 1 / -1; justify-self: start; margin-top: 0.25rem; }
.form-success-msg {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #e8f5e9;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 28rem;
}

.sluzby-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.sluzby-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  color: var(--color-primary);
}
.sluzby-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.sluzby-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.sluzby-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}
.sluzby-btn.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-primary);
}
.sluzby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.sluzba-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.sluzba-item:nth-child(even) {
  direction: rtl;
}
.sluzba-item:nth-child(even) > * {
  direction: ltr;
}
.sluzba-item-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-border);
  min-height: 200px;
}
.sluzba-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sluzba-item-content {
  padding: 2rem;
}
.sluzba-item-content h3 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-primary);
}
.sluzba-item-content p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .header-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .site-header nav { gap: 0.6rem; }
  .site-header nav a { font-size: 0.85rem; }
  .logo-img { height: 1.85rem; }
  .container { padding-left: 0.875rem; padding-right: 0.875rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; }
  .filters select,
  .filters input[type="number"] { min-width: 0; flex: 1; }
  .filters input[type="number"] { width: auto; }
  .predaj-form { grid-template-columns: 1fr; }
  .landing-ctas { flex-direction: column; }
  .landing-btn { min-width: 0; width: 100%; }
  .landing-hero { padding: 1.5rem var(--container-pad) 1rem; }
  .landing-subtitle { margin-bottom: 1.25rem; }
  .landing-google-in-viewport { padding: 0.75rem var(--container-pad) 1rem; }
  .landing-google-in-viewport .landing-google-title { font-size: 1.1rem; }
  .landing-google-in-viewport .landing-google-text { font-size: 0.85rem; margin-bottom: 0.5rem; }
  .sluzby-buttons { flex-direction: column; }
  .sluzby-btn { width: 100%; }
  .sluzba-item { grid-template-columns: 1fr; direction: ltr; }
  .sluzba-item:nth-child(even) { direction: ltr; }
  .sluzba-item-content { padding: 1.5rem; }
}
