html {
    font-size: 14px;
    min-height: 100%;
    position: relative;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus { box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb; }

/* Styles for extracted fields */

.field-extracted { border-left: 3px solid #198754 !important; }

.field-normalized { border-left: 3px solid #ffc107 !important; }

/* Toast container styling */

.toast-container {
    max-width: 350px;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1090;
}

/* Badge styling */

.badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

/* AI extraction result styling */

.extraction-summary { font-size: 0.9rem; }

.extraction-summary .progress { height: 0.5rem; }

/* Animation for highlighting extracted fields */

@keyframes highlight-pulse {
    0% { background-color: rgba(25, 135, 84, 0.1); }

    50% { background-color: rgba(25, 135, 84, 0.2); }

    100% { background-color: transparent; }
}

/* Tag chip styling */

.badge { 
    font-size: 0.875rem; 
    padding: 0.25rem 0.5rem;
}

/* Tag chip bar styling */
#tagChipBar {
    min-height: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

#tagChipBar .text-muted {
    font-style: italic;
}

.field-extracted.bg-light { animation: highlight-pulse 2s ease-in-out; }

body { margin-bottom: 60px; }

/* Form improvements */

.form-select {
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
}

.form-control, .form-select {
    font-size: 0.925rem;
    padding: 0.375rem 0.75rem;
}

@media (min-width: 768px) {
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder { text-align: start; }

/* Custom offcanvas styling */

.offcanvas-end {
    width: 500px !important; /* Increase from default 400px to 600px */
}

/* Make sure the offcanvas is fully visible on mobile */

@media (max-width: 576px) {
    .offcanvas-end { width: 100% !important; }
}

/* Custom offcanvas styling */

.offcanvas-start {
    width: 500px !important; /* Increase from default 400px to 600px */
}

/* Make sure the offcanvas is fully visible on mobile */

@media (max-width: 576px) {
    .offcanvas-start { width: 100% !important; }
}

/* Highlight newly saved property card */
.just-saved {
    position: relative;
}

.just-saved-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #198754;
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 0 0.25rem 0 0.25rem;
    z-index: 3;
    animation: fadeHighlight 10s forwards;
}

@keyframes fadeHighlight {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Filter chip styling for map */
.filter-chip {
    cursor: pointer;
}

.filter-chip.active {
    box-shadow: 0 0 .2rem #333;
}