/*
 * assets/css/pages.css
 * Štýly špecifické pre jednotlivé stránky:
 * homepage sekcie, archive, single property, contact, about.
 * Stavá na main.css a components.css.
 */

/* ─── UTILITY ─────────────────────────────────────────────────────────────── */
.page-error {
  padding: 80px 0;
}

.form-notice {
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 2px;
  font-size: 0.9rem;
}
.form-notice--success {
  background: rgba(168, 196, 160, 0.15);
  border: 1px solid rgba(168, 196, 160, 0.4);
  color: #A8C4A0;
}
.form-notice--error {
  background: rgba(200, 80, 80, 0.1);
  border: 1px solid rgba(200, 80, 80, 0.35);
  color: #e08080;
}

/* ─── HOMEPAGE: FEATURED SECTION ─────────────────────────────────────────── */
.featured-section {
  padding: 0;
}

/* Card featured — 2-stĺpcový layout (foto + info) */
.card-featured {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 80vh;
}

.card-featured__image {
  position: relative;
  overflow: hidden;
  background: var(--black3);
}

.card-featured__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card-featured:hover .card-featured__image img { transform: scale(1.03); }

.card-featured__image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--black3), var(--black4));
}

.card-featured__image-label {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}
.card-featured__image-label::before {
  content: '';
  display: block;
  width: 14px;
  height: 0.5px;
  background: var(--gold);
}

.card-featured__info {
  background: var(--black2);
  padding: 4rem 3.5rem;
  border-left: 0.5px solid var(--linew);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.card-featured__tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-featured__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--offwhite);
  line-height: 1.15;
}

.card-featured__location {
  font-size: 0.75rem;
  color: var(--dimmer);
}

.card-featured__price {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold3);
  line-height: 1;
}

.card-featured__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-top: 0.5px solid var(--linew);
  border-bottom: 0.5px solid var(--linew);
}

.card-featured__detail-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 0.25rem;
}

.card-featured__detail-value {
  font-size: 0.88rem;
  color: var(--offwhite);
}

.card-featured__actions {
  display: flex;
  gap: 1rem;
}

/* ─── HOMEPAGE: LISTINGS SECTION ─────────────────────────────────────────── */
.listings-section {
  border-top: 0.5px solid var(--linew);
}

.listings-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.listings-section__link {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color var(--transition);
}
.listings-section__link:hover { color: var(--gold2); }
.listings-section__link::after {
  content: '→';
  font-size: 0.8rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}

/* ─── HOMEPAGE: PHILOSOPHY SECTION ──────────────────────────────────────── */
.philosophy-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--linew);
  min-height: 600px;
}

.philosophy-section__image {
  position: relative;
  overflow: hidden;
  background: var(--black3);
  align-self: start; /* portrait fotka sa zobrazí celá bez orezania */
}
.philosophy-section__image img {
  width: 100%;
  height: auto;
  display: block;
}
.philosophy-section__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12,11,10,0.6), transparent);
}

.philosophy-section__content {
  background: var(--black2);
  padding: 5rem 4rem;
  border-left: 0.5px solid var(--linew);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.philosophy-section__quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--dim);
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
  line-height: 1.7;
}

.philosophy-section__items {
  display: flex;
  flex-direction: column;
}

.philosophy-section__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 0.5px solid var(--linew);
}
.philosophy-section__item:first-child { border-top: 0.5px solid var(--linew); }

.philosophy-section__num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  line-height: 1;
  padding-top: 0.2rem;
}

.philosophy-section__item-title {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--offwhite);
  margin-bottom: 0.25rem;
}

.philosophy-section__item-desc {
  font-size: 0.75rem;
  font-weight: 200;
  color: var(--dimmer);
  line-height: 1.8;
}

/* ─── HOMEPAGE: SERVICES SECTION ─────────────────────────────────────────── */
.services-section {
  padding: var(--section-pad-v) var(--section-pad-h);
  border-top: 0.5px solid var(--linew);
}

.services-section__header {
  text-align: center;
  margin-bottom: 4rem;
}
.services-section__header .sec-eyebrow {
  justify-content: center;
}
.services-section__header .sec-eyebrow::before { display: none; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 0.5px solid var(--linew);
}

.service-card {
  padding: 2.5rem 2rem;
  border-right: 0.5px solid var(--linew);
  transition: background var(--transition);
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--black2); }

.service-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  border: 0.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.service-card__title {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--offwhite);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.75rem;
  font-weight: 200;
  color: var(--dimmer);
  line-height: 1.8;
}

/* ─── ARCHIVE: PROPERTY LIST ─────────────────────────────────────────────── */
.archive-header {
  padding: calc(var(--section-pad-v) + 5rem) var(--section-pad-h) var(--section-pad-v);
  border-bottom: 0.5px solid var(--linew);
  text-align: center;
}

.archive-header__eyebrow {
  justify-content: center;
  margin-bottom: 1rem;
}
.archive-header__eyebrow::before { display: none; }

.archive-header__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--offwhite);
  margin-bottom: 0.5rem;
}

.archive-header__count {
  font-size: 0.7rem;
  color: var(--dimmer);
}

/* Property filter */
.property-filter {
  padding: 1.5rem var(--section-pad-h);
  border-bottom: 0.5px solid var(--linew);
  background: var(--black2);
}

.property-filter__form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.property-filter__select,
.property-filter__input {
  background: var(--black3);
  border: 0.5px solid var(--linew);
  color: var(--offwhite);
  font-size: 0.72rem;
  padding: 0.65rem 1rem;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.property-filter__select:focus,
.property-filter__input:focus {
  outline: none;
  border-color: var(--gold);
}

.property-filter__btn {
  flex-shrink: 0;
}

/* Archive grid */
.archive-grid {
  padding: var(--section-pad-v) var(--section-pad-h);
}

.archive-grid .property-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-bottom: 3rem;
}

/* Pagination */
.archive-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--linew);
}

.archive-pagination a,
.archive-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.7rem;
  border: 0.5px solid var(--linew);
  color: var(--dim);
  transition: all var(--transition);
}
.archive-pagination a:hover,
.archive-pagination .current {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── SINGLE PROPERTY ────────────────────────────────────────────────────── */
.property-hero {
  position: relative;
  height: 65vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--black3);
}

.property-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(10, 11, 13, 0.9) 100%
  );
}

.property-hero__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem var(--section-pad-h);
  z-index: 1;
}

.property-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  align-items: start;
}

.property-main {
  padding: var(--section-pad-v) var(--section-pad-h);
  border-right: 0.5px solid var(--linew);
}

.property-sidebar {
  padding: 3rem 2.5rem;
  position: sticky;
  top: 80px;
}

.property-description {
  font-size: 0.88rem;
  font-weight: 200;
  color: var(--dim);
  line-height: 2;
  margin-bottom: 3rem;
}

.property-gallery {
  margin-top: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.04); }

/* Details table */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.details-table tr {
  border-bottom: 0.5px solid var(--linew);
}
.details-table tr:first-child { border-top: 0.5px solid var(--linew); }

.details-table th,
.details-table td {
  padding: 0.9rem 0;
  text-align: left;
  font-size: 0.78rem;
}

.details-table th {
  font-weight: 300;
  color: var(--dimmer);
  width: 40%;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.details-table td {
  color: var(--offwhite);
  font-weight: 300;
}

/* Agent contact box */
.agent-contact {
  background: var(--black2);
  border: 0.5px solid var(--linew);
  padding: 2rem;
  margin-bottom: 2rem;
}

.agent-contact__name {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--offwhite);
  margin-bottom: 0.3rem;
}

.agent-contact__title {
  font-size: 0.7rem;
  color: var(--dimmer);
  margin-bottom: 1.5rem;
}

.agent-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ─── CONTACT PAGE ───────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}

.contact-info {
  padding: calc(var(--section-pad-v) + 5rem) var(--section-pad-h) var(--section-pad-v);
  border-right: 0.5px solid var(--linew);
  background: var(--black2);
}

.contact-info__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.contact-info__desc {
  font-size: 0.85rem;
  font-weight: 200;
  color: var(--dim);
  line-height: 1.9;
  margin-bottom: 3rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.contact-detail__label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dimmer);
}

.contact-detail__value {
  font-size: 0.9rem;
  color: var(--offwhite);
}
.contact-detail__value a:hover { color: var(--gold2); }

.contact-form-wrap {
  padding: calc(var(--section-pad-v) + 5rem) var(--section-pad-h) var(--section-pad-v);
}

/* CF7 form overrides */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1.2rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  background: var(--black2);
  border: 0.5px solid var(--linew);
  color: var(--offwhite);
  font-size: 0.82rem;
  padding: 0.9rem 1.2rem;
  transition: border-color var(--transition);
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.wpcf7 input[type="submit"] {
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.wpcf7 input[type="submit"]:hover { background: var(--gold2); }

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────────── */
.about-hero {
  padding: calc(var(--section-pad-v) + 5rem) var(--section-pad-h) var(--section-pad-v);
  border-bottom: 0.5px solid var(--linew);
  max-width: 760px;
}

.about-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-hero__intro {
  font-size: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--dim);
  line-height: 1.8;
}

/* ─── GENERIC PAGE ───────────────────────────────────────────────────────── */
.generic-page__header {
  padding: calc(var(--section-pad-v) + 5rem) var(--section-pad-h) var(--section-pad-v);
  border-bottom: 0.5px solid var(--linew);
  background: var(--black2);
}
.generic-page__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
}
.generic-page__content {
  padding: var(--section-pad-v) 0;
}

/* ─── PAGE HERO (podstránky) ─────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--section-pad-v) + 5rem) var(--section-pad-h) var(--section-pad-v);
  border-bottom: 0.5px solid var(--linew);
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 700px;
  margin: 0.5rem 0 1rem;
}
.page-hero__subtitle {
  font-size: 0.88rem;
  font-weight: 200;
  color: var(--dim);
  line-height: 1.9;
  max-width: 560px;
}

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 0.5px solid var(--linew);
}
.about-layout__image {
  overflow: hidden;
  background: var(--black3);
  align-self: start; /* nekopíruje výšku textového stĺpca */
}
.about-layout__image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-layout__content {
  padding: var(--section-pad-v) var(--section-pad-h);
  border-left: 0.5px solid var(--linew);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-layout__content p {
  font-size: 0.88rem;
  font-weight: 200;
  line-height: 1.9;
  color: var(--dim);
}
.about-contact-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 0.5px solid var(--linew);
  background: var(--black2);
  margin-top: 0.5rem;
}
.about-contact-box__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.about-contact-box__label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.about-contact-box__value {
  font-size: 0.88rem;
  color: var(--offwhite);
  transition: color var(--transition);
}
a.about-contact-box__value:hover { color: var(--gold2); }

/* ─── CHCEM PREDAŤ — PROCESS ─────────────────────────────────────────────── */
.process-section__header {
  margin-bottom: 3rem;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0.5px solid var(--linew);
}
.process-step {
  padding: 2.5rem 2rem;
  border-right: 0.5px solid var(--linew);
  border-bottom: 0.5px solid var(--linew);
  display: flex;
  gap: 1.2rem;
}
.process-step:nth-child(3n) { border-right: none; }
.process-step:nth-last-child(-n+3) { border-bottom: none; }
.process-step__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}
.process-step__title {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--offwhite);
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}
.process-step__desc {
  font-size: 0.75rem;
  font-weight: 200;
  color: var(--dimmer);
  line-height: 1.8;
}

/* ─── OFF-MARKET PAGE ────────────────────────────────────────────────────── */
.off-market-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.off-market-info__grid.has-photo {
  grid-template-columns: 1fr 1fr 1fr;
}
.off-market-info__image {
  overflow: hidden;
  background: var(--black3);
  align-self: start;
}
.off-market-info__image img {
  width: 100%;
  height: auto;
  display: block;
}
.off-market-info__text { display: flex; flex-direction: column; gap: 1.5rem; }
.off-market-info__text p { font-size: 0.88rem; font-weight: 200; color: var(--dim); line-height: 1.9; }
.off-market-info__features { display: flex; flex-direction: column; gap: 0; }

.off-market-feature {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 0.5px solid var(--linew);
  align-items: flex-start;
}
.off-market-feature:first-child { border-top: 0.5px solid var(--linew); }
.off-market-feature__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.4rem;
  flex-shrink: 0;
}
.off-market-feature__title {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--offwhite);
  margin-bottom: 0.3rem;
}
.off-market-feature__desc {
  font-size: 0.75rem;
  font-weight: 200;
  color: var(--dimmer);
  line-height: 1.8;
}
.off-market-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  border: 0.5px solid var(--linew);
  font-size: 0.85rem;
  color: var(--dim);
}

/* ─── SIMPLE CONTACT FORM ────────────────────────────────────────────────── */
.simple-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.form-row input,
.form-row textarea {
  background: var(--black2);
  border: 0.5px solid var(--linew);
  color: var(--offwhite);
  font-size: 0.85rem;
  padding: 0.9rem 1.2rem;
  transition: border-color var(--transition);
  font-family: var(--font-sans);
  font-weight: 300;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea { resize: vertical; min-height: 130px; }

/* ─── RESPONZÍVNOSŤ ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-featured { grid-template-columns: 1fr; min-height: auto; }
  .card-featured__image { aspect-ratio: 16/9; position: relative; height: auto; }
  .card-featured__image img { position: relative; inset: auto; width: 100%; height: 100%; }

  .property-content { grid-template-columns: 1fr; }
  .property-main { border-right: none; border-bottom: 0.5px solid var(--linew); }
  .property-sidebar { position: static; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card:nth-child(2) { border-right: none; }
  .services-grid .service-card:nth-child(3) { border-top: 0.5px solid var(--linew); }

  .contact-layout { grid-template-columns: 1fr; }
  .off-market-info__grid,
  .off-market-info__grid.has-photo { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 0.5px solid var(--linew); }

  .philosophy-section { grid-template-columns: 1fr; min-height: 0; }
  .philosophy-section__content { border-left: none; border-top: 0.5px solid var(--linew); }
  .about-layout { grid-template-columns: 1fr; }
  .about-layout__content { border-left: none; border-top: 0.5px solid var(--linew); }
}

@media (max-width: 768px) {
  .property-grid { grid-template-columns: 1fr; }
  .archive-grid .property-grid { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; border: none; gap: 0; }
  .service-card {
    border-right: none;
    border-bottom: 0.5px solid var(--linew);
  }

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

  .listings-section__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ─── ARCHIVE: FILTER BAR ─────────────────────────────────────────────────── */
.filter-bar {
  background: var(--black2);
  border-bottom: 0.5px solid var(--linew);
  padding: 1.25rem 0;
  position: sticky;
  top: 70px;
  z-index: 90;
}
.filter-bar__form {}
.filter-bar__fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.filter-bar__select,
.filter-bar__input {
  background: var(--black3);
  border: 0.5px solid var(--linew);
  color: var(--offwhite);
  padding: 0.55rem 0.9rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  min-width: 160px;
}
.filter-bar__select:focus,
.filter-bar__input:focus {
  outline: none;
  border-color: var(--gold);
}
.filter-bar__price-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-bar__price-range .filter-bar__input { min-width: 120px; }
.filter-bar__price-sep { color: var(--dim); font-size: 0.875rem; }
.filter-bar__submit { padding: 0.55rem 1.5rem; font-size: 0.875rem; }
.filter-bar__reset {
  color: var(--dim);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.filter-bar__reset:hover { color: var(--offwhite); }

/* ─── ARCHIVE: PAGE HERO ──────────────────────────────────────────────────── */
.page-hero--archive {
  padding: 120px 0 60px;
  background: var(--black2);
}
.page-hero--archive .page-hero__title { font-size: clamp(2rem, 5vw, 3.5rem); }
.page-hero--archive .page-hero__subtitle { color: var(--dim); font-size: 0.9375rem; margin-top: 0.5rem; }

/* ─── ARCHIVE: EMPTY STATE ────────────────────────────────────────────────── */
.listings-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--dim);
}
.listings-empty p { margin-bottom: 2rem; font-size: 1.125rem; }

/* ─── BREADCRUMBS ────────────────────────────────────────────────────────── */
.breadcrumbs {
  padding: 5rem 0 1rem; /* top = nav výška + dýchanie; nav: 2×1.6rem padding + logo */
  font-size: 0.8125rem;
  color: var(--dim);
  border-bottom: 0.5px solid var(--linew);
}
.breadcrumbs a { color: var(--dim); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs__sep { margin: 0 0.5rem; }

/* ─── SINGLE PROPERTY: LAYOUT ────────────────────────────────────────────── */
.property-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 5rem;
  align-items: start;
}
.property-detail__main { min-width: 0; }

/* ─── PROPERTY GALLERY ────────────────────────────────────────────────────── */
.property-gallery { position: relative; margin-bottom: 2.5rem; }
.property-gallery__main {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--black2);
  aspect-ratio: 4/3;
}
.property-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.property-gallery__main:hover img { transform: scale(1.02); }
.property-gallery__main a { display: block; height: 100%; }
.property-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.property-gallery__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--black2);
}
.property-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.property-gallery__thumb:hover img { transform: scale(1.05); }
.property-gallery__thumb--more::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.property-gallery__more-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  z-index: 1;
}
.property-gallery__hidden { display: none; }

/* ── Gallery arrows & counter ── */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 2px;
  width: 2.6rem;
  height: 3.5rem;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  backdrop-filter: blur(2px);
}
.gallery-arrow:hover { background: var(--gold); color: var(--black); }
.gallery-arrow--prev { left: 0.6rem; }
.gallery-arrow--next { right: 0.6rem; }
.gallery-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.property-gallery__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  z-index: 2;
}

/* ─── PROPERTY DESCRIPTION ───────────────────────────────────────────────── */
.property-desc { margin-bottom: 2.5rem; }
.property-desc__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--offwhite);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--linew);
}
.property-desc__text {
  color: var(--dim);
  font-size: 0.9375rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* ─── PROPERTY TOUR / VIDEO ──────────────────────────────────────────────── */
.property-tour,
.property-video { margin-bottom: 2.5rem; }
.property-tour__title,
.property-video__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--offwhite);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--linew);
}
.property-tour__embed,
.property-video__embed { border-radius: 4px; overflow: hidden; }
.property-tour__embed iframe,
.property-video__embed iframe { display: block; }

/* ─── SIDEBAR ────────────────────────────────────────────────────────────── */
.property-detail__sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.property-sidebar__price-box {
  background: var(--black2);
  border: 0.5px solid var(--linew);
  border-radius: 4px;
  padding: 1.5rem;
}
.property-sidebar__price {
  font-family: var(--font-head);
  font-size: 1.875rem;
  color: var(--gold);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.property-sidebar__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dim);
  font-size: 0.875rem;
}
.property-sidebar__location .icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ─── PARAMS TABLE ───────────────────────────────────────────────────────── */
.property-sidebar__params {
  background: var(--black2);
  border: 0.5px solid var(--linew);
  border-radius: 4px;
  padding: 1.5rem;
}
.property-sidebar__params-title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.property-params-table { width: 100%; border-collapse: collapse; }
.property-params-table tr { border-bottom: 0.5px solid var(--linew); }
.property-params-table tr:last-child { border-bottom: none; }
.property-params-table th {
  text-align: left;
  font-size: 0.8125rem;
  color: var(--dim);
  font-weight: 400;
  padding: 0.6rem 0;
  width: 48%;
}
.property-params-table td {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--offwhite);
  padding: 0.6rem 0;
}

/* Energy badge */
.energy-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--dim);
  color: #000;
}
.energy-badge--a, .energy-badge--a1 { background: #22c55e; }
.energy-badge--b { background: #84cc16; }
.energy-badge--c { background: #eab308; }
.energy-badge--d { background: #f97316; }
.energy-badge--e, .energy-badge--f, .energy-badge--g { background: #ef4444; color: #fff; }

/* ─── SIDEBAR CONTACT ────────────────────────────────────────────────────── */
.property-sidebar__contact {
  background: var(--black2);
  border: 0.5px solid var(--linew);
  border-radius: 4px;
  padding: 1.5rem;
}
.property-sidebar__contact-title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.property-sidebar__agent {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.property-sidebar__agent-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
}
.property-sidebar__agent-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.property-sidebar__agent-info strong { font-size: 0.9375rem; color: var(--offwhite); }
.property-sidebar__agent-info span { font-size: 0.8125rem; color: var(--dim); }
.property-sidebar__contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.property-sidebar__contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--offwhite);
}
.property-sidebar__contact-link:hover { color: var(--gold); }
.property-sidebar__contact-link .icon { width: 1.1em; height: 1.1em; color: var(--gold); flex-shrink: 0; }

/* Property contact form */
.property-contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.property-contact-form__input,
.property-contact-form__textarea {
  background: var(--black3);
  border: 0.5px solid var(--linew);
  color: var(--offwhite);
  padding: 0.65rem 0.9rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  width: 100%;
}
.property-contact-form__input:focus,
.property-contact-form__textarea:focus { outline: none; border-color: var(--gold); }
.property-contact-form__textarea { resize: vertical; }
.property-contact-form__privacy { font-size: 0.6875rem; color: var(--dimmer); text-align: center; }
.btn--full { width: 100%; justify-content: center; }

.property-sidebar__back {
  display: block;
  font-size: 0.875rem;
  color: var(--dim);
  text-align: center;
  padding: 0.5rem 0;
}
.property-sidebar__back:hover { color: var(--gold); }

/* ─── RESPONSIVE: SINGLE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .property-detail { grid-template-columns: 1fr; }
  .property-detail__sidebar { position: static; }
  .property-gallery__thumbs { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 600px) {
  .filter-bar__fields { flex-direction: column; align-items: stretch; }
  .filter-bar__select,
  .filter-bar__input { min-width: 0; width: 100%; }
  .property-gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
  /* Mobile nav má 3-riadkové logo → je vyšší ako desktop; 7rem × 19px = 133px */
  .breadcrumbs { padding-top: 7rem; }
}
