/* =====================================================================
   vikingen.net — modern frontend
   Brand color: #7F1D1D (dark burgundy)
   ===================================================================== */

/* Bootstrap 5 variable overrides ------------------------------------- */
:root {
  --bs-primary: #7F1D1D;
  --bs-primary-rgb: 127, 29, 29;
  --bs-link-color: #7F1D1D;
  --bs-link-hover-color: #641515;

  --brand: #7F1D1D;
  --brand-dark: #641515;
  --brand-light: #9b3030;
  --ink: #1f2328;
  --muted: #6b7280;
  --bg-soft: #f7f7f7;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}

/* Topbar -------------------------------------------------------------- */
.topbar {
  background: var(--brand);
  color: rgba(255,255,255,.92);
  padding: .5rem 0;
  font-size: .85rem;
}


.topbar .topbar-link,
.topbar .lang-switcher .btn,
.topbar .topbar-welcome { color: #fff; }
.topbar .topbar-link:hover,
.topbar .lang-switcher > .btn:hover { color: #fff; opacity: .8; }
.topbar .lang-switcher .dropdown-toggle::after { color: #fff; }

/* Language dropdown items stay readable on white background */
.lang-switcher .dropdown-menu .dropdown-item { color: var(--ink); }
.lang-switcher .dropdown-menu .dropdown-item:hover,
.lang-switcher .dropdown-menu .dropdown-item:focus {
  background-color: rgba(127,29,29,.08);
  color: var(--brand);
}
.lang-switcher .dropdown-menu .dropdown-item.active {
  background-color: var(--brand);
  color: #fff;
}


/* Navbar -------------------------------------------------------------- */
.navbar { border-bottom: 1px solid #eee; }
.navbar .nav-link { color: var(--ink); font-weight: 500; }
.navbar .nav-link:hover,
.navbar .dropdown-item:active { color: var(--brand); }
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  background-color: var(--brand);
  color: #fff;
}

/* Hero slider --------------------------------------------------------- */
.hero-slider .carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
}
@media (max-width: 767.98px) {
  .hero-slider .carousel-item { height: 315px; }
}
.hero-slider__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 3.5rem;
  pointer-events: none;
  z-index: 3;
}
.hero-slider__text {
  max-width: 540px;
  text-align: left;
  pointer-events: auto;
  position: relative;
  z-index: 4;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 56px; z-index: 2; }
.hero-slider__sub,
.hero-slider__title {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: .35rem;
}
.hero-slider__title { margin-bottom: .75rem; }
@media (min-width: 768px) {
  .hero-slider__sub,
  .hero-slider__title { font-size: 1.1rem; }
}
.hero-slider .text-shadow,
.hero-slider__content h1,
.hero-slider__content h2 {
  text-shadow: 0 2px 12px rgba(0,0,0,.65), 0 1px 2px rgba(0,0,0,.5);
}

/* Search section below hero ------------------------------------------ */
.search-section { position: relative; z-index: 1030; }
.search-section--sticky { position: sticky; top: 0; }
.search-section--sticky.is-stuck { box-shadow: 0 4px 14px rgba(0,0,0,.10); }

.search-form .form-select,
.search-form .form-control { border-radius: .5rem; }

/* Custom multi-select dropdown (checkbox list) ----------------------- */
.ms-multi { position: relative; }
.ms-multi__toggle {
  /* same height as .form-select; just make the caret render */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-multi__toggle::after { display: none; }       /* kill default caret */
.ms-multi__toggle:focus  { box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .15); border-color: var(--brand); }
.ms-multi__label { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

.ms-multi__menu {
  width: 100%;
  min-width: 240px;
  max-height: 280px;
  overflow-y: auto;
}
.ms-multi__option {
  /*padding: .35rem .5rem;*/
  margin: 0;
  border-radius: .35rem;
  cursor: pointer;
}
.ms-multi__option:hover { background: rgba(var(--bs-primary-rgb), .07); }
.ms-multi__option .form-check-label { cursor: pointer; user-select: none; }
.ms-multi__option .form-check-input { cursor: pointer; }
.ms-multi__option .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}
.ms-multi__option .form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2);
}

/* Section title ------------------------------------------------------- */
.section-title {
  position: relative;
  font-weight: 700;
  padding-bottom: .75rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand);
  margin: .75rem auto 0;
  border-radius: 2px;
}
.section-title.text-start::after { margin-left: 0; }

/* Property card ------------------------------------------------------- */
.property-card { transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08) !important; }

.property-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #eee;
  overflow: hidden;
}
.property-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.property-card__media a { display: block; width: 100%; height: 100%; }

/* Property card mini-carousel --------------------------------------- */
.property-card__carousel,
.property-card__carousel .carousel-inner,
.property-card__carousel .carousel-item { height: 100%; }
.property-card__carousel .carousel-control-prev,
.property-card__carousel .carousel-control-next {
  width: 38px; opacity: 0;
  transition: opacity .2s ease;
  background: rgba(0,0,0,.25);
  border-radius: 50%;
  height: 38px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 8px;
}
.property-card:hover .property-card__carousel .carousel-control-prev,
.property-card:hover .property-card__carousel .carousel-control-next { opacity: 1; }
.property-card__carousel .carousel-control-prev-icon,
.property-card__carousel .carousel-control-next-icon { width: 18px; height: 18px; }
@media (max-width: 767.98px) {
  .property-card__carousel .carousel-control-prev,
  .property-card__carousel .carousel-control-next { opacity: 1; }
}

/* Favorite button (heart) on card ----------------------------------- */
.property-card__fav {
  position: absolute;
  top: 1px; right: 1px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
  transition: transform .15s ease, color .15s ease;
  z-index: 5;
  font-size: 1rem;
  pointer-events: auto;
}
.property-card__fav:hover { transform: scale(1.15); color: var(--brand); }
.property-card__fav.is-active { color: var(--brand); background: transparent; }

.property-card__badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.property-card__price {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(31,35,40,.85);
  color: #fff; font-weight: 600;
  padding: 6px 12px; border-radius: .35rem;
}
.property-card__status {
  position: absolute; top: 10px; right: 56px;
  color: #fff; font-weight: 700; font-size: .9rem;
  padding: 6px 12px; border-radius: .35rem;
}
.property-card__title { line-height: 1.3; min-height: 2.6em; }
.property-card__meta li { padding: 2px 0; }
.property-card__meta i { color: var(--brand); margin-right: 6px; }

/* Card action footer (Call / Email / WhatsApp) ----------------------- */
.property-card__actions {
  display: flex;
  border-top: 1px solid #eef0f2;
  background: #fafbfc;
}
.property-card__action {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-right: 1px solid #eef0f2;
  transition: background .15s ease, color .15s ease;
}
.property-card__action:last-child { border-right: 0; }
.property-card__action i { font-size: 1rem; color: var(--brand); transition: color .15s ease; }
.property-card__action:hover {
  background: var(--brand);
  color: #fff;
}
.property-card__action:hover i { color: #fff; }
.property-card__action--whatsapp i { color: #25D366; }
.property-card__action--whatsapp:hover { background: #25D366; color: #fff; }
.property-card__action--whatsapp:hover i { color: #fff; }

/* Search form (Houzez-style separated fields) ------------------------ */
.search-form {
  position: relative;
}
.search-form__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: .5rem;
}

/* A single field "card" — rounded rectangle, light border */
.search-form__field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  padding: 0 .9rem;
  min-height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-form__field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 .15rem rgba(127,29,29,.08);
}
.search-form__field--kw { flex: 2 1 0; }
.search-form__field-icon {
  color: #9ca3af;
  margin-right: .5rem;
  font-size: 1.05rem;
}

/* Inputs / triggers inside fields are borderless */
.search-form__input {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 50px;
  font-size: .95rem;
  color: var(--ink);
  outline: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.search-form__input:focus { outline: none; box-shadow: none; }
.search-form__input--select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239ca3af'%3E%3Cpath d='M3.2 5.5l4.8 5 4.8-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 14px;
  padding-right: 1.1rem;
  cursor: pointer;
}
.search-form .ms-multi { width: 100%; }
.search-form .ms-multi__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Inline filter panel on desktop, contains type/location/price/rooms */
.search-form__panel {
  display: flex;
  flex: 4 1 0;
  gap: .5rem;
  min-width: 0;
}
.search-form__panel-body {
  display: flex;
  gap: .5rem;
  flex: 1 1 auto;
  min-width: 0;
}
.search-form__panel-body > .search-form__field { flex: 1 1 0; }
.search-form__panel-header,
.search-form__panel-footer { display: none; }

/* Desktop actions */
.search-form__actions {
  display: flex;
  align-items: stretch;
  gap: .5rem;
}
.search-form__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .6rem;
  min-width: 52px;
  height: 52px;
  padding: 0 .9rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.search-form__icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.search-form__btn {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: .6rem;
  padding: 0 1.5rem;
  height: 52px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background .15s ease;
}
.search-form__btn:hover { background: var(--brand-dark); color: #fff; }
.search-form__btn--icon {
  width: 52px;
  padding: 0;
  justify-content: center;
  flex: 0 0 52px;
}

/* Mobile trigger button (hidden on desktop) */
.search-form__mobile-trigger {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .6rem;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 1.1rem;
}

.search-form__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1049;
}

/* -------- Mobile layout: only keyword + filter icon, panel = drawer -- */
@media (max-width: 767.98px) {
  .search-form__panel {
    position: fixed;
    inset: 0;
    z-index: 1050;
    flex-direction: column;
    background: #fff;
    transform: translateX(100%);
    transition: transform .25s ease;
    gap: 0;
    overflow-y: auto;
    padding: 0;
  }
  .search-form.is-open .search-form__panel { transform: translateX(0); }
  .search-form.is-open .search-form__backdrop { display: block; }

  .search-form__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f2;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
  }
  .search-form__panel-body {
    flex-direction: column;
    gap: .75rem;
    padding: 1rem 1.25rem;
  }
  .search-form__panel-body > .search-form__field { flex: 0 0 auto; }
  .search-form__panel-footer {
    display: flex;
    gap: .5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #eef0f2;
    background: #fff;
    position: sticky;
    bottom: 0;
  }
  body.search-form-open { overflow: hidden; }
}

/* Parallax CTA -------------------------------------------------------- */
.parallax-cta {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.parallax-cta__overlay {
  background: linear-gradient(135deg, rgba(127,29,29,.85), rgba(31,35,40,.75));
}

/* Info tile (about/services) ----------------------------------------- */
.info-tile {
  background: #fff;
  border-radius: .75rem;
  padding: 1.5rem;
  border: 1px solid #eee;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.info-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 .75rem 1.5rem rgba(127,29,29,.08);
  border-color: rgba(127,29,29,.25);
}
.info-tile__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(127,29,29,.08);
  color: var(--brand);
  font-size: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

/* YouTube card */
.youtube-card { border-radius: .75rem; }

/* Footer -------------------------------------------------------------- */
.site-footer {
  background: #1f1f1f;
  color: #f5f5f5;
  margin-top: 4rem;
}
.site-footer h5 { font-weight: 700; margin-bottom: 1rem; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  background: #161616;
}
.site-footer .social-icon {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  transition: background .2s ease;
}
.site-footer .social-icon:hover { background: var(--brand); }

/* Filter chips & pagination ------------------------------------------ */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .65rem;
  background: rgba(127,29,29,.08);
  color: var(--brand);
  border: 1px solid rgba(127,29,29,.25);
  border-radius: 999px;
  font-size: .85rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.filter-chip:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.filter-chip i { font-size: .7rem; opacity: .8; }

/* Sub-location chips (shown below search when a parent location is picked) */
.sub-location-chip {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: .82rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sub-location-chip:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.sub-location-chip.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.page-header h1 { font-weight: 700; }

.pagination {
  --bs-pagination-color: var(--brand);
  --bs-pagination-hover-color: #fff;
  --bs-pagination-hover-bg: var(--brand);
  --bs-pagination-hover-border-color: var(--brand);
  --bs-pagination-active-bg: var(--brand);
  --bs-pagination-active-border-color: var(--brand);
  --bs-pagination-focus-color: var(--brand);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2);
}

/* ---------------------------------------------------------------------
   PROPERTY DETAIL PAGE
   --------------------------------------------------------------------- */

/* Title bar */
.property-title-bar__price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
}

/* Gallery */
.property-gallery { position: relative; background: #000; }
.property-gallery .carousel-item img {
  width: 100%;
  height: clamp(280px, 60vh, 620px);
  object-fit: cover;
}
.property-gallery__open {
  bottom: 1rem; right: 1rem;
  z-index: 5;
  border-radius: 999px;
  font-size: .85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.property-gallery__badges {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 5;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.property-gallery__thumbs {
  display: flex; gap: .35rem;
  padding: .5rem;
  overflow-x: auto;
  background: #111;
}
.property-gallery__thumb {
  flex: 0 0 90px;
  height: 64px;
  padding: 0; border: 2px solid transparent;
  background: transparent; border-radius: 4px;
  overflow: hidden; cursor: pointer;
  transition: border-color .15s ease;
}
.property-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery__thumb.active { border-color: var(--brand); }
.property-lightbox__img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; }

/* Section nav */
.property-section-nav { top: 0; z-index: 1020; }
.property-section-nav .nav-pills .nav-link {
  color: var(--ink);
  border-radius: 0;
  padding: .5rem .9rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.property-section-nav .nav-pills .nav-link.active,
.property-section-nav .nav-pills .nav-link:hover {
  background: transparent;
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Content sections */
.property-section { scroll-margin-top: 90px; padding: 1.5rem 0; border-bottom: 1px solid #eee; }
.property-section:last-child { border-bottom: 0; }
.property-section h2 { margin-bottom: 1rem; font-weight: 700; }

/* Overview tiles */
.overview-tile {
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  padding: .85rem;
  height: 100%;
  background: #fff;
}
.overview-tile i { color: var(--brand); font-size: 1.25rem; }
.overview-tile__label { font-size: .75rem; color: var(--muted); text-transform: uppercase; margin-top: .25rem; }
.overview-tile__value { font-weight: 600; color: var(--ink); }

/* ============================================================
   Property detail — LEGACY layout (eski prdetail.php tarzı)
   ============================================================ */
.property-titlebar {
  position: relative;
  background: var(--brand);
  background-image: linear-gradient(135deg, var(--brand) 0%, #641515 100%);
  min-height: 140px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.property-titlebar__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.25);
  pointer-events: none;
}

.property-slider .carousel-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
}
.property-slider__img { cursor: zoom-in; }
.property-slider__price {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
}

/* Zoom / view-all overlay button */
.property-slider__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(2px);
  border: 0;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.property-slider__zoom:hover { background: #fff; }
.property-slider__zoom i { margin-right: .25rem; }

/* Prominent carousel arrows */
.property-slider .carousel-control-prev,
.property-slider .carousel-control-next {
  width: 56px;
  opacity: 1;
  z-index: 4;
}
.property-slider .carousel-control-prev-icon,
.property-slider .carousel-control-next-icon {
  width: 48px;
  height: 48px;
  background-color: transparent;
  border-radius: 50%;
  background-size: 22px 22px;
  box-shadow: none;
  transition: transform .15s;
}
.property-slider .carousel-control-prev:hover .carousel-control-prev-icon,
.property-slider .carousel-control-next:hover .carousel-control-next-icon {
  background-color: transparent;
  transform: scale(1.06);
}

/* Lightbox image */
.property-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#galleryLightboxCarousel .carousel-control-prev,
#galleryLightboxCarousel .carousel-control-next {
  width: 64px;
  opacity: 1;
}
#galleryLightboxCarousel .carousel-control-prev-icon,
#galleryLightboxCarousel .carousel-control-next-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(255,255,255,.18);
  border-radius: 50%;
  background-size: 24px 24px;
}
#galleryLightboxCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#galleryLightboxCarousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(255,255,255,.32);
}

/* Gallery modal — split layout with resizable separator -------------- */
.gallery-modal .modal-content { display: flex; flex-direction: column; height: 100%; }
.gallery-modal__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
}
.gallery-modal__title { min-width: 0; max-width: 50%; }
.gallery-modal__title h5 { font-size: 1rem; font-weight: 600; }
.gallery-modal__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.gallery-modal__thumbs {
  flex: 0 0 auto;
  width: 240px;
  min-width: 120px;
  max-width: 80vw;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .5rem;
  background: #111;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-modal__thumbs::-webkit-scrollbar { width: 0; height: 0; display: none; }
.gallery-modal__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: .35rem;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, opacity .15s ease;
  flex: 0 0 auto;
  opacity: .75;
}
.gallery-modal__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 140px;
  object-fit: cover;
}
.gallery-modal__thumb:hover { opacity: 1; }
.gallery-modal__thumb.active { border-color: var(--brand); opacity: 1; }
.gallery-modal__resizer {
  flex: 0 0 22px;
  cursor: col-resize;
  background: #1f1f1f;
  border-left: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.gallery-modal__resizer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 48px;
  background: rgba(255,255,255,.35);
  border-radius: 3px;
  transform: translate(-50%, -50%);
}
.gallery-modal__resizer:hover,
.gallery-modal__resizer:focus { background: #2a2a2a; outline: none; }
.gallery-modal__main {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: flex;
}
body.gallery-modal-resizing { cursor: col-resize; user-select: none; }

@media (max-width: 767.98px) {
  .gallery-modal__thumbs,
  .gallery-modal__resizer { display: none !important; }
  #galleryLightboxCarousel .carousel-control-prev,
  #galleryLightboxCarousel .carousel-control-next { display: none !important; }
  #galleryLightboxCarousel .carousel-item > .d-flex { padding: 0 !important; }
  .property-lightbox__img { max-width: 100vw; max-height: 100%; }
}
@media (max-width: 575.98px) {
  .gallery-modal__title { max-width: 40%; }
  .gallery-modal__title h5 { font-size: .9rem; }
}

.property-thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: thin;
}
.property-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: .375rem;
  background: transparent;
  overflow: hidden;
  opacity: .65;
  transition: opacity .15s, border-color .15s;
  cursor: pointer;
}
.property-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-thumb:hover { opacity: .9; }
.property-thumb.active { opacity: 1; border-color: var(--brand); }

.desc-headline {
  position: relative;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}

.property-features li {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: baseline;
  padding: .35rem 0;
  border-bottom: 1px dashed #eaeaea;
}
.property-features li .label { color: var(--muted); font-weight: 500; }
.property-features li .value { font-weight: 600; color: var(--ink); }
.property-features li i { color: var(--brand); }

.property-features-checks li {
  display: flex;
  gap: .4rem;
  align-items: center;
  padding: .25rem 0;
}
.property-features-checks li i { flex: 0 0 auto; }

.agent-mini { transition: box-shadow .15s, border-color .15s; }
.agent-mini:hover { border-color: var(--brand) !important; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.agent-mini__avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #f0f0f0;
}

.social-list .btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

.property-price { color: var(--ink); }
.property-price .text-primary { color: var(--brand) !important; }

@media (max-width: 575.98px) {
  .property-thumb { width: 72px; height: 52px; }
  .property-titlebar { min-height: 110px; }
}

/* Key/value rows (details, distances) */
.kv-row {
  display: flex; justify-content: space-between; gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px dashed #e5e7eb;
}
.kv-row__label { color: var(--muted); }
.kv-row__value { font-weight: 600; color: var(--ink); text-align: right; }

/* Feature checklist */
.feature-list li { padding: .35rem 0; }
.feature-list .bi-check2 { color: var(--brand); font-weight: 700; margin-right: .25rem; }

/* Sidebar (sticky) */
.property-sidebar { position: sticky; top: 100px; }
@media (max-width: 991.98px) { .property-sidebar { position: static; } }

/* ====================================================================
   Header favorites button + badge + offcanvas
   ==================================================================== */
.site-header { background: #fff; z-index: 1040; }
.nav-fav-btn {
  color: var(--brand) !important;
  font-size: 1.4rem;
  line-height: 1;
  padding: .25rem .5rem !important;
  border: 0 !important;
  background: transparent;
  border-radius: 999px;
  margin-left: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, transform .15s ease;
  box-shadow: none !important;
}
.nav-fav-btn:hover,
.nav-fav-btn:focus {
  color: var(--brand) !important;
  background: transparent;
  transform: scale(1.1);
}
.nav-fav-badge {
  position: absolute !important;
  top: -2px; right: -4px;
  font-size: .6rem;
  font-weight: 700;
  padding: .15em .35em;
  min-width: 1rem;
  line-height: 1;
  border: 1px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* Favorites offcanvas list */
.fav-list li {
  display: flex;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid #eef0f2;
  transition: background .15s ease;
}
.fav-list li:hover { background: #f8f9fa; }
.fav-list__thumb {
  flex: 0 0 80px;
  width: 80px; height: 60px;
  border-radius: .35rem;
  overflow: hidden;
  background: #eee;
}
.fav-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fav-list__body { flex: 1 1 auto; min-width: 0; }
.fav-list__title {
  font-size: .9rem;
  font-weight: 600;
  margin: 0 0 .15rem;
  line-height: 1.3;
}
.fav-list__title a { color: var(--ink); text-decoration: none; }
.fav-list__title a:hover { color: var(--brand); }
.fav-list__price { font-size: .8rem; color: var(--brand); font-weight: 600; }
.fav-list__remove {
  flex: 0 0 auto;
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: #999;
  cursor: pointer;
  padding: .15rem .35rem;
  border-radius: .25rem;
  transition: color .15s ease, background .15s ease;
}
.fav-list__remove:hover { color: #fff; background: #e63946; }
.offcanvas-footer { background: #fff; }

/* Agent card */
.agent-card__avatar { width: 64px; height: 64px; object-fit: cover; flex: 0 0 64px; }

/* Map */
.property-map {
  height: 380px;
  border-radius: .5rem;
  border: 1px solid #e5e7eb;
  background: #f0f0f0;
}

/* Print */
@media print {
  .property-section-nav, .property-sidebar, .property-gallery__thumbs,
  .property-gallery__open, .btn-group, .property-title-bar .btn-group,
  #inquiryForm, .navbar, .topbar, footer { display: none !important; }
  .property-gallery .carousel-item img { height: 360px; }
  .property-section { page-break-inside: avoid; }
}

/* ----- Content pages (page.php) ----- */
.page-content__body { line-height: 1.7; color: #333; }
.page-content__body p { margin-bottom: 1rem; }
.page-content__body img { max-width: 100%; height: auto; border-radius: .5rem; margin: .5rem 0; }
.page-content__body h1,
.page-content__body h2,
.page-content__body h3,
.page-content__body h4 { color: #7F1D1D; margin-top: 1.5rem; margin-bottom: .75rem; }
.page-content__body ul,
.page-content__body ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.page-content__body li { margin-bottom: .25rem; }
.page-content__body a { color: #7F1D1D; }
.page-content__body a:hover { text-decoration: underline; }
.page-content__body blockquote { border-left: 3px solid #7F1D1D; padding-left: 1rem; color: #555; font-style: italic; }

.page-side-item { transition: background-color .15s ease; padding: .25rem; border-radius: .375rem; }
.page-side-item:hover { background-color: rgba(127, 29, 29, .04); }
.page-side-item__img { width: 72px; height: 56px; object-fit: cover; flex-shrink: 0; }
/* ----- News list (news.php) ----- */
.news-card { overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important; }
.news-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: #f5f5f5; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__media--empty { background: linear-gradient(135deg, #7F1D1D 0%, #5b1414 100%); }

/* ----- Contact page (contact.php) ----- */
.contact-map { position: relative; }
.contact-map #propertyMap { width: 100%; }
.contact-map__office {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  z-index: 500;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  border-left: 4px solid #7F1D1D;
  max-width: 320px;
}
.contact-map__office h3 { color: #7F1D1D; }
@media (max-width: 575.98px) {
  .contact-map__office { position: static; margin: 0 .75rem -.5rem; max-width: none; }
}