:root {
  --vian-navbar-background: #1c1c1c;
  --vian-red: #e6030f;
}

.vian-header {
  background: var(--vian-navbar-background);
  position: relative;
  z-index: 10;
}

.vian-brand img {
  width: 150px;
  height: 72px;
  object-fit: contain;
}

.vian-desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vian-header a,
.vian-header summary,
.nav-signout {
  color: #fff;
}

.vian-header a.active,
.vian-header a:hover {
  color: #fff;
}

.nav-signout {
  background: transparent;
  border: 0;
  padding: 0;
}

.vian-mobile-nav {
  display: none;
}

.vian-hero,
.vian-hero > .container > .row {
  min-height: 720px;
  height: auto;
}

.vian-hero-backgrounds {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vian-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease-in-out;
}

.vian-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.vian-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vian-hero.overlay::before {
  z-index: 1;
  pointer-events: none;
}

.vian-hero > .container {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.vian-hero > .container a {
  pointer-events: auto;
}

.vian-hero-controls {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
}

.vian-hero-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.45);
}

.vian-hero-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.vian-hero-indicator {
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}

.vian-hero-indicator::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border: 1px solid white;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
}

.vian-hero-indicator.is-active::before {
  background: white;
}

.vian-hero-arrow:hover {
  background: var(--vian-navbar-background);
}

.vian-hero > .container > .row {
  padding-bottom: 100px;
}

@media (prefers-reduced-motion: reduce) {
  .vian-hero-slide {
    transition: none;
  }
}

.vian-home-search {
  position: relative;
  margin-top: -100px;
  z-index: 2;
}

.vian-page-heading {
  background: var(--vian-navbar-background);
  color: white;
  padding: 55px 0;
}

.vian-page-heading h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
}

.vian-card-image {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.vian-detail-image {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.vian-feature {
  background: #edf5ef;
  color: #28583b;
  padding: 8px 14px;
}

.vian-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.vian-facts dd {
  margin: 0;
}

.property-specs-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.property-specs-wrap li {
  margin-right: 0 !important;
}

.property-specs {
  font-size: 10px !important;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #70c792;
  outline-offset: 4px;
}

@media (max-width: 991px) {
  .vian-desktop-nav {
    display: none;
  }

  .vian-mobile-nav {
    display: block;
  }

  .vian-mobile-nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 24px;
    background: var(--vian-navbar-background);
    display: grid;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .vian-hero-controls {
    bottom: 20px;
  }

  .vian-hero,
  .vian-hero > .container > .row {
    min-height: 600px;
  }

  .vian-home-search {
    margin-top: 0;
  }

  .form-search {
    padding: 24px;
  }

  .vian-filters > .vian-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: var(--vian-navbar-background);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .vian-filters-toggle::-webkit-details-marker {
    display: none;
  }

  .vian-filters-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
  }

  .vian-filters[open] .vian-filters-toggle svg {
    transform: rotate(180deg);
  }
}

@media (min-width: 768px) {
  .vian-filters:not([open]) > .form-search {
    display: block;
  }
}

.vian-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 104px);
  min-height: calc(100dvh - 104px);
  padding: 32px 16px;
}

.vian-auth-card {
  width: 100%;
  max-width: 520px;
}

.vian-property-form textarea.form-control {
  height: auto;
  resize: vertical;
}

.vian-property-actions {
  gap: 12px;
}

.vian-property-form .vian-file-input {
  padding: 0;
  line-height: 45px;
  overflow: hidden;
}

.vian-property-form .vian-file-input::file-selector-button {
  height: 45px;
  margin-right: 12px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #ced4da;
  background: #1f3c88;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.vian-property-form .vian-file-input::file-selector-button:hover {
  background: #182f6b;
}

.vian-property-form .vian-file-input:focus-visible {
  outline: 3px solid #70c792;
  outline-offset: 4px;
}

.vian-characteristics-table th,
.vian-characteristics-table td {
  vertical-align: middle;
}

.vian-characteristics-table thead th {
  border-top: 0;
  color: #364e68;
}

.vian-characteristic-actions {
  gap: 8px;
}

.vian-contact-form textarea.form-control {
  height: auto;
  resize: vertical;
}

.vian-filters-toggle {
  display: none;
}

.vian-back-to-top {
  position: fixed;
  right: 24px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--vian-navbar-background);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.vian-back-to-top[hidden] {
  display: none;
}

.vian-back-to-top:hover {
  color: #fff;
}

.vian-whatsapp {
  position: fixed;
  right: 20px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.vian-whatsapp-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.vian-whatsapp-contact:hover,
.vian-whatsapp-contact:focus {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.vian-whatsapp-contact svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.vian-nav-dropdown-heading > a,
.vian-desktop-nav > a,
.vian-mobile-nav nav > a,
.vian-header .nav-signout {
  display: inline-block;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  white-space: nowrap;
}

.vian-header nav a.active,
.vian-header nav a:hover,
.vian-header nav a:focus-visible,
.vian-header .nav-signout:hover,
.vian-header .nav-signout:focus-visible {
  color: #fff;
  text-decoration: none;
}

.vian-header .nav-signout {
  cursor: pointer;
}

.vian-header nav .button_to {
  margin: 0;
}

.vian-private-access {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.vian-private-access svg,
.vian-footer-private-access svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vian-footer-private-access {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vian-footer-private-access svg {
  width: 18px;
  height: 18px;
}

.vian-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vian-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
}

.vian-social-link:hover,
.vian-social-link:focus-visible {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.vian-social-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vian-social-link .vian-social-icon-fill {
  fill: currentColor;
  stroke: none;
}

.vian-social-links-nav {
  margin-left: 4px;
}

.vian-social-links-footer {
  margin-top: 24px;
}

@media (max-width: 991px) {
  .vian-mobile-nav nav {
    gap: 4px;
    background: var(--vian-navbar-background);
  }

  .vian-mobile-nav nav > a,
  .vian-mobile-nav .nav-signout {
    display: block;
    width: 100%;
    text-align: left;
    white-space: normal;
  }

  .vian-mobile-nav .vian-private-access {
    width: 40px;
    margin-left: 10px;
    text-align: center;
  }

  .vian-social-links-nav {
    margin: 8px 0 0 10px;
  }
}

.vian-hero-logo {
  display: block;
  width: clamp(160px, 30vw, 300px);
  max-width: 100%;
  height: auto;
  margin: 0 auto 32px;
}

.vian-contact-logo {
  display: block;
  width: 85%;
  max-width: 440px;
  max-height: 520px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.vian-about-content {
  max-width: 900px;
  color: #555;
  line-height: 1.7;
}

.vian-about-content p:last-child {
  margin-bottom: 0;
}

.vian-characteristic-option {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  color: #364e68;
  cursor: pointer;
}

.vian-characteristic-option:has(input:checked) {
  background: #edf5ef;
  border-color: #70c792 !important;
}

.vian-characteristic-option input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #364e68;
}

.vian-gallery-stage {
  position: relative;
}

.vian-gallery-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12%;
  min-width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
}

.vian-gallery-arrow-previous { left: 0; }
.vian-gallery-arrow-next { right: 0; }

.vian-gallery-arrow:hover,
.vian-gallery-arrow:focus-visible {
  opacity: 1;
}

.vian-gallery-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.vian-gallery-arrow svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.vian-gallery-slide {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #edf0f3;
  cursor: zoom-in;
}

.vian-gallery-slide[hidden] {
  display: none;
}

.vian-gallery-slide .vian-detail-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vian-gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}

.vian-gallery-modal-header button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: var(--vian-navbar-background);
  color: #fff;
  cursor: pointer;
}

.vian-gallery-modal {
  width: min(1100px, 94vw);
  max-width: 94vw;
  max-height: 94dvh;
  padding: 16px;
  border: 0;
  overflow-y: auto;
}

.vian-gallery-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.vian-gallery-modal-header {
  justify-content: space-between;
}

.vian-gallery-enlarged {
  display: block;
  width: 100%;
  height: 58dvh;
  object-fit: contain;
  background: #f5f5f5;
}

.vian-gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px;
}

.vian-gallery-thumbnails button {
  flex-shrink: 0;
  padding: 3px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}

.vian-gallery-thumbnails button[aria-pressed="true"] {
  border-color: #364e68;
}

.vian-gallery-thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
}

.vian-property-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Paleta pública de Vian: negro, blanco y rojo del logo. */
.form-search,
.site-footer {
  background: var(--vian-navbar-background);
}

.form-search label {
  color: rgba(255, 255, 255, 0.85);
}

.btn.vian-public-button,
.btn.vian-public-button:hover,
.btn.vian-public-button:focus,
.btn.vian-public-button:active,
.vian-hero-arrow,
.vian-hero-arrow:hover,
.vian-back-to-top,
.vian-gallery-modal-header button {
  background: var(--vian-red);
  border-color: var(--vian-red);
  color: #fff;
}

.btn.vian-public-button:hover,
.vian-whatsapp:hover,
.vian-whatsapp-contact:hover {
  filter: brightness(0.9);
}

.property-entry .offer-type.bg-success {
  background: var(--vian-navbar-background) !important;
}

.property-entry .offer-type.bg-primary {
  background: var(--vian-red) !important;
}

.property-price.text-success,
.vian-page-heading ~ section aside .text-success {
  color: var(--vian-navbar-background) !important;
}

.vian-feature {
  background: #f5f5f5;
  color: #1c1c1c;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline-color: var(--vian-red);
}

.site-footer {
  padding-bottom: 12px;
}

.vian-footer-credit {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.4;
}

.vian-footer-development {
  margin-top: 3px;
  font-weight: 300;
}

.vian-footer-development-line,
.vian-footer-contact-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.vian-footer-contact-line {
  margin-top: 2px;
}

.site-footer .vian-footer-development-link,
.site-footer .vian-footer-development-email {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .vian-footer-development-link {
  display: inline-flex;
  align-items: center;
}

.vian-footer-development-logo {
  display: block;
  width: 130px;
  height: auto;
}

.site-footer .vian-footer-development-email {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-footer .vian-footer-development-email svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .vian-footer-development-link:hover,
.site-footer .vian-footer-development-link:focus,
.site-footer .vian-footer-development-email:hover,
.site-footer .vian-footer-development-email:focus {
  color: #fff;
}

.vian-whatsapp:hover,
.vian-whatsapp:focus {
  color: #fff;
  text-decoration: none;
}

.vian-nav-dropdown {
  position: relative;
}

.vian-nav-dropdown-heading {
  display: flex;
  align-items: center;
}

.vian-nav-dropdown-heading > a {
  padding-right: 2px;
}

.vian-nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 6px;
  line-height: 1;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.vian-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px 0;
  background: var(--vian-navbar-background);
  border-top: 2px solid var(--vian-red);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.vian-nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.vian-nav-dropdown-menu a:hover,
.vian-nav-dropdown-menu a:focus-visible {
  background: var(--vian-red);
}

@media (max-width: 991px) {
  .vian-nav-dropdown-menu {
    position: static;
    box-shadow: none;
    margin-left: 10px;
  }

  .vian-nav-dropdown-heading {
    justify-content: space-between;
  }
}

.btn.vian-auth-button,
.btn.vian-auth-button:hover,
.btn.vian-auth-button:focus,
.btn.vian-auth-button:active {
  background: var(--vian-navbar-background);
  border-color: var(--vian-navbar-background);
  color: #fff;
}
