/* ========================================================================== SLO Apartment Listings - Main Stylesheet Clean, modern, responsive design with a coastal SLO vibe. ========================================================================== */ /* ---------- Design Tokens ---------- */
:root { --primary: #2563EB; --primary-dark: #1D4ED8; --primary-light: #DBEAFE; --secondary: #059669; --secondary-dark: #047857; --secondary-light: #D1FAE5; --accent: #F59E0B; --text: #1F2937; --text-light: #6B7280; --text-lighter: #9CA3AF; --bg: #F9FAFB; --bg-white: #FFFFFF; --border: #E5E7EB; --border-light: #F3F4F6; --danger: #EF4444; --danger-light: #FEE2E2; --warning: #F59E0B; --warning-light: #FEF3C7; --success: #10B981; --success-light: #D1FAE5; --shadow: 0 1px 3px rgba(0,0,0,0.1); --shadow-md: 0 4px 6px rgba(0,0,0,0.1); --shadow-lg: 0 10px 15px rgba(0,0,0,0.1); --radius: 8px; --radius-lg: 12px; --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif; /* Aliases used in inline styles from pages */ --color-primary: var(--primary); --color-primary-light: var(--primary-light);
} /* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
ul, ol { list-style: none; } /* ---------- Skip Link (Accessibility) ---------- */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--primary); color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius); z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 0.5rem; } /* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 0.5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
small { font-size: 0.85em; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.text-muted { color: var(--text-light); }
.muted { color: var(--text-lighter); font-style: italic; } /* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem;
}
.container--narrow { max-width: 800px; }
.section { padding: 3rem 0; } /* ---------- Static Content Pages ---------- */
.static-page { background: var(--bg); }
.static-page-header { margin-bottom: 2rem; }
.static-page-header h1 { font-size: 2.25rem; margin-bottom: 0.75rem; color: var(--text); }
.eyebrow { color: var(--primary); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; margin-bottom: 0.5rem; text-transform: uppercase; }
.static-content { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.static-content h2 { margin-top: 2rem; margin-bottom: 0.6rem; font-size: 1.25rem; color: var(--text); }
.static-content h2:first-child { margin-top: 0; }
.static-content p { color: var(--text-light); line-height: 1.75; margin-bottom: 1rem; }
.static-content ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0 1.25rem; color: var(--text-light); }
.static-content li { margin-bottom: 0.5rem; line-height: 1.65; }
.static-content a { font-weight: 600; }
.notice-box, .contact-panel { display: grid; gap: 0.35rem; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); color: #1e3a8a; margin: 1.25rem 0; padding: 1rem; }
.notice-box span, .contact-panel p { color: #1e40af; margin: 0; }
.contact-panel h2 { margin: 0; }
/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
} /* ========================================================================== HEADER / NAV ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg-white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.5rem; padding-bottom: 0.5rem; min-height: 60px;
} /* Brand */
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-icon { font-size: 1.6rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; color: var(--primary); }
.brand-text small { font-size: 0.7rem; color: var(--text-light); } /* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 36px; height: 36px; padding: 6px; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger,
.hamburger::before,
.hamburger::after { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; } /* Open state */
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); top: 0; } /* Nav list */
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0;
}
.nav-link { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.45rem 0.75rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; color: var(--text-light); text-decoration: none; transition: color 0.2s, background 0.2s; white-space: nowrap; background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-link:focus { color: var(--primary); background: var(--border-light); text-decoration: none; }
.nav-link--admin { color: var(--danger); }
.nav-link--admin:hover { color: #dc2626; }
.caret { font-size: 0.7em; margin-left: 0.15rem; } /* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; right: 0; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); min-width: 180px; padding: 0.5rem 0; z-index: 100; list-style: none; margin: 0.25rem 0 0;
}
.nav-dropdown-menu a { display: block; padding: 0.5rem 1rem; color: var(--text); font-size: 0.9rem; text-decoration: none; transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--border-light); color: var(--primary); text-decoration: none; }
.nav-dropdown-menu .divider { height: 0; border-top: 1px solid var(--border); margin: 0.4rem 0;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; } /* ========================================================================== BUTTONS ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 1.25rem; font-family: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.4; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; } .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; } .btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; } .btn-outline { background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); } .btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; } .btn-danger-outline { background: transparent; color: var(--danger); border-color: var(--danger);
}
.btn-danger-outline:hover { background: var(--danger-light); } .btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 0.45rem; } .link-btn { background: none; border: none; color: var(--primary); cursor: pointer; text-decoration: underline; font-size: inherit; font-family: inherit;
}
.link-btn:hover { color: var(--primary-dark); } /* ========================================================================== FORMS ========================================================================== */
.input { display: block; width: 100%; padding: 0.55rem 0.75rem; font-family: inherit; font-size: 0.95rem; line-height: 1.5; color: var(--text); background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.input::placeholder { color: var(--text-lighter); }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 60px; } .form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; color: #374151;
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 140px; }
.form-row--selects .form-group { min-width: 160px; }
.form-group--flex { flex: 2; }
.form-group--small { flex: 0 0 120px; } .form-fieldset { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; background: var(--bg);
}
.form-fieldset legend { font-weight: 700; font-size: 1.05rem; padding: 0 0.5rem; color: var(--text);
} .form-checkboxes { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-size: 0.95rem;
}
.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); } /* Error state */
.input.error, .input.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.25rem; } .form-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.form-message { margin-top: 1rem; padding: 1rem; border-radius: var(--radius); }
.form-message.success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.form-message.error { background: #fde8e8; color: #dc2626; border: 1px solid #fecaca; } .form-feedback { margin-top: 0.75rem; font-size: 0.9rem; min-height: 1.2em; }
.form-feedback.success { color: var(--success); }
.form-feedback.error { color: var(--danger); } .page-subtitle { color: var(--text-light); margin-bottom: 2rem; }
.listing-form { margin-top: 1rem; } /* Character counter */
.char-counter { text-align: right; font-size: 0.75rem; color: var(--text-lighter); margin-top: 0.25rem; }
.char-counter.over { color: var(--danger); font-weight: 600; } /* ========================================================================== FLASH MESSAGES ========================================================================== */
.flash-container { padding: 0.75rem 0; }
.flash { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; animation: flashIn 0.3s ease-out;
}
.flash-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fde68a; }
.flash-info { background: var(--primary-light); color: #1e40af; border: 1px solid #bfdbfe; }
.flash-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: inherit; opacity: 0.6; padding: 0 0.25rem; line-height: 1;
}
.flash-close:hover { opacity: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); }
} /* ========================================================================== HERO SECTION ========================================================================== */
.hero { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #059669 100%); color: #fff; padding: 4rem 0 3.5rem; text-align: center; position: relative;
}
.hero::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; color: #fff;
}
.hero-subtitle { font-size: 1.15rem; opacity: 0.9; margin-bottom: 2rem; font-weight: 400;
} /* Hero Search Form */
.hero-search { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border-radius: var(--radius-lg); padding: 1.25rem; max-width: 860px; margin: 0 auto;
}
.hero-search-fields { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: stretch;
}
.hero-search-input { flex: 2; min-width: 200px; border-color: rgba(255,255,255,0.3);
}
.hero-search-select { flex: 1; min-width: 120px; border-color: rgba(255,255,255,0.3);
}
.hero-search-btn { flex-shrink: 0; } /* ========================================================================== LISTING CARDS ========================================================================== */
.listing-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.listing-card-link { display: block; text-decoration: none; color: inherit;
}
.listing-card-link:hover { text-decoration: none; color: inherit; } .listing-card-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--border-light);
}
.listing-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.listing-card:hover .listing-card-image img { transform: scale(1.05); } .listing-type-badge { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
}
.badge-apartment { background: var(--primary-light); color: var(--primary); }
.badge-house { background: var(--success-light); color: var(--secondary); }
.badge-room { background: var(--warning-light); color: #92400e; }
.badge-default { background: var(--border-light); color: var(--text-light); } .listing-featured-badge { position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 700; background: var(--accent); color: #fff;
} .listing-card-body { padding: 1rem 1.15rem 1.15rem; }
.listing-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 0.35rem;
}
.per-month { font-size: 0.8rem; font-weight: 500; color: var(--text-light); }
.listing-card-location { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
} .listing-card-stats { display: flex; gap: 0.75rem; font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem;
} .listing-card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem;
}
.tag { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 1rem; font-size: 0.72rem; font-weight: 600; background: var(--border-light); color: var(--text-light);
}
.tag-furnished { background: #ede9fe; color: #6d28d9; }
.tag-pets { background: #fef3c7; color: #92400e; }
.tag-calpoly { background: #d1fae5; color: #065f46; }
.tag-handicap { background: #dbeafe; color: #1e40af; }
.tag-yes { background: var(--success-light); color: #065f46; }
.tag-no { background: var(--border-light); color: var(--text-lighter); } .listing-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text-lighter); padding-top: 0.5rem; border-top: 1px solid var(--border-light);
} /* ---------- Listings Grid ---------- */
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.listings-grid--small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
} /* ========================================================================== SECTION STYLES (Home page) ========================================================================== */
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text);
}
.section-cta { text-align: center; margin-top: 2rem; }
.section-featured { background: var(--bg-white); }
.section-recent { background: var(--bg); } /* Stats */
.section-stats { background: var(--bg-white); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem;
}
.stat-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1rem; text-align: center;
}
.stat-number, .stat-value { font-size: 2rem; font-weight: 800; color: var(--text); display: block;
}
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 0.25rem; display: block;
}
.stat-sub { font-size: 0.75rem; color: var(--text-lighter); margin-top: 0.25rem; }
.stat-action { display: inline-block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--primary); text-decoration: none; font-weight: 600;
}
.stat-action:hover { text-decoration: underline; } .stat-card--active { border-left: 4px solid var(--success); }
.stat-card--pending { border-left: 4px solid var(--warning); }
.stat-card--messages { border-left: 4px solid var(--primary); }
.stat-card--unread { border-left: 4px solid var(--danger); }
.stat-card--alert { border-left: 3px solid var(--warning); }
.stat-card--alert.stat-card--ok { border-left-color: var(--success); } /* Browse by Type */
.browse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.browse-card { display: flex; flex-direction: column; align-items: center; padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); background: var(--bg-white); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: transform 0.2s, box-shadow 0.2s;
}
.browse-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; color: var(--text);
}
.browse-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.browse-card h3 { margin-bottom: 0.25rem; }
.browse-card p { color: var(--text-light); font-size: 0.9rem; } /* Why Section */
.section-why { background: var(--bg-white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.why-card { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--border);
}
.why-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.why-card h3 { margin-bottom: 0.5rem; }
.why-card p { color: var(--text-light); font-size: 0.9rem; } /* ========================================================================== SEARCH PAGE ========================================================================== */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start;
} /* Filters sidebar */
.search-filters { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; position: sticky; top: 80px;
}
.filter-heading { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 1rem; }
.filter-group label { display: block; font-weight: 600; font-size: 0.85rem; color: #374151; margin-bottom: 0.35rem; }
.filter-row { display: flex; gap: 0.5rem; }
.filter-row > div { flex: 1; }
.filter-toggle-btn { display: none; } /* Search results header */
.search-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.results-count { font-size: 0.9rem; color: var(--text-light); } /* ========================================================================== LISTING DETAIL PAGE ========================================================================== */
.listing-detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start;
}
.listing-main { min-width: 0; } /* Status banner */
.listing-status-banner { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.9rem; font-weight: 500;
}
.banner-pending { background: var(--warning-light); color: #92400e; border: 1px solid #fde68a; }
.banner-rejected { background: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; }
.banner-expired { background: var(--border-light); color: var(--text-light); border: 1px solid var(--border); }
.banner-rented { background: var(--primary-light); color: #1e40af; border: 1px solid #bfdbfe; } /* Gallery */
.gallery { margin-bottom: 1.5rem; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--border-light); }
.gallery-main-img { width: 100%; max-height: 500px; object-fit: cover; cursor: pointer;
}
.gallery-placeholder { display: flex; align-items: center; justify-content: center; min-height: 300px; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem;
}
.gallery-thumb { flex: 0 0 80px; height: 60px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none; padding: 0; transition: border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); } /* Listing header */
.listing-header { margin-bottom: 1.5rem; }
.listing-header-top { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.listing-title { font-size: 1.75rem; margin-bottom: 0.25rem; }
.listing-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 0.25rem; }
.listing-address { color: var(--text-light); font-size: 0.95rem; } /* Detail grid */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem;
}
.detail-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border-light);
}
.detail-icon { font-size: 1.5rem; margin-bottom: 0.35rem; }
.detail-label { font-size: 0.75rem; color: var(--text-lighter); text-transform: uppercase; font-weight: 600; }
.detail-value { font-size: 1.1rem; font-weight: 700; color: var(--text); } /* Feature tags */
.listing-features { margin-bottom: 1.5rem; }
.listing-features h3 { margin-bottom: 0.75rem; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feature-tags .tag { font-size: 0.82rem; padding: 0.3rem 0.75rem; } /* Description */
.listing-description { margin-bottom: 1.5rem; }
.listing-description h3 { margin-bottom: 0.75rem; }
.description-text { color: var(--text); line-height: 1.7; } /* Room details */
.listing-room-details { margin-bottom: 1.5rem; }
.listing-room-details h3 { margin-bottom: 1rem; }
.room-info-block { margin-top: 1rem; }
.room-info-block h4 { font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--text); }
.room-info-block p { color: var(--text-light); } /* Posted by */
.listing-posted-by { margin-bottom: 1.5rem; }
.listing-posted-by h3 { margin-bottom: 0.75rem; }
.lister-info { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.lister-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.listing-posted-time { font-size: 0.85rem; color: var(--text-lighter); } /* Sidebar */
.listing-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem;
}
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.sidebar-card h4 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.sidebar-card hr { margin: 1rem 0; }
.sidebar-card .btn-block + .btn-block { margin-top: 0.5rem; } /* Contact form */
.contact-card .form-group { margin-bottom: 1rem; }
.contact-card label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.contact-revealed { padding: 0.75rem; background: var(--success-light); border-radius: var(--radius); margin-top: 0.5rem; text-align: center; }
.contact-revealed a { font-weight: 600; color: var(--secondary-dark); } /* Save button states */
.save-btn.saved { border-color: var(--danger); color: var(--danger); background: var(--danger-light); }
.save-btn.saved:hover { background: #fecaca; } /* Similar listings */
.section-similar { margin-top: 3rem; } /* ========================================================================== PHOTO UPLOAD ========================================================================== */
.photo-upload-area { margin-top: 0.5rem; }
.photo-dropzone { border: 2px dashed #d1d5db; border-radius: var(--radius-lg); padding: 2rem; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.photo-dropzone:hover, .photo-dropzone.dragover { border-color: var(--primary); background: #f0f7ff;
}
.upload-hint { font-size: 0.8rem; color: var(--text-lighter); margin-top: 0.5rem; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; margin-top: 1rem;
}
.photo-preview { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--border-light);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.remove-photo { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.remove-photo:hover { background: rgba(0,0,0,0.8); } /* ========================================================================== MODAL ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5);
}
.modal-content { position: relative; z-index: 1; background: var(--bg-white); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 500px; width: 100%; box-shadow: var(--shadow-lg); animation: modalIn 0.2s ease-out;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); padding: 0.25rem; line-height: 1;
}
.modal-close:hover { color: var(--text); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); }
} /* ========================================================================== LIGHTBOX ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 6000; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center;
}
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius);
}
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 2rem; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 2rem; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.9rem;
} /* ========================================================================== PAGINATION ========================================================================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin-top: 2rem; padding: 1rem 0;
}
.pagination-pages { display: flex; gap: 0.25rem; }
.pagination-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0.25rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); color: var(--text); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.pagination-btn:hover:not(.disabled):not(.pagination-current) { border-color: var(--primary); color: var(--primary); background: var(--primary-light); text-decoration: none;
}
.pagination-current { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700;
}
.pagination-btn.disabled { opacity: 0.4; cursor: not-allowed;
}
.pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; color: var(--text-lighter);
} /* ========================================================================== DASHBOARD ========================================================================== */
.dashboard-section { background: var(--bg); }
.dashboard-header { margin-bottom: 2rem; }
.dashboard-header h1 { margin-bottom: 0.5rem; }
.dashboard-role { margin: 0; }
.role-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
}
.role-lister { background: var(--primary-light); color: var(--primary); }
.role-renter { background: #e0fae0; color: #16a34a; }
.role-admin { background: var(--danger-light); color: #dc2626; } .dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem;
}
.dashboard-stats .stat-card { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius-lg); background: var(--bg-white); border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
} .dashboard-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem;
} .dashboard-panel { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-light);
}
.panel-header h2 { font-size: 1.25rem; margin: 0; }
.panel-link { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.panel-link:hover { text-decoration: underline; } /* Messages list */
.messages-list { }
.message-item { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border-light);
}
.message-item:last-child { border-bottom: none; }
.message-unread { background: #f0f7ff; margin: 0 -1rem; padding: 0.75rem 1rem; border-radius: var(--radius);
}
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block;
}
.message-indicator { width: 12px; padding-top: 0.5rem; }
.message-content { flex: 1; min-width: 0; }
.message-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.25rem; font-size: 0.9rem;
}
.message-listing { color: var(--text-light); }
.message-time { color: var(--text-lighter); font-size: 0.8rem; margin-left: auto; }
.message-preview { color: #4b5563; margin: 0; font-size: 0.9rem; }
.message-body { margin-top: 0.5rem; padding: 0.75rem; background: var(--bg); border-radius: var(--radius); font-size: 0.9rem; line-height: 1.6;
} /* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.data-table th, .data-table td { padding: 0.75rem 0.5rem; text-align: left;
}
.data-table th { font-weight: 600; color: var(--text-light); border-bottom: 2px solid var(--border); font-size: 0.8rem; text-transform: uppercase;
}
.data-table td { border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: var(--bg); }
.data-table--compact td { padding: 0.4rem 0.5rem; }
.data-table a { color: var(--primary); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }
.dashboard-listings-table { overflow-x: auto; } /* Status badges */
.status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 600;
}
.status-approved { background: #dcfce7; color: #16a34a; }
.status-pending { background: #fef3c7; color: #d97706; }
.status-rejected { background: var(--danger-light); color: #dc2626; }
.status-expired { background: var(--border-light); color: var(--text-light); }
.status-rented { background: var(--primary-light); color: var(--primary); } .type-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: var(--radius); font-size: 0.75rem; font-weight: 600;
}
.type-apartment { background: var(--primary-light); color: var(--primary); }
.type-house { background: #dcfce7; color: #16a34a; }
.type-room { background: #fef3c7; color: #d97706; } .dashboard-search .search-row { display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.dashboard-search .input { flex: 1; min-width: 150px; } /* ========================================================================== ADMIN ========================================================================== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem;
}
.admin-sidebar { position: sticky; top: 80px; align-self: start; }
.admin-nav { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem;
}
.admin-nav h3 { margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--text);
}
.admin-nav-link { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.75rem; border-radius: var(--radius); text-decoration: none; color: #4b5563; font-size: 0.9rem; font-weight: 500; transition: all 0.2s;
}
.admin-nav-link:hover { background: var(--border-light); text-decoration: none; }
.admin-nav-link.active { background: var(--primary); color: #fff; }
.nav-badge { background: var(--danger); color: #fff; font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 1rem; font-weight: 700;
}
.admin-nav hr { border: none; border-top: 1px solid var(--border); margin: 0.75rem 0; } .admin-main { min-width: 0; }
.admin-main h1 { margin-bottom: 1.5rem; } .quick-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; } .admin-panels { display: grid; gap: 1.5rem; }
.admin-panel { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem;
}
.admin-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.admin-panel-header h3 { margin: 0; font-size: 1rem; } /* Bulk action bar */
.bulk-action-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--primary-light); border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem;
}
.bulk-action-bar .selected-count { font-weight: 600; } /* ========================================================================== EMPTY STATE ========================================================================== */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-light);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 0.5rem; }
.empty-state a { color: var(--primary); }
.empty-state-suggestions { margin: 1rem auto; max-width: 300px; text-align: left; }
.empty-state-suggestions ul { list-style: disc; padding-left: 1.25rem; }
.empty-state-suggestions li { margin-bottom: 0.25rem; font-size: 0.9rem; } /* ========================================================================== FOOTER ========================================================================== */
.site-footer { background: #1f2937; color: #d1d5db; padding: 3rem 0 0; margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #9ca3af; text-decoration: none; font-size: 0.9rem; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { text-align: center; padding: 1.5rem 0; margin-top: 2rem; border-top: 1px solid #374151; font-size: 0.85rem; color: #6b7280;
} /* ========================================================================== LOADING / SPINNER ========================================================================== */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite;
}
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } } .loading-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; z-index: 10; border-radius: var(--radius);
} /* Pulse animation */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 1.5s ease-in-out infinite; } /* ========================================================================== PROFILE PAGE ========================================================================== */
.profile-section { max-width: 700px; }
.profile-section h2 { margin-top: 2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); } /* ========================================================================== RESPONSIVE - Mobile First Breakpoints ========================================================================== */ /* Tablet <= 1024px */
@media (max-width: 1024px) { .listings-grid { grid-template-columns: repeat(2, 1fr); } .listing-detail-layout { grid-template-columns: 1fr; } .listing-sidebar { position: static; } .browse-grid { grid-template-columns: repeat(3, 1fr); }
} /* Tablet <= 768px */
@media (max-width: 768px) { .hero-title { font-size: 1.8rem; } .hero-subtitle { font-size: 1rem; } .hero-search-fields { flex-direction: column; } .hero-search-input, .hero-search-select { min-width: 100%; } .section { padding: 2rem 0; } /* Nav: mobile */ .nav-toggle { display: flex; } .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); border-top: 1px solid var(--border); box-shadow: var(--shadow-md); z-index: 999; } .main-nav.open { display: block; } .nav-list { flex-direction: column; align-items: stretch; padding: 0.5rem; } .nav-link { padding: 0.75rem 1rem; border-radius: var(--radius); } .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; margin-top: 0; } .nav-dropdown-menu a { padding: 0.5rem 0.75rem; } /* Search page */ .search-layout { grid-template-columns: 1fr; } .search-filters { display: none; position: static; } .search-filters.open { display: block; } .filter-toggle-btn { display: inline-flex; } /* Admin */ .admin-layout { grid-template-columns: 1fr; } .admin-sidebar { position: static; } .admin-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; } .admin-nav h3 { margin: 0; border: none; padding: 0; } .admin-nav hr { display: none; } .admin-nav-link { padding: 0.4rem 0.6rem; font-size: 0.8rem; } .dashboard-stats { grid-template-columns: repeat(2, 1fr); } .data-table th:nth-child(5), .data-table td:nth-child(5) { display: none; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .browse-grid { grid-template-columns: 1fr; }
} /* Phone <= 480px */
@media (max-width: 480px) { body { font-size: 15px; } h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } .hero { padding: 2.5rem 0 2rem; } .hero-title { font-size: 1.5rem; } .listings-grid { grid-template-columns: 1fr; } .form-row { flex-direction: column; } .form-group--small { flex: 1; } .form-actions { flex-direction: column; } .pagination { flex-wrap: wrap; } .listing-title { font-size: 1.35rem; } .detail-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-stats { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; }
} /* ========================================================================== PRINT ========================================================================== */
@media print { .site-header, .site-footer, .flash-container, .sidebar-card, .save-btn, .flag-btn, .share-btn, .admin-sidebar, .nav-toggle { display: none !important; } body { background: #fff; } .listing-detail-layout { grid-template-columns: 1fr; }
}

/* ========================================================================== ADMIN POLISH ========================================================================== */
.admin-main .page-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.admin-main .page-header h1 {
    letter-spacing: 0;
    margin: 0;
}

.admin-main .page-count {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-light);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
}

.admin-main .filter-bar {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    padding: 1rem;
}

.admin-main .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-main .filter-tab {
    align-items: center;
    background: var(--border-light);
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-light);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    min-height: 32px;
    padding: 0.45rem 0.75rem;
    text-decoration: none;
}

.admin-main .filter-tab:hover {
    background: var(--primary-light);
    border-color: #bfdbfe;
    color: var(--primary-dark);
    text-decoration: none;
}

.admin-main .filter-tab.active {
    background: var(--primary);
    color: #fff;
}

.admin-main .filter-controls,
.admin-main .search-inline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-main .listings-table-wrap,
.admin-main .dashboard-listings-table {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.admin-main .data-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 820px;
}

.admin-main .data-table th {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    color: #475569;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.7rem 0.75rem;
    white-space: nowrap;
}

.admin-main .data-table td {
    border-bottom: 1px solid var(--border-light);
    padding: 0.8rem 0.75rem;
    vertical-align: middle;
}

.admin-main .data-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-main .data-table tr:hover td {
    background: #f8fafc;
}

.admin-main .td-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 170px;
    white-space: normal;
}

.admin-main .btn-xs {
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    min-height: 30px;
    padding: 0.28rem 0.58rem;
}

.admin-main .btn-success {
    background: var(--success-light);
    border-color: #a7f3d0;
    color: #047857;
}

.admin-main .btn-success:hover {
    background: #047857;
    border-color: #047857;
    color: #fff;
}

.admin-main .btn-danger {
    background: var(--danger-light);
    border-color: #fecaca;
    color: #b91c1c;
}

.admin-main .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.admin-main .status-badge,
.admin-main .type-badge,
.admin-main .role-badge,
.admin-main .flag-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.32rem 0.62rem;
    white-space: nowrap;
}

.admin-main .toggle-btn {
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    min-width: 54px;
    padding: 0.32rem 0.65rem;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
}

.admin-main .toggle-btn:hover {
    transform: translateY(-1px);
}

.admin-main .toggle-btn.toggle-on {
    background: var(--success-light);
    border-color: #a7f3d0;
    color: #047857;
}

.admin-main .toggle-btn.toggle-off {
    background: var(--border-light);
    color: var(--text-light);
}

.admin-main .flag-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-main .flag-card-actions {
    align-items: center;
    gap: 0.5rem;
}

.admin-main .bulk-bar,
.admin-main .bulk-action-bar {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    color: #1e3a8a;
    font-weight: 700;
}

.admin-main .is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.admin-toast-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: min(420px, calc(100vw - 2rem));
    position: fixed;
    right: 1rem;
    top: 5rem;
    z-index: 7000;
}

.admin-toast {
    align-items: flex-start;
    animation: adminToastIn 0.18s ease-out;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto 1fr auto;
    line-height: 1.4;
    padding: 0.85rem 0.9rem;
}

.admin-toast-success {
    border-left-color: var(--success);
}

.admin-toast-error {
    border-left-color: var(--danger);
}

.admin-toast-info {
    border-left-color: var(--primary);
}

.admin-toast-dot {
    background: var(--primary);
    border-radius: 999px;
    height: 10px;
    margin-top: 0.32rem;
    width: 10px;
}

.admin-toast-success .admin-toast-dot {
    background: var(--success);
}

.admin-toast-error .admin-toast-dot {
    background: var(--danger);
}

.admin-toast-message {
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-toast-close {
    background: transparent;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
}

.admin-toast-close:hover {
    color: var(--text);
}

.admin-toast-exit {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

@keyframes adminToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .admin-main .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-main .data-table {
        min-width: 760px;
    }

    .admin-toast-stack {
        left: 1rem;
        right: 1rem;
        top: 4.25rem;
    }
}
