﻿/* Contenedor Principal */
.detalle-container {
    max-width: 1100px;
    margin: 25px auto;
    padding: 20px;
    border-radius: 10px;
    background: #1a1a1a;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    font-family: Arial, sans-serif;
}

/* Título y Precio en una fila */
.detalle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.detalle-titulo {
    font-size: 2rem;
    font-weight: bold;
    color: whitesmoke;
}

.detalle-precio {
    font-size: 1.8rem;
    font-weight: bold;
    color: whitesmoke;
}

/* Galería de imágenes */
.detalle-galeria {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

/* Imagen principal */
.foto-grande img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Columna derecha para imágenes secundarias */
.foto-secundarias {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

/* Imagen secundaria */
.foto-secundarias img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
}

/* Contenedor para la segunda imagen y contador */
.foto-extra {
    position: relative;
}

/* Overlay para mostrar "+(n) más" */
.mas-fotos {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    font-size: 1.2rem;
    border-radius: 0 0 5px 0;
    cursor: pointer;
}

/* Información de la propiedad */
.detalle-info {
    font-size: 1.1rem;
    color: #bbb;
    /* margin-bottom: 15px; */
    text-align: left;
}

.detalle-info strong {
    font-weight: bold;
}

/* Botones de acción */
.detalle-botones {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.detalle-btn {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #ff9800;
    color: white;
}

.detalle-btn:hover {
    background: #e68900;
}

.no-disponible {
    background-color: #777;
    cursor: not-allowed;
}

/* Mapa */
.detalle-mapa {
    margin-top: 20px;
    width: 100%;
    height: 400px;
    border: 1px solid #ccc;
}

/* Modal para galería */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.modal-foto {
    max-width: 80%;
    max-height: 80%;
    border-radius: 5px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.consultar-reserva {
    background-color: #28a745;
    color: white;
}

.no-disponible {
    background-color: #6c757d;
    color: white;
    cursor: not-allowed;
}

.editar-propiedad {
    background-color: #ffc107;
    color: black;
}

.reservaform-container {
    width: 90%;
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background-color: #242424;
    border: 2px solid #ffcc00;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 204, 0, 0.5);
    text-align: center;
}

.reservaform-header h2 {
    color: #ffffff;
    font-size: 22px;
    border-bottom: 2px solid #ffcc00;
    display: inline-block;
    padding-bottom: 5px;
}

.reservaform {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reservaform-group {
    text-align: left;
}

.reservaform-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #ffcc00;
}

.reservaform-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: #ffffff;
    font-size: 16px;
}

.reservaform-control:focus {
    outline: none;
    border: 2px solid #ffcc00;
}

.reservaform-btn {
    background-color: #ffcc00;
    color: #121212;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.reservaform-btn:hover {
    background-color: #e6b800;
}

.reserva-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.reserva-container {
    width: 100%;
    max-width: 600px;
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-family: Arial, sans-serif;
}

.reserva-container h4 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

.reserva-container p {
    margin: 5px 0;
    color: #555;
}

.reserva-btn-cancelar, .reserva-btn-pago {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 10px;
}

.reserva-btn-cancelar {
    background-color: #e74c3c;
    color: white;
}

.reserva-btn-pago {
    background-color: #27ae60;
    color: white;
}

.btn-contacto{
    padding: 10px 20px;
    margin-bottom: 30px; /* Agrega espacio para evitar la superposición con el footer */
}

/* Contenedor principal en 2 columnas */
.contacto-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #1a1a1a;
    padding: 20px;
}

/* Formulario e información */
.contacto-formulario, .contacto-info {
    flex: 1;
    min-width: 300px; /* Para mantener las columnas en pantallas pequeñas */
}

/* Títulos y subtítulos */
.contacto-titulo {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 10px;
}

.contacto-subtitulo {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contacto-descripcion {
    text-align: left;
    margin-bottom: 20px;
}

/* Formulario */
.contacto-formulario {
    text-align: left;
}

.contacto-campo {
    display: flex;
    flex-direction: column;
}

.contacto-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.contacto-input,
.contacto-textarea {
    width: 75%; /* Tamaño reducido */
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 0; /* Bordes angulosos */
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* Botón neutro */
.contacto-boton {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 0; /* Bordes angulosos */
    cursor: pointer;
    width: 40%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.contacto-boton:hover {
    background-color: #c0c0c0;
}

/* Información de contacto */
.contacto-info {
    text-align: left;
}

.contacto-info p {
    margin-bottom: 10px;
}

/* Icono de Instagram */
.contacto-instagram i {
    color: #e4405f;
    transition: transform 0.3s ease;
}


.contacto-instagram i:hover {
    transform: scale(1.2);
}

.contacto-whatsapp i {
    color: #128c7e;
    transition: transform 0.3s ease;
}

.contacto-whatsapp:hover {
    transform: scale(1.2);
}

.contacto-facebook i {
    color: #4267b3;
    transition: transform 0.3s ease;
}

.contacto-facebook:hover{
    transform: scale(1.2);
}

/* Mensaje de alerta */
.contacto-alerta {
    width: 75%;
    text-align: left;
}

/* Responsividad: columnas apiladas en pantallas pequeñas */
@media (max-width: 768px) {
    .contacto-contenedor {
        flex-direction: column;
    }
}



/* Responsivo */
@media (max-width: 768px) {
    .detalle-content {
        flex-direction: column;
        align-items: center;
    }

    .detalle-img {
        width: 100%;
    }
}
