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

html,
body {
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.site-footer {
    flex: 0 0 auto;
    padding: 0.45rem 1rem;
    background: #1a1a2e;
    color: #e2e8f0;
    font-size: 0.75rem;
    text-align: center;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.site-footer a,
.storage-notice a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.storage-notice {
    position: fixed;
    right: 1rem;
    bottom: 2.75rem;
    left: 1rem;
    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    max-width: 760px;
    margin: 0 auto;
    padding: 0.9rem 1rem;

    border: 1px solid #cbd5e0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.storage-notice[hidden] {
    display: none;
}

.storage-notice-copy {
    min-width: 0;
}

.storage-notice-copy strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1a202c;
}

.storage-notice-copy p {
    color: #4a5568;
    font-size: 0.82rem;
    line-height: 1.45;
}

.storage-notice-copy a {
    color: #276749;
    font-weight: 600;
}

#accept-storage-notice {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border: none;
    border-radius: 999px;
    background: #2f855a;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

@media (max-width: 600px) {
    .storage-notice {
        right: 0.65rem;
        bottom: 2.6rem;
        left: 0.65rem;
        align-items: stretch;
        flex-direction: column;
    }

    #accept-storage-notice {
        width: 100%;
    }
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #1a1a2e;
  color: #fff;
  z-index: 1000;
  flex-shrink: 0;
}

header h1 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}

.app-brand-mark {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
}

.app-brand-mark img {
    position: absolute;
    top: -10px;
    left: -23px;
    width: 84px;
    max-width: none;
    height: auto;
}

@media (max-width: 600px) {
    header {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .app-brand {
        gap: 0.4rem;
    }

    .app-brand-mark {
        width: 34px;
        height: 34px;
    }

    .app-brand-mark img {
        top: -9px;
        left: -20px;
        width: 73px;
    }
}

.auth-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    min-width: 0;
}

.auth-user-name {
    overflow: hidden;

    max-width: 16rem;

    color: #e2e8f0;

    font-size: 0.8rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-link {
    flex: 0 0 auto;

    padding: 0.4rem 0.65rem;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;

    background: transparent;

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 600px) {

    .auth-user-name {
        max-width: 8rem;
    }

    .auth-link {
        padding: 0.35rem 0.55rem;
        font-size: 0.72rem;
    }
}

#status {
  font-size: 0.8125rem;
  color: #a0aec0;
  justify-content: right;
}

#status.loading {
  color: #f6ad55;
}

#status.error {
  color: #fc8181;
}

#status.success {
  color: #68d391;
}

main {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

.poi-menu-button {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 8px;

    background: white;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25);

    font-size: 24px;
    cursor: pointer;
}

.poi-menu-button:hover {
    background: #f7fafc;
}

.poi-drawer {
    position: relative;

    z-index: 2000;

    width: 350px;
    max-width: 350px;

    height: 100%;

    flex: 0 0 350px;

    background: white;

    border-right: 1px solid #e2e8f0;

    box-shadow:
        2px 0 8px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;

    /* Desktop: always visible */
    transform: none;
}

.poi-drawer.open {
    transform: none;
}

.poi-drawer-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 1rem;

    border-bottom: 1px solid #e2e8f0;
}


.poi-drawer-header h2 {
    margin: 0;

    font-size: 1.1rem;

    color: #1a202c;
}


.poi-drawer-close {
    width: 32px;
    height: 32px;

    border: none;
    border-radius: 6px;

    background: #f7fafc;

    color: #4a5568;

    font-size: 22px;

    cursor: pointer;
}


.poi-drawer-close:hover {
    background: #edf2f7;
}

.poi-search {
    padding: 0.75rem;

    border-bottom: 1px solid #e2e8f0;
}


.poi-search input {
    width: 100%;

    box-sizing: border-box;

    padding: 0.65rem 0.75rem;

    border: 1px solid #cbd5e0;

    border-radius: 6px;

    font-size: 0.9rem;

    outline: none;
}


.poi-search input:focus {
    border-color: #3182ce;

    box-shadow:
        0 0 0 2px rgba(49, 130, 206, 0.15);
}

.poi-list-container {
    flex: 1;

    overflow-y: auto;
}


#poi-list li {
    padding: 0.75rem 1rem;

    border-bottom: 1px solid #edf2f7;

    cursor: pointer;
}


#poi-list li:hover {
    background: #f7fafc;
}


#poi-list li.active {
    background: #ebf8ff;
}

.location-controls {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.location-controls h3 {
    margin: 0 0 0.75rem 0;

    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* Change Location button */

#change-location-button {
    width: 100%;

    padding: 0.65rem 0.75rem;

    border: 1px solid #cbd5e0;
    border-radius: 6px;

    background: #f7fafc;
    color: #2d3748;

    font-size: 0.9rem;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

#change-location-button:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

.location-selection-options {
    margin-top: 0.75rem;

    padding: 0.75rem;

    background: #f7fafc;

    border: 1px solid #e2e8f0;
    border-radius: 6px;
}


/* Use Current Location */

#use-current-location-button {
    width: 100%;

    padding: 0.6rem 0.75rem;

    border: 1px solid #3182ce;
    border-radius: 6px;

    background: #3182ce;
    color: #ffffff;

    font-size: 0.85rem;
    font-weight: 500;

    cursor: pointer;

    transition: background-color 0.15s ease;
}

#use-current-location-button:hover {
    background: #2b6cb0;
}

.location-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin: 0.75rem 0;

    color: #a0aec0;

    font-size: 0.7rem;
    font-weight: 600;

    text-align: center;
}

.location-divider::before,
.location-divider::after {
    content: '';

    flex: 1;

    height: 1px;

    background: #e2e8f0;
}

.map-location-instruction {
    padding: 0.65rem;

    border-radius: 5px;

    background: #edf2f7;

    color: #4a5568;

    font-size: 0.8rem;
    line-height: 1.4;

    text-align: center;
}

.location-controls label {
    display: block;

    margin-top: 1rem;
    margin-bottom: 0.35rem;

    color: #4a5568;

    font-size: 0.8rem;
    font-weight: 500;
}

#radius-input {
    width: 100%;
    box-sizing: border-box;

    padding: 0.6rem 0.7rem;

    border: 1px solid #cbd5e0;
    border-radius: 6px;

    background: #ffffff;
    color: #2d3748;

    font-size: 0.85rem;

    cursor: pointer;
}

#radius-input:focus {
    outline: none;

    border-color: #3182ce;

    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.15);
}

#save-location-button {
    width: 100%;

    margin-top: 0.75rem;

    padding: 0.65rem 0.75rem;

    border: none;
    border-radius: 6px;

    background: #38a169;
    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.15s ease;
}

#save-location-button:hover {
    background: #2f855a;
}

#cancel-location-button {
    width: 100%;

    margin-top: 0.5rem;

    padding: 0.55rem 0.75rem;

    border: none;
    border-radius: 6px;

    background: transparent;
    color: #718096;

    font-size: 0.8rem;

    cursor: pointer;
}

#cancel-location-button:hover {
    background: #edf2f7;
    color: #4a5568;
}

#search-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #fff;
  color: #2d3748;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#search-input::placeholder {
  color: #a0aec0;
}

#search-input:focus {
  border-color: #718096;
  box-shadow: 0 0 0 2px rgba(113, 128, 150, 0.15);
}

#poi-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0 0.5rem 0.75rem;
}


#poi-list li {
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.35;
  transition: background 0.15s;
}

#poi-list li:hover,
#poi-list li.active {
  background: #edf2f7;
}

#poi-list li .poi-name {
  font-weight: 500;
  color: #2d3748;
}

#poi-list li .poi-id {
  font-size: 0.75rem;
  color: #a0aec0;
  margin-top: 0.125rem;
}

#map {
  flex: 1;
  min-height: 0;
  position: relative;
}

.mobile-current-location-button,
.mobile-save-location-button {
    display: none;
}

.leaflet-popup-content {
  margin: 0.75rem 1rem;
  font-size: 0.875rem;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.leaflet-popup-content span {
  color: #718096;
  font-size: 0.8125rem;
}

.poi-info-panel {
    position: absolute;
    z-index: 1000;
    left: 50%;
    bottom: 20px;
    width: min(550px, calc(100% - 40px));
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    display: none;
}

.poi-info-panel.visible {
    display: block;
}

/* Small collapsed POI panel — retain the original compact appearance. */
.poi-panel-summary {
    cursor: pointer;
    padding: 0.85rem 1rem;
    transition: background 0.15s;
}

.poi-panel-summary:hover {
    background: #f7fafc;
}

.poi-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.poi-panel-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.poi-summary-arrow {
    font-size: 1.5rem;
    line-height: 1;
    color: #718096;
}

.poi-summary-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0.6rem;
}

.poi-stat {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.poi-stat-number {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.poi-stat-label {
    font-size: 0.75rem;
    color: #718096;
}

/* Expanded panel */
#poi-panel-details {
    display: none;

    width: 100%;
    height: 75vh;

    box-sizing: border-box;

    flex-direction: column;

    background: #ffffff;
}

#poi-info-panel.expanded #poi-panel-details {
    display: flex;
}

.poi-panel-details-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1rem 1.25rem;

    background: #ffffff;

    border-bottom: 1px solid #e2e8f0;
}

.poi-panel-details-header h2 {
    margin: 0;

    font-size: 1.1rem;
    font-weight: 600;

    color: #1a1a2e;
}

#poi-panel-close {
    width: 32px;
    height: 32px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;

    color: #718096;

    font-size: 1.5rem;
    line-height: 1;

    cursor: pointer;
}

#poi-panel-close:hover {
    background: #edf2f7;
    color: #2d3748;
}

.poi-info-panel.expanded .poi-panel-summary {
    display: none;
}

.poi-info-panel.expanded .poi-panel-details {
    display: block;
}

.poi-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

#poi-details-name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
    color: #1a1a2e;
}

.poi-panel-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: #f7fafc;
    color: #718096;
    font-size: 1.2rem;
    line-height: 30px;
    cursor: pointer;
}

.poi-panel-close:hover {
    background: #edf2f7;
}

.poi-tabs {
    flex: 0 0 auto;

    display: flex;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e2e8f0;
}

.poi-tab {
    flex: 1;

    padding: 0.75rem 1rem;

    border: none;
    border-bottom: 3px solid transparent;

    background: transparent;

    color: #718096;

    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;
}

.poi-tab:hover {
    color: #4a5568;

    background: #f7fafc;
}

.poi-tab.active {
    color: #3182ce;

    border-bottom-color: #3182ce;
}

/* Only the selected tab can ever be displayed. */
.poi-tab-content {
    display: none;
}

.poi-tab-content.active {
    display: block;
}

.poi-tab-content-container {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;

    padding: 1rem 1.25rem;
}

.poi-tab-content[hidden] {
    display: none !important;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}

.animal-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

.sighting-card + .sighting-card {
    margin-top: 0.6rem;
}

.sighting-card .sighting-info {
    width: 100%;
}

.sighting-scientific-name {
    margin-top: 0.15rem;

    color: #718096;

    font-size: 0.75rem;
    font-style: italic;
}

.sighting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;

    margin-top: 0.35rem;

    color: #718096;
    font-size: 0.72rem;
}

.sighting-quantity {
    font-weight: 600;
}

.sighting-notes {
    margin-top: 0.45rem;

    color: #4a5568;

    font-size: 0.78rem;
    line-height: 1.4;

    white-space: pre-wrap;
}

.poi-sightings-message {
    padding: 1rem;

    border-radius: 6px;

    background: #f7fafc;
    color: #718096;

    font-size: 0.82rem;
    text-align: center;
}

.poi-sightings-message.error {
    background: #fff5f5;
    color: #c53030;
}

.animal-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 5px;
    background: #edf2f7;
}

.animal-name {
    font-size: 0.8rem;
    color: #2d3748;
}

/*.recent-sighting {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #edf2f7;
}

.recent-sighting:last-child {
    border-bottom: none;
} */

.sighting-info {
    min-width: 0;
}

.sighting-animal {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
}

.sighting-date {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #718096;
}

.poi-empty {
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: #a0aec0;
}

@media (max-width: 600px) {
    .poi-info-panel {
        bottom: 12px;
        width: calc(100% - 20px);
    }

    .poi-summary-stats {
        gap: 1.25rem;
    }

    .poi-tab {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {

    #app.location-selection-active .poi-menu-button,
    #app.location-selection-active .create-sighting-button {
        display: none;
    }

    #app.location-selection-active .mobile-save-location-button {
        position: absolute;
        right: 16px;
        bottom: 16px;
        left: 16px;

        z-index: 1000;

        display: block;

        min-height: 48px;

        padding: 0.75rem 1rem;

        border: none;
        border-radius: 999px;

        background: #38a169;
        color: #ffffff;

        box-shadow:
            0 4px 14px rgba(0, 0, 0, 0.28);

        font-size: 1rem;
        font-weight: 700;

        cursor: pointer;
    }

    #app.location-selection-active .mobile-current-location-button {
        position: absolute;
        right: 16px;
        bottom: 76px;
        left: 16px;

        z-index: 1000;

        display: block;

        min-height: 44px;

        padding: 0.65rem 1rem;

        border: 1px solid #3182ce;
        border-radius: 999px;

        background: #ffffff;
        color: #2b6cb0;

        box-shadow:
            0 3px 12px rgba(0, 0, 0, 0.22);

        font-size: 0.9rem;
        font-weight: 700;

        cursor: pointer;
    }

    #app.location-selection-active .mobile-current-location-button:disabled {
        opacity: 0.7;
        cursor: wait;
    }

    #poi-info-panel {
        left: 0;
        bottom: 0;

        width: 100%;

        transform: none;

        border-radius: 10px 10px 0 0;
        border: none;

        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
    }

    #poi-info-panel.expanded {
        left: 0;
        bottom: 0;

        width: 100%;
        height: 100vh;

        border-radius: 0;
    }

    #app.poi-panel-visible .create-sighting-button {
        bottom: calc(var(--poi-panel-height, 96px) + 12px);
    }

    #app.poi-panel-expanded .create-sighting-button {
        display: none;
    }

    #poi-info-panel.expanded #poi-panel-details {
        height: 100vh;
    }

    .poi-panel-details-header {
        padding: 1rem;
    }

    .poi-tab-content-container {
        padding: 1rem;
    }

    .poi-menu-button {
        display: block;
    }

    .poi-drawer {
        position: fixed;

        top: 0;
        left: 0;

        z-index: 2000;

        width: 350px;
        max-width: 85vw;

        height: 100vh;

        flex: none;

        border-right: none;

        box-shadow:
            4px 0 15px rgba(0, 0, 0, 0.25);

        /*
         * IMPORTANT:
         * Hidden until .open is added.
         */
        transform: translateX(-100%);

        transition:
            transform 0.25s ease;
    }

    .poi-drawer.open {
        transform: translateX(0);
    }

    .poi-drawer-close {
        display: block;
    }
}

@media (min-width: 768px) {

    .poi-menu-button {
        display: none;
    }

    .poi-drawer {
        position: relative;

        transform: none;
    }

    .poi-drawer-close {
        display: none;
    }
}

/* ========================================
   Create sighting button
   ======================================== */

.create-sighting-button {
    position: absolute;

    right: 20px;
    bottom: 20px;

    z-index: 900;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;

    min-height: 48px;

    padding:
        0.75rem 1.1rem;

    border: none;
    border-radius: 999px;

    background: #38a169;
    color: white;

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;

    white-space: nowrap;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25);

    cursor: pointer;
}

.create-sighting-button:hover {
    background: #2f855a;
}


/* ========================================
   Sighting modal
   ======================================== */

.sighting-modal {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(26, 32, 44, 0.55);
}

.sighting-modal.visible {
    display: flex;
}


/* ========================================
   Sighting form
   ======================================== */

.sighting-form {
    display: flex;
    flex-direction: column;

    width: min(560px, 100%);
    max-height: 80vh;

    background: white;

    border-radius: 12px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.30);

    overflow: hidden;
}

.sighting-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex: 0 0 auto;

    padding: 1rem 1.25rem;

    border-bottom:
        1px solid #e2e8f0;
}

.sighting-form-header h2 {
    margin: 0;

    font-size: 1.1rem;
    color: #1a202c;
}

.sighting-close-button {
    width: 32px;
    height: 32px;

    border: none;
    border-radius: 6px;

    background: transparent;

    color: #718096;

    font-size: 1.5rem;

    cursor: pointer;
}

.sighting-close-button:hover {
    background: #edf2f7;
}


/* Body */

.sighting-form-body {
    display: flex;
    flex-direction: column;

    min-height: 0;

    padding: 1rem 1.25rem;
}

.sighting-step {
    min-height: 0;
}

.sighting-step h3 {
    margin-bottom: 0.35rem;

    font-size: 0.95rem;

    color: #2d3748;
}

.sighting-help {
    margin-bottom: 1rem;

    font-size: 0.8rem;

    color: #718096;
}


/* Lists */

.sighting-poi-list,
.sighting-animal-list {
    max-height: 45vh;

    overflow-y: auto;

    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.sighting-choice {
    display: block;

    width: 100%;

    padding: 0.75rem 0.9rem;

    border: none;
    border-bottom:
        1px solid #edf2f7;

    background: white;

    text-align: left;

    cursor: pointer;
}

.sighting-choice:last-child {
    border-bottom: none;
}

.sighting-choice:hover {
    background: #f7fafc;
}

.sighting-choice.selected {
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
}


/* Selected POI */

.selected-sighting-poi {
    margin-bottom: 1rem;

    padding: 0.7rem 0.8rem;

    border-radius: 6px;

    background: #f7fafc;

    color: #2d3748;

    font-weight: 600;
}


/* Animal search */

.animal-search-input {
    width: 100%;

    margin: 0.5rem 0 0.75rem;

    padding: 0.7rem 0.8rem;

    border:
        1px solid #cbd5e0;

    border-radius: 7px;

    font-size: 0.9rem;
}

.animal-search-input:focus {
    outline: none;

    border-color: #3182ce;

    box-shadow:
        0 0 0 2px
        rgba(49, 130, 206, 0.15);
}

.animal-search-label {
    margin-bottom: 0.4rem;

    color: #718096;

    font-size: 0.75rem;
    font-weight: 600;

    text-transform: uppercase;
}


/* Animal rows */

.animal-choice-name {
    display: block;

    font-weight: 600;

    color: #2d3748;
}

.animal-choice-scientific {
    display: block;

    margin-top: 0.15rem;

    color: #718096;

    font-size: 0.75rem;
    font-style: italic;
}


/* Back */

.sighting-back-button {
    margin-bottom: 0.75rem;

    border: none;

    background: transparent;

    color: #3182ce;

    cursor: pointer;
}


/* Save section */

.sighting-save-section {
    flex: 0 0 auto;

    margin:
        1rem -1.25rem -1rem;

    padding:
        1rem 1.25rem;

    border-top:
        1px solid #e2e8f0;

    background: #ffffff;

    box-shadow:
        0 -4px 12px rgba(26, 32, 44, 0.08);

    position: relative;
    z-index: 1;
}

.selected-animal-label {
    color: #718096;

    font-size: 0.75rem;
}

.selected-animal-name {
    margin-top: 0.15rem;
    margin-bottom: 0.75rem;

    font-weight: 600;

    color: #2d3748;
}

.save-sighting-button {
    width: 100%;

    padding: 0.75rem;

    border: none;
    border-radius: 7px;

    background: #38a169;
    color: white;

    font-weight: 600;

    cursor: pointer;
}

.save-sighting-button:hover {
    background: #2f855a;
}

.save-sighting-button:disabled {
    opacity: 0.6;

    cursor: default;
}


/* Status */

.sighting-status {
    min-height: 1.2rem;

    margin-top: 0.5rem;

    font-size: 0.8rem;

    color: #718096;
}

.sighting-empty {
    padding: 1rem;

    color: #718096;

    text-align: center;
}


/* Mobile */

@media (max-width: 767px) {

    .create-sighting-button {
        right: 16px;
        bottom: 16px;

        min-height: 44px;

        padding:
            0.65rem 0.9rem;

        font-size: 0.875rem;

        transition: bottom 0.2s ease;
    }

    .sighting-modal {
        padding: 0;
    }

    .sighting-form {
        width: 100%;
        height: 100%;
        max-height: none;

        border-radius: 0;
    }

    .sighting-form-body {
        flex: 1;

        min-height: 0;
    }

    .sighting-poi-list,
    .sighting-animal-list {
        max-height: none;

        flex: 1;
    }
}
