/* WizRoom — Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;800;900&display=swap');

:root {
    --wz-primary:  #6366f1;
    --wz-green:    #10b981;
    --wz-dark:     #0f172a;
    --wz-card-bg:  #ffffff;
    --wz-border:   #e2e8f0;
    --wz-muted:    #64748b;
    --wz-radius:   16px;
}

/* ── Layout ──────────────────────────────────────────── */
.wizm-room-page {
    font-family: 'Inter', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wizm-room-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .wizm-room-layout { grid-template-columns: 1fr; }
}

/* ── Filter Sidebar ──────────────────────────────────── */
.wizm-room-sidebar {
    background: #fff;
    border: 1px solid var(--wz-border);
    border-radius: var(--wz-radius);
    padding: 25px;
    position: sticky;
    top: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.wizm-room-sidebar h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--wz-dark);
}
.wizm-filter-group { margin-bottom: 20px; }
.wizm-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--wz-muted);
    margin-bottom: 8px;
}
.wizm-filter-group input,
.wizm-filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--wz-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--wz-dark);
    background: #f8fafc;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.wizm-filter-group input:focus,
.wizm-filter-group select:focus {
    outline: none;
    border-color: var(--wz-primary);
    background: #fff;
}
.wizm-price-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.wizm-amenity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}
.wizm-amenity-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wz-dark);
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}
.wizm-amenity-list input[type=checkbox] { accent-color: var(--wz-primary); }

#wizm-reset-filters {
    width: 100%;
    padding: 10px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wz-muted);
    cursor: pointer;
    transition: all 0.2s;
}
#wizm-reset-filters:hover { background: var(--wz-dark); color: #fff; }

/* ── Grid ────────────────────────────────────────────── */
.wizm-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.wizm-room-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    margin: 0;
    color: var(--wz-dark);
}
#wizm-room-count {
    font-size: 14px;
    color: var(--wz-muted);
    font-weight: 600;
}
#wizm-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    transition: opacity 0.2s;
}
#wizm-room-loader { display: none; text-align: center; padding: 30px; color: var(--wz-muted); }

/* ── Cards ───────────────────────────────────────────── */
.wizm-room-card {
    display: block;
    text-decoration: none;
    color: var(--wz-dark);
    background: var(--wz-card-bg);
    border: 1px solid var(--wz-border);
    border-radius: var(--wz-radius);
    overflow: hidden;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.wizm-room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #c7d2fe;
}
.wizm-rc-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    position: relative;
}
.wizm-rc-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.wizm-rc-body { padding: 16px; }
.wizm-rc-type {
    display: inline-block;
    padding: 3px 10px;
    background: #ede9fe;
    color: var(--wz-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.wizm-rc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wizm-rc-location {
    font-size: 13px;
    color: var(--wz-muted);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wizm-rc-price {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--wz-primary);
    margin-bottom: 10px;
}
.wizm-rc-price span { font-size: 14px; font-weight: 500; color: var(--wz-muted); }
.wizm-rc-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}
.wizm-rc-amenity {
    padding: 3px 9px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.wizm-rc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--wz-border);
    padding-top: 10px;
}
.wizm-rc-date { font-size: 12px; color: var(--wz-muted); }
.wizm-rc-cta { font-size: 13px; font-weight: 700; color: var(--wz-primary); }

.wizm-room-empty {
    text-align: center;
    padding: 60px;
    color: var(--wz-muted);
    grid-column: 1 / -1;
}

/* ── Pagination ─────────────────────────────────────── */
#wizm-room-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}
.wizm-pg-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--wz-border);
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.wizm-pg-btn.active,
.wizm-pg-btn:hover { background: var(--wz-dark); color: #fff; border-color: var(--wz-dark); }

/* ── Single Room ─────────────────────────────────────── */
.wizm-room-single { font-family: 'Inter', sans-serif; max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.wizm-room-single-grid { display: grid; grid-template-columns: 1fr 380px; gap: 30px; }
@media (max-width: 900px) { .wizm-room-single-grid { grid-template-columns: 1fr; } }
.wizm-gallery-main { border-radius: var(--wz-radius); overflow: hidden; margin-bottom: 10px; }
.wizm-gallery-main img { width: 100%; height: 380px; object-fit: cover; }
.wizm-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.wizm-gallery-thumbs img { width: 80px; height: 65px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.6; border: 2px solid transparent; transition: all 0.2s; }
.wizm-gallery-thumbs img.active { opacity: 1; border-color: var(--wz-primary); }
.wizm-room-title { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 900; margin: 25px 0 5px; }
.wizm-room-meta-bar { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin: 15px 0 25px; }
.wizm-room-price-big { font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 900; color: var(--wz-primary); }
.wizm-amenity-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.wizm-amenity-pill { padding: 6px 14px; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; border-radius: 20px; font-size: 13px; font-weight: 600; }

/* ── Booking Sidebar ── */
.wizm-book-box { background: #fff; border: 1px solid var(--wz-border); border-radius: var(--wz-radius); padding: 25px; box-shadow: 0 8px 30px rgba(0,0,0,0.06); position: sticky; top: 80px; }
.wizm-book-box h3 { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 800; margin: 0 0 20px; }
.wizm-book-box input, .wizm-book-box textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--wz-border); border-radius: 10px; font-size: 14px; margin-bottom: 12px; box-sizing: border-box; font-family: inherit; }
.wizm-book-box input:focus, .wizm-book-box textarea:focus { outline: none; border-color: var(--wz-primary); }
.wizm-book-btn { width: 100%; padding: 14px; background: var(--wz-primary); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 800; cursor: pointer; transition: all 0.2s; font-family: 'Outfit', sans-serif; }
.wizm-book-btn:hover { background: #4f46e5; transform: translateY(-1px); }
.wizm-contact-reveal { text-align: center; margin-top: 15px; padding: 15px; background: #f8fafc; border-radius: 10px; border: 1px dashed var(--wz-border); }
.wizm-msg-success { color: #065f46; background: #ecfdf5; border: 1px solid #6ee7b7; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.wizm-msg-error { color: #991b1b; background: #fef2f2; border: 1px solid #fca5a5; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-top: 10px; }

/* ── Submit Form ─────────────────────────────────────── */
.wizm-submit-page { max-width: 720px; margin: 0 auto; padding: 40px 20px; font-family: 'Inter', sans-serif; }
.wizm-form-section { background: #fff; border: 1px solid var(--wz-border); border-radius: var(--wz-radius); padding: 30px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.wizm-form-section h3 { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 800; margin: 0 0 20px; color: var(--wz-dark); }
.wizm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 600px) { .wizm-form-row { grid-template-columns: 1fr; } }
.wizm-field { margin-bottom: 15px; }
.wizm-field label { display: block; font-size: 13px; font-weight: 700; color: var(--wz-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.wizm-field input, .wizm-field select, .wizm-field textarea { width: 100%; padding: 12px; border: 1px solid var(--wz-border); border-radius: 10px; font-size: 14px; box-sizing: border-box; font-family: inherit; background: #f8fafc; transition: all 0.2s; }
.wizm-field input:focus, .wizm-field select:focus, .wizm-field textarea:focus { outline: none; border-color: var(--wz-primary); background: #fff; }
.wizm-amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wizm-amenity-grid label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--wz-border); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s; }
.wizm-amenity-grid label:hover { border-color: var(--wz-primary); background: #ede9fe; }
.wizm-amenity-grid input[type=checkbox]:checked + span { color: var(--wz-primary); font-weight: 700; }

/* ── Drop Zone ─────────────────────────────────────── */
#wizm-drop-zone { border: 2px dashed var(--wz-border); border-radius: var(--wz-radius); padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s; background: #f8fafc; margin-bottom: 15px; }
#wizm-drop-zone:hover, #wizm-drop-zone.dragging { border-color: var(--wz-primary); background: #ede9fe; }
#wizm-drop-zone .wizm-dz-icon { font-size: 40px; margin-bottom: 10px; }
#wizm-drop-zone p { color: var(--wz-muted); font-size: 14px; margin: 0; }
#wizm-image-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.wizm-img-thumb { width: 90px; height: 75px; border-radius: 8px; background-size: cover; background-position: center; background-color: #f1f5f9; position: relative; border: 2px solid var(--wz-border); }
.wizm-img-uploading { display: flex; align-items: center; justify-content: center; }
.wizm-img-spin { width: 20px; height: 20px; border: 2px solid #ddd; border-top-color: var(--wz-primary); border-radius: 50%; animation: wizm-spin 0.8s linear infinite; }
.wizm-img-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #ef4444; color: #fff; border: none; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }

.wizm-submit-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border: none; border-radius: 14px; font-size: 18px; font-weight: 800; cursor: pointer; transition: all 0.2s; font-family: 'Outfit', sans-serif; box-shadow: 0 8px 25px rgba(99,102,241,0.35); }
.wizm-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99,102,241,0.45); }

@keyframes wizm-spin { to { transform: rotate(360deg); } }

/* ── Status Badge ───────────────────────────────────── */
.wizm-status-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.wizm-status-available { background: #ecfdf5; color: #065f46; }
.wizm-status-booked    { background: #eff6ff; color: #1d4ed8; }
.wizm-status-assigned  { background: #fef3c7; color: #92400e; }
