/* --- General Professional Styles --- */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    margin: 0; 
    background-color: #f4f7f6; 
}
.container { 
    max-width: 800px; 
    margin: auto; 
    padding: 20px; 
}

/* --- Sticky Navigation & Dropdown --- */
nav {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 3px 12px rgba(0,0,0,.16);
}
nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 11px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.3;
    transition: background-color .15s;
}
.footer-nav { position: static; margin-top: 24px; border-radius: 8px; }
nav a:hover { background: rgba(255,255,255,.12); }
nav a:focus-visible { outline: 2px solid #93d4ff; outline-offset: 2px; }

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c3e50;
    min-width: 130px;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    z-index: 1000;
}
.dropdown-content a {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

header[id], section[id] { scroll-margin-top: 80px; }
@media (max-width: 600px) {
    nav { padding: 6px; gap: 2px; }
    nav a { padding: 0 9px; }
    header[id], section[id], #checklists { scroll-margin-top: 160px; }
}

/* --- Header with Background Image --- */
header { 
    background-image: linear-gradient(rgba(44, 62, 80, 0.75), rgba(44, 62, 80, 0.75)), url('image-single.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 110px 20px;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* --- Card Styles --- */
.card { 
    background: white; 
    padding: 25px; 
    margin: 20px 0; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}
.danger-box { 
    background: #f8d7da; 
    border: 2px solid #dc3545; 
    padding: 15px; 
    border-radius: 5px; 
    margin: 15px 0; 
    color: #721c24; 
}
.phg-highlight { 
    border-left: 5px solid #8e44ad; 
} 

h2 { 
    color: #2980b9; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
    margin-top: 0; 
}
h3 { 
    color: #e67e22; 
    font-size: 1.1em; 
    margin-top: 20px; 
    border-left: 3px solid #e67e22; 
    padding-left: 10px; 
}

/* --- Interactive Checklist Styles --- */
ul { list-style: none; padding: 0; }
li { 
    padding: 10px; 
    border-bottom: 1px solid #eee; 
    cursor: pointer; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    font-size: 0.95em; 
}
li:before { content: '☐'; margin-right: 10px; font-size: 1.2em; color: #ccc; }
li.done { text-decoration: line-through; color: #7f8c8d; background-color: #f9f9f9; }
li.done:before { content: '☑'; color: #27ae60; }
li:hover { background: #eef7fd; }

/* --- Links & Map Buttons --- */
.link-list a { display: block; color: #2980b9; margin: 10px 0; text-decoration: none; font-weight: bold; }
.link-list a:hover { text-decoration: underline; }
.map-link { color: #27ae60 !important; }
.pub-link { color: #8e44ad !important; }
.country-flag { width: 32px; height: auto; vertical-align: middle; margin-right: 6px; border: 1px solid #ddd; border-radius: 2px; }

button { background: #2980b9; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-top: 10px; }
input, textarea { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }

footer { text-align: center; padding: 20px; color: #7f8c8d; font-size: 0.8em; }
html { scroll-behavior: smooth; }

/* --- Floating Back to Top Button --- */
#backToTop {
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    background: #2980b9; 
    color: white; 
    border: none;
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    font-size: 1.3em; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25); 
    opacity: 0; 
    visibility: hidden; 
    z-index: 1100;
    transition: all 0.3s;
}
#backToTop.show { opacity: 1; visibility: visible; }

/* --- Info Popovers --- */
.link-with-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.link-with-info > a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.link-info { flex-shrink: 0; }
.link-info summary {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    color: #2980b9;
    font-size: 22px;
    border-radius: 6px;
}
.link-info summary::-webkit-details-marker { display: none; }
.link-info summary:focus-visible { outline: 2px solid #2980b9; outline-offset: 2px; }
.link-info[open] summary { background: #eef7fd; }
.link-info p {
    position: absolute;
    top: 100%;
    left: 0;
    width: min(280px, 100%);
    box-sizing: border-box;
    margin: 0;
    padding: 12px;
    background: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px #0002;
    z-index: 20;
}
