/* CSS Custom Properties */
:root {
    --primary-color: #2E7D32;
    --primary-hover: #1B5E20;
    --primary-light: #4CAF50;
    --secondary-color: #8BC34A;
    --accent-color: #FFC107;
    --accent-hover: #FFA000;
    --background: #F5F5F5;
    --card-bg: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #595959;
    --text-light: #767676;
    --border-color: #E0E0E0;
    --error: #D32F2F;
    --error-bg: #FFEBEE;
    --success: #388E3C;
    --notable-highlight: #FF5722;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-large: 12px;
    --transition: 0.2s ease;
    --hover-bg: #E8F5E9;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, var(--hover-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 20px 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 20px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Input Groups */
.input-group {
    margin-bottom: 12px;
    position: relative;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Help Text */
.help-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

.text-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.text-input::placeholder {
    color: var(--text-light);
}

/* GPS Fields */
.gps-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gps-field {
    display: flex;
    flex-direction: column;
}

/* Input Mode Toggle */
.input-mode-toggle {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

/* Radio Buttons */
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
    min-height: 44px;
    padding: 8px 0;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: border-color var(--transition);
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform var(--transition);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Radio Cards for Sort Options */
.sort-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-card {
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color var(--transition), background-color var(--transition);
}

.radio-card:hover {
    border-color: var(--primary-light);
}

.radio-card:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.05);
}

.radio-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-title {
    font-weight: 600;
    color: var(--text-primary);
}

.radio-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Range Options */
.range-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 480px) {
    .range-options {
        flex-direction: column;
    }
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 44px;
    padding: 8px 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: none;
}

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

.btn-secondary:hover {
    background: rgba(46, 125, 50, 0.1);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-small {
    padding: 10px 16px;
    font-size: 0.875rem;
    min-height: 44px;
}

.btn-large {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    border-radius: var(--radius-large);
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--background);
    color: var(--text-primary);
}

/* Help Link */
.help-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.help-link:hover {
    color: var(--primary-color);
}

/* Favorites List */
.favorites-list {
    margin-bottom: 12px;
}

.no-favorites {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--background);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color var(--transition);
}

.favorite-item:hover {
    background: var(--hover-bg);
}

.favorite-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.favorite-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.favorite-address {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.favorite-delete {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all var(--transition);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-delete:hover {
    color: var(--error);
    background: var(--error-bg);
}

/* Error Message */
.error-message {
    background: var(--error-bg);
    color: var(--error);
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    border-left: 4px solid var(--error);
}

/* Inline Input Error */
.input-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-error::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D32F2F'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

/* Input validation states */
.text-input.error {
    border-color: var(--error);
}

.text-input.error:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Map Preview Section */
.map-preview-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.map-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.map-preview-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.map-preview-container {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--background);
    min-height: 200px;
    position: relative;
}

.map-preview-container iframe {
    display: block;
    width: 100%;
    height: 200px;
}

.map-preview-hint {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

.map-preview-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive adjustments for map preview */
@media (max-width: 480px) {
    .map-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-preview-header .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

.footer a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--secondary-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.cancel-btn {
    margin-top: 20px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-large);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-hover);
}

.modal-content h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */

/* Tablet breakpoint */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .card {
        padding: 18px;
    }

    .sort-options {
        flex-direction: column;
    }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
    .container {
        padding: 14px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 16px;
    }

    .gps-fields {
        grid-template-columns: 1fr;
    }

    .input-mode-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Small phone breakpoint */
@media (max-width: 360px) {
    .container {
        padding: 12px;
    }

    .header h1 {
        font-size: 1.35rem;
    }

    .card {
        padding: 14px;
    }

    .map-preview-container {
        min-height: 150px;
    }

    #mapPreviewContainer {
        height: 150px !important;
    }

    .section-title {
        font-size: 0.95rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
    }

    .btn-primary:hover {
        box-shadow: var(--shadow);
    }

    .radio-card:hover {
        border-color: var(--border-color);
    }

    .favorite-item:hover {
        background: var(--background);
    }

    /* Active state feedback for touch */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .radio-card:active {
        border-color: var(--primary-light);
    }

    .favorite-item:active {
        background: var(--hover-bg);
    }
}

/* Touch highlight color */
* {
    -webkit-tap-highlight-color: rgba(46, 125, 50, 0.2);
}

/* Print Styles */
@media print {
    .container {
        max-width: 100%;
    }

    .btn, .footer, .loading-overlay, .modal {
        display: none !important;
    }
}

/* Focus Styles for Accessibility */
.btn:focus-visible,
.text-input:focus-visible,
.radio-label:focus-within .radio-custom,
.checkbox-label:focus-within .checkbox-custom {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* About Section (Collapsible) */
.about-section {
    margin-bottom: 16px;
}

.about-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    padding: 4px 0;
}

.about-toggle::-webkit-details-marker {
    display: none;
}

.about-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.about-chevron {
    transition: transform var(--transition);
    color: var(--text-secondary);
}

details.about-section[open] .about-chevron {
    transform: rotate(180deg);
}

.about-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    color: #424242;
    font-size: 14px;
    line-height: 1.6;
}

.about-content p {
    margin: 0 0 12px 0;
}

.about-content ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

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

.about-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

.about-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0 !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== RESULTS SECTION ========== */

.results-section {
    margin-top: 24px;
    animation: fadeIn 0.3s ease;
}

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

/* Results Header - Sticky */
.results-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.results-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.results-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

/* Sort Toggle in Results */
.sort-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.sort-btn {
    padding: 8px 16px;
    border: none;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.sort-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.sort-btn:hover:not(.active) {
    background: var(--background);
}

.sort-btn.active {
    background: var(--primary-color);
    color: white;
}

.results-actions {
    display: flex;
    gap: 12px;
}

/* Results Map */
.results-map-container {
    margin-bottom: 16px;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.results-map {
    height: 300px;
    width: 100%;
    background: var(--background);
}

/* Custom numbered markers */
.hotspot-marker {
    background: #FF5722;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    line-height: 24px;
    width: 28px;
    height: 28px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.origin-marker {
    background: #2E7D32;
    border: 3px solid white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.origin-marker svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Highlight card when marker clicked */
.hotspot-card.highlight {
    box-shadow: 0 0 0 3px var(--primary-color), var(--shadow-hover);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

/* Hotspot Cards */
.hotspot-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hotspot-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.hotspot-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Hotspot Header */
.hotspot-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(139, 195, 74, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hotspot-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.hotspot-title-section {
    flex: 1;
    min-width: 0;
}

.hotspot-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    word-wrap: break-word;
}

.hotspot-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hotspot-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hotspot-stats .stat svg {
    color: var(--primary-color);
}

.species-count {
    font-weight: 600;
    color: var(--primary-color) !important;
}

/* Hotspot Details */
.hotspot-details {
    padding: 16px 20px;
}

.hotspot-address {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.hotspot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hotspot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

.hotspot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.hotspot-link svg {
    flex-shrink: 0;
}

/* Species Section */
.species-section {
    border-top: 1px solid var(--border-color);
}

.species-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--background);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: background-color var(--transition);
    font-family: inherit;
}

.species-toggle:hover {
    background: var(--hover-bg);
}

.species-toggle .chevron {
    transition: transform var(--transition);
}

.species-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.species-list {
    padding: 0 20px 20px;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.species-item {
    font-size: 0.85rem;
    color: var(--text-primary);
    padding: 4px 0;
}

.species-item.notable {
    color: var(--notable-highlight);
    font-weight: 500;
}

.notable-legend {
    margin: 12px 0 0 0;
    font-size: 0.8rem;
    color: var(--notable-highlight);
    font-style: italic;
}

/* Results Section Mobile Responsive */
@media (max-width: 600px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .results-map {
        height: 250px;
    }

    .sort-toggle {
        width: 100%;
    }

    .sort-btn {
        flex: 1;
        text-align: center;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hotspot-header {
        flex-direction: column;
        gap: 12px;
    }

    .hotspot-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .species-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles for results */
@media print {
    .results-header {
        position: static;
    }

    .results-actions {
        display: none !important;
    }

    .species-list {
        display: block !important;
    }

    .species-toggle {
        display: none !important;
    }
}
