/* Property Detail Page Styles */
:root {
    --primary-blue: #e81b1c;
    --light-blue: #e5eff6;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #dfe3e8;
    --accent-blue: #007BFF;
}


body {
    background-color: var(--white);
    color: var(--text-dark);
}

.property-detail {
    padding: 60px 0;
}

/* Property Header */
.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.property-title-container h1 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.property-location {
    color: var(--text-gray);
}

/* Estilos mejorados para el precio en el header */
.property-price-container {
    text-align: right;
    background-color: var(--light-blue);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.property-badgee {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.property-price {
    margin-top: 5px;
}

.price-label {
    font-size: 1.1em;
    color: var(--text-gray);
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.price-amount {
    font-size: 1.8em;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .property-price-container {
        text-align: center;
        width: 100%;
    }
}

.property-badgee-venta {
    background-color: var(--primary-blue);
    color: var(--white);
}

.property-badgee-alquiler {
    background-color: #28a745;
    color: var(--white);
}

.property-badgee-alquiler_temporal {
    background-color: #ffc107;
    color: var(--text-dark);
}

.property-price .price-amount {
    font-size: 1.5em;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Property Gallery */
.property-gallery {
    margin-bottom: 40px;
}

.property-main-image {
    margin-bottom: 20px;
}

.property-main-image img {
    width: 50%;
    border-radius: 10px;
    max-height: 500px;
    object-fit: cover;
}



.property-main-image{
    text-align: center;
}
.property-thumbnails{
    justify-content: center;
}

.property-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Property Content */
.property-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.property-main-details {
    background-color: var(--white);
}

.property-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: 10px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight-item i {
    color: var(--primary-blue);
    font-size: 2em;
    margin-bottom: 10px;
}

.highlight-value {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-blue);
}

.highlight-label {
    color: var(--text-gray);
    font-size: 0.9em;
}

.property-description,
.property-featuress {
    margin-bottom: 40px;
}

.property-description h2,
.property-featuress h2 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-column h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-list {
    list-style-type: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 10px;
    color: var(--text-gray);
}

.amenities-list li i {
    color: var(--primary-blue);
    margin-right: 10px;
}

/* Property Location */
.property-location {
    margin-bottom: 40px;
}

#property-map {
    width: 100%;
    height: 400px;
    background-color: var(--light-blue);
    border-radius: 10px;
}

/* Sidebar */
.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-form-container,
.agent-info {
    background-color: var(--light-blue);
    border-radius: 10px;
    padding: 30px;
}

.contact-form-container h3,
.agent-info h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: color-mix(in srgb, var(--primary-blue) 85%, white);
}

.contact-alternatives {
    margin-top: 20px;
    text-align: center;
}

.contact-phone {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.agent-info {
    text-align: center;
}

.agent-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.agent-details h4 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

/* Similar Properties */
.similar-properties {
    margin-top: 60px;
}

.similar-properties h2 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(4, 59, 131, 0.1);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card .property-image {
    position: relative;
}

.property-card .property-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-card .property-details {
    padding: 20px;
}

.property-card .property-title {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.property-card .property-location {
    margin-bottom: 15px;
}

.btn-view-property {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .property-content {
        grid-template-columns: 1fr;
    }

    .property-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        text-align: center;
    }

    .property-highlights {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-main-image img{
        width: 100%;
    }

    .property-main-image{
        text-align: center;
    }
    .property-thumbnails{
        justify-content: center;
    }
}

/* Estilos para la carga de imágenes */
.image-upload-container {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
    background-color: #f9fafb;
}

.upload-instructions {
    margin-bottom: 15px;
}

.upload-instructions p {
    margin: 5px 0;
    color: var(--text-gray);
    font-size: 0.9em;
}

.upload-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.form-control-file {
    flex: 1;
}

.image-preview-container {
    margin-top: 20px;
}

.no-images-message {
    text-align: center;
    color: var(--text-gray);
    padding: 15px;
    background-color: var(--light-blue);
    border-radius: 5px;
}

.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-preview-item {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--white);
    padding: 5px;
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 3px;
}

.image-preview-item .file-info {
    font-size: 0.8em;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 0;
}

.image-preview-item.principal {
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(4, 59, 131, 0.3);
}

.principal-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: 600;
}

/* Estilos para la visualización de imágenes en property.php */
.property-gallery {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
}

.property-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    scrollbar-width: thin; /* For Firefox */
    width: 100%;
    max-width: 100%;
    justify-content: flex-start; /* Change from center to flex-start */
    margin: 0 auto;
}

/* Add nicer scrollbar for Chrome/Edge/Safari */
.property-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.property-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.property-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.property-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #e81b1c;
}

.thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-blue);
}

.thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .property-thumbnails {
        justify-content: flex-start;
        padding-bottom: 15px; /* Add more padding for scrollbar */
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.gallery-control {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 5;
}

.gallery-control:hover {
    background-color: color-mix(in srgb, var(--primary-blue) 85%, white);
}

.gallery-control:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

.fullscreen-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.fullscreen-toggle:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
}

.fullscreen-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    margin-bottom: 20px;
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.fullscreen-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.fullscreen-control {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fullscreen-control:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    color: var(--white);
    border: none;
    font-size: 2em;
    cursor: pointer;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}




/* Agregar estos estilos al archivo CSS de la página de detalle de propiedad */

/* Banner para la página de detalle de propiedad */
.property-banner {
    position: relative;
    background-image: url('../img/backgrounds/hero_prop.jpg'); /* Imagen de fondo genérica */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
}

/* Overlay oscuro para mejorar legibilidad del texto */
.property-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay más oscuro para mayor contraste */
    z-index: 1;
}

/* Contenido del banner */
.property-banner .banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    margin-top: 100px;
}

.property-banner .banner-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.property-banner .banner-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.property-banner .banner-content i {
    margin-right: 8px;
    color: var(--white);
}

/* Estilo para el badge del tipo de operación */
.property-banner-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.property-banner-badge.property-badgee-venta {
    background-color: #28a745;
    color: white;
}

.property-banner-badge.property-badgee-alquiler {
    background-color: #007bff;
    color: white;
}

.property-banner-badge.property-badgee-alquiler_temporal {
    background-color: #6f42c1;
    color: white;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .property-banner {
        height: 450px;
    }
    
    .property-banner .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .property-banner .banner-content p {
        font-size: 1rem;
    }
    
    .property-banner-badge {
        top: -12px;
        padding: 5px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .property-banner {
        height: 400px;
    }
    
    .property-banner .banner-content h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .property-banner-badge {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        display: inline-block;
        margin-bottom: 10px;
    }
}

/* Nuevos estilos para los múltiples tipos de operación */

/* Contenedor para múltiples badges en el header de propiedad */
.property-multi-badge {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
  }
  
  .property-multi-badge .property-badgee {
    text-align: center;
  }
  
  /* Estilos para múltiples precios */
  .multi-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
  }
  
  .price-label {
    font-weight: 500;
    color: #666;
  }
  
  /* Mejorar visualización de precios */
  .property-price-container {
    min-width: 280px;
    padding: 20px;
  }
  
  .multi-price .price-amount {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-blue);
  }
  
  /* Estilo para múltiples tarjetas de propiedades similares */
  .property-card .multi-price {
    margin-top: 5px;
  }
  
  .property-card .price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
  }
  
  .property-card .price-label {
    font-size: 0.85rem;
    font-weight: normal;
    color: #777;
  }
  
  .property-card .price-item strong {
    font-size: 1rem;
    font-weight: 600;
  }
  
  /* Ajustes para dispositivos móviles */
  @media (max-width: 768px) {
    .property-price-container {
      width: 100%;
      min-width: unset;
      padding: 15px;
    }
    
    .property-multi-badge {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
    }
    
    .property-multi-badge .property-badgee {
      font-size: 0.8rem;
      padding: 4px 8px;
    }
    
    .multi-price {
      margin-top: 10px;
    }
    
    .multi-price .price-amount {
      font-size: 1.2em;
    }
  }
  
  /* Para propiedades similares en pantallas pequeñas */
  @media (max-width: 480px) {
    .property-card .multi-price {
      flex-direction: column;
      gap: 2px;
    }
    
    .property-card .price-item {
      font-size: 0.9rem;
    }
  }
  
  /* Estilos para servicos incluidos */
  .amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  
  .amenities-list li {
    display: flex;
    align-items: center;
  }
  
  .amenities-list li i {
    margin-right: 8px;
    color: var(--primary-blue);
    min-width: 16px;
  }