/* Design System: The Digital Arboretum */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,400;1,600&display=swap');

:root {
    /* Color Palette - Cream, Deep Forest & Warm Wood (Inspired by Arboretum design) */
    --bg-light: #fafaf5;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f4ef;
    --bg-container-mid: #eeeee9;
    
    --primary: #154212;
    --primary-container: #2d5a27;
    --secondary: #805533;
    --secondary-container: #fdc39a;
    
    --text-dark: #1a1c19;
    --text-gray: #42493e;
    --text-muted: #72796e;
    
    --border-glass: rgba(21, 66, 18, 0.12);
    --border-glass-hover: rgba(21, 66, 18, 0.25);
    
    /* Layout & Styling */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 8px 30px rgba(26, 28, 25, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 10px 40px rgba(21, 66, 18, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-container);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(21, 66, 18, 0.2);
}

.btn-secondary {
    background-color: var(--bg-container-mid);
    color: var(--text-dark);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: rgba(21, 66, 18, 0.05);
    color: var(--primary-container);
    transform: translateY(-2px);
}

/* Header & Navigation */
.main-header {
    background: rgba(250, 250, 245, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo span {
    color: var(--secondary);
}

.logo-img {
    height: 26px;
    width: 26px;
    object-fit: cover;
    border-radius: 4px;
    transition: var(--transition);
}

.brand-logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.form-input {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-glass);
    color: var(--text-dark);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(21, 66, 18, 0.15);
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-available {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.badge-sold {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Footer */
.main-footer {
    background-color: var(--bg-card-hover);
    border-top: 1px solid var(--border-glass);
    padding: 48px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.footer-brand h4 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-img {
    height: 22px;
    width: 22px;
    object-fit: cover;
    border-radius: 4px;
}

.footer-brand p {
    color: var(--text-gray);
    max-width: 320px;
}

.footer-links h5 {
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--text-gray);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Home Page (index.html) Styles */
.hero-video-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding: 80px 24px;
    border-bottom: 1px solid var(--border-glass);
    background-color: var(--bg-light);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-video-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.hero-video-content {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: #ffffff;
}

.hero-video-content .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5.5vw, 54px);
    line-height: 1.15;
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-video-content .hero-title .accent-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: #a2d2a4;
    font-weight: 400;
}

.hero-video-content .hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.8vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 520px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-video-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-video-buttons .btn-primary {
    background-color: #a2d2a4;
    color: #154212;
    font-weight: 700;
    border: 1px solid #a2d2a4;
}

.hero-video-buttons .btn-primary:hover {
    background-color: #92c294;
    border-color: #92c294;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(146, 194, 148, 0.4);
}

.hero-video-buttons .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 600;
}

.hero-video-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-split-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5.5vw, 54px);
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 700;
}

.hero-split-title .accent-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: var(--secondary);
    font-weight: 400;
}

.hero-split-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.8vw, 18px);
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 500px;
}

.hero-split-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-split-buttons .btn-secondary {
    background-color: #a2d2a4;
    color: #154212;
    border: none;
    font-weight: 600;
}

.hero-split-buttons .btn-secondary:hover {
    background-color: #92c294;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(146, 194, 148, 0.25);
}

/* Card content matches original typography and buttons inside the floating glass-panel */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
    color: var(--primary);
}

.section-title p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Product grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-glass);
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-top: auto;
    padding-top: 16px;
}

/* Tourism Section */
.tourism-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

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

/* Map layout */
.map-wrapper {
    position: relative;
    margin-bottom: 32px;
}

#map {
    height: 550px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    z-index: 1;
}

/* Map legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    z-index: 10;
    font-size: 13px;
    backdrop-filter: blur(8px);
    color: var(--text-dark);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Land Plot Detail Page (land_plot_detail.html) Styles */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-main {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    margin-bottom: 16px;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.gallery-thumb:hover, .gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

#detail-map {
    height: 350px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    margin-bottom: 32px;
}

/* Technical sheet specs list */
.specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
}

.spec-item h5 {
    font-size: 13px;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spec-item p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Complement list checkbox */
.complement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(21, 66, 18, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.complement-item:hover {
    background: rgba(21, 66, 18, 0.05);
    border-color: var(--primary);
}

.complement-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* CRM Pipeline Page (pipeline.html) Styles */
.crm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
}

.filters-bar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-select {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    min-width: 180px;
    cursor: pointer;
    font-family: var(--font-body);
}

.filter-select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Kanban Horizontal Board styling */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    align-items: flex-start;
    min-height: 70vh;
}

.kanban-column {
    flex: 0 0 300px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.kanban-column-title {
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-column-count {
    background: var(--bg-container-mid);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
}

.kanban-cards-container {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

/* Scrollbars for Kanban container */
.kanban-board::-webkit-scrollbar,
.kanban-cards-container::-webkit-scrollbar {
    height: 8px;
    width: 6px;
}

.kanban-board::-webkit-scrollbar-thumb,
.kanban-cards-container::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-track,
.kanban-cards-container::-webkit-scrollbar-track {
    background: transparent;
}

/* Ticket Card styling */
.ticket-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.ticket-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 28, 25, 0.08);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ticket-id {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.ticket-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.ticket-plot {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    border-top: 1px solid var(--border-glass);
    padding-top: 10px;
    margin-top: 10px;
}

.ticket-vendor {
    color: var(--text-gray);
    font-style: italic;
}

/* Temperature Colors */
.temp-badge-HOT {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.temp-badge-WARM {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.temp-badge-COLD {
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

/* CRM Metrics Dashboard Page (metrics_dashboard.html) Styles */
.metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.kpi-card {
    padding: 24px;
    text-align: center;
    border-radius: var(--radius-md);
}

.kpi-title {
    font-size: 13px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.kpi-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 992px) {
    .charts-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.chart-card {
    padding: 32px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.chart-container {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 300px;
}

.table-card {
    padding: 32px;
    border-radius: var(--radius-md);
}

.addons-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.addons-table th, .addons-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.addons-table th {
    color: var(--text-gray);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--bg-card-hover);
}

.addons-table tr:last-child td {
    border-bottom: none;
}

.addons-table td {
    font-size: 14.5px;
}

/* CRM Ticket Detail Page (ticket_detail.html) Styles */
.ticket-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
}

@media (min-width: 992px) {
    .ticket-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.detail-card {
    padding: 32px;
    margin-bottom: 24px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}

.info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 576px) {
    .info-list {
        grid-template-columns: 1fr;
    }
}

.info-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Notes/Logs Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.timeline::-webkit-scrollbar {
    width: 4px;
}
.timeline::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 2px;
}

.timeline-item {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.timeline-author {
    color: var(--primary);
    font-weight: 600;
}

.timeline-content {
    font-size: 13.5px;
    color: var(--text-dark);
    white-space: pre-wrap;
}

.btn-block {
    width: 100%;
}

.alert-container {
    margin-bottom: 24px;
}

.alert-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border-glass);
}
.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}
.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

/* CRM Login Page (login.html) Styles */
.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    text-align: center;
}

.login-header {
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

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

.login-form {
    text-align: left;
}

.login-btn {
    width: 100%;
    margin-top: 16px;
}

.login-messages {
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

.login-messages .alert {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

/* Signature Pad Page (signature_pad.html) Styles */
.signature-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
}

.contract-summary {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
}

.contract-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
    font-size: 14px;
    background: var(--bg-card-hover);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.info-item span {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-item strong {
    color: var(--text-dark);
    font-size: 15px;
}

.canvas-wrapper {
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: 24px 0 16px 0;
    box-shadow: 0 4px 15px rgba(26, 28, 25, 0.08);
    border: 2px solid var(--border-glass);
    position: relative;
}

canvas {
    width: 100%;
    height: 250px;
    background: #ffffff;
    cursor: crosshair;
    display: block;
    touch-action: none;
}

.canvas-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 16px;
}

.signature-instructions {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.signing-status {
    display: none;
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
}

.status-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.status-loading {
    background: rgba(21, 66, 18, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--primary);
}

/* Buyer Dashboard Page (buyer_dashboard.html) Styles */
.dashboard-title {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
}

.dashboard-section {
    margin-bottom: 48px;
}

.dashboard-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.dashboard-card {
    padding: 32px;
}

.plot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .plot-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* Post sale products table */
.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.services-table th, .services-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
    font-size: 14px;
}

.services-table th {
    background: var(--bg-card-hover);
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
}

.services-table tr:last-child td {
    border-bottom: none;
}

.status-installing {
    color: #fd7e14;
    font-weight: 600;
}

.status-installed {
    color: #20c997;
    font-weight: 600;
}

.status-running {
    color: var(--primary);
    font-weight: 600;
}

.status-interested {
    color: #6c757d;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ==========================================================================
   Responsive Design System & Media Queries (As proposed in Arboretum design)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-video-section {
        min-height: 65vh;
        justify-content: center;
        padding: 60px 24px;
    }
    
    .hero-video-content-wrapper {
        justify-content: center;
    }
    
    .hero-video-content {
        max-width: 600px;
        align-items: center;
        text-align: center;
    }
    
    .hero-video-content .hero-title {
        text-align: center;
    }
    
    .hero-video-content .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .hero-video-buttons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    /* Header & Navigation */
    .nav-container {
        padding: 16px 24px;
        position: relative;
    }
    
    .nav-container nav {
        display: contents;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(250, 250, 245, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-glass);
        padding: 24px;
        gap: 16px;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Section general layout */
    .section-container {
        padding: 48px 16px;
    }
    
    /* Map sizes */
    #map {
        height: 380px;
    }
}

@media (max-width: 576px) {
    /* Hero section sizing and spacing */
    .hero-video-section {
        min-height: auto;
        padding: 40px 16px;
    }
    
    .hero-video-content {
        padding: 0;
    }
    
    .hero-video-content .hero-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 16px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-video-content .hero-subtitle {
        margin-bottom: 24px;
        font-size: 15px;
    }
    
    .hero-video-buttons {
        gap: 12px;
        width: 100%;
    }
    
    .hero-video-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Map Legend adaptation */
    .map-legend {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Technical specs */
    .specs-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Signature Pad & Canvas */
    .signature-container {
        padding: 20px 16px;
        margin: 20px auto;
    }
    
    .contract-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .canvas-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .canvas-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Fluid grid utilities scale accordingly */
}

/* Fluid Grids to prevent overflow in smaller viewports */
.grid-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* Table Responsive wrapper */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

/* Leaflet Popup responsiveness */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 6px;
    max-width: 280px;
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 8px 12px;
    font-family: var(--font-body);
}

.custom-leaflet-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-glass);
    box-shadow: none;
}

/* ─── Cookie Consent Banner ─────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 150px);
    width: calc(100% - 48px);
    max-width: 720px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    box-sizing: border-box;
}

.cookie-banner.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-gray);
    margin: 0;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
        padding: 20px;
        bottom: 16px;
        width: calc(100% - 32px);
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .cookie-banner-buttons .btn {
        flex: 1 1 45%;
        text-align: center;
        justify-content: center;
    }
}

/* ─── Cookie Consent Modal ───────────────────────────────────────────────────── */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 28, 25, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-card {
    width: calc(100% - 32px);
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 32px;
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal-overlay.visible .cookie-modal-card {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    padding: 4px;
}

.cookie-modal-close:hover {
    color: var(--primary);
}

.cookie-modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

.cookie-option-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(21, 66, 18, 0.06);
    transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
    border-radius: var(--radius-sm);
}

.cookie-option-row:last-child {
    border-bottom: none;
}

.cookie-option-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.cookie-option-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Switch Slider styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-container-mid);
    transition: .3s;
    border: 1px solid var(--border-glass);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e2e2da;
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Pulse highlight for targeted opt-in */
.highlight-pulse {
    background-color: rgba(21, 66, 18, 0.04);
    border: 1px dashed var(--primary);
    padding: 16px;
    margin: 4px -8px;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(21, 66, 18, 0.2);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(21, 66, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(21, 66, 18, 0);
    }
}

