@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-family: 'Montserrat', sans-serif;
    background: #f5f5f5;
    height: 100vh;
}
body {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.search-div {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    width: 300px;
}
.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
}
.search-bar i {
    color: #6c757d;
    margin-right: 0.5rem;
}
.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    width: 100%;
    color: #333;
}
.search-bar input::placeholder {
    color: #6c757d;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-icons i {
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color .2s;
}
.header-icons i:hover {
    background: #f8f9fa;
}

nav {
    width: 280px;
    height: 100vh;
    background: #2c3e50;
    padding: 2rem 0;
    margin-top: 70px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
}
.button-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}
.button-container a {
    text-decoration: none;
    color: #bdc3c7;
    transition: all .3s ease;
}
.button-container a.active button {
    background: #3498db;
    color: #fff;
}
.button-container button {
    width: 100%;
    background: none;
    border: none;
    color: #bdc3c7;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.button-container button:hover {
    background: #34495e;
    color: #fff;
}
.button-container button i {
    width: 20px;
    text-align: center;
}

main {
    margin-left: 280px;
    margin-top: 70px;
    padding: 2rem;
    width: calc(100% - 280px);
    height: calc(100vh - 70px);
    overflow-y: auto;
    background: #f5f5f5;
}

.page-header h1 {
    font-size: 2rem;
    color: #2c3e50;
}

.page-header p {
    color: #7f8c8d;
}

.timeline-places {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.timeline-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.timeline-image {
    width: 100%;
    height: 360px;
    background-color: #f1f3f5;
}

.placeholder {
    background: repeating-linear-gradient(45deg, #f8f9fa, #f8f9fa 10px, #f1f3f5 10px, #f1f3f5 20px);
    border-bottom: 1px dashed #ced4da;
}

.timeline-caption {
    padding: 16px;
}

.timeline-caption h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 6px;
}

.timeline-caption p {
    color: #6c757d;
    font-size: 0.95rem;
}

@media (min-width: 1024px) {
    .timeline-places {
        grid-template-columns: 1fr;
    }
    .timeline-image {
        height: 420px;
    }
}

@media (max-width: 768px) {
    nav {
        width: 100%;
        height: auto;
        position: relative;
        margin-top: 0;
    }
    main {
        margin-left: 0;
        margin-top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
    }
}


