/* 
 * ESTILOS PÚBLICOS - Hotel Booking Peru
 * Este archivo define la apariencia premium del buscador y listado de habitaciones.
 */
:root {
    --hbp-primary: #1a2a6c;
    /* Azul Profundo (Elegancia) */
    --hbp-secondary: #b21f1f;
    /* Rojo Vino (Acento) */
    --hbp-accent: #fdbb2d;
    /* Dorado (Premium) */
    --hbp-text: #333;
    --hbp-bg: #f8f9fa;
}

.hbp-search-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.hbp-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hbp-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hbp-text);
}

.hbp-form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border 0.3s;
}

.hbp-form-group input:focus {
    border-color: var(--hbp-primary);
}

.hbp-submit-btn {
    background: var(--hbp-primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.hbp-submit-btn:hover {
    background: #0d1a4d;
    transform: translateY(-2px);
}

/* Grid & Cards */
.hbp-accommodations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.hbp-accommodation-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hbp-accommodation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hbp-accommodation-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hbp-card-content {
    padding: 20px;
}

.hbp-card-content h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: var(--hbp-primary);
}

.hbp-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.hbp-card-meta .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hbp-secondary);
}

.hbp-card-meta .capacity {
    font-size: 0.9rem;
    color: #666;
}

.hbp-view-btn {
    display: block;
    text-align: center;
    background: var(--hbp-primary);
    padding: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s, filter 0.3s;
}

.hbp-view-btn:hover {
    filter: brightness(1.2);
    color: white;
}

/* Booking Form */
.hbp-booking-form-wrap {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.hbp-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.hbp-form-section h3 {
    margin-top: 0;
    color: var(--hbp-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hbp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hbp-field {
    margin-bottom: 15px;
}

.hbp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.hbp-field input,
.hbp-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.hbp-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-weight: 500;
}

.hbp-success {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.hbp-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.hbp-info {
    background: #e7f3ff;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

.hbp-fade-in {
    animation: hbpFadeIn 0.5s ease;
}

@keyframes hbpFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hbp-disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
}

.hbp-field.full-width {
    grid-column: 1 / -1;
}

.hbp-form-footer {
    text-align: center;
    margin-top: 20px;
}

.hbp-submit-btn.large {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: var(--hbp-secondary);
    /* Color acento para el botón final */
}

.hbp-submit-btn.large:hover {
    background: #8e1818;
}

@media (max-width: 600px) {
    .hbp-grid {
        grid-template-columns: 1fr;
    }

    .hbp-search-box input {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Amenities & Badges */
.hbp-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.amenity-badge {
    background: #f0f4f8;
    color: var(--hbp-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #d1d9e6;
}

/* User Area - My Bookings */
.hbp-user-bookings-wrap {
    max-width: 900px;
    margin: 40px auto;
}

.hbp-search-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 30px;
}

.hbp-search-box h3 {
    margin-top: 0;
    color: var(--hbp-primary);
}

.hbp-search-box input {
    padding: 12px;
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-right: 10px;
}

.hbp-results-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.hbp-table {
    width: 100%;
    border-collapse: collapse;
}

.hbp-table th,
.hbp-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hbp-table th {
    font-weight: 700;
    color: var(--hbp-primary);
}

/* Status Badges */
.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-checked-in {
    background: #d1ecf1;
    color: #0c5460;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-checked-out {
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.hbp-no-results {
    text-align: center;
    color: #666;
    padding: 20px;
}