/* AvoHub WordPress Plugin Styles */
.avohub-rooms-grid,
.avohub-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.avohub-rooms-grid,
.avohub-events-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .avohub-rooms-grid,
    .avohub-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .avohub-rooms-grid,
    .avohub-events-grid {
        grid-template-columns: 1fr;
    }
}

.avohub-room-card,
.avohub-event-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.avohub-event-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.avohub-event-status--upcoming {
    background: #dcfce7;
    color: #166534;
}

.avohub-event-status--past {
    background: #f1f5f9;
    color: #475569;
}

.avohub-room-card:hover,
.avohub-event-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.avohub-room-image-wrap,
.avohub-event-image-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.avohub-room-image,
.avohub-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.avohub-room-content,
.avohub-event-content {
    padding: 20px;
}

.avohub-room-name,
.avohub-event-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1e293b;
}

.avohub-room-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 12px;
    line-height: 1.5;
}

.avohub-event-desc {
    margin: 0 0 12px;
}

.avohub-event-desc p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.avohub-readmore-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    color: #1e3a8a;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
}

.avohub-readmore-btn:hover {
    opacity: 0.8;
}

.avohub-room-meta,
.avohub-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #475569;
}

.avohub-event-card .avohub-event-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 16px;
}

.avohub-event-card .avohub-event-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.avohub-event-card .avohub-event-date,
.avohub-event-card .avohub-event-time,
.avohub-event-card .avohub-event-location,
.avohub-event-card .avohub-event-price,
.avohub-room-card .avohub-room-capacity,
.avohub-room-card .avohub-room-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.avohub-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Buttons */
.avohub-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    background: #1e3a8a;
    color: #fff;
}

.avohub-btn:hover {
    opacity: 0.85;
}

.avohub-btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
    color: #fff;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* Modal */
.avohub-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avohub-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.avohub-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.avohub-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

/* Form */
.avohub-form-group {
    margin-bottom: 16px;
}

.avohub-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #1e293b;
}

.avohub-form-group input,
.avohub-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.avohub-form-group input:focus,
.avohub-form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

.avohub-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.avohub-form-actions {
    margin-top: 20px;
}

/* Messages */
.avohub-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.avohub-message.success {
    background: #dcfce7;
    color: #166534;
}

.avohub-message.error {
    background: #fef2f2;
    color: #991b1b;
}

.avohub-error {
    color: #991b1b;
    padding: 12px;
    background: #fef2f2;
    border-radius: 8px;
}

.avohub-empty {
    color: #64748b;
    padding: 24px;
    text-align: center;
}

/* Room search */
.avohub-search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.avohub-search-form .avohub-form-group {
    margin-bottom: 0;
}

.avohub-search-form .avohub-form-row {
    display: contents;
}

.avohub-search-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    box-sizing: border-box;
}

.avohub-search-form .avohub-form-actions {
    margin-top: 0;
}

.avohub-search-form .avohub-btn-primary {
    width: auto;
    padding: 10px 24px;
}

.avohub-search-status {
    color: #64748b;
    font-size: 0.9rem;
    margin: 16px 0;
    text-align: center;
}

@media (max-width: 900px) {
    .avohub-search-form {
        grid-template-columns: repeat(2, 1fr);
    }
    .avohub-search-form .avohub-form-row {
        display: contents;
    }
    .avohub-search-form .avohub-form-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .avohub-search-form {
        grid-template-columns: 1fr;
    }
}
