/* Cape Safe Route styles */
#cape-safe-route-map {
    width: 100%;
    border: 1px solid #ccc;
    margin-bottom: 1em;
}

/* Instructions panel */
#cape-safe-route-instructions {
    /* Light panel with subtle shadow for improved visual hierarchy */
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1.25em;
    margin-bottom: 1em;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#cape-safe-route-instructions h3 {
    margin-top: 0;
}

#cape-safe-route-instructions a {
    color: #0073aa;
    text-decoration: underline;
}

/* Table styles */
#cape-safe-route-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-top: 1em;
}

#cape-safe-route-table thead tr {
    background-color: #f0f0f0;
}

#cape-safe-route-table th, #cape-safe-route-table td {
    border: 1px solid #eee;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

#cape-safe-route-table td button.vote {
    padding: 2px 4px;
    margin: 0 2px;
    font-size: 0.8em;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
}

#cape-safe-route-table td button.vote:hover {
    background: #005a87;
}

/* List container for hotspots */
#cape-safe-route-list {
    font-family: Arial, sans-serif;
    margin-top: 1em;
}

#cape-safe-route-list .report-item {
    border-bottom: 1px solid #eee;
    padding: 0.75em 0;
}

#cape-safe-route-list .report-item:last-child {
    border-bottom: none;
}

#cape-safe-route-list .report-title {
    font-weight: bold;
}

#cape-safe-route-list .report-meta {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.25em;
}

#cape-safe-route-list button.vote {
    margin-right: 5px;
    padding: 4px 6px;
    font-size: 0.85em;
    cursor: pointer;
}

.cape-safe-route-seo {
    font-size: 1em;
    margin-bottom: 1em;
    line-height: 1.4;
}

/* Search bar */
#cape-safe-route-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 1em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

#cape-safe-route-search input[type="text"] {
    flex: 1 1 220px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

#cape-safe-route-search button {
    padding: 8px 14px;
    border: none;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    display: inline-block;
}
#cape-safe-route-search button:hover {
    background: #005a87;
}

/* Clear button variant */
#csr-clear {
    background: #777;
}
#csr-clear:hover {
    background: #555;
}

/* Suggestions dropdown */
.csr-suggestions {
    position: absolute;
    top: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    width: calc(50% - 8px);
}
.csr-suggestion-item {
    padding: 6px 8px;
    cursor: pointer;
}
.csr-suggestion-item:hover {
    background: #f0f0f0;
}

/* Position suggestion boxes under respective inputs */
#csr-suggestions-start {
    left: 0;
}
#csr-suggestions-end {
    right: 0;
}

/* Last updated timestamp */
.cape-safe-route-updated {
    font-size: 0.85em;
    color: #666;
    margin: 0.5em 0;
}

@media screen and (max-width: 600px) {
    #cape-safe-route-search {
        flex-direction: column;
    }
    #cape-safe-route-search input[type="text"], #cape-safe-route-search button {
        width: 100%;
        flex: none;
    }
    .csr-suggestions {
        width: 100% !important;
        left: 0;
        right: 0;
    }
}