/* Grundinställningar */
body {
    background-color: #f5f1e8;
    color: #333333;
    font-family: 'Calibri', sans-serif;
}

body > .content-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

html {
    scrollbar-gutter: stable;
}

a {
    color: #ffff;
    text-decoration: underline;
    font-weight: 500;
}

a:hover {
    color: #0000;
    text-decoration: underline;
}

.container-down {
    background-color: #ffffff;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 1rem;
    color: #333333;
}

.container-down p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #333333;
}

.main-content {
    flex: 1;
}

/* Header & Banner - Optimerad */
header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 40px;
    background-color: #f7eadc;
    background-image: url('stil/bilder/decor/header_bg.png');
    background-size: cover;
    background-position: center;
    height: 350px;
    position: relative;
    color: #000;
    width: 100%;
    box-sizing: border-box;
}

header h1 {
    width: 100%;
    text-align: center;
    font-size: 2em;
    margin-top: 10px;
}

header img { 
    width: 170px;
    height: auto;
    object-fit: contain;
}

.site-slogan-rubrik {
    margin: 10px 0 0 0;
    font-size: 2.5em;
    text-align: left;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.74);
}

.site-slogan {
    margin: 5px 0 0 0;
    font-size: 1.3em;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Search container (Överlappning) */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #f5f1e8;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0px auto 30px auto; 
    z-index: 10;
}

.search-container select,
.search-container button {
    height: 48px;
    box-sizing: border-box;
    margin: 0;
    vertical-align: middle;
}

/* Meny och navigering i header */
nav.menu-2 {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 1.2rem;
    display: flex;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

nav.menu-2 a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 14px;
    border: 2px solid transparent;
    background: transparent;
    transition: all 0.2s ease;
}

nav.menu-2 a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.site-slogan-rubrik {
    margin-left: 0;
    margin-top: 40px;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.site-slogan {
    margin-left: 0;
    margin-top: 5px;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.login-button {
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 22px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-button:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Finjustering för dropdown */
.search-container select {
    padding: 0 35px 0 15px;
}

/* Finjustering för knapp */
.search-container button {
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#kategori {
    /* Gör den mjukare */
    appearance: none;
    background-color: #ffffff;
    border: 1px solid #b8a696;
    border-radius: 8px;
    padding: 10px 35px 10px 15px;
    /* Typografi */
    font-family: 'Calibri', sans-serif;
    color: #4a3728;
    font-size: 1rem;
    
    /* Egen pil-ikon som passar designen */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234a3728%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;
    
    cursor: pointer;
    transition: all 0.3s ease;
}

#kategori:hover {
    border-color: #2c692f;
    background-color: #fcfbf9;
}

#kategori:focus {
    outline: none;
    border-color: #2c692f;
    box-shadow: 0 0 0 3px rgba(44, 105, 47, 0.2);
}

/* Kartan */
#map {
    width: 456px;
    height: 400px;
    padding: 0;
}

#map-page { 
    width: 1300px;
    height: 800px;
    margin: 20px auto;
    padding: 20px;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.store-link {
    font-size: 1.0rem;
    font-weight: 700;
}

.social-icon {
    display: inline-block;
    margin-right: 6px;
}

.social-icon:last-child {
    margin-right: 0;
}

/* Rubriker */
h1 { 
    font-size: 2em; 
    text-align: center; 
    font-weight: bold; 
    margin: 0.67em 0; 
}
h2 { 
    font-size: 1.5em; 
    text-align: center; 
    font-weight: bold; 
    margin: 0.83em 0; 
}
h3, h4, h5, h6 { 
    text-align: center; 
    font-weight: bold; 
}
h3 { 
    font-size: 1.17em; 
} 
h4 { 
    font-size: 1em; 
    margin: 1.33em 0; 
}
h5 { 
    font-size: .83em; 
    margin: 1.67em 0; 
} 
h6 { 
    font-size: .67em; 
    margin: 2.33em 0; 
}

.message { 
    color: #ff0000; 
    font-size: large; 
    font-weight: bold; 
}

/* Rating-stjärnor */
.star { 
    font-size: 24px;
    color: lightgray; 
}
.star.filled, .star.selected { 
    color: gold; 
}
.rating-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 0; 
}
.rating-container .star { 
    font-size: 32px; 
    cursor: pointer; 
    transition: color 0.3s ease, transform 0.2s ease; 
}
.rating-container .star:hover { 
    color: orange; 
    transform: scale(1.2); 
}
.rating-container span { 
    font-size: 16px; 
    color: #555555; 
}

/* Loginsidan */
.login-container { 
    background-color: #fff; 
    max-width: 400px; 
    margin: 50px auto; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}
.login-container h2 { 
    color: #007bff; 
    font-size: 1.8rem; 
    margin-bottom: 20px; 
    text-align: center; 
}
.form-group { 
    margin-bottom: 15px; 
}
label { 
    font-size: 1rem; 
    color: #555; 
}
input[type="text"], input[type="password"] { 
    width: 200px; 
    padding: 10px; 
    margin-top: 8px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-size: 1rem; 
}
button { 
    background-color: #2c692f; 
    color: white; 
    padding: 12px 20px; 
    border: none; 
    border-radius: 4px; 
    font-size: 1rem; 
    cursor: pointer; 
    width: 200px; 
    margin-top: 10px; 
}
button:hover { 
    background-color: #1a4a1c; 
}

.button-list { 
    display: block;
    margin: 5px auto;
    background-color: #2c692f; 
    color: white; 
    padding: 10px 20px; 
    border: none; 
    border-radius: 4px; 
    font-size: 1rem; 
    cursor: pointer; 
    width: 200px; 
    margin-top: 0px; 
    margin-bottom: 0px;
    text-decoration: none;
}
.button-list:hover { 
    background-color: #1a4a1c; 
}

/* Dashboard */
.dashboard-container, 
.store-list, 
.filter-container, 
.versions-container { 
    background-color: #ffffff; 
    max-width: 800px; 
    margin: 30px auto; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}
.main-container { 
    display: flex; 
    gap: 100px; 
    justify-content: center; 
    align-items: flex-start;
    padding: 20px; 
}
.content-pages-left { 
    width: 15rem;
    padding: 20px; 
    background-color: #fff; 
    border-radius: 12px;
    position: sticky;
    top: 20px; 
}
.content-pages-right { 
    width: 800px;
    padding-top: 20px; 
    padding-left: 20px; 
    padding-right: 20px;
    background-color: #fff; 
    border-radius: 12px; 
}
.content-index-left { 
    width: 50rem;
    padding-right: 20px; 
    border-radius: 12px; 
}
.content-index-right { 
    width: 28.5rem;
    padding: 20px; 
    border-radius: 12px; 
}
.items-list { 
    background-color: #ffffff; 
    max-width: 800px; 
    margin: 10px auto; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

/* Kategori kort */
.category-card-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    max-width: 800px; 
    margin: 30px auto; 
    padding: 20px; 
}
.category-card {
    text-decoration: none; 
    color: #000; 
    border-radius: 12px; 
    overflow: hidden; 
    background: #f5f5f5; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.category-card img { 
    width: 100%; 
    height: 192px; 
    object-fit: cover; 
    display: block; 
}
.category-card span { 
    display: block; 
    text-align: center; 
    padding: 12px; 
    font-weight: 600; 
    background: #fff; 
}
.category-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 6px 16px rgba(0,0,0,0.15); 
}

/* Kartan */
#map { width: 456px; height: 400px; padding: 0; }
#map-page { width: 1300px; height: 800px; margin: 20px auto; padding: 20px; }

/* Dashboard & Kort */
.category-card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 800px; margin: 30px auto; padding: 20px; }
.category-card { text-decoration: none; color: #000; border-radius: 12px; overflow: hidden; background: #f5f5f5; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.category-card img { width: 100%; height: 192px; object-fit: cover; display: block; }
.category-card span { display: block; text-align: center; padding: 12px; font-weight: 600; background: #fff; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

/* Övrig layout */
footer { 
    background-color: #333333; 
    color: #ffffff; 
    text-align: center; 
    padding-top: 0.5rem; 
    padding-bottom: 0.5rem; 
    width: 100%; 
    font-size: 0.9rem; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
}

.dashboard-container form {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px 20px;
    align-items: center;
}

.dashboard-container form label {
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
}

.dashboard-container form input,
.dashboard-container form select,
.dashboard-container form textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Calibri', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.dashboard-container form textarea {
    resize: vertical;
    min-height: 40px;
}

.dashboard-container form button {
    grid-column: 2;
    padding: 10px 20px;
    background-color: #2c692f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dashboard-container form button:hover {
    background-color: #1a4a1c;
}

/* Responsivitet */
@media (max-width: 1300px) {
    h1 { font-size: 1.6em; margin: 0.5em 0; margin-left: 0.8em; margin-right: 0.8em; }
    h2 { font-size: 1.3em; margin: 0.6em 0; margin-left: 0.8em; margin-right: 0.8em; }
    h3 { font-size: 1.1em; margin: 0.7em 0; margin-left: 0.8em; margin-right: 0.8em; }
    h4 { font-size: 1.0em; margin: 0.8em 0; margin-left: 0.8em; margin-right: 0.8em; }
    h5 { font-size: 0.9em; margin: 0.9em 0; margin-left: 0.8em; margin-right: 0.8em; }
    h6 { font-size: 0.8em; margin: 1.0em 0; margin-left: 0.8em; margin-right: 0.8em; }

    header { 
        height: auto; 
        padding: 20px 15px; 
        align-items: center;
    }
    
    nav.menu-2 { 
        position: static;
        flex-wrap: wrap; 
        justify-content: center; 
        margin-top: 15px; 
        width: 100%;
        box-sizing: border-box;
    }

    .site-slogan-rubrik { font-size: 1.6em; text-align: center; margin-top: 10px; }
    .site-slogan { font-size: 1em; text-align: center; }

    .search-container { 
        margin-top: -20px; 
        width: 95%; 
        padding: 10px; 
        flex-direction: column;
    }

    .main-container { flex-direction: column; 
        gap: 20px; 
        padding: 10px; 
        align-items: center; 
    }
    
    .content-pages-left {
        position: static;
        margin: 10px auto;
        top: auto;
        width: 80%;
        margin-bottom: 20px;
    }

    .content-pages-right,
    .items-list,
    .store-item {
        width: 80%;
        box-sizing: border-box;
        margin: 10px auto;
    }

    .content-index-left,
    .content-index-right,
    .content-fullwidth {
        width: 100%;
        box-sizing: border-box;
    }
    
    #map-page {
        width: 95%;
        height: 350px;
        margin: 10px auto;
        padding: 10px;
    }
    #map {
        width: 100%;
        height: 350px;
        min-height: 350px;
        display: block;
    }

    header { 
        height: auto; 
        align-items: center; 
        text-align: center;
        padding-bottom: 20px;
    }
    
    .search-container { 
        margin-top: 15px;
        margin-bottom: 20px;
        width: 95%; 
        padding: 10px; 
    }
    
    .social-icon { margin-right: 2px; }
}