* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  min-height: 100vh;
  position: relative;
  background: #f0f0f0;
}

.main {
  min-height: 50vh;
}

.container {
  width: 95%;
  max-width: 1500px;
  margin: auto;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

/* TOPBAR */
.topbar {
  background: #1a1a1a;
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
}

.topbar__clock {
  margin-right: 8px;
  font-size: 14px;
}

.topbar__time {
  color: #aaa;
}

.topbar__link {
  color: #ccc;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
}

.topbar__link:hover {
  color: #fff;
}

.topbar__link--button {
  background: #f6505a;
  color: #fff;
  padding: 10px 16px;
  margin-left: 18px;
}

.topbar__link--button:hover {
  color: #fff;
  opacity: 0.95;
}

/* Language Selector */
.language-selector {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 15px;
  cursor: pointer;
  outline: none;
}

.language-selector:hover {
  background: #444;
  border-color: #777;
}

.language-selector option {
  background: #333;
  color: #fff;
}

.lang-dropdown {
  position: relative;
  margin-left: 15px;
}

.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.lang-dropdown__toggle:hover {
  background: #444;
  border-color: #777;
}

.lang-dropdown__chevron {
  opacity: 0.9;
}

.lang-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 210px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 2000;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition:
    max-height 220ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.lang-dropdown.is-open .lang-dropdown__menu {
  max-height: 240px;
  opacity: 1;
  overflow-y: auto;
  transform: translateY(0);
}

.lang-dropdown__menu a.nturl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.lang-dropdown__menu a.nturl:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-dropdown__menu a.nturl.gt_current {
  background: rgba(246, 80, 90, 0.22);
  border: 1px solid rgba(246, 80, 90, 0.35);
}

.lang-dropdown__menu::-webkit-scrollbar {
  width: 8px;
}

.lang-dropdown__menu::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.lang-dropdown__menu::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 4px;
}

.lang-dropdown__menu::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* HEADER */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.sc_layouts_logo {
  display: inline-block;
}

.sc_layouts_logo img.logo_image {
  width: 167px;
  height: 79px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 576px) {
  .sc_layouts_logo img.logo_image {
    width: 120px;
    height: auto;
  }
}

/* SIDEBAR LEFT - Idealista Style */
.sidebar {
  width: 340px;
  min-width: 340px;
  flex-shrink: 0;
}

/* SAVE SEARCH BOX */
.save-box {
  background: #d8e000;
  padding: 18px;
  text-align: center;
}

.save-box h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.save-box button {
  width: 100%;
  height: 50px;
  border: none;
  background: #c2188f;
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

/* FILTER PANEL */
.filters {
  background: white;
  border: 1px solid #ddd;
  padding: 16px;
}

/* MAP BOX */
.map-box {
  height: 120px;
  background: #9fd0ef;
  position: relative;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.map-button {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 85%;
  height: 52px;
  background: white;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

/* FILTER GROUP */
.filter-group {
  margin-top: 28px;
}

.filter-group--top-actions {
  margin-top: 0;
}

.filter-top-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-top-action {
  padding: 12px 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #111827;
}

.filter-top-action:hover {
  border-color: #111827;
  background: #f9fafb;
}

.filter-group h4 {
  font-size: 16px;
  margin-bottom: 14px;
}

.filter-group select {
  width: 100%;
  height: 46px;
  border: 1px solid #ccc;
  background: white;
  padding: 0 12px;
  font-size: 14px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filter-row select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-type-checklist {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.property-type-checklist .checkbox {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.property-type-checklist .checkbox:last-child {
  border-bottom: none;
}

.property-type-checklist::-webkit-scrollbar {
  width: 6px;
}

.property-type-checklist::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.property-type-checklist::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* FILTER ACTIONS */
.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.filter-apply-btn,
.filter-clear-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-apply-btn {
  background: #111827;
  color: white;
}

.filter-apply-btn:hover {
  background: #1f2937;
}

.filter-clear-btn {
  background: #f3f4f6;
  color: #374151;
}

.filter-clear-btn:hover {
  background: #e5e7eb;
}

.filter-section-apply {
  margin-top: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: #111827;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-section-apply:hover {
  background: #1f2937;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

/* FILTER BUTTONS */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #111827;
}

.filter-btn.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* FILTER TABS - Horizontal */
.filter-tabs {
  display: flex;
  gap: 0;
}

.filter-tab {
  padding: 12px 24px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  color: #666;
}

.filter-tab:hover {
  color: #111827;
}

.filter-tab.is-active {
  color: #111827;
  border-bottom-color: #111827;
  font-weight: 600;
}

/* FILTER DROPDOWN */
.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-dropdown__toggle:hover {
  border-color: #111827;
}

.filter-dropdown__chevron {
  font-size: 12px;
}

.filter-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  overflow: hidden;
}

.filter-dropdown.is-open .filter-dropdown__menu {
  display: block;
}

.filter-dropdown__item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-dropdown__item:hover {
  background: #f3f4f6;
}

.filter-dropdown__item.is-active {
  background: #111827;
  color: white;
}

/* MAP MODAL */
.map-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.map-modal.is-open {
  display: block;
}

.map-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.map-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px;
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.map-modal__close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

.map-modal__title {
  margin: 0 0 15px;
  font-size: 18px;
}

.map-modal__map iframe {
  display: block;
}

/* LOCATION MODAL (PROMO) */
.location-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
}

.location-modal.is-open {
  display: block;
}

.location-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.location-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.location-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.location-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.location-modal__close {
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}

.location-modal__body {
  padding: 12px 16px;
}

.location-modal__search {
  width: 100%;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
}

.location-modal__list {
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 6px 8px;
}

.location-modal__empty {
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.location-modal__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.location-modal__item:hover {
  background: #f9fafb;
}

.location-modal__item input {
  width: 18px;
  height: 18px;
}

.location-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
}

.location-modal__btn {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.location-modal__btn:hover {
  background: #1f2937;
}

.location-modal__btn--ghost {
  background: #f3f4f6;
  color: #374151;
}

.location-modal__btn--ghost:hover {
  background: #e5e7eb;
}

/* RESULTS RIGHT - Idealista Style */
.results {
  flex: 1;
  min-width: 0;
}

/* RESULTS HEADER */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.results-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-search__input {
  width: 220px;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
}

.results-search__input:focus {
  outline: none;
  border-color: #111827;
}

.results-search__btn {
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: #111827;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.results-search__btn:hover {
  background: #1f2937;
}

.results-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort select {
  height: 38px;
  border: 1px solid #ccc;
  background: white;
  padding: 0 14px;
}

/* PROPERTY CARD - Idealista Style */
.card {
  background: #f7f7f7;
  border: 1px solid #ddd;
  display: flex;
  overflow: hidden;
  min-height: 214px;
  margin-bottom: 16px;
}

/* CARD IMAGE */
.card-image {
  width: 340px;
  min-width: 340px;
  height: 214px;
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* CARD IMAGE CAROUSEL */
.card-image .card-image-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.card-image .card-image-slide {
  min-width: 100%;
  height: 100%;
}

.card-image .card-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ARROWS */
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  opacity: 0;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  width: 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
}

.card-image:hover .card-arrow {
  opacity: 1;
}

.card-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.card-arrow.left {
  left: 10px;
}

.card-arrow.right {
  right: 10px;
}

/* IMAGE ICONS */
.bottom-icons {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}

.icon-box {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* GPS ICON */
.card-gps {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
}

.card-gps:hover {
  background: #004acb;
  color: white;
  transform: scale(1.1);
}

/* PHOTO COUNT */
.photo-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 5;
}

/* CARD CONTENT */
.card-content {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* CARD REFERENCE */
.card-ref {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

/* CARD EXTRA DETAILS */
.card-extra {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}

.card-extra-item {
  margin-bottom: 2px;
}

.card-extra-item span {
  font-weight: 600;
  color: #333;
}

/* CARD TOP */
.card-top h3 {
  color: #004acb;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}

.card-top h3:hover {
  text-decoration: underline;
}

/* PRICE */
.card-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 10px;
}

.card-price strong {
  font-size: 24px;
  line-height: 1;
}

.card-price span {
  font-size: 13px;
}

/* DETAILS */
.card-details {
  font-size: 13px;
  line-height: 20px;
  margin-bottom: 10px;
}

.card-time {
  color: #ef4c3a;
  margin-left: 8px;
}

/* DESCRIPTION */
.card-description {
  font-size: 13px;
  line-height: 20px;
  color: #555;
  margin-bottom: 10px;
}

/* TAG */
.card-tag {
  display: inline-flex;
  background: #efe3b5;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 2px;
  width: fit-content;
}

/* CARD FOOTER */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-left button {
  border: none;
  background: none;
  color: #0056d6;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.footer-right {
  display: flex;
  gap: 16px;
}

.footer-right button {
  border: none;
  background: none;
  color: #0056d6;
  font-size: 20px;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .sidebar {
    width: 280px;
    min-width: 280px;
  }
  .card-image {
    width: 280px;
    min-width: 280px;
    height: 200px;
  }
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px !important;
    gap: 14px !important;
  }

  .sidebar {
    width: 100% !important;
    min-width: 0 !important;
  }

  .results {
    width: 100% !important;
  }

  .results-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .results-search {
    width: 100%;
  }

  .results-search__input {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 768px) {
  .topbar .container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
  }

  .topbar__right {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-right {
    display: none;
  }
  .header .search-wrapper {
    margin: 0 12px;
  }
  .card {
    flex-direction: column;
  }
  .card-image {
    width: 100%;
    min-width: 100%;
    height: 240px;
  }
}

@media (max-width: 480px) {
  .filter-top-actions {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .location-modal__content {
    width: 94vw;
    max-height: 86vh;
    overflow: hidden;
  }

  .location-modal__list {
    max-height: 44vh;
  }
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: #111;
  line-height: 1;
}

.site-logo__wb {
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 500;
  margin-left: 6px;
}

.site-logo__realty {
  font-family: "Times New Roman", Times, serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.site-logo__group {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  font-weight: 400;
  margin-left: 52px;
}

/* MENU */
.menu {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.menu a {
  font-family: Roboto, sans-serif;
  font-weight: 900;
  font-style: normal;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0px;
  font-size: 14px;
  color: #333;
  transition: color 0.3s;
}

.menu a:hover {
  color: #c9a96e;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.submenu {
  position: absolute;
  display: none;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  border-radius: 4px;
  padding: 10px 0;
  top: 100%;
}

.dropdown:hover > .submenu {
  display: block;
}

.submenu li {
  padding: 8px 20px;
}

.submenu a {
  color: #555 !important;
  font-size: 14px !important;
}

.submenu a:hover {
  color: #c9a96e !important;
}

.submenu .submenu {
  left: 100%;
  top: 0;
}

/* MENU DOTS (3 PUNTOS VERTICALES) - Solo visible en responsive */
.menu-dots {
  display: none;
  position: relative;
}

.dots-toggle {
  font-size: 22px !important;
  color: #333 !important;
  text-decoration: none;
  line-height: 1;
  transition: color 0.3s !important;
  cursor: pointer;
  background: #f5f5f5;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dots-toggle:hover {
  color: #c9a96e !important;
}

.dots-dropdown {
  position: absolute;
  display: none;
  background: #f5f5f5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  border-radius: 4px;
  padding: 12px 0;
  top: 100%;
  right: 0;
  z-index: 100;
}

.menu-dots:hover .dots-dropdown {
  display: block;
}

.dots-dropdown li {
  padding: 10px 20px;
}

.dots-dropdown a {
  color: #444 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  display: block;
}

.dots-dropdown a:hover {
  color: #c9a96e !important;
}

.dropdown-sub {
  position: relative;
}

.dropdown-sub > a::after {
  content: " \203A";
  float: right;
}

.services-sub {
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  min-width: 230px;
  display: none;
  border-radius: 4px;
  padding: 10px 0;
}

.dropdown-sub:hover > .services-sub {
  display: block;
}

/* RESPONSIVE - Menú a pantalla completa con fondo negro */
@media (max-width: 1024px) {
  .menu-dots {
    display: none;
  }
  .menu-toggle {
    display: flex !important;
    cursor: pointer;
    z-index: 10001;
  }
  .nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    background: #111;
    transition: 0.3s;
    padding: 80px 20px 20px;
    box-shadow: none;
    overflow-x: hidden;
    z-index: 10000;
    transform: translateX(-100%);
  }
  .nav.active {
    transform: translateX(0);
  }
  .menu {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .menu > li {
    width: 100%;
    border-bottom: 1px solid #333;
  }
  .menu a,
  .menu a:link,
  .menu a:visited {
    font-size: 18px;
    padding: 15px 0;
    display: block;
    color: #ffffff !important;
    border-bottom: none;
  }
  .menu a:hover,
  .menu a:active {
    color: #c9a96e !important;
  }
  .dots-dropdown {
    display: none;
  }
  .dropdown .submenu,
  .services-sub {
    display: none;
    position: static;
    box-shadow: none;
    background: transparent;
    padding-left: 20px;
    width: 100%;
  }
  .dropdown .submenu.active,
  .services-sub.active {
    display: block;
  }
  .dropdown .submenu li,
  .services-sub li {
    border-bottom: 1px solid #333;
  }
  .dropdown .submenu a,
  .services-sub a {
    color: #cccccc !important;
    font-size: 16px;
    padding: 15px 0;
    display: block;
  }
  .dropdown > a::after {
    content: "+";
    float: right;
    color: #666;
  }
  .dropdown > a.active::after {
    content: "-";
  }
}

/* MOBILE */
.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active::before {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: #fff !important;
}

.menu-toggle.active::after {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: #fff !important;
}

.menu-toggle.active span {
  opacity: 0;
}

.nav.active ~ .menu-toggle {
  z-index: 10001;
}

/* FOOTER */
.footer {
  margin-top: 7.4rem;
  background: #181a1a;
  color: #ccc;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 33%) minmax(320px, 37%) minmax(
      280px,
      30%
    );
  padding: 60px 0;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

.footer__logo {
  width: 307px;
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.footer h3 {
  color: #c9a96e;
  font-size: 22px;
  margin-bottom: 12px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.3s;
  cursor: default;
}

.footer ul li:hover {
  color: #c9a96e;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #c9a96e;
}

.footer__links li {
  padding: 0;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 12px;
}

.footer__links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfd3d4;
}

.footer__links a::before {
  content: "\2192";
  color: #c9a96e;
  flex: 0 0 auto;
}

.footer__bottom {
  background: #232627;
  padding: 20px 0;
}

.footer__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  font-size: 13px;
}

.footer__bottom ul {
  display: flex;
  gap: 25px;
}

.footer__bottom li {
  cursor: pointer;
}

.footer__bottom li:hover {
  color: #c9a96e;
}

/* RESPONSIVE - Estilos para móviles pequeños */
@media (max-width: 768px) {
  .topbar .container {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .header__container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex !important;
  }

  .nav {
    padding: 70px 20px 20px;
  }

  .menu a,
  .menu a:link,
  .menu a:visited {
    font-size: 16px;
    padding: 12px 0;
  }

  .dropdown .submenu a,
  .services-sub a {
    font-size: 14px;
    padding: 10px 0;
  }

  .menu-collapse.active .menu-collapse-dropdown {
    display: block;
  }

  .footer__top {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }

  .footer__bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer__bottom ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Properties Section - Theme wbrealtygroup */
.properties-section {
  padding: 40px 0;
}

.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-top: 8px;
  padding: 8px 0;
  border-radius: 12px;
  min-width: auto;
}

.filter-dropdown.is-open .filter-dropdown__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  max-width: 400px;
}

.filter-dropdown__item {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-align: center;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-dropdown__item:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .filter-buttons {
    justify-content: center;
  }

  .filter-dropdown.is-open .filter-dropdown__menu {
    max-width: 90vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .filter-dropdown__item {
    font-size: 12px;
    padding: 6px 10px;
  }
}

.properties-section h1 {
  margin-bottom: 20px;
  color: #333;
  font-size: 28px;
}

.trx_addons_columns_wrap {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.trx_addons_column-1_3 {
  width: 33.3333%;
  padding: 0 15px;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .trx_addons_column-1_3 {
    width: 50%;
  }
}

@media (max-width: 576px) {
  .trx_addons_column-1_3 {
    width: 100%;
  }
}

.sc_properties_item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.sc_properties_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post_featured {
  position: relative;
  overflow: hidden;
}

.sc_properties_item_thumb {
  position: relative;
}

.post_featured img {
  width: 100%;
  height: 208px;
  object-fit: cover;
  display: block;
}

.post_featured .mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.sc_properties_item:hover .mask {
  opacity: 1;
}

.post_featured .icons {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.sc_properties_item:hover .icons {
  opacity: 1;
  transform: translateY(0);
}

.post_featured .icons a {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sc_properties_item_info {
  padding: 20px;
}

.sc_properties_item_ref {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.sc_properties_item_date {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
}

.property_badge_new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 25px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.property_badge_new::before {
  content: "★";
  font-size: 10px;
}

.sc_properties_item_header {
  margin-bottom: 15px;
}

.sc_properties_item_row_address {
  display: none;
}

.sc_properties_item_row {
  margin-bottom: 8px;
}

.sc_properties_item_option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.sc_properties_item_option_label_icon {
  color: #999;
  font-size: 14px;
}

.sc_properties_item_option_data {
  color: #333;
}

.sc_properties_item_type {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 6px;
}

.sc_properties_item_price {
  font-size: 34px;
  font-weight: 800;
  color: #ff3b30;
  margin: 14px 0 18px;
}

.sc_properties_item_price .rental-price {
  font-size: 28px;
  font-weight: 700;
  color: #059669;
}

.sc_properties_item_price .properties_price_after {
  font-size: 14px;
  font-weight: 400;
  color: #059669;
}

.availability-available {
  color: #059669;
  font-weight: 500;
  margin: 0;
}

.availability-range {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #fee2e2;
  border-radius: 4px;
  font-size: 13px;
  color: #991b1b;
}

.availability-date {
  font-weight: 500;
}

.availability-separator {
  color: #991b1b;
}

.availability-toggle-btn {
  display: none !important;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 10px 16px;
  background: #dc2626 !important;
  color: white !important;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  visibility: visible !important;
  opacity: 1 !important;
}

.availability-toggle-btn:hover {
  background: #b91c1c !important;
}

.availability-modal {
  max-width: 500px;
  padding: 30px;
}

.availability-modal h3 {
  margin: 0 0 15px;
  font-size: 22px;
  color: #1f2937;
}

.availability-modal-info {
  color: #6b7280;
  margin: 0 0 20px;
}

.availability-modal-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.properties_price_label {
  font-size: 18px;
  font-weight: 600;
  color: #ff3b30;
  margin-right: 4px;
}

.discount-badge {
  display: inline-block;
  background: #ff3b30;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.sc_properties_item_options {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.sc_properties_item_row_info {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.sc_properties_item_row_info .sc_properties_item_option {
  color: #111827;
}

.sc_properties_item_row_info .sc_properties_item_option_label_text {
  color: #111827;
}

.sc_properties_item_row_info .sc_properties_item_option_data {
  color: #111827;
}

.sc_properties_item_option_label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sc_properties_item_option_label_text {
  font-size: 14px;
  color: #111827;
  margin-right: 4px;
}

.sc_properties_item_option_data {
  font-weight: 600;
  color: #333;
}

.sc_properties_item_button {
  margin-bottom: 15px;
}

.sc_properties_item_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sc_properties_item_footer .sc_properties_item_button {
  margin-bottom: 0;
}

.sc_button {
  display: inline-block;
  padding: 12px 20px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0px;
  transition: background 0.3s ease;
}

.sc_button_with_icon {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.sc_button__arrow {
  font-size: 18px;
  line-height: 1;
}

.sc_button:hover {
  background: #333;
}

.sc_properties_item_status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.sc_properties_item_status_text {
  color: #6b7280;
}

.sc_properties_item_meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 12px;
}

.sc_properties_item_actions {
  display: flex;
  gap: 10px;
}

.sc_properties_action {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sc_properties_action_fav {
  background: #ff4d4d;
  color: #fff;
}

.sc_properties_action_compare {
  background: #111827;
  color: #fff;
}

.sc_properties_item_title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.sc_properties_item_title a {
  color: #333;
  text-decoration: none;
}

.sc_properties_item_title a:hover {
  color: #666;
}

.trx_addons_message_box {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.trx_addons_message_box_info {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.trx_addons_message_box_error {
  background: #fef2f2;
  color: #dc2626;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

.pagination {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.pagination__summary {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: #6b7280;
  font-weight: 600;
}

.pagination__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination__pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pagination__btn {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-weight: 600;
}

.pagination__page {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-weight: 700;
  min-width: 40px;
}

.pagination__page.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.pagination__dots {
  color: #9ca3af;
  padding: 0 6px;
  font-weight: 700;
}

.pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination__info {
  color: #6b7280;
  font-weight: 600;
}

.pagination__goto {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pagination__goto-label {
  color: #6b7280;
  font-weight: 600;
}

.pagination__goto-input {
  width: 110px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Property Detail Page */
.property-detail-section {
  padding: 40px 0;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.property-detail {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .property-detail-section {
    padding: 18px 0;
    display: block;
  }

  .property-detail-section .container {
    display: block !important;
    padding: 0 14px;
    width: 100%;
  }

  .property-detail {
    max-width: 100%;
    border-radius: 0;
    padding: 16px;
  }

  .property-detail__title {
    font-size: 22px;
    gap: 10px;
  }

  .property-detail__price {
    font-size: 24px;
  }

  .property-detail__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-detail__featured img {
    height: 280px;
  }

  .property-thumbs-carousel__btn {
    height: 56px;
  }

  .property-detail__thumb {
    width: 70px;
    height: 56px;
  }

  .property-thumbs-carousel__track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .property-detail__thumb {
    scroll-snap-align: start;
  }

  .property-detail__details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .property-detail-section .container {
    padding: 0 10px;
  }

  .property-detail {
    padding: 10px;
  }

  .property-detail__breadcrumb {
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 12px;
  }

  .property-detail__ref-bar {
    width: 100%;
    display: block;
    overflow-wrap: anywhere;
  }

  .property-detail__gallery {
    width: 100%;
    overflow: hidden;
  }

  .property-carousel {
    height: 56vw;
    max-height: 200px;
    min-height: 140px;
  }

  .property-carousel__btn {
    width: 28px;
    height: 28px;
  }

  .property-thumbs-carousel {
    width: 100%;
    overflow: hidden;
  }

  .property-thumbs-carousel__track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .property-thumbs-carousel__track::-webkit-scrollbar {
    display: none;
  }

  .property-detail__thumb {
    flex-shrink: 0;
    width: 56px;
    height: 40px;
    scroll-snap-align: start;
  }

  .property-thumbs-carousel__btn {
    display: none;
  }

  .property-carousel__counter {
    bottom: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

.property-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #6b7280;
}

.property-detail__breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.property-detail__breadcrumb a:hover {
  color: #111827;
}

.property-detail__breadcrumb .current {
  color: #111827;
}

.property-detail__gallery {
  margin-bottom: 30px;
}

.property-detail__featured {
  position: relative;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.property-detail__featured img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* Thumbs Carousel */
.property-thumbs-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.property-thumbs-carousel__track {
  display: flex;
  gap: 8px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  flex: 1;
  padding: 4px 0;
}

.property-thumbs-carousel__btn {
  flex-shrink: 0;
  width: 32px;
  height: 70px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.property-thumbs-carousel__btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.property-detail__thumb {
  flex-shrink: 0;
  width: 90px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 0.2s ease,
    box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.property-detail__thumb:hover,
.property-detail__thumb.is-active {
  opacity: 1;
  border-color: #ff3b30;
}

.property-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Property Carousel */
.property-carousel {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.property-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.property-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.property-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.property-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.property-carousel__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.property-carousel__btn--prev {
  left: 16px;
}

.property-carousel__btn--next {
  right: 16px;
}

.property-carousel__counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}

@media (max-width: 768px) {
  .property-detail {
    padding: 16px;
  }

  .property-detail__gallery {
    width: 100%;
    overflow: hidden;
  }

  .property-carousel {
    height: 50vw;
    max-height: 300px;
    min-height: 200px;
  }

  .property-carousel__btn {
    width: 40px;
    height: 40px;
  }

  .property-carousel__btn--prev {
    left: 8px;
  }

  .property-carousel__btn--next {
    right: 8px;
  }

  .property-thumbs-carousel__track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.property-detail__title-wrap {
  margin-bottom: 30px;
}

.property-detail__title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.property-detail__status {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  background: #22c55e;
  color: #fff;
  border-radius: 4px;
  text-transform: uppercase;
}

.property-detail__address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  color: #6b7280;
}

.property-detail__ref-bar {
  margin: 12px 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  border-radius: 8px;
  display: inline-block;
}

.property-detail__ref {
  color: #fff;
  font-size: 15px;
}

.property-detail__ref strong {
  color: #fbbf24;
  font-size: 16px;
}

.property-detail__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.property-detail__price {
  font-size: 32px;
  font-weight: 800;
  color: #ff3b30;
}

.property-detail__price .properties_price_label {
  font-size: 18px;
  font-weight: 600;
}

.property-detail__price .properties_price_after {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

.rental-price {
  font-size: 24px;
  font-weight: 700;
  color: #059669;
}

.properties_price .properties_price_after {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

.property-detail__views {
  display: flex;
  gap: 12px;
}

.property-detail__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .property-detail__content {
    grid-template-columns: 1fr;
  }
}

.property-detail__description h3,
.property-detail__details h4,
.property-detail__features h4 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.property-detail__description p {
  color: #4b5563;
  line-height: 1.7;
  font-size: 15px;
}

.property-detail__details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.property-detail__detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #f9fafb;
  border-radius: 4px;
}

.property-detail__label {
  color: #6b7280;
  font-size: 14px;
}

.property-detail__data {
  color: #111827;
  font-weight: 600;
  font-size: 14px;
}

.property-detail__features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-detail__feature {
  padding: 8px 16px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 14px;
  color: #374151;
}

.property-detail__map {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e5e7eb;
}

.property-detail__map h4 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-button:hover {
  background: #1d4ed8;
}

.contact-button svg {
  width: 20px;
  height: 20px;
}

.contact-button-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 10px;
  vertical-align: middle;
}

.contact-button-small:hover {
  background: #1d4ed8;
}

.contact-button-small svg {
  width: 16px;
  height: 16px;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-content h3 {
  margin-bottom: 10px;
  color: #111827;
}

.modal-content > p {
  margin-bottom: 20px;
  color: #666;
}

.property-detail__back {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.property-detail__loading,
.property-detail__error {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.property-detail .property-detail__loading,
.property-detail .property-detail__error {
  min-height: 340px;
}

.property-type-filter {
  margin: 0;
}

.property-type-select {
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  min-width: 180px;
}

.property-type-select:hover {
  border-color: #999;
}

/* Formulario de contacto en detalle de propiedad */
.property-detail__contact {
  background: #f8f9fa;
  padding: 30px;
  margin-top: 30px;
  border-radius: 8px;
}

.property-detail__contact h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #1a1a1a;
}

.property-detail__contact > p {
  margin: 0 0 20px 0;
  color: #666;
}

.contact-form__row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.contact-form__row .contact-form__field {
  flex: 1;
}

.contact-form__field {
  margin-bottom: 15px;
}

.contact-form__field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__actions {
  margin-top: 20px;
}

.contact-form__submit {
  background: #1a1a1a;
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form__submit:hover {
  background: #333;
}

.contact-form__submit:disabled {
  background: #999;
  cursor: not-allowed;
}

#contact-form-message {
  margin-top: 15px;
}

.contact-form__success {
  padding: 15px;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  border: 1px solid #c3e6cb;
}

.contact-form__error {
  padding: 15px;
  background: #f8d7da;
  color: #721c24;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
}

.search-filters {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  margin: 0;
  border: 1px solid #e5e7eb;
}

.search-filters__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  align-items: end;
}

.search-filters__row:last-child {
  margin-bottom: 0;
}

.search-filters__field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-filters__field label {
  font-size: 12px;
  margin-bottom: 3px;
  color: #666;
  font-weight: 500;
}

.search-filters__field input,
.search-filters__field select {
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

.search-filters__field--checkbox {
  min-width: auto;
  justify-content: flex-start;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.search-filters__field--checkbox input {
  width: 16px;
  height: 16px;
}

.search-filters__actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-end;
}

.search-filters__actions .sc_button {
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.1;
}

.features-filters {
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  margin: 0;
  border: 1px solid #e5e7eb;
}

.features-filters__head {
  margin-bottom: 4px;
}

.features-filters__title {
  margin: 0 0 2px 0;
  font-size: 13px;
  color: #333;
}

.features-filters__hint {
  margin: 0;
  font-size: 10px;
  color: #666;
}

.features-filters__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.features-filters__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.features-filters__label {
  font-size: 10px;
  color: #666;
  font-weight: 500;
}

.features-filters__input {
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.1;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.features-filters__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.features-filters__tag {
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.1;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.features-filters__actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-end;
  white-space: nowrap;
}

.features-filters__actions .sc_button {
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.1;
}

.pagination {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 15px 0;
  background: #fff;
  padding: 10px 0;
  border-radius: 10px;
}

/* Filtros organizados */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filters-bar > div {
  flex-shrink: 0;
}

.advanced-filters {
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
}

.filters-bar,
.search-filters,
.features-filters {
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.search-filters__field input,
.search-filters__field select,
.features-filters__input,
.property-type-select {
  height: 36px;
}

.search-filters__field input:focus,
.search-filters__field select:focus,
.features-filters__input:focus,
.property-type-select:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.search-filters__field select:disabled {
  opacity: 0.7;
  background: #f3f4f6;
  cursor: not-allowed;
}

.features-filters__tags {
  min-height: 36px;
}

@media (max-width: 768px) {
  .filters-bar {
    gap: 10px;
    padding: 12px;
  }

  .property-type-select {
    min-width: 0;
    width: 100%;
  }
}

#pagination-container {
  margin-top: 30px;
  padding: 20px 0;
  text-align: center;
  border-radius: 8px;
}

#pagination-container:empty {
  display: none;
}

.pagination__summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pagination__controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination__btn,
.pagination__page {
  padding: 8px 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.pagination__page.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.pagination__btn[disabled],
.pagination__page[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination__goto {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination__goto-input {
  width: 90px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .contact-form__row {
    flex-direction: column;
    gap: 0;
  }

  .search-filters__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-filters__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .search-filters__actions .sc_button {
    flex: 1;
  }

  .features-filters__grid {
    grid-template-columns: 1fr;
  }

  .features-filters__hint {
    display: none;
  }

  .features-filters__actions {
    justify-content: stretch;
  }

  .features-filters__actions .sc_button {
    flex: 1;
  }
}

/* Botón de filtros */
.properties-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.properties-header h1 {
  margin-bottom: 0;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-toggle-btn:hover {
  background: #1f2937;
}

@media (min-width: 769px) {
  .filter-toggle-btn {
    display: flex;
  }
}

/* Modal de filtros */
.filter-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

.filter-modal.is-open {
  display: block;
}

.filter-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.filter-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1000px;
  max-height: 92vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 768px) {
  .filter-modal__content {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
}

.filter-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.filter-modal__header h2 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.filter-modal__close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6b7280;
}

.filter-modal__close:hover {
  color: #111827;
}

.filter-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.filter-modal__footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
}

.filter-modal__footer .sc_button {
  width: 100%;
}
