:root {
  --posts-header-color: #556677;
  --accent: #4a9eff;
  --accent-dim: rgba(74, 158, 255, 0.12);
  --accent-border: rgba(74, 158, 255, 0.25);
  --white: #ffffff;
  --text-area-background: #212326;
  --post-area-background: #131518;
  --card-bg: #161a1e;
  --card-border: #23272b;
  --card-border-hover: #3a4248;
  --admin-color: #c00;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: #111;
    color: #eaeaea;
    min-height: 100vh;
    font-size: 17px;
    line-height: 1.65;
}

/* [data-theme="dark"] body { */
/*     background-color: #111; */
/*     color: #eaeaea; */
/* } */

main {
	max-width: 60rem;
	margin: auto;
    padding: 20px;
    display: block;
}

.max-width {
    max-width: 60rem;
}

.content {
    flex: 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 20px;
    margin: 0 auto; 
}

.header_inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
    gap: 10px 20px;
}

.header_right {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.header_right nav ul a:hover {
    background-image: linear-gradient(transparent, transparent 5px, var(--posts-header-color) 5px, var(--posts-header-color));
    background-position: bottom;
    background-size: 100% 6px;
    background-repeat: repeat-x;
}

.base_content {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.base_content main {
    width: 100%;
    max-width: 60rem;
    background: #13161a;
    border: 1px solid #1e2226;
    border-radius: 12px;
    padding: 40px 48px;
    text-align: left;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.post_title {
    text-align: left;
    margin: 0 0 20px;
    margin-bottom: 0;
    font-size: 2.5rem;
}

.post_content {
    margin-top: 30px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-display: auto;
    font-family: monospace, monospace;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-icon {
    filter: grayscale(1) brightness(2);
    transition: filter 0.3s ease;
}

.logo:hover .logo-icon {
    filter: none;
}

.logo_text {
    font-size: 1.125rem;
}

a {
    color: white;
    text-decoration: none;
}

a:visited {
    color: white;
}

.header_right {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
}

.menu {
    z-index: 9999;
}

.menu_inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    list-style: none;
    gap: 6px 14px;
}

.menu_inner li {
    padding: 0 10px 0 0;
    margin: 0;
    border-right: 1px dotted #555;
    white-space: nowrap;
}

.menu_inner li:last-of-type {
    border-right: 0;
    padding-right: 0;
}

.menu a {
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

.menu_inner li a {
    color: var(--posts-header-color);
}

.post_content h1 {
    font-size: 1.75rem;
}

.post_content h1::before {
    content: "# ";
    color: var(--posts-header-color);
    margin-right: 5px;
}

pre[class*="language-"] {
    border: 0px !important;
    border-radius: 0px !important;
    box-shadow: none !important;
}

.posts {
    width: 1000px;
    max-width: 1000px;
    box-sizing: border-box;
    text-align: left;
    padding: 28px 32px;
    margin: 20px auto;
    overflow-wrap: break-word;
    word-break: break-word;
    background: #13161a;
    border: 1px solid #1e2226;
    border-radius: 12px;
}

.post_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin_content {
    width: 100%;
    max-width: 60rem;
    text-align: left;
    padding: 20px;
    margin: 20px auto;
}

textarea.admin_textarea {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin: 20px auto;
    display: block;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    height: 800px;
    background-color: var(--text-area-background);
    color: #fff;
}

textarea.admin_textarea:focus {
    border-color: #007BFF;
    outline: none;
}

textarea.title_textarea {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin: 20px auto;
    display: block;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    background-color: var(--text-area-background);
    color: #fff;
}

textarea.title_textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.word-count {
    margin-top: 10px;
    font-size: 1rem;
}

h2 {
    position: relative;
    display: block;
    margin-top: 2rem;
    margin-bottom: .5rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 700;
    font-size: 1.25rem;
}

.posts .post_list .post_item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    margin-left: 1rem;
    max-width: inherit;
    word-wrap: break-word;
    word-break: break-all;
}

.posts .post_list .post_item .meta {
    display: block;
    min-width: 100px;
    color: var(--posts-header-color);
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
}

.posts .post_list .delete_button {
    display: block;
}

.posts .post_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.posts .post_item:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.posts .post_item a:hover .post-title-text {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

button {
    background-color: #333;  
    color: #fff;             
    border: none;            
    padding: 10px 20px;      
    font-size: 16px;         
    border-radius: 5px;      
    cursor: pointer;         
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #555;
}

button:active {
    background-color: #222;
}

.login_form {
    display: flex;
    flex-direction: column;    
    align-items: center;       
    padding: 20px;             
    background-color: var(--posts-header-color);    
    border-radius: 10px;       
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;               
    max-width: 400px;          
    margin: 20px auto;
}

.login_form input {
    margin: 5px;
}
.login_form button {
    margin: 20px 0px 0px 0px;
}

.login-error {
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 10px;
}

.map-page {
    width: 100%;
    max-width: 95rem;
    margin: 0 auto;
    padding: 10px 30px 50px;
    text-align: left;
    box-sizing: border-box;
}

.map-header {
    padding: 24px 0 16px;
}

.map-title {
    margin: 0 0 4px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #eaeaea;
}

.map-title {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
    line-height: 1;
}

.map-camera-icon {
    flex-shrink: 0;
    display: block;
    margin-top: -6px;
}

.map-camera-icon * {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

/* Default — neutral dark */
.cam-body       { fill: #252830; stroke: #444; stroke-width: 1.5; }
.cam-bump       { fill: #1e2126; stroke: #444; stroke-width: 1.5; }
.cam-shutter    { fill: #3a3d42; stroke: #555; stroke-width: 1; }
.cam-lens-1     { fill: #161820; stroke: #3a3d42; stroke-width: 1.5; }
.cam-lens-2     { fill: #0e1016; stroke: #2a2d32; stroke-width: 1; }
.cam-lens-3     { fill: #1a1c22; stroke: #3a3d42; stroke-width: 1; }
.cam-lens-dot   { fill: #555; }
.cam-flash      { fill: #3a3d42; stroke: #555; stroke-width: 1; }
.cam-strap-l,
.cam-strap-r    { fill: #2a2d32; stroke: #444; stroke-width: 1; }

/* Hover — vivid (title hover OR map hover) */
.map-title:hover .cam-body,
.map-page:has(.world-map:hover) .cam-body     { fill: #1a3a5c; stroke: var(--accent); }
.map-title:hover .cam-bump,
.map-page:has(.world-map:hover) .cam-bump     { fill: #152e48; stroke: var(--accent); }
.map-title:hover .cam-shutter,
.map-page:has(.world-map:hover) .cam-shutter  { fill: #e05533; stroke: #ff7755; }
.map-title:hover .cam-lens-1,
.map-page:has(.world-map:hover) .cam-lens-1   { fill: #0d1e30; stroke: var(--accent); }
.map-title:hover .cam-lens-2,
.map-page:has(.world-map:hover) .cam-lens-2   { fill: #091420; stroke: #2288cc; }
.map-title:hover .cam-lens-3,
.map-page:has(.world-map:hover) .cam-lens-3   { fill: #1a3366; stroke: #4499ee; }
.map-title:hover .cam-lens-dot,
.map-page:has(.world-map:hover) .cam-lens-dot { fill: #88ccff; }
.map-title:hover .cam-flash,
.map-page:has(.world-map:hover) .cam-flash    { fill: #ddaa22; stroke: #ffcc44; }
.map-title:hover .cam-strap-l,
.map-title:hover .cam-strap-r,
.map-page:has(.world-map:hover) .cam-strap-l,
.map-page:has(.world-map:hover) .cam-strap-r  { fill: #1a3a5c; stroke: var(--accent); }

.map-subtitle {
    margin: 0;
    color: #888;
    font-size: 0.95rem;
}

.world-map-wrapper {
    background: #1e2124;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #3a3d42;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.world-map {
    height: 800px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

/* Leaflet popup dark theme */
.leaflet-popup-content-wrapper {
    background: #1e2124;
    color: #eaeaea;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.leaflet-popup-tip {
    background: #1e2124;
}

.leaflet-popup-content a {
    color: #eaeaea;
    text-decoration: none;
}

.leaflet-popup-content a:hover {
    color: var(--accent);
}

.map-popup-edit:hover {
    color: var(--accent) !important;
}

.map-popup-unpin {
    background: none;
    border: 1px solid #e05533;
    color: #e05533;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    cursor: pointer;
}

.map-popup-unpin:hover {
    background: #e05533;
    color: #fff;
}

.leaflet-popup-close-button {
    color: #888 !important;
}

.leaflet-popup-close-button:hover {
    color: #eaeaea !important;
}

.map-popup {
    min-width: 160px;
}

.map-popup strong {
    font-size: 1rem;
}

.map-popup-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.map-popup .post-tag {
    background-color: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent-border);
    font-size: 0.75rem;
}

.map-popup .post-tag:visited {
    color: var(--accent);
}

.map-popup .post-tag:hover {
    background-color: rgba(74, 158, 255, 0.22);
    color: #7bbfff;
}

.map-popup-edit {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    color: #666;
}

.map-popup-edit:hover {
    color: #aaa;
}

.location-map {
    height: 300px;
    width: 100%;
    margin-top: 8px;
    border-radius: 4px;
}

.location-coords {
    margin: 8px 0;
    font-size: 0.875rem;
    color: #aaa;
}

.map-stats {
    display: flex;
    gap: 60px;
    padding: 28px 4px 8px;
}

.map-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.map-stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.map-admin-panel {
    max-width: 60rem;
    margin: 20px 0;
    padding: 20px 24px;
    background: #161819;
    border: 1px solid #2a2d30;
    border-radius: 6px;
}

.map-admin-panel h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #eaeaea;
}

.map-admin-hint {
    color: #777;
    font-size: 0.85rem;
    margin: 0 0 14px;
}

.map-admin-coords {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 12px;
    font-family: monospace;
}

.map-admin-select {
    display: block;
    width: 100%;
    max-width: 400px;
    margin-bottom: 12px;
    padding: 7px 10px;
    background: #212326;
    color: #eaeaea;
    border: 1px solid #3a3d40;
    border-radius: 4px;
    font-size: 0.9rem;
}

.telescope-marker-icon {
    background: none !important;
    border: none !important;
}
.telescope-marker-icon img {
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.telescope-marker-icon:hover img {
    filter: drop-shadow(0 0 10px rgba(251,191,36,0.9))
            sepia(1) saturate(4) hue-rotate(332deg) brightness(1.15);
}

.contact-page {
    max-width: 500px;
    margin: 60px auto;
    padding: 0 20px;
}

.contact-card {
    background: #13161a;
    border: 1px solid #1e2226;
    border-radius: 12px;
    padding: 40px 48px;
    text-align: left;
}

.contact-title {
    margin: 0 0 6px;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-subtitle {
    margin: 0 0 32px;
    color: #666;
    font-size: 0.9rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #1a1d22;
    border: 1px solid #252830;
    border-radius: 8px;
    text-decoration: none;
    color: #eaeaea;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-link:hover {
    border-color: var(--accent);
    background: #1e2530;
    color: #fff;
}

.contact-link-empty {
    opacity: 0.4;
    cursor: default;
}

.contact-link-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
    color: var(--accent);
}

.contact-link-empty .contact-link-icon {
    color: #555;
}

.contact-link-text {
    font-size: 0.95rem;
}

.contact-admin {
    margin-top: 28px;
    background: #161819;
    border: 1px solid #2a2d30;
    border-radius: 8px;
    padding: 24px 28px;
}

.contact-admin h3 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #aaa;
}

.contact-admin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-admin-form label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
}

.contact-admin-form input {
    padding: 8px 12px;
    background: #212326;
    color: #eaeaea;
    border: 1px solid #3a3d40;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.contact-admin-form input:focus {
    border-color: var(--accent);
    outline: none;
}

/* body table,  */
body td, 
body th {
    border: 1px solid white; padding:10px;
}

.delete_button {
    background: #900;
}

.delete_button:hover {
    background-color: #c00;
}

.delete_button:active {
    background-color: #f00;
}

.admin-link {
    color: var(--admin-color) !important;
}

.admin-link:hover {
    background-image: linear-gradient(transparent, transparent 5px, var(--admin-color) 5px, var(--admin-color)) !important;
}

.pagination_buttons {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.pagination_icon {
    margin: 8px;
    font-weight: bold;
    font-size: 1.75rem;
}

.pagination_icon:hover {
    color: var(--posts-header-color)
}

.post_meta_data {
    margin-left: 10px;
    margin-right: 10px;
}

.post_updated {
    margin-left: 6px;
    color: #777;
    font-size: 0.875rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.post-tag {
    background-color: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.post-tag:visited {
    color: var(--accent);
}

.post-tag:hover {
    background-color: rgba(74, 158, 255, 0.22);
    color: #7bbfff;
}

.tags_input {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin: 8px auto 16px;
    display: block;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    background-color: var(--text-area-background);
    color: #fff;
    border: 1px solid #444;
}

.tags_input:focus {
    border-color: #007BFF;
    outline: none;
}

.post-page-layout {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-content-area {
    margin: 20px 0;
}

.toc {
    position: fixed;
    top: 90px;
    left: calc(50% + 540px);
    width: 220px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background-color: var(--post-area-background);
    padding: 16px;
    text-align: left;
}

@media (max-width: 1500px) {
    .toc {
        position: static;
        left: auto;
        width: 100%;
        max-height: none;
        margin-top: 20px;
    }
}

.toc-empty {
    visibility: hidden;
}

.toc-title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #aaa;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-link {
    color: var(--posts-header-color);
    text-decoration: none;
    display: block;
    padding: 3px 0;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.toc-link:hover, .toc-link:visited:hover {
    color: #eaeaea;
}

.toc-link:visited {
    color: var(--posts-header-color);
}

.toc-h1 { padding-left: 0; }
.toc-h2 { padding-left: 16px; }
.toc-h3 { padding-left: 32px; }
.toc-h4 { padding-left: 48px; }

.toc-hash {
    color: var(--posts-header-color);
    font-size: 0.75rem;
}

.post_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.post-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.delete_post_form {
  display: flex;
  align-items: center;
}

.meta-form-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.update_button {
  background: #0066cc;
}

.update_button:hover {
  background-color: #0080ff;
}

.update_button:active {
  background-color: #0044aa;
}

.photo-grid-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.photo-grid-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-grid-item {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #1a1a1a;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-grid-item:hover img {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.875rem;
}

.photo-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 0.9rem;
}

.photo-edit-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.photo-tag-input {
    flex: 1;
    margin: 0;
    padding: 6px 10px;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-page-layout {
        flex-direction: column;
        padding: 0 12px;
    }

    .posts {
        width: 100%;
        max-width: 100%;
    }

    .post-content-area {
        flex: 1 1 auto;
        margin: 10px 0;
    }

    .toc {
        order: -1;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        position: static;
        max-height: none;
        margin-top: 10px;
        margin-bottom: 0;
    }

    .toc-empty {
        display: none;
    }
}

.findloc-page {
    width: 100%;
    max-width: 95rem;
    margin: 0 auto;
    padding: 10px 30px 50px;
    text-align: left;
    box-sizing: border-box;
}

.findloc-header {
    padding: 24px 0 6px;
}

.findloc-title {
    margin: 0 0 4px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #eaeaea;
}

.findloc-subtitle {
    margin: 0;
    color: #888;
    font-size: 0.95rem;
}

.findloc-hint {
    color: #777;
    font-size: 0.9rem;
    margin: 12px 0 14px;
}

.findloc-coords {
    margin: 14px 0;
    padding: 10px 14px;
    background: #161819;
    border: 1px solid #2a2d30;
    border-radius: 6px;
    font-family: monospace;
    color: #aaa;
    font-size: 0.9rem;
}

.findloc-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin: 0 0 16px;
}

.findloc-form-row label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #aaa;
}

.findloc-form-row input,
.findloc-form-row select {
    padding: 7px 10px;
    background: #212326;
    color: #eaeaea;
    border: 1px solid #3a3d40;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    min-width: 140px;
}

.findloc-form-row select {
    min-width: 220px;
}

.findloc-form-row input:focus,
.findloc-form-row select:focus {
    outline: none;
    border-color: var(--accent);
}

.findloc-form-row button[type="submit"] {
    padding: 9px 22px;
    background: var(--accent);
    color: #0a0d10;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.findloc-form-row button[type="submit"]:hover:not(:disabled) {
    background: #6bb0ff;
}

.findloc-form-row button[type="submit"]:disabled {
    background: #2a3038;
    color: #666;
    cursor: not-allowed;
}

.findloc-need-location {
    align-self: center;
    color: #ffaa55;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 4px 0;
    animation: findloc-pulse 1.6s ease-in-out infinite;
}

.findloc-need-location[hidden] {
    display: none;
}

@keyframes findloc-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.findloc-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 22px;
    padding: 18px 20px;
    background: #161819;
    border: 1px solid #2a2d30;
    border-radius: 6px;
}

.findloc-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #aaa;
}

.findloc-form input,
.findloc-form select {
    padding: 7px 10px;
    background: #212326;
    color: #eaeaea;
    border: 1px solid #3a3d40;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    min-width: 140px;
}

.findloc-form select {
    min-width: 220px;
}

.findloc-form input:focus,
.findloc-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.findloc-form button {
    padding: 9px 22px;
    background: var(--accent);
    color: #0a0d10;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.findloc-form button:hover:not(:disabled) {
    background: #6bb0ff;
}

.findloc-form button:disabled {
    background: #2a3038;
    color: #666;
    cursor: not-allowed;
}

.findloc-status {
    color: #aaa;
    font-size: 0.9rem;
    margin: 10px 0;
    min-height: 1.2em;
}

.findloc-results {
    overflow-x: auto;
}

.findloc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.9rem;
}

.findloc-table th,
.findloc-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid #23272b;
}

.findloc-table th {
    background: #161819;
    color: #ccc;
    font-weight: 600;
    border-bottom: 1px solid #2a2d30;
    position: sticky;
    top: 0;
}

.findloc-table tbody tr:hover {
    background: var(--accent-dim);
}

.findloc-table td {
    color: #ddd;
    font-variant-numeric: tabular-nums;
}

.findloc-table .findloc-radec {
    font-family: monospace;
    color: #ccc;
    white-space: nowrap;
}

.findloc-sites-panel {
    margin-top: 36px;
    padding: 18px 20px;
    background: #161819;
    border: 1px solid #2a2d30;
    border-radius: 6px;
}

.findloc-sites-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #eaeaea;
}

.findloc-sites-hint {
    margin: 0 0 14px;
    color: #888;
    font-size: 0.85rem;
}

#findloc-sites-btn {
    padding: 9px 22px;
    background: var(--accent);
    color: #0a0d10;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

#findloc-sites-btn:hover:not(:disabled) {
    background: #6bb0ff;
}

#findloc-sites-btn:disabled {
    background: #2a3038;
    color: #666;
    cursor: not-allowed;
}

.findloc-use-site {
    padding: 4px 12px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.findloc-use-site:hover {
    background: var(--accent-dim);
}

.findloc-site-popup {
    color: #eaeaea;
    font-size: 0.9rem;
    min-width: 200px;
    padding: 2px 0;
}

.findloc-site-popup .findloc-site-name {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.findloc-site-meta {
    color: #aaa;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.findloc-sites-table tbody tr.findloc-site-row {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.findloc-sites-table tbody tr.findloc-site-row:hover {
    background: var(--accent-dim);
}

.findloc-show-windows {
    padding: 4px 12px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

.findloc-show-windows:hover {
    background: var(--accent-dim);
}

.findloc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.findloc-modal[hidden] {
    display: none;
}

.findloc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.findloc-modal-dialog {
    position: relative;
    margin: 4vh auto;
    max-width: 1100px;
    width: calc(100% - 32px);
    max-height: 92vh;
    overflow: auto;
    background: #161a1e;
    border: 1px solid #2a2d30;
    border-radius: 8px;
    padding: 24px 28px 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.findloc-modal-title {
    margin: 0 0 16px;
    padding-right: 36px;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
}

.findloc-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.findloc-modal-close:hover {
    color: #fff;
}

body.findloc-modal-open {
    overflow: hidden;
}

.findloc-sky-picker {
    margin-top: 24px;
    padding: 18px 20px;
    background: #161819;
    border: 1px solid #2a2d30;
    border-radius: 6px;
}

.findloc-sky-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #eaeaea;
}

.findloc-sky-hint {
    margin: 0 0 14px;
    color: #888;
    font-size: 0.85rem;
}

.findloc-sky-canvas-wrap {
    overflow-x: auto;
    background: #0a0c10;
    border: 1px solid #23272b;
    border-radius: 4px;
}

#findloc-sky-canvas {
    display: block;
    min-width: 1200px;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.findloc-sky-sliders {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.findloc-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.findloc-slider-label {
    color: #aaa;
    min-width: 150px;
}

.findloc-slider-row input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
}

.findloc-slider-val {
    font-family: monospace;
    color: #ddd;
    min-width: 45px;
    text-align: right;
}

.findloc-sky-controls {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.findloc-windows-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.findloc-window-item {
    display: grid;
    grid-template-columns: 1.4fr 1.3fr 0.7fr 1fr 0.8fr 0.3fr;
    gap: 14px;
    padding: 9px 14px;
    border-bottom: 1px solid #23272b;
    cursor: pointer;
    transition: background-color 0.12s ease;
    font-size: 0.9rem;
    align-items: center;
}

.findloc-window-item:hover {
    background: var(--accent-dim);
}

.findloc-window-header {
    display: grid;
    grid-template-columns: 1.4fr 1.3fr 0.7fr 1fr 0.8fr 0.3fr;
    gap: 14px;
    padding: 8px 14px;
    border-bottom: 1px solid #2a2d30;
    background: #161819;
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-items: center;
}

.findloc-window-item-active {
    background: rgba(255, 200, 80, 0.12);
    border-left: 3px solid #ffd96b;
}

.findloc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 6px 0 12px;
    color: #aaa;
    font-size: 0.9rem;
}

.findloc-page-prev, .findloc-page-next {
    padding: 5px 14px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.findloc-page-prev:hover:not(:disabled),
.findloc-page-next:hover:not(:disabled) {
    background: var(--accent-dim);
}

.findloc-page-prev:disabled,
.findloc-page-next:disabled {
    color: #555;
    border-color: #2a2d30;
    cursor: not-allowed;
}

.findloc-page-indicator {
    font-family: monospace;
    color: #ddd;
}

.findloc-page-count {
    color: #777;
}

.findloc-anim-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.findloc-anim-pos {
    font-family: monospace;
    color: #aaa;
    font-size: 0.9rem;
}

.findloc-anim-nav {
    padding: 6px 18px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    min-width: 80px;
}

.findloc-anim-nav:hover:not(:disabled) {
    background: var(--accent-dim);
}

.findloc-anim-nav:disabled {
    color: #555;
    border-color: #2a2d30;
    cursor: not-allowed;
}

.findloc-w-date { color: #eaeaea; }
.findloc-w-time { font-family: monospace; color: #ccc; }
.findloc-w-dur, .findloc-w-alt { color: #aaa; font-family: monospace; font-size: 0.85rem; }
.findloc-w-moon { color: #aaa; font-size: 0.85rem; }
.findloc-w-play { color: var(--accent); text-align: right; font-size: 0.9rem; }

.findloc-animate-btn {
    padding: 4px 12px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

.findloc-animate-btn:hover {
    background: var(--accent-dim);
}

.findloc-anim-dialog {
    max-width: 1280px;
}

.findloc-anim-canvas-wrap {
    overflow-x: auto;
    background: #0a0c10;
    border: 1px solid #23272b;
    border-radius: 4px;
}

#findloc-anim-canvas {
    display: block;
    min-width: 1200px;
    width: 100%;
    height: auto;
}

.findloc-anim-controls {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

#findloc-anim-play {
    width: 42px;
    height: 36px;
    background: var(--accent);
    color: #0a0d10;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

#findloc-anim-play:hover {
    background: #6bb0ff;
}

#findloc-anim-scrub {
    flex: 1;
    accent-color: var(--accent);
}

.findloc-anim-time {
    font-family: monospace;
    color: #eaeaea;
    min-width: 50px;
    text-align: right;
}

.findloc-anim-readout {
    font-family: monospace;
    color: #ccc;
    font-size: 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.findloc-coord-line {
    white-space: nowrap;
}

.findloc-coord-label {
    color: #888;
    display: inline-block;
    min-width: 70px;
}

.findloc-sun-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.78rem;
    text-transform: lowercase;
    letter-spacing: 0.04em;
}

.register-page {
    max-width: 420px;
    margin: 60px auto;
    padding: 30px 36px;
    background: #13161a;
    border: 1px solid #1e2226;
    border-radius: 10px;
    text-align: left;
}
.register-title {
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: #eaeaea;
}
.register-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.register-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: #aaa;
}
.register-form input {
    padding: 9px 12px;
    background: #212326;
    color: #eaeaea;
    border: 1px solid #3a3d40;
    border-radius: 4px;
    font-size: 0.95rem;
}
.register-form input:focus {
    outline: none;
    border-color: var(--accent);
}
.register-form button {
    padding: 10px 18px;
    background: var(--accent);
    color: #0a0d10;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 6px;
}
.register-form button:hover {
    background: #6bb0ff;
}
.register-footer {
    margin-top: 18px;
    color: #888;
    font-size: 0.88rem;
}
.register-footer a {
    color: var(--accent);
    text-decoration: none;
}

.comments {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid #2a2d30;
    text-align: left;
}

.comments-title {
    margin: 0 0 18px;
    font-size: 1.3rem;
    color: #eaeaea;
}

.comments-count {
    color: #777;
    font-weight: 400;
    font-size: 1rem;
    margin-left: 6px;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment {
    padding: 14px 16px;
    background: #161a1e;
    border: 1px solid #23272b;
    border-radius: 6px;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.comment-author {
    font-weight: 600;
    color: #eaeaea;
}

.comment-badge {
    padding: 1px 8px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 10px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.comment-date {
    color: #777;
    font-family: monospace;
    font-size: 0.82rem;
}

.comment-delete-form {
    margin: 0 0 0 auto;
}

.comment-delete {
    padding: 2px 10px;
    background: transparent;
    color: #b54a4a;
    border: 1px solid rgba(181, 74, 74, 0.4);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
}

.comment-delete:hover {
    background: rgba(181, 74, 74, 0.15);
}

.comment-body {
    color: #d4d4d4;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 0.95rem;
}

.comments-empty {
    color: #888;
    font-style: italic;
    margin: 14px 0 28px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #212326;
    color: #eaeaea;
    border: 1px solid #3a3d40;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form button {
    padding: 8px 18px;
    background: var(--accent);
    color: #0a0d10;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.comment-form button:hover {
    background: #6bb0ff;
}

.comment-login-prompt {
    padding: 14px 16px;
    background: #161a1e;
    border: 1px solid #23272b;
    border-radius: 6px;
    color: #aaa;
}

.comment-login-prompt a {
    color: var(--accent);
}

.audit-page {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 24px;
    text-align: left;
    color: #d4d4d4;
}
.audit-page h1 { color: #eaeaea; margin-bottom: 6px; }
.audit-meta { color: #888; font-size: 0.85rem; margin-bottom: 18px; }
.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.audit-table th, .audit-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #23272b;
    vertical-align: top;
    text-align: left;
}
.audit-table th { background: #161819; color: #ccc; }
.audit-table code {
    font-family: monospace;
    color: #9fdcd4;
    word-break: break-all;
}
.audit-table tr:hover { background: var(--accent-dim); }
.audit-pagination {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    color: #aaa;
}
.audit-pagination a {
    color: var(--accent);
    padding: 4px 12px;
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    text-decoration: none;
}
.audit-pagination a:hover { background: var(--accent-dim); }

.account-info {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 8px 16px;
    margin: 18px 0 28px;
    font-size: 0.95rem;
}
.account-info dt { color: #888; }
.account-info dd { margin: 0; color: #eaeaea; }
.account-danger {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #2a2d30;
    color: #b54a4a;
    font-size: 1.05rem;
}
.account-delete-btn {
    background: #b54a4a !important;
    color: #fff !important;
}
.account-delete-btn:hover { background: #d05858 !important; }

.user-row-banned { background: rgba(181, 74, 74, 0.08); }
.badge-banned {
    padding: 2px 8px;
    background: rgba(181, 74, 74, 0.15);
    color: #d05858;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.user-actions { display: flex; gap: 6px; }
.btn-ban {
    padding: 3px 12px;
    background: transparent;
    color: #ffaa55;
    border: 1px solid rgba(255, 170, 85, 0.35);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}
.btn-ban:hover { background: rgba(255, 170, 85, 0.12); }
.btn-delete {
    padding: 3px 12px;
    background: transparent;
    color: #b54a4a;
    border: 1px solid rgba(181, 74, 74, 0.45);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}
.btn-delete:hover { background: rgba(181, 74, 74, 0.15); }

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.admin-form-actions .btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

.admin-form-actions .btn-secondary:hover {
    background: var(--accent-dim);
}

.post-preview-body {
    padding: 8px 0;
    margin: 0;
    color: #eaeaea;
    max-height: 70vh;
    overflow-y: auto;
}

.post-preview-empty {
    color: #555;
    font-style: italic;
    margin: 0;
}

.post_content a,
.post_content a:visited,
.post-preview-body a,
.post-preview-body a:visited {
    color: var(--accent);
    text-decoration: none;
}

.post_content a:hover,
.post-preview-body a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.post-tag-inline,
.post-tag-inline:visited {
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 0 6px;
    border-radius: 4px;
    font-size: 0.92em;
    text-decoration: none;
    font-family: monospace;
    transition: background 0.12s ease;
}

.post-tag-inline:hover {
    background: var(--accent-border);
    color: #fff;
    text-decoration: none;
}

.post_meta_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-edit-link { text-decoration: none; }

.post_content img,
.post-preview-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
    border-radius: 4px;
}

.post_content figure,
.post-preview-body figure {
    margin: 1.5em auto;
    text-align: center;
    max-width: 100%;
}

.post_content figure img,
.post-preview-body figure img {
    margin: 0 auto 8px;
}

.post_content figcaption,
.post-preview-body figcaption {
    color: #888;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.4;
    margin: 0 auto;
}

.post_content figcaption a,
.post-preview-body figcaption a {
    color: var(--accent);
}

.post_content figcaption .figure-legend,
.post-preview-body figcaption .figure-legend {
    text-align: left;
    margin: 10px auto 0;
    padding-left: 30px;
    font-size: 0.82rem;
    color: #999;
    line-height: 1.5;
}

.post_content figcaption .figure-legend li,
.post-preview-body figcaption .figure-legend li {
    padding: 1px 0;
    font-style: italic;
    padding-left: 4px;
}

.place-pin,
.place-pin:visited {
    color: var(--accent);
    text-decoration: none;
}

.place-pin:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.place-pin i {
    font-size: 0.85em;
    margin-right: 4px;
    opacity: 0.85;
}

.place-pin-marker {
    background: none !important;
    border: none !important;
    text-align: center;
    color: #ffd96b;
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.place-pin-marker:hover {
    color: #ffeb99;
}

.map-popup-meta {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 2px 0 6px;
}
