/* Estilos generales para Catálogo, Calendarios y Pre-Check-in de Alquiler Temporario Cañuelas */

/* Grilla de Propiedades */
.alquiler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.alquiler-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
}

.alquiler-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.alquiler-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.alquiler-badge-precio {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(18, 140, 126, 0.95);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.alquiler-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.alquiler-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #1a202c;
}

.alquiler-card-location {
    font-size: 13px;
    color: #718096;
    margin: 0 0 15px 0;
}

.alquiler-card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
}

.alquiler-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.amenity-chip {
    background: #edf2f7;
    color: #2d3748;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.alquiler-card-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.alquiler-card-footer {
    display: flex;
    gap: 10px;
}

.btn-alquiler-ver-cal, .btn-alquiler-consultar-bot {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.2s ease;
}

.btn-alquiler-ver-cal {
    background: #e2e8f0;
    color: #2d3748;
}
.btn-alquiler-ver-cal:hover {
    background: #cbd5e0;
}

.btn-alquiler-consultar-bot {
    background: #25d366;
    color: #ffffff;
}
.btn-alquiler-consultar-bot:hover {
    background: #128c7e;
}

/* Modal Global de Calendario */
.alquiler-modal {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.alquiler-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.alquiler-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #a0aec0;
    cursor: pointer;
}
.alquiler-modal-close:hover {
    color: #2d3748;
}

/* Calendario Grid */
.alquiler-calendario-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.alquiler-calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.alquiler-calendario-header button {
    background: #edf2f7;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.alquiler-calendario-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #718096;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}
.dot-libre { background: #48bb78; }
.dot-bloqueado { background: #f56565; }

.cal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.cal-table th {
    padding: 8px 4px;
    font-size: 12px;
    color: #718096;
}

.cal-table td {
    padding: 10px 4px;
    font-size: 13px;
    border-radius: 6px;
}

.cal-day-available {
    background: #f0fff4;
    color: #22543d;
    font-weight: 600;
}

.cal-day-blocked {
    background: #fff5f5;
    color: #c53030;
    text-decoration: line-through;
    opacity: 0.6;
}

/* Pre-Check-in Digital Styling */
.alquiler-precheckin-wrap {
    max-width: 720px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.alquiler-precheckin-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 35px;
    border: 1px solid #eef0f3;
}

.precheckin-header h2 {
    color: #128c7e;
    font-size: 26px;
    margin: 0 0 5px 0;
}

.precheckin-sub {
    color: #718096;
    margin: 0 0 25px 0;
}

.precheckin-resumen {
    display: flex;
    justify-content: space-between;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.resumen-item span {
    display: block;
    font-size: 12px;
    color: #a0aec0;
    text-transform: uppercase;
}

.resumen-item strong {
    font-size: 15px;
    color: #2d3748;
}

.form-precheckin h4 {
    margin: 25px 0 12px 0;
    color: #2d3748;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.help-text {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
    display: block;
}

.contrato-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    font-size: 13px;
    color: #4a5568;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.checkbox-terminos {
    margin: 20px 0;
    font-size: 14px;
    color: #2d3748;
}

.btn-principal {
    background: #128c7e;
    color: #fff;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn-principal:hover {
    background: #075e54;
}

.btn-secundario {
    background: #edf2f7;
    color: #2d3748;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}
