@font-face {
  font-family: "Futurism";
  src: url("../fonts/FUTURISM.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #000000;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
}

.subhero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("../images/hero.webp") center / cover no-repeat;
  padding: 60px 20px;
}

.subhero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 41, 55, 0.7) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.subhero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.subhero-content h1 {
  font-family: "Futurism", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(24px, 3.4vw, 46px);
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  margin-bottom: 16px;
}

.subhero-content p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 28px;
}

.subhero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 14px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.subhero-button:hover {
  background-color: #ffffff;
  color: #000000;
}

.offers-hero {
  position: relative;
  padding: 80px 20px 70px;
  background: url("../images/hero.webp") center / cover no-repeat;
  text-align: center;
}

.offers-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 41, 55, 0.7) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.offers-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.offers-hero-content h1 {
  font-family: "Futurism", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(26px, 3.6vw, 48px);
  margin-bottom: 14px;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.offers-hero-content p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 28px;
}

.offers-filters {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  background: #0f1014;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  max-width: 100%;
  width: 100%;
}

.offers-filters .filter-city {
  grid-column: 1 / 3;
}

.offers-filters .filter-type {
  grid-column: 3;
}

.offers-filters .filter-rooms {
  grid-column: 4;
}

.offers-filters .filter-price {
  grid-column: 5;
}

.offers-filters .filter-area {
  grid-column: 6;
}

.offers-filters .filter-actions-buttons {
  grid-column: 7;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.offers-filters-mobile {
  display: none;
  gap: 14px;
  background: #0f1014;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.offers-filters-mobile .filter-range {
  margin-bottom: 6px;
}

.offers-filters-mobile .filter-field {
  margin-bottom: 15px;
}

.offers-filters-mobile .filter-actions {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.filter-range,
.filter-field,
.filter-actions {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.filter-field span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  text-align: left;
}

.filter-actions span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  text-align: left;
}

.filter-range span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  text-align: left;
}

.range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.offers-filters-mobile .range-inputs {
  grid-template-columns: 1fr;
}

.offers-filters input,
.offers-filters-mobile input,
.offers-filters select,
.offers-filters-mobile select {
  background: #15161b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.offers-filters input:focus,
.offers-filters-mobile input:focus,
.offers-filters select:focus,
.offers-filters-mobile select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.offers-filters button,
.offers-filters-mobile button,
.filter-submit,
.offers-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
}

.offers-filters button:hover,
.offers-filters-mobile button:hover,
.filter-submit:hover,
.offers-reset:hover {
  background: #ffffff;
  color: #000000;
}

.offers-section {
  padding: 90px 0 140px;
  background: #000000;
}

.offers-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.offers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.offers-container h2,
.offers-title {
  font-family: "Futurism", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(18px, 2.6vw, 28px);
  margin-bottom: 0;
  text-align: left;
}

.offers-count {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.offers-count strong {
  color: #ffffff;
  font-weight: 600;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  contain: layout style paint;
}

.offer-card {
  background: #0b0c0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.offer-card:hover {
  transform: translateY(-4px) translateZ(0);
}

.offer-image {
  position: relative;
  height: 220px;
  background: #141519;
  overflow: hidden;
  contain: layout style paint;
}

.offer-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  z-index: 2;
}

.offer-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.offer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.offer-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.offer-title a {
  color: inherit;
  text-decoration: none;
}

.offer-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.offer-location {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.offer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.offer-info strong {
  display: block;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-top: 6px;
}

.offer-link {
  margin-top: auto;
  text-align: center;
  border: 2px solid #ffffff;
  padding: 12px 20px;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.offer-link:hover {
  background: #ffffff;
  color: #000000;
}

.offers-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.offers-pagination ul {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.offers-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
}

.offers-pagination li.active a {
  background: #ffffff;
  color: #000000;
}

.offers-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.offers-empty h3 {
  margin-bottom: 10px;
}

.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 80px 0 50px;
}

.footer-desktop {
  display: block;
}

.footer-mobile {
  display: none;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
}

.footer-col h3 {
  font-family: "Futurism", sans-serif;
  font-size: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-block {
  margin-bottom: 18px;
}

.footer-block p,
.footer-block a {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-block a:hover {
  color: #fdf0d5;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-links a {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-nav-links a:hover {
  color: #fdf0d5;
}

.footer-realizacja {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-realizacja-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-realizacja-text {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.footer-realizacja-label {
  font-family: "Futurism", sans-serif;
  font-size: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-realizacja img {
  width: 28px;
  height: auto;
}

.footer-bottom {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.footer-socials {
  display: flex;
  gap: 22px;
  font-size: 18px;
}

.footer-socials a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: #ffffff;
}

.footer-copy {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .site-footer {
    padding: 60px 0 40px;
  }

  .footer-desktop {
    display: none;
  }

  .footer-mobile {
    display: block;
  }

  .footer-mobile .footer-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .footer-mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .footer-mobile-links a {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
  }

  .footer-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
  }

  .footer-mobile-contact a {
    color: inherit;
    text-decoration: none;
  }

  .footer-mobile .footer-bottom {
    align-items: center;
    text-align: center;
  }

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

  .footer-realizacja {
    align-items: center;
    text-align: center;
  }

  .footer-realizacja-row {
    justify-content: center;
  }

  .footer-realizacja-label {
    margin-top: 20px;
    font-size: 16px;
    letter-spacing: 0.16em;
  }

  .footer-realizacja-text {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .footer-realizacja img {
    width: 22px;
  }

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

@media (max-width: 768px) {
  .subhero {
    min-height: 50vh;
    padding: 70px 16px;
  }

  .subhero-content p {
    font-size: 16px;
  }

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

  .offers-hero-content p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .offers-filters {
    grid-template-columns: 1fr;
    padding: 16px;

    .offers-header {
      flex-direction: column;
      align-items: flex-start;
    }
    gap: 12px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .offers-filters-mobile {
    display: grid;
    padding: 16px;
  }

  .range-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .filter-field span,
  .filter-range span {
    font-size: 11px;
  }

  .offers-filters button,
  .offers-reset {
    width: 100%;
  }

  .offers-filters-mobile button,
  .offers-filters-mobile .offers-reset {
    width: 100%;
  }
}

@media (min-width: 601px) {
  .offers-filters {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
  }

  .offers-filters > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .offers-filters .filter-actions {
    flex: 0 0 auto;
  }
}
/* Sticky Agent Filter Panel */
.agents-filter-wrapper {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: none;
}

@media (min-width: 1025px) {
  .agents-filter-wrapper {
    display: block;
  }
}

.agents-filter-toggle {
  position: relative;
  padding: 16px 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 600;
  letter-spacing: 0.1em;
  min-height: 120px;
}

.agents-filter-toggle:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.4);
}

.agents-filter-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(320px);
  width: 320px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.agents-filter-panel.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.agents-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agents-filter-header h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

.agents-filter-close {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.agents-filter-close:hover {
  color: #fff;
}

.agents-filter-list {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 12px;
}

.agent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
  margin-bottom: 10px;
}

.agent-item:last-child {
  margin-bottom: 0;
}

.agent-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(-4px);
}

.agent-item.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.agent-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.agent-item-all .agent-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  background: #333;
}

.agent-info {
  flex: 1;
  min-width: 0;
}

.agent-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.agent-lastname {
  font-size: 11px;
  color: #888;
  line-height: 1.2;
  margin-top: 2px;
}
