
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Montserrat:wght@300;400;600&display=swap');

body{
    margin:0;
    background:#eef5fb;
    font-family:'Montserrat',sans-serif;
    color:#16324a;
}

.topbar{
    background:
        linear-gradient(rgba(0,40,70,0.35), rgba(0,40,70,0.35)),
        url('../images/skargard-header.jpg');padding:20px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 12px rgba(0,0,0,0.08);
    position:sticky;
    top:0;
    z-index:100;
}

.logo{ 
	font-family:'Cormorant Garamond', serif; 
	font-size:52px; 
	color:#d6d6d6; 
	font-weight:600; 
	letter-spacing:1px; 
}

nav a{
    text-decoration:none;
    margin-left:20px;
    color:#0b3f66;
    font-weight:600;
}

.hero{
    height:120px;
    background:
        linear-gradient(rgba(0,40,70,0.35), rgba(0,40,70,0.35)),
        url('../images/skargard-header2.jpg');padding:20px 40px;
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    text-align:center;
}

.hero h1{
    font-size:48px;
    margin-top:-30px;
    font-family:'Cormorant Garamond', serif;
}

.hero p{
    text-transform:uppercase;
    letter-spacing:3px;
}

.container{
    width:1200px;
    max-width:95%;
    margin:auto;
    margin-top:-60px;
    position:relative;
}

.layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:30px;
}

.sidebar,
.admin-form,
.entry{
    background:white;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.sidebar{
    padding:25px;
    height:fit-content;
}

.sidebar input{
    width:90%;
    padding:14px;
    border-radius:12px;
    border:1px solid #d5e2ef;
    margin-bottom:20px;
}

.sidebar a{
    display:block;
    padding:8px 0;
    color:#0b3f66;
    text-decoration:none;
}

.logbook{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.entry{
    display:grid;
    grid-template-columns:200px 1fr 320px;
    overflow:hidden;
}

.entry-date{
    background:#0b3f66;
    color:white;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.entry-date .day{
    font-size:60px;
    font-weight:600;
}

.entry-content{
    padding:35px;
}

.entry-content h2{
    margin-top:0;
    color:#0b3f66;
}

.meta{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    color:#52779a;
    margin:18px 0;
}

.entry-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.admin-form{
    padding:40px;
    margin-top:80px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group.full{
    grid-column:1/-1;
}

input,
textarea,
select{
    padding:14px;
    border-radius:12px;
    border:1px solid #d4e2ee;
    background:#f8fbfe;
}

textarea{
    min-height:180px;
}

.weather{
    display:flex;
    gap:10px;
}

.weather label{
    font-size:28px;
}

button{
    background:#0b3f66;
    color:white;
    border:none;
    padding:16px 24px;
    border-radius:14px;
    cursor:pointer;
}



.footer{
    padding:60px;
    text-align:center;
    color:#547596;
}

.gps-buttons{
    display:flex;
    gap:10px;
    margin-top:8px;
    flex-wrap:wrap;
}

.gps-btn{
    padding:6px 12px;

    background:#2d6f8d;
    color:white;

    border:none;
    border-radius:6px;

    cursor:pointer;

    font-size:0.85rem;
    font-weight:600;
}

.gps-btn:hover{
    background:#245970;
}

.admin-actions{
    margin-bottom:20px;
}

.new-entry-btn{
    display:inline-block;

    padding:12px 20px;

    background:#0b5c8a;
    color:#fff;

    text-decoration:none;
    font-weight:600;

    border-radius:8px;

    transition:0.2s;
}

.new-entry-btn:hover{
    background:#08496d;
}



@media(max-width:1000px){

    .layout{
        grid-template-columns:1fr;
    }

    .entry{
        grid-template-columns:1fr;
    }

    .entry-image{
        height:260px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .hero h1{
        font-size:48px;
    }
}

.accordion{
    background:white;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.accordion-header{
    padding:24px;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:20px;
    color:#0b3f66;
}

.accordion-content{
    display:none;
    padding:0 24px 24px 24px;
    border-top:1px solid #e4edf5;
}



.gallery-grid{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.gallery{
    width:49%;
    height:270px;
    object-fit:cover;
}

.upload-btn{ 
	margin-top:10px; 
} 

.image-upload-item{ 
	background:#f4f9fd; 
	padding:18px; 
	border-radius:14px; 
	margin-bottom:15px; 
} 

.preview-image{ 
	width:220px; 
	border-radius:12px; 
	margin-top:15px; 
	display:block; 
} 

.remove-image-btn{ 
	margin-top:10px; 
	background:#b92c2c; 
}

.admin-row{
    background:white;
    padding:14px 20px;
    border-radius:14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
    box-shadow:0 4px 14px rgba(0,0,0,0.05);
}

.admin-page .container{
    margin-top:20px;
    padding-top:20px;
}

.admin-page .logbook{
    margin-top:10px;
}

.lightbox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    justify-content:center;
    align-items:center;
    z-index:9999;
    cursor:pointer;
}

#lightbox-image{
    max-width:95%;
    max-height:95%;
    border-radius:12px;
    box-shadow:0 0 40px rgba(255,255,255,0.2);
}


.map-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    z-index:10000;
}

.map-modal-content{
    width:90%;
    height:90%;
    margin:2% auto;
    background:white;
    border-radius:16px;
    overflow:hidden;
    position:relative;
}

#largeMap{
    width:100%;
    height:100%;
}

.map-close{
    position:absolute;
    top:15px;
    right:20px;
    font-size:40px;
    cursor:pointer;
    z-index:10001;
    background:white;
    width:50px;
    height:50px;
    text-align:center;
    line-height:50px;
    border-radius:50%;
}

.entry-map{
    cursor:pointer;
}

#pickerMap{
    width:100%;
    height:calc(100vh - 100px);
}

.archive-menu{
    background:#fff;
    border-radius:16px;
    padding:20px;
    margin-bottom:25px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.year-title{
    cursor:pointer;
    font-weight:700;
    color:#0b3f66;
    padding:8px 0;
    user-select:none;
}

.arrow{
    display:inline-block;
    width:20px;
}

.year-months{
    display:none;
    padding-left:20px;
}

.archive-month{
    display:block;
    padding:4px 0;
    text-decoration:none;
}



@media (max-width: 768px){

    .gallery-grid{
        display:block;
    }

    .gallery{
        display:block;
        width:100%;
        max-width:100%;
        height:auto;
        margin:0 0 12px 0;
        border-radius:10px;
    }



.new-entry-btn{
    display:inline-block;
	width:200px;
    height: 60px;
    padding:12px 20px;

    background:#0b5c8a;
    color:#fff;

    text-decoration:none;
    font-size:22px;

    border-radius:8px;

    transition:0.2s;
}

.hero h1{
    font-size:30px;
    margin-top:-40px;
    font-family:'Cormorant Garamond', serif;
}

.logo{ 
	font-family:'Cormorant Garamond', serif; 
	font-size:32px; 
	color:#d6d6d6; 
	font-weight:600; 
	letter-spacing:1px; 
}
}


.public-limited{
    grid-template-columns:1fr;
}