/* =========================================================================
   APIARY FAMILY OFFICE - Main Stylesheet
   
   Color Palette:
   - Dartmouth Green: #00693E (primary)
   - Champagne: #F7E7CE (accent/highlight)
   - Deep Navy: #1a2634 (secondary)
   - Gold accent: #c9a227 (for special highlights)
   
   This file controls the visual appearance of the entire family office site.
   ========================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Dartmouth Green */
    --primary: #00693E;
    --primary-dark: #004d2e;
    --primary-light: #008751;
    
    /* Secondary - Deep Navy */
    --secondary: #1a2634;
    --secondary-light: #2c3e50;
    
    /* Accent - Champagne & Gold */
    --champagne: #F7E7CE;
    --champagne-dark: #e8d4b8;
    --gold: #c9a227;
    --gold-light: #d4b545;
    
    /* Functional Colors */
    --success: #27ae60;
    --danger: #c0392b;
    --warning: #d4ac0d;
    --info: #2980b9;
    
    /* Backgrounds */
    --bg-light: #faf9f7;
    --bg-card: #ffffff;
    --bg-sidebar: #1a2634;
    
    /* Text */
    --text-primary: #1a2634;
    --text-secondary: #5a6672;
    --text-light: #ffffff;
    --text-muted: #8a9199;
    
    /* Borders & Shadows */
    --border: #e2e0dc;
    --border-light: #f0eeea;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    
    /* Sizing */
    --sidebar-width: 280px;
    --header-height: 64px;
}

/* Typography */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary);
}

/* =========================================================================
   LOGIN SCREEN
   ========================================================================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--champagne);
}

.login-logo h1 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 105, 62, 0.1);
    background: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--champagne);
    color: var(--secondary);
    border: 1px solid var(--champagne-dark);
}

.btn-secondary:hover {
    background: var(--champagne-dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #a93226;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================================================================
   2FA MODAL
   ========================================================================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 38, 52, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 36px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.code-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 28px 0;
}

.code-input input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.2s;
}

.code-input input:focus {
    outline: none;
    border-color: var(--primary);
}

/* =========================================================================
   MAIN LAYOUT
   ========================================================================= */

.app-container {
    display: none;
    min-height: 100vh;
}

.app-container.active {
    display: flex;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    height: 100%;
    background: var(--secondary);
    width: var(--sidebar-width);
}

.header-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--champagne);
}

.header-brand h1 {
    font-size: 16px;
    color: white;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-family {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.header-user .role-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
}

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.admin-toggle.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.admin-toggle .toggle-switch {
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
}

.admin-toggle.active .toggle-switch {
    background: var(--primary);
}

.admin-toggle .toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.admin-toggle.active .toggle-switch::after {
    transform: translateX(16px);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* =========================================================================
   SIDEBAR NAVIGATION
   ========================================================================= */

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-sidebar);
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--champagne);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nav-group-header:hover {
    background: rgba(255,255,255,0.05);
}

.nav-group-header .arrow {
    transition: transform 0.2s;
    font-size: 10px;
}

.nav-group.collapsed .nav-group-header .arrow {
    transform: rotate(-90deg);
}

.nav-group.collapsed .nav-items {
    display: none;
}

.nav-items {
    padding: 4px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 32px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-link.active {
    background: rgba(0, 105, 62, 0.3);
    color: white;
    border-left-color: var(--gold);
}

.nav-link.guest-only {
    display: none;
}

body.role-guest .nav-link:not(.guest-only) {
    display: none;
}

body.role-guest .nav-link.guest-only {
    display: flex;
}

/* =========================================================================
   MAIN CONTENT AREA
   ========================================================================= */

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 32px;
    min-height: calc(100vh - var(--header-height));
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.last-updated {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

/* =========================================================================
   CARDS & CONTAINERS
   ========================================================================= */

.card {
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--champagne);
}

.card-header h2 {
    font-size: 16px;
    color: var(--secondary);
    font-weight: 600;
}

.card-header h3 {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

/* Snapshot Cards */
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.snapshot-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.snapshot-card.highlight {
    border-left-color: var(--gold);
    background: linear-gradient(135deg, white 0%, var(--champagne) 100%);
}

.snapshot-card.danger {
    border-left-color: var(--danger);
}

.snapshot-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.snapshot-card .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.snapshot-card .value.positive {
    color: var(--success);
}

.snapshot-card .value.negative {
    color: var(--danger);
}

.snapshot-card .note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* =========================================================================
   TABLES
   ========================================================================= */

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
}

.data-table th {
    background: var(--champagne);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 2px solid var(--champagne-dark);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--bg-light);
}

.data-table tr.total-row {
    background: var(--champagne);
    font-weight: 700;
}

.data-table tr.total-row td {
    border-bottom: none;
}

.data-table .currency {
    font-family: 'Courier New', monospace;
    text-align: right;
}

.data-table .currency.positive {
    color: var(--success);
}

.data-table .currency.negative {
    color: var(--danger);
}

/* Editable fields */
.editable-field {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s;
    font-size: inherit;
    font-family: inherit;
    width: 100%;
    min-width: 80px;
}

.admin-mode .editable-field {
    border-color: var(--border);
    background: white;
}

.admin-mode .editable-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 105, 62, 0.1);
}

.editable-text {
    min-height: 60px;
    resize: vertical;
}

/* =========================================================================
   ADMIN CONTROLS
   ========================================================================= */

.admin-controls {
    display: none;
    padding: 16px 24px;
    background: #fffbeb;
    border: 1px solid var(--gold);
    border-radius: 8px;
    margin-bottom: 24px;
    align-items: center;
    gap: 16px;
}

.admin-mode .admin-controls {
    display: flex;
}

.admin-controls .btn {
    min-width: 140px;
}

.admin-controls .spacer {
    flex: 1;
}

/* =========================================================================
   PROPERTY CARDS (Real Estate)
   ========================================================================= */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.property-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.property-card .photo-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--champagne) 0%, var(--champagne-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
}

.property-card .property-info {
    padding: 20px;
}

.property-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
}

.property-card .property-details {
    font-size: 14px;
    color: var(--text-secondary);
}

.property-card .property-details div {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.property-card .property-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* =========================================================================
   CONTENT SECTIONS
   ========================================================================= */

.content-block {
    background: white;
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.content-block h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--champagne);
}

.content-block h3 {
    font-size: 16px;
    margin: 24px 0 12px;
    color: var(--secondary);
}

.content-block p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-block ul, .content-block ol {
    margin: 16px 0 16px 24px;
}

.content-block li {
    margin-bottom: 8px;
}

/* =========================================================================
   FORMS & INPUTS
   ========================================================================= */

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6672' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    font-family: 'Georgia', serif;
    line-height: 1.7;
}

/* =========================================================================
   CHARTS PLACEHOLDER
   ========================================================================= */

.chart-container {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    min-height: 200px;
}

.chart-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.simple-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: 20px 0;
}

.bar {
    flex: 1;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.3s ease;
    min-width: 30px;
}

.bar .bar-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    white-space: nowrap;
    color: var(--text-secondary);
}

.bar .bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* =========================================================================
   TICKLER / CALENDAR
   ========================================================================= */

.tickler-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
}

.tickler-item:last-child {
    border-bottom: none;
}

.tickler-item.due-soon {
    background: #fff8e6;
    border-left: 4px solid var(--warning);
}

.tickler-item.overdue {
    background: #fef2f2;
    border-left: 4px solid var(--danger);
}

.tickler-date {
    min-width: 80px;
    text-align: center;
    padding: 8px;
    background: var(--champagne);
    border-radius: 6px;
}

.tickler-date .day {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.tickler-date .month {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.tickler-content {
    flex: 1;
}

.tickler-content h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.tickler-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.tickler-category {
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* =========================================================================
   CONTACTS
   ========================================================================= */

.contact-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* =========================================================================
   GUEST BOOKING
   ========================================================================= */

.booking-form {
    max-width: 600px;
}

.booking-success {
    background: #ecfdf5;
    border: 1px solid var(--success);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--success);
    margin-top: 20px;
    display: none;
}

.booking-success.show {
    display: block;
}

/* =========================================================================
   DATA EXPORT/IMPORT
   ========================================================================= */

.data-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 24px;
}

.data-actions .btn {
    flex: 1;
}

/* File input styling */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* =========================================================================
   UTILITIES
   ========================================================================= */

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* =========================================================================
   ADD ROW BUTTON
   ========================================================================= */

.add-row-btn {
    display: none;
    padding: 10px 20px;
    background: var(--bg-light);
    border: 2px dashed var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: all 0.2s;
    font-size: 14px;
}

.admin-mode .add-row-btn {
    display: block;
}

.add-row-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 105, 62, 0.05);
}

/* Delete row button */
.delete-row-btn {
    display: none;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.admin-mode .delete-row-btn {
    display: inline-block;
}

.delete-row-btn:hover {
    opacity: 1;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .header-brand {
        width: auto;
        padding: 0 16px;
    }
    
    .header-family {
        display: none;
    }
    
    .snapshot-grid {
        grid-template-columns: 1fr;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .sidebar, .app-header, .admin-controls, .admin-toggle {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 20px;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Suggestion FAB Button */
.suggestion-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.suggestion-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Suggestion Modal Styles (uses style="display:none" inline by default) */
#suggestion-modal .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

#suggestion-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

#suggestion-modal .modal-header h3 {
    margin: 0;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--bg-light);
}

#suggestion-modal .modal-body {
    padding: 24px;
}

#suggestion-modal .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    background: var(--primary);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
}

.calendar-day {
    background: white;
    padding: 8px;
    min-height: 60px;
    font-size: 12px;
    position: relative;
}

.calendar-day.other-month {
    background: var(--bg-light);
    color: var(--text-muted);
}

.calendar-day.today {
    background: var(--champagne);
}

.calendar-day.booked {
    background: #ffe0e0;
}

.calendar-day.available {
    background: #e0ffe0;
}

.calendar-day .day-number {
    font-weight: 600;
    margin-bottom: 4px;
}

.calendar-day .booking-indicator {
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    background: var(--danger);
    color: white;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-nav button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-nav h3 {
    margin: 0;
}

/* Property Info Cards */
.property-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.info-card h4 {
    margin: 0 0 16px 0;
    color: var(--primary);
    font-size: 16px;
    border-bottom: 2px solid var(--champagne);
    padding-bottom: 8px;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
    font-size: 14px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.checklist-item input[type="checkbox"] {
    margin-top: 3px;
}
