@charset "UTF-8";
:root {
  --color-primary: #284627;
  --color-secondary: #a48838;
  --color-accent: #e6b84d;
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-text: #1c1c1c;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #2e7d32;
  --color-error: #c62828;
  --color-bk-readonly: #f5f5f5;
}

.dark {
  --color-background: #0f172a;
  --color-surface: #1e293b;
  --color-text: #f1f5f9;
  --color-primary: #3a5f4a;
  --color-secondary: #d4af37;
}

.container {
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition: all 0.2s ease;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
}
.button.gold {
  background: var(--color-accent);
  color: white;
}
.button.secondary {
  background: var(--color-accent);
  color: white;
}
.button.primary {
  background: var(--color-primary);
  color: white;
}
.button.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
}
.button:hover {
  opacity: 0.9;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1100px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}
@media (min-width: 1600px) {
  .container {
    max-width: 1300px;
  }
}
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: var(--color-success);
}

.toast.error {
  background: var(--color-error);
}

.header {
  width: 100%;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  position: fixed;
  top: 0;
  backdrop-filter: blur(10px);
}
.header__container {
  height: 70px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}
.header__logo a {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-primary);
}
.header__logo a span {
  color: var(--color-secondary);
}
.header__toggle {
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
}
.header__nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-surface);
  width: 220px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.header__nav a {
  padding: 16px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 16px;
}
.header__nav.active {
  display: flex;
}

@media (min-width: 768px) {
  .header__toggle {
    display: none;
  }
  .header__nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    border: none;
    width: auto;
    box-shadow: none;
  }
  .header__nav a {
    padding: 0;
    position: relative;
    text-decoration: none;
    color: var(--color-text);
  }
  .header__nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
  }
  .header__nav a:hover::after {
    width: 100%;
  }
}
.header__nav a.active {
  font-weight: 600;
  color: var(--color-primary);
}

.header__nav a.active::after {
  width: 100%;
}

.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.footer {
  width: 100%;
  background: var(--color-primary);
  color: white;
  margin-top: auto;
}
.footer__container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}
.footer__left {
  font-size: 14px;
}
.footer__right {
  display: flex;
  gap: 16px;
}
.footer__right a {
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
}
.footer__right a:hover {
  color: var(--color-secondary);
}

@media (min-width: 768px) {
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 16px 32px;
  }
}
.hero {
  width: 100%;
}
.hero__background {
  background: url("/img/hero.jpg") center/cover no-repeat;
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 32px 0;
}
.hero__content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

.search {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search .input,
.search .select {
  background: #f1f1f1;
  color: var(--color-text);
}
.search__top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search__home {
  height: 40px;
}

@media (min-width: 768px) {
  .hero__content {
    max-width: 95%;
  }
  .search {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .search__top {
    flex: 0 0 auto;
  }
  .search__form {
    flex-direction: row;
    flex: 1;
    gap: 8px;
    align-items: center;
  }
  .search__property-type {
    flex: 0 0 200px;
    max-width: 200px;
  }
  .search__input {
    flex: 1;
    min-width: 180px;
  }
  .search .button {
    flex: 0 0 auto;
  }
}
@media (min-width: 1024px) {
  .hero__content {
    max-width: 900px;
    padding: 0;
  }
  .hero__background {
    min-height: 400px;
  }
}
.cta {
  padding: 64px 0;
}
.cta__card {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 0 auto;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.cta__card p {
  margin-bottom: 16px;
  font-size: 18px;
}

.cta__card .button {
  padding: 10px 18px;
}

@media (min-width: 768px) {
  .cta__card {
    padding: 48px;
  }
}
.properties-carousel {
  padding: 32px 0 64px;
}
.properties-carousel .container {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 16px;
}
.properties-carousel__track {
  display: flex;
  gap: 16px;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.property-card {
  flex: 0 0 auto;
  width: 260px;
  background: var(--color-surface);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
}
.property-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(31, 61, 43, 0.4), 0 0 10px rgba(31, 61, 43, 0.15);
  border-color: transparent;
  cursor: pointer;
}
.property-card__image {
  height: 150px;
  position: relative;
  overflow: hidden;
  background: #ddd;
}
.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.property-card:hover .property-card__image img {
  transform: scale(1.05);
}
.property-card__badge {
  position: absolute;
  top: 15px;
  right: -30px;
  padding: 5px 40px;
  font-size: 12px;
  color: white;
  transform: rotate(45deg);
  background: var(--color-error);
}
.property-card__badge.reserved {
  background: var(--color-accent);
}
.property-card__info {
  padding: 16px;
}
.property-card__info h3 {
  margin-bottom: 4px;
  font-size: 15px;
}
.property-card__info .price {
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.property-card__info .details {
  font-size: 14px;
  color: var(--color-text-muted);
}

.carousel {
  position: relative;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(31, 61, 43, 0.9);
  color: white;
  z-index: 2;
  transition: all 0.25s ease;
}
.carousel__btn--left {
  left: 10px;
}
.carousel__btn--right {
  right: 10px;
}
.carousel__btn:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.properties-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
}

.carousel--static .properties-carousel__track {
  justify-content: center;
  flex-wrap: wrap;
}

.carousel--static .property-card {
  flex: 0 0 300px;
}

.properties-carousel__track {
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.property-card {
  scroll-snap-align: start;
}

.properties-carousel__track::-webkit-scrollbar {
  display: none;
}

.properties-carousel__track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.properties-carousel__track {
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.property-card {
  scroll-snap-align: start;
}

.property-row {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s ease;
}
.property-row:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.property-row__title {
  font-size: 22px;
  margin-top: 10px;
}
.property-row__media {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.property-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.property-row:hover img {
  transform: scale(1.05);
}
.property-row__content {
  padding: 16px;
}
.property-row__title {
  margin-bottom: 6px;
}
.property-row__price {
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-size: 19px;
  margin-top: 12px;
}
.property-row__meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.property-row__description {
  font-size: 14px;
  margin-bottom: 16px;
}

.property-row__media {
  position: relative;
  overflow: hidden;
}

.no-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #999;
  font-size: 14px;
  border-radius: 8px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel__img.active {
  opacity: 1;
  position: relative;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 2;
}
.carousel__btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel__btn--left {
  left: 10px;
}

.carousel__btn--right {
  right: 10px;
}

@media (min-width: 1024px) {
  .property-row {
    flex-direction: row;
  }
  .property-row__media {
    width: 320px;
    height: auto;
  }
  .property-row__content {
    flex: 1;
  }
}
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

.lightbox__img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
}

.lightbox__btn--left {
  left: 20px;
}

.lightbox__btn--right {
  right: 20px;
}

.input,
.select,
textarea.input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  font-family: "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background: white;
  color: var(--color-text);
  outline: none;
  transition: all 0.2s ease;
}

.input:focus,
.select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201, 162, 74, 0.4);
}

.input:hover,
.select:hover {
  border-color: var(--color-secondary);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23111111' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.radio-group {
  display: flex;
  gap: 8px;
}

.radio-button {
  position: relative;
  cursor: pointer;
}
.radio-button input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: white;
  font-size: 16px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.radio-button span.sort {
  color: var(--text-color);
}
.radio-button input:checked + span {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}
.radio-button span:hover {
  opacity: 0.9;
}

.filters-panel {
  background: rgba(0, 0, 0, 0.75);
  padding: 22px 16px;
  border-radius: 12px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(8px);
}

.filters-title {
  font-size: 16px;
  font-weight: 600;
}

.filters-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filters-range {
  display: flex;
  gap: 8px;
}
.filters-range .input {
  flex: 1;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}
.checkbox input:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.checkbox input:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--color-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox input:hover {
  border-color: var(--color-accent);
}

.checkbox--light {
  color: var(--color-text);
}
.checkbox--light input {
  border: 2px solid var(--color-border);
  background: white;
}
.checkbox--light input:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.checkbox--light input:checked::after {
  border-color: var(--color-primary);
}

.filters-radio {
  margin-top: 4px;
}

.filters-collapsible .filters-toggle {
  width: 100%;
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0;
}
.filters-collapsible .filters-toggle:hover {
  color: var(--color-secondary);
}
.filters-collapsible .filters-arrow {
  transition: transform 0.2s ease;
}
.filters-collapsible .filters-content {
  max-height: 500px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.filters-collapsible.collapsed .filters-content {
  max-height: 0;
  margin-top: 0;
}
.filters-collapsible.collapsed .filters-arrow {
  transform: rotate(-90deg);
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input {
  width: 100%;
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  outline: none;
}

.form-group label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  background: transparent;
  padding: 0 3px;
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s ease;
}

/* 🔥 cuando tiene valor o focus */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: var(--color-secondary);
}

.form-group {
  position: relative;
}

.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: white;
  appearance: none;
}

/* label */
.form-group label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s ease;
}

/* cuando tiene valor */
.form-group select.has-value + label,
.form-group select:focus + label {
  top: -8px;
  font-size: 12px;
  color: var(--color-secondary);
}

.form-group:has(select)::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
}

.form-group select.has-value + label {
  top: -8px;
  font-size: 12px;
  color: var(--color-secondary);
}

.button:disabled,
.button.disabled {
  opacity: 0.5;
}

.button.disabled:hover {
  cursor: not-allowed !important;
}

.input[readonly],
textarea.input[readonly] {
  background: var(--color-bk-readonly);
  color: #777;
  border-color: #ddd;
  cursor: not-allowed;
}
.input[readonly]:focus,
textarea.input[readonly]:focus {
  box-shadow: none;
  border-color: #ddd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Arial", sans-serif;
  font-size: 16px;
  background: var(--color-background);
  color: var(--text-color);
  margin: 0;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
}

.hidden {
  display: none !important;
}

.help {
  position: relative;
}
.help .help-icon {
  position: absolute;
  top: 15px;
  right: -20px;
}
.help .help-icon:hover {
  cursor: help;
}

.help-tooltip {
  position: absolute;
  right: 0;
  top: 120%;
  background: #222;
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  width: 300px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.help-tooltip.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.properties-page {
  margin-top: 16px;
}

.properties-wrapper {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filters {
  width: 100%;
}
.filters h1 {
  margin-top: 0;
  color: var(--color-primary);
}

.properties-results {
  width: 100%;
  min-height: 600px;
}

.properties-header {
  display: flex;
  justify-content: flex-end;
  padding: 8px 16px;
  border-radius: 6px;
}

.properties-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
}
.pagination__btn {
  border: 1px solid var(--color-border);
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination__btn:hover {
  background: var(--color-background);
}
.pagination__btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.sort {
  display: grid;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  padding: 6px 10px;
  border-radius: 6px;
}

.sort__label {
  font-size: 14px;
  color: var(--color-surface);
  white-space: nowrap;
}

.sort__options .radio-button span.sort {
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.sort__options .radio-button input:checked + span.sort {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .properties-wrapper {
    padding: 32px;
  }
  .sort {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    background: rgba(0, 0, 0, 0.75);
    padding: 6px 10px;
    border-radius: 6px;
  }
}
@media (min-width: 1024px) {
  .properties-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
  .filters {
    width: 280px;
    flex-shrink: 0;
  }
  .filters-section {
    margin-top: 45px;
  }
  .properties-results {
    flex: 1;
  }
}
.contact-page {
  padding-top: 32px;
  padding-bottom: 32px;
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-media {
  width: 100%;
}

.img-contact {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.contact-form {
  background: #fafafa;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--color-border);
  width: 100%;
}
.contact-form h2 {
  margin-bottom: 8px;
  color: var(--color-primary);
  margin-top: 0px;
}
.contact-form p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-textarea {
  min-height: 120px;
  resize: vertical;
}

@media (min-width: 1024px) {
  .contact-layout {
    flex-direction: row;
    align-items: stretch;
    min-height: 480px;
  }
  .contact-media {
    flex: 1;
    display: flex;
    overflow: hidden;
    border-radius: 12px;
  }
  .contact-form {
    flex: 1;
  }
  .img-contact {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.property-details-page {
  padding: 16px 0;
}

.property-card-wrapper {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.property-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.property-title {
  font-size: 26px;
  font-weight: 600;
  margin: 0;
}

.property-header__right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}
.property-price .price-sub {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.property-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 8px;
}
.stat strong {
  font-size: 16px;
}
.stat span {
  font-size: 12px;
  color: var(--color-text-muted);
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: var(--color-border);
}

.property-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.property-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: #fafafa;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
}

.property-info .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.property-info .info-row:last-child {
  border-bottom: none;
}

.property-contact .advisor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.property-contact .advisor__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}
.property-contact .advisor__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-contact .advisor p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.property-contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.property-features {
  margin-top: 16px;
}

.features-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 20px;
}

.feature-item {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}
.feature-item::before {
  content: "•";
  margin-right: 8px;
  color: var(--color-primary);
}

.property-description {
  margin-top: 16px;
  max-width: 100%;
}

.description-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.property-description p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.property-map {
  margin-top: 16px;
  margin-bottom: 16px;
}

.map-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.property-carousel {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.carousel__img.active {
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
}

.carousel__btn--left {
  left: 10px;
}

.carousel__btn--right {
  right: 10px;
}

.carousel__img {
  cursor: pointer;
}

.property-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.property-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-badge.sold {
  background: var(--color-error);
}

.property-badge.reserved {
  background: var(--color-accent);
}

.property-badge.inactive {
  background: #7f8c8d;
}

@media (max-width: 767px) {
  .property-header {
    align-items: stretch;
  }
  .property-header__right {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .property-price {
    font-size: 22px;
  }
  .property-stats {
    gap: 16px;
  }
}
@media (min-width: 768px) {
  .property-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .property-header__right {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
  .property-main {
    flex-direction: row;
  }
  .property-left {
    flex: 1.6;
  }
  .property-sidebar {
    flex: 1.2;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .property-contact {
    position: sticky;
    top: 62px;
  }
  .property-carousel {
    height: 300px;
  }
}
@media (min-width: 1024px) {
  .property-title {
    font-size: 32px;
  }
  .property-price {
    font-size: 28px;
  }
  .property-left {
    flex: 2;
  }
  .property-sidebar {
    flex: 1;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .property-carousel {
    height: 400px;
  }
}
.login-page {
  padding-top: 32px;
  padding-bottom: 32px;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: loginFadeIn 0.5s ease forwards;
}

@keyframes loginFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.login-title {
  margin: 0 0 16px 0;
  color: var(--color-primary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-error {
  display: none;
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.3);
  color: var(--color-error);
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  text-align: left;
}

.input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.login-button {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-button__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top: 2px solid white;
  border-radius: 50%;
  position: absolute;
  opacity: 0;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-button.loading {
  pointer-events: none;
  opacity: 0.8;
}
.login-button.loading .login-button__text {
  opacity: 0;
}
.login-button.loading .login-button__spinner {
  opacity: 1;
}

.login-button.success {
  background: var(--color-success);
}

@media (min-width: 768px) {
  .login-card {
    padding: 48px;
  }
}
.admin-page {
  margin-top: 16px;
}

.admin-wrapper {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.admin-section {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 8px 16px;
}

.admin-title {
  margin-bottom: 16px;
  padding-bottom: 16px;
  color: var(--color-primary);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid #bbb;
  padding: 20px;
  border-radius: 12px;
}

.admin-property {
  cursor: pointer;
}

.no-results {
  margin-top: 100px;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  color: #777;
  font-size: 16px;
}

.messages-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 6px;
  max-height: 400px;
  overflow-y: auto;
}
.messages-list::-webkit-scrollbar {
  width: 6px;
}
.messages-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.messages-list .message-item {
  background: transparent;
}
.messages-list .message-item:hover {
  background: var(--color-background);
}

.message-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #eee;
}
.message-item:last-child {
  border-bottom: none;
}
.message-item:hover {
  background: var(--color-background);
}
.message-item.active {
  border-color: var(--color-secondary);
  background: rgba(201, 162, 74, 0.1);
}

.message-item__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-icon {
  font-size: 14px;
  color: var(--color-primary);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.message-item:hover .message-icon {
  opacity: 1;
}

.message-item.active .message-icon {
  color: var(--color-secondary);
}

.gold-color {
  color: var(--color-secondary);
}

.message-detail {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-detail__title {
  margin: 0;
}

.message-textarea {
  min-height: 120px;
  resize: vertical;
}

.message-property-link {
  font-size: 14px;
  color: var(--color-secondary);
  text-decoration: none;
}
.message-property-link:hover {
  text-decoration: underline;
}

.load-more-link {
  display: block;
  text-align: center;
  margin: 10px 0;
  color: #2f5d2f;
  cursor: pointer;
  font-weight: 500;
}
.load-more-link:hover {
  text-decoration: underline;
}

.admin-properties-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-properties-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-properties-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-properties-layout .filters {
  margin-top: 20px;
}

.admin-properties-section .filters {
  width: 100%;
}

.admin-properties-results {
  display: flex;
  flex-direction: column;
}

.admin-properties-list {
  padding-top: 0;
}

.admin-property .admin-property__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.admin-property .admin-property__advisor {
  font-size: 12px;
  color: var(--color-text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.status-badge.active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.status-badge.published {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.status-badge.reserved {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}
.status-badge.sold {
  background: rgba(124, 58, 237, 0.15);
  color: #5b21b6;
}
.status-badge.inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.admin-properties-scroll {
  max-height: 1000px;
  overflow-y: auto;
  padding-right: 4px;
}

.advisors-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.advisors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.advisor-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: white;
  font-size: 14px;
}
.advisor-row:hover {
  background: var(--color-background);
}

.advisor-row--header {
  position: sticky;
  top: 0;
  background: #f7f7f7;
  z-index: 1;
  border: none;
  font-weight: 600;
  color: var(--color-text-muted);
}

.advisors-scroll {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: auto;
  padding-right: 4px;
}

.advisors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 700px;
}

@media (min-width: 768px) {
  .admin-wrapper {
    padding: 32px;
  }
  .admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .admin-stats {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .admin-properties-layout {
    flex-direction: row;
  }
  .admin-properties-section .filters {
    width: 260px;
  }
}
@media (min-width: 1024px) {
  .messages-layout {
    flex-direction: row;
  }
  .messages-list {
    width: 35%;
  }
  .message-detail {
    flex: 1;
  }
  .messages-list {
    max-height: 600px;
  }
}
.property-form-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-form-link {
  font-size: 14px;
  color: var(--color-secondary);
  text-decoration: none;
}
.property-form-link:hover {
  text-decoration: underline;
}

.property-status .status-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 16px;
}

.property-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-grid {
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.property-full {
  grid-column: span 1;
}

.features-grid-admin {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.property-description {
  min-height: 180px;
  resize: vertical;
}

.property-location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 16px;
}

.property-map {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-container iframe {
  width: 100%;
  height: 300px;
}
.map-container:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gallery-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding: 5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.gallery-card__image {
  aspect-ratio: 1/1;
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

.gallery-card__check {
  display: flex;
  align-items: center;
  gap: 6px;
}

.upload-top {
  margin-bottom: 16px;
}

.upload-img-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.property-stats-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.property-stats-actions .button {
  min-width: 160px;
}

.upload-img-info {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

#cancelCropBtn {
  margin-left: 8px;
}

.gallery-card {
  position: relative;
}

.gallery-delete-btn {
  position: absolute;
  bottom: 15px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  transition: 0.2s;
  z-index: 2;
}
.gallery-delete-btn:hover {
  background: #e74c3c;
}

.gallery-card {
  position: relative;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 5;
  backdrop-filter: blur(2px);
}

.gallery-card--deleted {
  pointer-events: auto;
}

.gallery-card--deleted .gallery-overlay {
  opacity: 1;
  pointer-events: all;
}

.gallery-card--deleted img {
  filter: grayscale(100%) blur(1px);
  opacity: 0.5;
}

.undo-delete-btn {
  background: white;
  color: black;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
  position: relative;
}

.checkbox input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  background: var(--color-secondary);
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox input[type=radio]:hover {
  border-color: var(--color-primary);
}

.checkbox input[type=radio]:checked {
  border-color: var(--color-secondary);
  background: var(--color-secondary);
}

.checkbox input[type=radio]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.checkbox input[type=radio]:focus {
  outline: none;
}

.gallery-card--cover {
  border: 2px solid var(--color-secondary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.gallery-card--cover::before {
  content: "Principal";
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-secondary);
  color: black;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 3;
}

@media (min-width: 768px) {
  .property-grid {
    grid-template-columns: 1fr 1fr;
  }
  .property-location-grid {
    grid-template-columns: 1fr 1fr;
  }
  .property-full {
    grid-column: span 2;
  }
  .features-grid-admin {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .property-location-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .property-full {
    grid-column: span 4;
  }
  .features-grid-admin {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-scroll {
    max-height: 600px;
  }
}
.input-error {
  border: 2px solid var(--color-error) !important;
  background: rgba(239, 68, 68, 0.05);
}

.toast ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
}

.toast li {
  margin-bottom: 4px;
}

.privacity-details-page {
  padding: 16px 0;
}

.privacity-wrapper {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/*# sourceMappingURL=main.css.map */
