@import "../vendor/leaflet/leaflet.css";

/* ==========================================================================
   FLAVAN - Ficha Detallada de Propiedad (Airbnb Iconic Layout)
   ========================================================================== */

.property-detail-page {
  padding: 30px 0 80px;
}

/* Breadcrumb & Navigation */
.property-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.property-breadcrumb a:hover {
  color: var(--blue-ocean);
  text-decoration: underline;
}

/* Header de la Propiedad */
.property-header-title {
  margin-bottom: 18px;
}

.prop-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 10px;
}

.prop-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14.5px;
}

.prop-meta-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.prop-rating-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-main);
}

.prop-rating-tag svg {
  color: #F59E0B;
  width: 18px;
  height: 18px;
}

.prop-location-tag {
  color: var(--blue-ocean);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.prop-location-tag:hover {
  color: #0369a1;
  transform: translateY(-1px);
}

.prop-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-prop-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-main);
  transition: var(--transition);
}

.btn-prop-action:hover {
  background: var(--blue-pastel-light);
  border-color: var(--blue-pastel);
}

/* ==========================================================================
   Galería de Fotos Airbnb (1 Grande + 4 Chicas)
   ========================================================================== */
.airbnb-photo-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0 36px;
  background-color: var(--sand-light);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-main {
  grid-row: span 2;
}

.btn-show-all-photos {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--white);
  border: 1px solid var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-show-all-photos:hover {
  background: var(--sand-cream);
  transform: scale(1.02);
}

/* ==========================================================================
   Layout Principal de la Ficha (2 Columnas)
   ========================================================================== */
.property-main-columns {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* Columna Izquierda: Información */
.prop-left-column {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.prop-host-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.prop-host-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.prop-specs-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.host-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-pastel), var(--green-mint));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

/* Puntos Destacados */
.prop-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--blue-pastel-light);
  color: var(--blue-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.highlight-text p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Descripción */
.prop-description-box {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.section-subheading {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.prop-description-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-main);
  white-space: pre-line;
}

/* Amenidades Detalladas */
.prop-amenities-section {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.amenities-icons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.amenity-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border-light);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.amenity-chip:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.amenity-chip-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.amenity-chip-main svg {
  color: var(--blue-ocean);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.amenity-chip-title {
  font-weight: 700;
  color: #0F2438;
}

.amenity-suboptions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 34px;
  margin-top: 2px;
}

.amenity-suboption-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: #1E40AF;
  background: #EFF6FF;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid #DBEAFE;
  line-height: 1.3;
}

/* ==========================================================================
   Widget Flotante de Reserva (Columna Derecha)
   ========================================================================== */
.prop-right-column {
  position: sticky;
  top: 100px;
}

.booking-widget-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-airbnb);
  padding: 28px;
}

.widget-header-price {
  margin-bottom: 20px;
}

.widget-price-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.widget-promo-header-tag {
  display: flex;
  align-items: center;
}

.widget-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.22);
  white-space: nowrap;
}

.widget-promo-badge svg {
  flex-shrink: 0;
}

.widget-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.widget-price-old {
  font-size: 16px;
  font-weight: 500;
  text-decoration: line-through;
  color: #94a3b8;
  white-space: nowrap;
}

.widget-price-current {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-ocean);
  line-height: 1;
  white-space: nowrap;
}

.widget-price-period {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Datepicker & Guest Inputs */
.widget-inputs-container {
  position: relative;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: var(--white);
}

.widget-dates-wrapper {
  position: relative;
  width: 100%;
}

.widget-dates-row {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  background: var(--white);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.2s ease;
  user-select: none;
}

.widget-dates-row:hover {
  background: #F8FAFC;
}

.widget-dates-row.is-active {
  background: #F0F9FF;
  border-bottom-color: var(--blue-ocean);
}

.widget-input-half {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  transition: background 0.15s ease;
}

.widget-input-half:first-child {
  border-right: 1px solid var(--border-light);
}

.widget-input-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue-ocean);
  margin-bottom: 2px;
}

.widget-date-display-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-navy);
}

.widget-date-display-val svg {
  color: #94A3B8;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.widget-dates-row:hover .widget-date-display-val svg {
  color: var(--blue-ocean);
  transform: scale(1.08);
}

/* Popover Calendario: Ubicado justo debajo de los campos Llegada / Salida */
.widget-calendar-picker-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.98);
  width: 100% !important;
  min-width: 320px;
  max-width: 360px;
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(15, 36, 56, 0.28), 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(203, 213, 225, 0.95);
  z-index: 1050;
  padding: 16px 18px !important;
  display: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget-calendar-picker-popover.show {
  display: block;
  pointer-events: auto;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.widget-calendar-picker-popover .cal-day-cell.booked {
  color: #CBD5E1 !important;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.55;
  background-color: #F8FAFC !important;
}

@media (max-width: 480px) {
  .widget-calendar-picker-popover {
    right: -10px;
    width: calc(100vw - 32px) !important;
    max-width: none;
  }
}

.widget-guests-select-row {
  padding: 10px 14px;
  background: var(--white);
}

.widget-guests-select {
  width: 100%;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  background: transparent;
}

/* Botón de Reserva */
.btn-book-now {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  margin-bottom: 14px;
}

.btn-book-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.widget-notice-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Desglose de Costos */
.price-breakdown-table {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
}

.breakdown-row.discount {
  color: var(--green-emerald-dark);
  font-weight: 700;
}

.breakdown-row.total-row {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

/* Reseñas */
.reviews-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.review-card {
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.review-author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-pastel-light);
  color: var(--blue-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.review-author-name {
  font-size: 15px;
  font-weight: 700;
}

.review-date {
  font-size: 12.5px;
  color: var(--text-muted);
}

.review-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

/* ==========================================================================
   Calendario Interactivo de Disponibilidad para Clientes (Airbnb Style)
   ========================================================================== */
.client-availability-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}

.client-cal-top-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.client-cal-subtext {
  font-size: 14.5px;
  color: var(--text-muted);
}

.client-cal-months-container {
  display: flex;
  gap: 36px;
  margin: 20px 0;
}

.client-single-month {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.client-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.client-month-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  flex: 1;
}

.client-month-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.client-month-nav:hover {
  background: var(--blue-pastel-light);
  color: var(--blue-ocean);
  border-color: var(--blue-pastel);
}

.client-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.client-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.cal-day-cell.empty {
  cursor: default;
  background: transparent;
}

.cal-day-cell.available:hover {
  background-color: var(--blue-pastel-light);
  color: var(--blue-ocean);
  border-color: var(--blue-pastel);
}

.cal-day-cell.booked {
  color: #CBD5E1;
  text-decoration: line-through;
  cursor: not-allowed;
  background-color: #F8FAFC;
}

.cal-day-cell.selected-endpoint {
  background-color: var(--blue-ocean) !important;
  color: var(--white) !important;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(42, 111, 151, 0.4);
}

.cal-day-cell.in-range {
  background-color: var(--blue-pastel-light) !important;
  color: var(--blue-ocean) !important;
  border-radius: 8px !important;
  font-weight: 700;
}

.client-cal-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}

.btn-reset-dates {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: underline;
  cursor: pointer;
}

/* Responsive Propiedad */
@media (max-width: 992px) {
  .airbnb-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 280px;
  }
  .gallery-item:not(.gallery-item-main) {
    display: none;
  }
  .property-main-columns {
    grid-template-columns: 1fr;
  }
  .prop-right-column {
    position: static;
  }
  .client-cal-months-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==========================================================================
   Mesa de Luz (Lightbox Slider) de Fotos Grandes con Slide Manual
   ========================================================================== */
.prop-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(8, 17, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.prop-lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.prop-lightbox-dialog {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0;
  transform: scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.prop-lightbox-overlay.is-active .prop-lightbox-dialog {
  transform: scale(1);
}

.prop-lightbox-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 32px;
  background: transparent;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1000000;
}

.prop-lightbox-title-wrap {
  display: none !important;
}

.prop-lightbox-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  pointer-events: auto;
}

.prop-lightbox-counter {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F1F5F9;
  font-size: 13.5px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

.prop-lightbox-close-btn {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.prop-lightbox-close-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  transform: rotate(90deg) scale(1.1);
}

.prop-lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0;
}

.prop-lightbox-img-box {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 86vh;
  max-height: 86dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
}

.prop-lightbox-img {
  max-width: 86vw;
  max-height: 84vh;
  max-height: 84dvh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.prop-lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000000;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.prop-lightbox-prev {
  left: 28px;
}

.prop-lightbox-next {
  right: 28px;
}

.prop-lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.12);
}

.prop-lightbox-footer {
  display: none !important;
}

@media (max-width: 900px) {
  .prop-lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
  }
  .prop-lightbox-prev {
    left: 16px;
  }
  .prop-lightbox-next {
    right: 16px;
  }
}

@media (max-width: 640px) {
  .prop-lightbox-nav-btn {
    width: 42px;
    height: 42px;
  }
  .prop-lightbox-prev {
    left: 10px;
  }
  .prop-lightbox-next {
    right: 10px;
  }
  .prop-lightbox-close-btn {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
  .prop-lightbox-counter {
    top: 16px;
    font-size: 12px;
    padding: 4px 12px;
  }
}

/* ==========================================================================
   INTERACTIVIDAD DE LA UBICACIÓN DESTACADA
   ========================================================================== */
.highlight-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.highlight-clickable:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  border-color: #e2e8f0;
}

.highlight-map-link {
  color: var(--blue-ocean);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}

/* ==========================================================================
   MODAL DE MAPA DE UBICACIÓN EN LA ISLA (CON BORDE BLANCO ELEGANTE)
   ========================================================================== */
.prop-map-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.26s ease;
}

.prop-map-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.prop-map-modal-dialog {
  background: #FFFFFF;
  width: 100%;
  max-width: 960px;
  max-height: 94vh;
  border-radius: 24px;
  /* BORDE BLANCO PROMINENTE Y ELEGANTE */
  border: 4.5px solid #FFFFFF;
  outline: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 90px -15px rgba(15, 23, 42, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 45px rgba(2, 132, 199, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.prop-map-modal-overlay.is-active .prop-map-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Header del Modal */
.prop-map-modal-header {
  padding: 18px 24px 15px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.prop-map-modal-header-info {
  flex: 1 1 320px;
}

.prop-map-modal-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.prop-map-modal-badge-beach {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #E0F2FE;
  color: #0284C7;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 100px;
}

.prop-map-modal-badge-island {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 100px;
}

.prop-map-modal-title {
  font-size: 21px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 3px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.prop-map-modal-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 560px;
}

/* Acciones del Header: Switch de Capa, Switch de Zoom y Cerrar */
.prop-map-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prop-map-layer-switch,
.prop-map-view-switch {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 100px;
  border: 1px solid #E2E8F0;
}

.btn-layer-switch,
.btn-map-switch {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-layer-switch:hover,
.btn-map-switch:hover {
  color: #0F172A;
}

.btn-layer-switch.active,
.btn-map-switch.active {
  background: #FFFFFF;
  color: #0284C7;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-map-modal-close {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-map-modal-close:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* Cuerpo / Escenario del Mapa */
.prop-map-modal-body {
  position: relative;
  width: 100%;
  height: 520px;
  background: #E2E8F0;
}

.prop-modal-leaflet-map {
  width: 100%;
  height: 100%;
  background: #E2E8F0;
}

/* Estilización Moderna de Controles de Zoom Leaflet */
.prop-modal-leaflet-map .leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.16) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-top: 18px !important;
  margin-left: 18px !important;
}

.prop-modal-leaflet-map .leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px) !important;
  color: #0F172A !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border: none !important;
  border-bottom: 1px solid #E2E8F0 !important;
  transition: all 0.2s ease !important;
}

.prop-modal-leaflet-map .leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}

.prop-modal-leaflet-map .leaflet-control-zoom a:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
}

/* Pin con efecto pulso radiante */
.property-modal-pin-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-pin-pulse {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.5);
  pointer-events: none;
  animation: mapPinPulse 2.4s infinite ease-out;
}

@keyframes mapPinPulse {
  0% {
    transform: translateX(-50%) scale(0.6);
    opacity: 0.9;
  }
  65% {
    transform: translateX(-50%) scale(2.6);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) scale(2.8);
    opacity: 0;
  }
}

.prop-modal-hero-pin .pin-bubble {
  height: 34px !important;
  padding: 3px 11px 3px 4px !important;
  border-radius: 20px !important;
  background: #0F2438 !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(15, 36, 56, 0.4), 0 0 0 1px rgba(2, 132, 199, 0.3) !important;
  gap: 7px !important;
  transform: scale(1.05) !important;
  white-space: nowrap !important;
}

.prop-modal-hero-pin .pin-img-wrapper {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border: 1.5px solid #C58F58 !important;
}

.prop-modal-hero-pin .pin-price-badge {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.2px !important;
}

.prop-modal-hero-pin .pin-per-night {
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  margin-left: -2px;
}

.prop-modal-hero-pin .pin-arrow {
  border-top-color: #0F2438 !important;
  margin-top: -1px;
}

/* Popup de Leaflet estilo Tarjeta Hotelera Elegante */
.prop-modal-leaflet-map .leaflet-popup-content-wrapper {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.prop-modal-leaflet-map .leaflet-popup-content {
  margin: 12px 16px !important;
  line-height: 1.4 !important;
}

.prop-modal-leaflet-map .leaflet-popup-tip {
  background: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

.prop-modal-leaflet-map .leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  color: #94A3B8 !important;
  font-size: 16px !important;
  padding: 2px !important;
  border-radius: 50% !important;
  transition: all 0.15s ease !important;
}

.prop-modal-leaflet-map .leaflet-popup-close-button:hover {
  color: #EF4444 !important;
  background: #FEE2E2 !important;
}

/* Badge flotante de proximidad a la playa */
.prop-map-floating-distance {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  border-radius: 100px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #0284C7;
  pointer-events: auto;
}

.prop-map-floating-distance svg {
  color: #10B981;
}

/* Badge discreto de zona aproximada */
.prop-map-privacy-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 100px;
  padding: 6px 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #F8FAFC;
  pointer-events: none;
}

/* Footer del Modal */
.prop-map-modal-footer {
  padding: 13px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.prop-map-footer-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
}

.prop-map-footer-meta svg {
  color: #0284C7;
  flex-shrink: 0;
}

.prop-map-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-open-google-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-open-google-maps svg {
  color: #EA4335;
}

.btn-open-google-maps:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
  transform: translateY(-1px);
}

.btn-map-modal-done {
  background: #0284C7;
  border: none;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-map-modal-done:hover {
  background: #0369A1;
  transform: translateY(-1px);
}

/* Media Queries para Responsive */
@media (max-width: 768px) {
  .prop-map-modal-dialog {
    max-height: 96vh;
    border-radius: 18px;
    border-width: 3px;
  }
  .prop-map-modal-header {
    padding: 12px 16px;
  }
  .prop-map-modal-title {
    font-size: 17px;
  }
  .prop-map-modal-subtitle {
    max-width: 280px;
  }
  .prop-map-modal-body {
    height: 380px;
  }
  .prop-map-floating-distance {
    bottom: 10px;
    left: 10px;
    font-size: 11.5px;
    padding: 5px 11px;
  }
  .prop-map-privacy-badge {
    top: 10px;
    right: 10px;
    font-size: 10.5px;
    padding: 4px 10px;
  }
  .prop-map-modal-footer {
    padding: 10px 16px;
  }
  .prop-map-footer-meta {
    font-size: 12px;
  }
}


