/* Grundlæggende styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

/* Header og navigation */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

header button:hover {
    background-color: #f0f0f0;
}

.date-info {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.main-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.main-nav::-webkit-scrollbar {
    height: 4px;
}

.main-nav::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 2px;
}

.main-nav a {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #3498db;
    color: white;
}

/* Indhold */
.content {
    padding: 20px 0 80px;
    min-height: 60vh;
}

h2 {
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #2c3e50;
}

h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

p {
    margin-bottom: 15px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Weather widget */
.weather-widget {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 15px 0;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    grid-gap: 10px !important;
}

.weather-day {
    width: auto !important;
    min-width: 0 !important;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.weather-icon {
    font-size: 24px;
    margin: 5px 0;
}

.weather-day-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.weather-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.weather-temp {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 3px;
}

.weather-desc {
    font-size: 12px;
    color: #666;
}

.weather-error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
}

/* Search bar */
.search-container {
    padding: 15px;
    background-color: #f9f9f9;
    display: none;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.search-results {
    margin-top: 10px;
}

/* Place cards */
.place-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #eee;
    min-height: 80px;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #3498db;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin: 10px 0 2px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
    z-index: 1;
    position: static;
}
.price-tag {
    background-color: #27ae60;
}
.price-tag-alt {
    background-color: #27ae60;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    padding: 3px 8px;
    display: inline-block;
    margin-top: 10px;
}
.address-tag {
    background-color: #e67e22;
    margin-top: 5px;
}
.event-date {
    background-color: #9b59b6;
    margin-top: 5px;
}

/* Fremhævninger/anbefalinger */
.recommendation {
    background-color: #f5f9fc;
    border-left: 3px solid #3498db;
    padding: 12px;
    margin: 12px 0 8px 0;
    font-style: italic;
}

.place-info {
    margin-bottom: 8px;
    line-height: 1.4;
}

.place-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.action-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    transition: background-color 0.3s;
}
.action-btn:hover {
    background-color: #e0e0e0;
}
.action-btn i {
    margin-right: 5px;
}

/* Highlight (tip bokse) */
.highlight {
    background-color: #fffdf0;
    border: 1px solid #f0e6c5;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

/* Smalle bullets/lister */
ul.compact-list {
    list-style-position: inside;
    margin-left: 0.8em;
    padding-left: 0.6em;
}
ul.compact-list li {
    margin-left: 0;
    margin-bottom: 5px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
.tab:hover {
    color: #3498db;
}
.tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: bold;
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
    z-index: 100;
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bottom-nav a i {
    font-size: 20px;
    margin-bottom: 3px;
}
.bottom-nav a:hover, .bottom-nav a.active {
    color: #3498db;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 18px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Emergency contacts */
.emergency {
    background-color: #ffdddd;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
.emergency h4 {
    color: #c0392b;
    margin-bottom: 10px;
}
.emergency-contact {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #777;
    border-top: 1px solid #eee;
    margin-bottom: 60px;
}

/* Dark mode */
body.dark-mode {
    background-color: #222;
    color: #f0f0f0;
}
body.dark-mode .container {
    background-color: #333;
}
body.dark-mode header, 
body.dark-mode .main-nav, 
body.dark-mode .date-info, 
body.dark-mode .place-card, 
body.dark-mode .weather-widget,
body.dark-mode .tabs,
body.dark-mode .highlight,
body.dark-mode .bottom-nav,
body.dark-mode .footer,
body.dark-mode .search-container,
body.dark-mode .recommendation,
body.dark-mode .action-btn,
body.dark-mode .weather-day,
body.dark-mode .weather-date, 
body.dark-mode .weather-desc,
body.dark-mode .search-input {
    background-color: #2c2c2c !important;
    color: #f0f0f0 !important;
}
body.dark-mode .recommendation {
    background-color: #383838 !important;
    border-left-color: #3498db !important;
}
body.dark-mode .bottom-nav,
body.dark-mode .footer {
    border-color: #444 !important;
}
body.dark-mode .tab.active,
body.dark-mode .main-nav a.active,
body.dark-mode .main-nav a:hover {
    background-color: #3498db !important;
    color: #fff !important;
}

/* --- Ida-venlig særpræg --- */
#ida-venlig h2,
#ida-venlig .tab.active {
    color: #8338EC;
    border-bottom-color: #8338EC;
}
#ida-venlig .tab:hover {
    color: #8338EC;
}
#ida-venlig .recommendation {
    border-left: 3px solid #8338EC;
    background-color: #f3f0fc;
}
#ida-venlig .highlight {
    border-color: #c6aef9;
    background-color: #f7f3ff;
}
body.dark-mode #ida-venlig .recommendation {
    background-color: #524063 !important;
    border-left-color: #b69cfb !important;
}
body.dark-mode #ida-venlig .highlight {
    background-color: #2e2335 !important;
    border-color: #b69cfb !important;
}

/* Responsiv design */
@media (max-width: 768px) {
    h2 { font-size: 22px; }
    .place-card { padding: 15px; }
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    .tab { padding: 8px 12px; font-size: 14px; }
    .action-btn, .tab, button {
        min-height: 36px;
    }
}
@media (max-width: 600px) {
    .weather-widget { grid-template-columns: repeat(2, 1fr) !important; }
}
@media print {
    body, .container { background-color: white !important; color: black !important; }
    .main-nav, .bottom-nav, .back-to-top, .weather-widget, .search-container { display: none !important; }
    .place-actions { display: none !important; }
    .container { width: 100%; max-width: none; box-shadow: none; padding: 15px; }
    h2 { page-break-before: always; }
    .place-card { break-inside: avoid; page-break-inside: avoid; border: 1px solid #ddd !important; }
    .recommendation { background-color: white !important; border-left: 1px solid #999 !important; }
    .price-tag-alt, .price-tag { display: none !important; }
}