* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; line-height: 1.5; color: #1a1a1a; background: #f5f5f5; min-height: 100vh; }

/* Landing */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing-header { background: #1a1a2e; color: #fff; padding: 0.75rem 1rem; }
.landing-header-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.landing-logo { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.25rem; }
.landing-nav { display: flex; gap: 0.75rem; align-items: center; }
.landing-nav .btn { padding: 0.5rem 1rem; text-decoration: none; font-size: 0.95rem; cursor: pointer; display: inline-block; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.landing-hero { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: linear-gradient(180deg, #e8eaf0 0%, #f5f5f5 100%); }
.landing-hero-inner { max-width: 640px; text-align: center; }
.landing-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; color: #1a1a2e; line-height: 1.2; }
.landing-hero-sub { font-size: 1.1rem; color: #555; margin-bottom: 1.5rem; }
.landing-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; text-decoration: none; display: inline-block; }
.landing-cta .btn-lg { margin: 0; }
.landing-features { padding: 3rem 1.5rem; background: #fff; }
.landing-features-inner { max-width: 960px; margin: 0 auto; }
.landing-features h2 { text-align: center; font-size: 1.5rem; margin-bottom: 2rem; color: #1a1a2e; }
.landing-feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.landing-feature { padding: 1.25rem; border-radius: 8px; background: #f8f9fa; text-align: center; }
.landing-feature-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.landing-feature h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #1a1a2e; }
.landing-feature p { font-size: 0.9rem; color: #666; margin: 0; }
.landing-cta-section { padding: 3rem 1.5rem; text-align: center; background: #1a1a2e; color: #fff; }
.landing-cta-inner { max-width: 480px; margin: 0 auto; }
.landing-cta-section h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.landing-cta-section p { margin-bottom: 1rem; color: #ccc; }
.landing-cta-section .btn-primary { background: #fff; color: #1a1a2e; }
.landing-cta-section .btn-primary:hover { background: #eee; }
.landing-footer { margin-top: auto; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; padding: 0.75rem 0; font-size: 0.9rem; }
.pagination a { color: #0066cc; text-decoration: none; }
.pagination a:hover { text-decoration: underline; }
.pagination-info { color: #666; }

.filter-form label { display: inline-flex; flex-direction: column; gap: 0.25rem; margin-right: 0.5rem; }
.filter-form input[type="text"], .filter-form select { padding: 0.4rem 0.6rem; font-size: 0.95rem; }
.filter-form .btn { margin-right: 0.25rem; }

.detail-card { margin-top: 1rem; }
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; font-size: 0.95rem; }
.detail-list dt { font-weight: 600; color: #555; }
.detail-list dd { margin: 0; }
.detail-list .badge { font-weight: normal; }
.site-header { background: #1a1a2e; color: #fff; padding: 0.75rem 1rem; }
.header-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.header-inner .logo { color: #fff; text-decoration: none; font-weight: 600; }
.header-inner nav a { color: #eee; text-decoration: none; margin-left: 1.25rem; }
.header-inner nav a:hover { color: #fff; }
.site-footer { text-align: center; padding: 1rem; font-size: 0.875rem; color: #666; }
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.auth-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 2rem; max-width: 400px; width: 100%; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.auth-sub { color: #666; margin-bottom: 1.25rem; font-size: 0.9rem; }
.auth-card label { display: block; margin-top: 0.75rem; margin-bottom: 0.25rem; font-size: 0.9rem; }
.auth-card input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.auth-card button { margin-top: 1rem; width: 100%; padding: 0.6rem; font-size: 1rem; cursor: pointer; }
.auth-links { margin-top: 1rem; font-size: 0.9rem; }
.auth-links a { color: #0066cc; text-decoration: none; }
.alert { padding: 0.5rem 0.75rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fee; color: #c00; }
.alert-success { background: #efe; color: #060; }
.alert-info { background: #e7f3ff; color: #004085; }
.btn { border: none; border-radius: 4px; }
.btn-primary { background: #1a1a2e; color: #fff; }
.dashboard, .profile-page { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem; }
.dashboard h1, .profile-page h1 { margin-bottom: 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.card { background: #fff; padding: 1.25rem; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.card h3 { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; }
.card label { display: block; margin-top: 0.75rem; margin-bottom: 0.25rem; font-size: 0.9rem; }
.card input[type="text"], .card input[type="number"], .card input[type="date"], .card select { width: 100%; max-width: 400px; padding: 0.5rem 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.card textarea { width: 100%; max-width: 600px; padding: 0.5rem 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; resize: vertical; min-height: 100px; }
.card .amount { font-size: 1.5rem; font-weight: 600; }
.dashboard-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.list-links { list-style: none; font-size: 0.9rem; }
.list-links li { padding: 0.4rem 0; border-bottom: 1px solid #eee; }
.list-links li:last-child { border-bottom: none; }
.list-links a { color: #0066cc; text-decoration: none; }
.list-links a:hover { text-decoration: underline; }
.profile-page .card { margin-bottom: 1.5rem; }
.profile-page .card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.profile-page textarea { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #ddd; border-radius: 4px; resize: vertical; }
.muted { color: #666; font-size: 0.9rem; }

.page-main { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem; }
.page-main h1 { margin-bottom: 1rem; }
.tabs { list-style: none; display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid #ddd; }
.tabs a { display: inline-block; padding: 0.5rem 1rem; color: #666; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: #1a1a2e; }
.tabs a.active { color: #1a1a2e; font-weight: 600; border-bottom-color: #1a1a2e; }
.bookings-section { margin-bottom: 2rem; }
.bookings-section h2 { font-size: 1.1rem; margin-bottom: 0.75rem; color: #333; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.bookings-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.bookings-table th, .bookings-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid #eee; }
.bookings-table th { background: #f8f8f8; font-weight: 600; color: #555; }
.bookings-table tbody tr:hover { background: #fafafa; }
.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; text-transform: capitalize; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-unpaid { background: #f8d7da; color: #721c24; }
.badge-open { background: #fff3cd; color: #856404; }
.badge-answered { background: #d4edda; color: #155724; }
.badge-closed { background: #e2e3e5; color: #383d41; }

.query-list { list-style: none; }
.query-card { margin-bottom: 1rem; }
.query-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.query-head .badge { margin-left: auto; }
.query-msg { margin: 0.5rem 0; font-size: 0.95rem; }
.query-reply { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; }
.query-reply strong { display: block; margin-bottom: 0.25rem; }
.query-reply p { margin: 0; font-size: 0.95rem; color: #333; }

.hidden { display: none !important; }

.search-form { margin-bottom: 1.5rem; }
.search-form .form-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; align-items: flex-end; }
.search-form label { display: flex; flex-direction: column; gap: 0.25rem; min-width: 100px; }
.search-form input, .search-form select { padding: 0.5rem 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.search-form button { margin-top: 0.5rem; padding: 0.5rem 1.25rem; cursor: pointer; }
.results-section { margin-top: 1.5rem; }
.results-section h2 { font-size: 1.1rem; margin-bottom: 0.75rem; color: #333; }
.result-list { list-style: none; }
.result-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.25rem; }
.result-info { flex: 1 1 200px; }
.result-info .time { margin-left: 0.5rem; color: #555; }
.result-info .duration, .result-info .stops { margin-left: 0.5rem; font-size: 0.9rem; color: #666; }
.result-info .star { color: #e6b800; margin-left: 0.5rem; }
.result-info .amenities, .result-info .nights { display: block; margin-top: 0.25rem; font-size: 0.9rem; color: #666; }
.result-price { text-align: right; }
.result-price .amount { display: block; font-size: 1.25rem; font-weight: 600; }
.result-price .per-pax { font-size: 0.85rem; color: #666; }
.book-form { margin-top: 0.5rem; }
.book-form .btn { padding: 0.4rem 1rem; font-size: 0.9rem; }

.admin-header { background: #2d3748; }
.admin-main { max-width: 1200px; }
.inline-form { display: inline-block; margin-right: 0.5rem; margin-bottom: 0.25rem; }
.inline-form input { width: auto; padding: 0.35rem 0.5rem; font-size: 0.9rem; }
.topup-form input[name="amount"] { width: 80px; }
.btn-small { padding: 0.35rem 0.6rem; font-size: 0.85rem; cursor: pointer; }
td.actions { white-space: nowrap; }

/* Responsive: smaller screens */
@media (max-width: 768px) {
	.header-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
	.header-inner nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
	.header-inner nav a { margin-left: 0; }
	.landing-header-inner { flex-direction: column; gap: 0.75rem; }
	.cards { grid-template-columns: 1fr; }
	.dashboard-recent { grid-template-columns: 1fr; }
	.search-form .form-row { flex-direction: column; }
	.filter-form { flex-wrap: wrap; }
	.result-card { flex-direction: column; align-items: flex-start; }
	.result-price { text-align: left; }
	.page-main, .dashboard { padding-left: 1rem; padding-right: 1rem; }
	.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.bookings-table { font-size: 0.85rem; }
	.bookings-table th, .bookings-table td { padding: 0.5rem 0.4rem; }
}

/* Print: hide nav, buttons, filters; show main content only */
@media print {
	.site-header, .admin-header, .landing-header, .landing-nav, .landing-cta-section, .landing-footer,
	nav, .btn, .filter-form, .pagination, .auth-links, .search-form button, .book-form,
	.site-footer { display: none !important; }
	body { background: #fff; }
	.page-main, .dashboard, .profile-page, .auth-card { max-width: none; box-shadow: none; }
	.card { break-inside: avoid; }
	a[href]::after { content: none; }
}
