
body {
    font-family: Tahoma, sans-serif;
}

/* Navbar Logo */
.navbar-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1050;
    margin-bottom: -80px; /* pulls the logo down below the navbar */
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 72px;
        margin-bottom: -48px;
    }
}
.map-wrapper {
    position: relative;
}
#map {
    height: 500px;
    width: 100%;
}
.text {
    height: 50px;
    background-color: #ddd;
    margin-bottom: 10px;
}
.box {
    width: 50px;
    height: 50px;
    background-color: #bbb;
}
.selected-row {
    background-color: #f0f0f0;
}

/* Required to fix Bootstrap modal class conflict */
.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    width: 340px;
    display: none;
}
.custom-modal.show {
    display: block;
}

/* Flora search dropdown */
.flora-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1100;
    max-height: 180px;
    overflow-y: auto;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.flora-search-results .list-group-item {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}
.flora-search-results .list-group-item small {
    color: #9ca3af;
}

/* Flora preview card inside dialog */
.flora-preview-image-container {
    position: relative;
    width: 100%;
    height: 130px;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.flora-preview-fallback {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flora-preview-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flora-preview-details {
    text-align: center;
    padding: 0 0.25rem 0.25rem;
}
.flora-preview-name-is {
    font-family: Tahoma, sans-serif;
    font-size: 1rem;
    color: #2D6A2D;
    font-weight: 600;
}
.flora-preview-name-secondary {
    font-size: 0.8rem;
    color: #6b7280;
}
.flora-preview-name-la {
    font-size: 0.78rem;
    font-style: italic;
    color: #9ca3af;
}

/* Color swatches */
.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s, border-color 0.15s;
}
.color-swatch:hover {
    transform: scale(1.2);
}
.color-swatch.selected {
    border-color: #2D6A2D;
    box-shadow: 0 0 0 2px #2D6A2D;
}

/* Last-planted chips */
.flora-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background-color: #e8f5e9;
    color: #2D6A2D;
    font-size: 0.78rem;
    cursor: pointer;
    border: 1px solid #c8e6c9;
    transition: background-color 0.15s;
}
.flora-chip:hover {
    background-color: #c8e6c9;
}

.modal-header, .modal-footer {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}
.modal-footer {
    border-top: 1px solid #dee2e6;
}
.custom-modal .modal-body {
    padding: 1rem;
}
.plant-quantity-badge {
    font-size: 1.05em;
    font-weight: 600;
    color: #555;
}


/* Sidebar styling */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    /*background-color: #f0f0f0;*/
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #3f3f3f;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #959292;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Circular tool button*/
#map-fab {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 2000;          /* HIGHER than Leaflet */
    pointer-events: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#map-fab:hover {
    background-color: #43a047;
}

.map-hint {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2000;
    pointer-events: none;
}

/* Plant Info Panel */
.plant-info-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
}

.plant-info-panel.show {
    right: 0;
}

.plant-info-panel .panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.plant-info-panel .panel-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #2d5016;
}

/* Cycle nav: prev / counter / next */
.panel-cycle-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-cycle {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: .75rem;
    color: #555;
    cursor: pointer;
    line-height: 1.6;
}
.btn-cycle:hover { background: #f0f0f0; border-color: #aaa; }
.cycle-counter {
    font-size: .72rem;
    color: #888;
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.plant-info-panel .panel-body {
    padding: 1.5rem;
}

.plant-image-container {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plant-info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plant-info-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #e8f5e9;
}

.plant-details .form-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.plant-details p {
    font-size: 1rem;
    color: #212529;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Overlay for closing panel */
.plant-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1040;
    display: none;
}

.plant-info-overlay.show {
    display: block;
}

/* Make plant markers clickable */
.leaflet-marker-icon {
    cursor: pointer !important;
}

/* Info cards (events + recent activity) */
.info-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.info-card-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-family: Tahoma, sans-serif;
    font-size: 0.9rem;
    color: #374151;
    padding: 0.65rem 1rem;
}
.info-card-icon {
    color: #5FAD41;
}

/* Activity items */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.activity-icon {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.activity-icon--flower {
    color: #5FAD41;
}
.activity-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.activity-title {
    font-size: 0.875rem;
    color: #111827;
}
.activity-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Context menu popup */
.leaflet-popup-content {
    margin-right: 46px;
}

.leaflet-popup-content .open-dialog {
    font-family: Tahoma, sans-serif;
    color: #6b7280;
    letter-spacing: 0.01em;
}

/* Flora Encyclopedia Styles */
.flora-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.flora-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flora-card-image-container {
    position: relative;
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flora-card-icon-fallback {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9;
}

.flora-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flora-list-item {
    cursor: pointer;
}

.flora-list-image-container {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flora-list-icon-fallback {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9;
    border-radius: 8px;
}

.flora-list-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.flora-detail-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flora-detail-icon-fallback {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9;
    border-radius: 8px;
}

/* ── Flower Clock ─────────────────────────────────────────────────────────── */
.clock-month-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.73rem;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    user-select: none;
}
.clock-month-chip:hover { background-color: #e8f5e9; border-color: #5FAD41; }
.clock-month-chip.active { background-color: #5FAD41; color: white; border-color: #5FAD41; }
.clock-month-chip.all-chip { font-weight: 500; }

/* Rectangle / calendar view */
.clock-rect-container { overflow-x: auto; overflow-y: auto; max-height: 420px; }
.clock-rect-header { display: flex; position: sticky; top: 0; background: white; z-index: 1; border-bottom: 1px solid #f0f0f0; margin-bottom: 1px; }
.clock-rect-label-col { flex: 0 0 155px; min-width: 155px; padding: 3px 6px 3px 0; }
.clock-rect-months { flex: 1; display: flex; }
.clock-rect-month-hdr {
    flex: 1;
    text-align: center;
    font-size: 0.68rem;
    color: #9ca3af;
    border-left: 1px solid #f0f0f0;
    padding: 3px 1px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.1s;
}
.clock-rect-month-hdr:hover { background-color: #f0fdf0; color: #2D6A2D; }
.clock-rect-month-hdr.active { background-color: #e8f5e9; color: #2D6A2D; font-weight: 600; }

.clock-rect-row { display: flex; align-items: center; border-bottom: 1px solid #f9f9f9; }
.clock-rect-plant-label {
    flex: 0 0 155px;
    min-width: 155px;
    padding-right: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.clock-rect-plant-name {
    font-size: 0.75rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clock-rect-bars {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.clock-rect-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
}
.clock-rect-grid-cell { flex: 1; border-left: 1px solid #f0f0f0; height: 100%; }

/* Circle view */
.clock-circle-container { display: flex; justify-content: center; }
#clock-circle-svg { max-width: 400px; width: 100%; height: auto; }
.clock-legend { text-align: center; }
.clock-empty { text-align: center; color: #9ca3af; font-size: 0.85rem; padding: 1.5rem 0; }

/* ── Garden Journal ────────────────────────────────────────────── */
.journal-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.journal-entry:last-child { border-bottom: none; }
.journal-entry-actions {
    flex-shrink: 0;
    margin-left: auto;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}
.journal-entry:hover .journal-entry-actions { opacity: 1; }
.journal-entry-delete {
    background: none;
    border: none;
    color: #adb5bd;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.15s;
}
.journal-entry-delete:hover { color: #dc3545 !important; }
.journal-entry-edit {
    color: #adb5bd !important;
    padding: 2px 4px !important;
    transition: color 0.15s;
}
.journal-entry-edit:hover { color: #0d6efd !important; }
.journal-entry-confirm {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.journal-entry-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-top: 2px;
}
.journal-entry-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}
.journal-entry-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}
.journal-entry-notes {
    font-size: 0.8rem;
    color: #6b7280;
    white-space: pre-line;
}
.journal-entry-detail {
    font-size: 0.78rem;
    color: #5FAD41;
    font-style: italic;
}
.journal-entry-date {
    font-size: 0.72rem;
    color: #9ca3af;
}

/* ── Plant panel tabs ──────────────────────────────────────────── */
#plant-panel-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}
#plant-panel-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: #6c757d;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}
#plant-panel-tabs .nav-link.active {
    color: #2d6a2d;
    border-bottom-color: #5fad41;
    font-weight: 600;
}
#plant-panel-tabs .nav-link:hover:not(.active) {
    color: #343a40;
}

/* ── History tab ───────────────────────────────────────────────── */
.plant-history-photo img {
    max-height: 280px;
    object-fit: contain;
    background: #f8f9fa;
}
.plant-history-photo .delete-history-photo {
    opacity: 0;
    transition: opacity 0.15s;
}
.plant-history-photo:hover .delete-history-photo {
    opacity: 1;
}
.plant-history-img-wrap {
    position: relative;
    min-height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.plant-history-img-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ── Sign-up banner ────────────────────────────────────────────── */
.signup-banner {
    background: linear-gradient(90deg, #2D6A2D 0%, #5FAD41 100%);
    color: white;
    padding: 0.65rem 0;
}
.signup-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.signup-banner-text {
    font-size: 0.9rem;
}
.signup-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.signup-banner .btn-light {
    color: #2D6A2D;
}
.signup-banner .btn-outline-light:hover {
    color: #2D6A2D;
}


/* ── Seedling page ─────────────────────────────────────────── */

.tray-card {
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    transition: background-color 0.12s, border-color 0.12s;
}
.tray-card:hover {
    background-color: #f8f9fa;
}
.tray-card.selected {
    border-color: #198754;
    background-color: #f0fff4;
}
.tray-species {
    font-weight: 600;
    font-size: 0.9rem;
}
.tray-meta {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 3px;
}
.tray-subcard {
    margin-left: 20px;
    padding: 7px 10px;
    border-style: dashed;
}
.subtray-summary-row {
    cursor: pointer;
}
.subtray-summary-row:hover {
    background-color: #f8f9fa;
}
.subtray-back-link {
    text-decoration: none;
}
.seedling-event-row .seedling-delete-event {
    opacity: 0;
    transition: opacity 0.15s;
}
.seedling-event-row:hover .seedling-delete-event {
    opacity: 1;
}

/* ── Seedling tray image ───────────────────────────────────── */

.seedling-img-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    cursor: pointer;
}
.seedling-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.seedling-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}
.seedling-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s;
    cursor: pointer;
    margin: 0;
}
.seedling-img-wrap:hover .seedling-img-overlay {
    opacity: 1;
}

/* ── Plant-to-garden numbered markers ──────────────────────── */

.plant-marker-icon {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
    cursor: pointer;
    user-select: none;
}
.plant-marker-icon .qty-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #fff;
    color: #198754;
    border: 1px solid #198754;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    line-height: 14px;
}

/* Existing plants shown for context in the Plant-to-Garden mini-map */
.existing-plant-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* Grayed-out placeholder text */
::placeholder {
    color: #bbb !important;
    opacity: 1;
}

/* ── Aerial photo overlay ───────────────────────────────────── */
.aerial-position-hint {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255,255,255,.93);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    font-size: 13px;
    white-space: nowrap;
}

.aerial-handle {
    width: 14px !important;
    height: 14px !important;
    background: #fff;
    border: 2px solid #198754;
    border-radius: 50%;
    cursor: crosshair;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.aerial-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.aerial-list-item:last-child { border-bottom: none; }

.aerial-thumb {
    width: 44px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
}

.aerial-list-info {
    flex: 1;
    min-width: 0;
}
.aerial-list-label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.aerial-opacity-range {
    accent-color: #198754;
}

/* ── Garden areas (polygon beds) ───────────────────────────── */
.area-polygon {
    cursor: default;
}

.area-label-tooltip {
    background: rgba(255,255,255,.85);
    border: none;
    box-shadow: none;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
}
.area-label-tooltip::before { display: none; }

.area-color-dot {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.15);
    display: inline-block;
}

.area-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.1s;
}
.area-color-swatch.selected {
    border-color: #000;
    box-shadow: 0 0 0 1px #fff inset;
}

/* ── Plant List ───────────────────────────────────────────── */
.plantlist-table { font-size: .82rem; }
.plantlist-table th { font-size: .7rem; text-transform: uppercase; color: #888; font-weight: 600; }
.plantlist-thumb-cell { width: 44px; padding: 4px 6px !important; }
.plantlist-thumb-container {
    position: relative; width: 36px; height: 36px;
}
.plantlist-thumb {
    position: absolute; inset: 0; width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    border: 1px solid #dee2e6;
}
.plantlist-thumb-fallback {
    position: absolute; inset: 0; width: 36px; height: 36px; border-radius: 50%; background: #f0f4f0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #dee2e6; font-size: .85rem;
}
.plantlist-count {
    display: inline-block; min-width: 22px; text-align: center;
    font-weight: 600; color: #444;
}
/* Area badges in the table rows */
.plantlist-area-badge {
    display: inline-block;
    font-size: .68rem; font-weight: 500; padding: 1px 7px; border-radius: 10px;
    border: 1.5px solid currentColor; background: transparent;
}
/* Area filter buttons in card header */
.plantlist-filter-btn {
    font-size: .72rem; padding: 2px 9px; border-radius: 10px;
    border: 1.5px solid #adb5bd; background: transparent; color: #555;
    transition: background .12s, color .12s, border-color .12s;
}
.plantlist-filter-btn.active {
    background: #555; color: #fff; border-color: #555;
}
.plantlist-filter-btn[data-area-id]:not([data-area-id="0"]) {
    border-color: var(--plantlist-area-color, #4CAF50);
    color: var(--plantlist-area-color, #4CAF50);
}
.plantlist-filter-btn[data-area-id]:not([data-area-id="0"]).active {
    background: var(--plantlist-area-color, #4CAF50);
    color: #fff; border-color: var(--plantlist-area-color, #4CAF50);
}

/* Clickable plant list rows */
.plantlist-row { cursor: pointer; }
.plantlist-row:hover td { background: #f0f7f0; }

/* Selected map marker highlight */
.plant-marker-selected .plant-marker-container {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1a73e8, 0 2px 8px rgba(0,0,0,.4) !important;
    border-color: #1a73e8 !important;
}
/* dot-mode selected marker */
.plant-marker-selected > div {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a73e8 !important;
}
