:root {
    --primary: #0ea5e9; --primary-dark: #0284c7; --success: #22c55e;
    --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb;
    --gray-300: #d1d5db; --gray-500: #6b7280; --gray-700: #374151; --gray-900: #111827;
    --radius: 12px; --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--gray-100); color: var(--gray-900); line-height: 1.6; }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: white; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-icon { font-size: 1.5rem; }
.brand-text { font-weight: 700; font-size: 1.25rem; }
.nav-links { display: flex; gap: 0.5rem; }
.nav-link { padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; color: var(--gray-500); font-weight: 500; transition: all 0.2s; }
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-link.active { background: var(--primary); color: white; }
.sync-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; }
.sync-btn:hover { background: var(--primary-dark); }

.main-content { padding: 1.5rem; max-width: 1400px; margin: 0 auto; }
.dashboard { display: flex; flex-direction: column; gap: 1.5rem; }
.property-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.property-card { background: white; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.property-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.property-header h2 { font-size: 1.125rem; }
.property-status { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-vacant { background: var(--gray-200); color: var(--gray-700); }
.property-stats { display: flex; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; }
.stat-value { font-size: 1.125rem; font-weight: 600; }

.quick-stats h2, .upcoming-bookings h2, .ytd-stats h2 { font-size: 1.125rem; margin-bottom: 1rem; color: var(--gray-700); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat-card { background: white; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); text-align: center; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: block; }
.stat-card .stat-label { font-size: 0.875rem; color: var(--gray-500); }

.bookings-list { display: flex; flex-direction: column; gap: 0.75rem; }
.booking-item { display: flex; align-items: center; justify-content: space-between; background: white; border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); flex-wrap: wrap; gap: 1rem; }
.booking-dates { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.booking-details { display: flex; flex-direction: column; flex: 1; min-width: 150px; }
.booking-details .property-name { font-weight: 600; font-size: 0.875rem; }
.booking-details .guest-name { color: var(--gray-500); font-size: 0.875rem; }
.booking-financials { display: flex; flex-direction: column; align-items: flex-end; }
.booking-financials .nights { font-size: 0.75rem; color: var(--gray-500); }
.booking-financials .amount { font-weight: 700; font-size: 1.125rem; color: var(--success); }

.empty-state { text-align: center; padding: 3rem 1.5rem; background: white; border-radius: var(--radius); color: var(--gray-500); }
.footer { padding: 1rem 1.5rem; text-align: center; color: var(--gray-500); font-size: 0.875rem; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.filters select { padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid var(--gray-300); }
.year-selector { display: flex; align-items: center; gap: 1rem; }
.year-selector button { padding: 0.5rem 1rem; border: 1px solid var(--gray-300); background: white; border-radius: 8px; cursor: pointer; }
.year-display { font-size: 1.5rem; font-weight: 700; }

.bookings-table { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.bookings-table table { width: 100%; border-collapse: collapse; }
.bookings-table th, .bookings-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--gray-100); }
.bookings-table th { background: var(--gray-50); font-weight: 600; font-size: 0.875rem; color: var(--gray-500); }
.bookings-table .payout { font-weight: 600; color: var(--success); }

.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.summary-card { background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.summary-card h3 { margin-bottom: 1rem; }
.summary-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.summary-stat { display: flex; flex-direction: column; }
.summary-stat .label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; }
.summary-stat .value { font-size: 1.25rem; font-weight: 600; }
.summary-stat .value.highlight { color: var(--success); }

.legend-item { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: 1rem; }
.legend-color { width: 16px; height: 16px; border-radius: 4px; }

@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; gap: 1rem; }
    .nav-links { order: 3; width: 100%; justify-content: center; }
    .booking-item { flex-direction: column; align-items: flex-start; }
}
