* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* General Styles */
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
}

header.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  padding-left: 100px;
  padding-right: 100px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dashboard-header .header-logo img {
  max-width: 50px;
}

.header-filters {
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 35px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding-right: 25px;
  padding-left: 25px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.header-filters input {
  padding: 10px;
  border: 0px;
  font-size: 14px;
  color: #333;
}

.search-btn {
  background-color: #45939a;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.header-links a {
  margin-left: 20px;
  color: #45939a;
  text-decoration: none;
  font-weight: bold;
}

/* Filter Bar */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #eee;
  gap: 20px;
}

/* Left Section (Text Details) */
.header-bar-left h1 {
  font-size: 24px;
  font-weight: 800;
  color: #333;
  margin: 0;
}

.header-bar-left p {
  font-size: 14px;
  color: #666;
  margin: 5px 0 0;
}

/* Right Section (Price and Actions) */
.header-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: #45939a;
}

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

.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.action-btn:hover {
  background-color: #45939a;
  color: white;
}

/* Image Gallery */
.image-gallery {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding-left: 100px;
  padding-right: 100px;
  justify-content: center;
}

.main-image img {
  width: 620px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.thumbnail-images img {
  max-width: 302px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Ocultar imágenes adicionales en el grid */
.thumbnail-images img:nth-child(n + 5) {
  display: none;
}

/* Fullscreen Carousel */
.fullscreen-carousel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.fullscreen-carousel img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  cursor: pointer;
  background-color: transparent; /* Fondo transparente */
  border: none; /* Sin borde */
  padding: 10px;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Property Section */
.property-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

/* Property Details Container */
.property-details-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 100px;
  border-radius: 8px;
}

/* Property Details */
.property-details {
  flex: 2;
}

.property-details h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 10px;
  font-size: 16px;
  color: #666;
}

.details-grid div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.details-grid i {
  color: #45939a;
  font-size: 18px;
}

/* Info Button */
.info-btn {
  flex: 1;
  padding: 10px 20px;
  background-color: #45939a;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.info-btn:hover {
  background-color: #356f74;
  transform: scale(1.05);
}

/* Description Section */
.description-section {
  padding: 20px 100px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
}

.description-section h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-top: 40px;
}

.description-section p {
  font-size: 16px;
  color: #333;
  line-height: 1.2;
  padding-bottom: 40px;
}

/* Aplica a la clase o ID donde se muestre la descripción */
.preserve-whitespace {
  white-space: pre-wrap;
}

.availability-section {
  text-align: center;
  padding-left: 100px;
  padding-right: 100px;
}

.availability-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

.available,
.occupied {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.available {
  background-color: #b0e0e6;
  color: #333;
}

.occupied {
  background-color: #ffb3b3;
  color: #b00000;
}

.availability-section h3 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
}

.availability-months {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Other Rooms Section */
.other-rooms-section {
  padding: 20px 100px;
  background-color: #fff;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
}

.other-rooms-section h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.room-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: block; /* Asegura que el enlace ocupe todo el espacio */
  text-decoration: none; /* Elimina el subrayado del enlace */
  color: inherit; /* Hereda el color del texto */
}

.room-card:hover {
  transform: scale(1.05);
}

.room-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.room-price {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #45939a;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.room-availability {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #f39c12; /* Color de fondo (puedes cambiarlo según tu diseño) */
  color: #fff;
  font-size: 14px;
  padding: 5px 10px;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
} 

.room-type {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #fff;
  color: #45939a;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 10px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}


/* Divider Line */
.section-divider {
  border: 0;
  height: 0.5px;
  background: #ddd;
  margin: 20px 0;
}

/* Rentahoy Rooms Section */
.rentahoy-rooms-section {
  padding: 20px 100px;
  background-color: #fff;
  border-radius: 8px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.rentahoy-rooms-section h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.rooms-features {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */
  gap: 20px;
  width: 100%;
  padding-bottom: 40px;
}


.feature-column {
  flex: 1;
  text-align: center;
  justify-items: center;
}

.feature-column h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.feature-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  align-items: center;
}

.feature-column ul li {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-column ul li i.fa-check-circle {
  color: #45939a;
}

.feature-column ul li i:last-child {
  color: #45939a;
  font-size: 16px;
}

.normas-section {
  text-align: center;
}

.normas-section h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.normas-content {
  display: flex;
  justify-content: center;
  gap: 150px;
  align-items: center;
  padding-bottom: 40px;
}

.norma {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.norma i {
  font-size: 24px;
}

.norma p {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}

.contact-section {
  color: #333;
  padding: 40px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 14px;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  width: 100%;
}

.phone-input {
  display: flex;
  gap: 5px;
}

.phone-input select {
  flex: 0 0 20%;
}

.phone-input input {
  flex: 1;
}

.form-group textarea {
  resize: none;
}

.form-group.full-width {
  grid-column: span 2;
}

.submit-btn {
  grid-column: span 2;
  background-color: #45939a;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  transition: scale 0.2s ease;
}

.submit-btn:hover {
  background-color: #356f74;
  scale: 1.01;
}

.map-section {
  flex: 1;
  height: 500px;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
}

/* Botón flotante de cookies */
.cookie-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #45939a;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-button:hover {
  background-color: #667a7c;
  transform: scale(1.05);
}

/* Modal de Cookies */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 20px;
  font-family: "Montserrat", sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content h2 {
  font-size: 18px;
  color: #45939a;
  margin-bottom: 10px;
}

.cookie-modal-content p {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.cookie-options label {
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
}

.cookie-options input[type="checkbox"] {
  margin-right: 10px;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-actions .button {
  background-color: #45939a;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-actions .button:hover {
  background-color: #66878a;
  transform: scale(1.05);
}

.cookie-actions .button.secondary {
  background-color: white;
  color: #45939a;
  border: 1px solid #45939a;
}

.cookie-actions .button.secondary:hover {
  background-color: #66878a;
  color: white;
}

/* Selector de ciudad estilizado */
.city-selector {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
}

/* Icono de flecha personalizado */
.city-selector::after {
  content: "▼";
  position: absolute;
  right: 15px;
  color: #333;
}

/* Evitar el diseño nativo del selector en móviles */
.city-selector::-ms-expand {
  display: none; /* Oculta la flecha en IE/Edge */
}

/* Asegurar que el modal de compartir se muestre correctamente */
#share-modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1001; /* Mayor que el fondo difuminado */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Mostrar modal */
#share-modal.show {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Estilos específicos para el botón de copiar */
.copy-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

#share-link {
  width: 80%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}

#copy-btn {
  padding: 8px 12px;
  margin-left: 5px;
  background: #45939a;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

#copy-btn:hover {
  background: #357a7f;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* Fondo con blur */
.blur-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.blur-background.show {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.footer {
  background-color: #45939a;
  color: white;
  padding-top: 30px;
  padding-bottom: 20px;
  padding-left: 30px;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

/* Logo del footer */
.footer-logo {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-logo img {
  width: 120px;
  max-width: 100%;
}

/* Enlaces y redes sociales */
.footer-content {
  flex: 3;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  text-align: right;
}

/* Enlaces útiles */
.footer-links h4,
.footer-social h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-links li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: #c5c3c6;
}

/* Redes sociales */
.footer-social .social-icons a {
  font-size: 20px;
  color: white;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #c5c3c6;
}

/* Derechos reservados */
.footer-legal {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.footer-legal a {
  color: #c5c3c6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

/* Ocultar miniaturas adicionales: se mostrarán solo los primeros 4 */
.thumbnail-images .thumbnail-wrapper:nth-child(n + 5) {
  display: none;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .dashboard-main {
    flex-direction: column;
  }

  .map-section {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .header-filters {
    flex-direction: column;
    gap: 10px;
  }

  .header-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dashboard-main {
    padding: 10px;
  }

  .listing-item {
    flex-direction: column;
    align-items: center;
  }

  .listing-item img {
    width: 100%;
    height: auto;
  }
  .property-details-container {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-btn {
    width: 100%;
    margin-top: 20px;
  }
  .rooms-features {
    flex-direction: column;
    gap: 20px;
  }

  .feature-column {
    text-align: center;
  }
  /* Image Gallery */
  .image-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }
  .thumbnail-images {
    display: flex;
    overflow-x: auto;
    gap: 10px;
  }

  .thumbnail-images img {
    flex: 0 0 auto;
    width: 150px;
    height: auto;
  }

  .thumbnail-images .view-all-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 15px;
    font-size: 12px;
  }

  .description-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .availability-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .other-rooms-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .rentahoy-rooms-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .normas-content {
    gap: 20px;
  }
  .cookie-modal {
    width: 95%;
    padding: 15px;
  }

  .cookie-modal-content h2 {
    font-size: 16px;
  }

  .cookie-modal-content p {
    font-size: 13px;
  }

  .cookie-actions .button {
    font-size: 12px;
    padding: 8px 15px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }
  header.dashboard-header {
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    gap: 20px;
    justify-content: center;
  }
  .header-logo img {
    width: 50px;
  }
  .header-links {
    display: none;
  }
  .header-filters {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .header-filters input,
  .search-btn {
    width: 100%;
  }
}
