/* Local Guide - A Free Design by Bryant Smith (bryantsmith.com)
   A one-file guidebook: a title card, a row of category pills, then a
   responsive grid of place cards. Every colour and space is set below,
   under clear section headings, so you can find what you want to change. */


/* ---- BODY: the warm backdrop the page rests on ---- */

body {
    background: #e9e2d5;
    color: #40503f;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    padding: 40px 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: #2f6d4f;
}

a:focus-visible {
    border-radius: 4px;
    outline: 3px solid #c9884a;
    outline-offset: 2px;
}


/* ---- PAGE: the pale sheet that holds everything ---- */

#page {
    background: #fbf8f1;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(45, 38, 25, 0.05), 0 18px 44px rgba(45, 38, 25, 0.10);
    margin: 0 auto;
    max-width: 960px;
    padding: 28px 32px 30px 32px;
}


/* ---- MASTHEAD: the deep green title card ---- */

#masthead {
    background: linear-gradient(150deg, #33744f 0%, #214c37 100%);
    border-radius: 12px;
    color: #f2efe3;
    overflow: hidden;
    padding: 44px 40px 40px 40px;
    position: relative;
}

/* two soft circles for a little depth, drawn with no images */
#masthead::before,
#masthead::after {
    border-radius: 50%;
    content: "";
    position: absolute;
}

#masthead::before {
    background: rgba(255, 255, 255, 0.06);
    height: 220px;
    right: -70px;
    top: -80px;
    width: 220px;
}

#masthead::after {
    background: rgba(201, 136, 74, 0.22);
    bottom: -90px;
    height: 180px;
    right: 90px;
    width: 180px;
}

.eyebrow {
    color: #e0b184;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 14px;
    position: relative;
    text-transform: uppercase;
    z-index: 1;
}

#masthead h1 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 52px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.tagline {
    color: #c8d7cb;
    font-size: 15px;
    line-height: 1.6;
    max-width: 44ch;
    position: relative;
    z-index: 1;
}


/* ---- CATEGORIES: the row of filter pills ---- */

#categories {
    border-bottom: 1px solid #e7dfd0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    padding: 26px 0;
}

#categories a,
#categories a:visited {
    border: 1px solid #ded5c2;
    border-radius: 999px;
    color: #4c5a4b;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 7px 15px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#categories a:hover {
    background: #f2ecdd;
    border-color: #c9bfa8;
    color: #214c37;
}

#categories .active,
#categories .active:visited {
    background: #2f6d4f;
    border-color: #2f6d4f;
    color: #f4f1e6;
}

#categories span {
    color: #a89c85;
    font-size: 11px;
}

#categories .active span {
    color: #bcd4c2;
}


/* ---- INTRO: the short welcome before the grid ---- */

#intro {
    margin-bottom: 40px;
    max-width: 68ch;
}

#intro p {
    margin-bottom: 14px;
}

.lead {
    color: #33463a;
    font-size: 18px;
    line-height: 1.7;
}


/* ---- SECTION TITLE: words with a rule running to the edge ---- */

.section-title {
    align-items: center;
    color: #24352a;
    display: flex;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 22px;
    font-weight: normal;
    gap: 14px;
    margin-bottom: 22px;
}

.section-title::after {
    background: #e3dbc9;
    content: "";
    flex: 1;
    height: 1px;
}


/* ---- GRID: three columns of cards that reflow as the screen narrows ---- */

.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}


/* ---- PLACE CARD ---- */

.place {
    background: #ffffff;
    border: 1px solid #e9e1d2;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(45, 38, 25, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.place:hover {
    box-shadow: 0 12px 26px rgba(45, 38, 25, 0.13);
    transform: translateY(-3px);
}

.place-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px 20px;
}

.category {
    color: #9c4a25;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.name {
    color: #1f2d24;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.25;
    margin-bottom: 8px;
}

.desc {
    color: #5c6b5f;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.meta {
    border-top: 1px solid #efe8da;
    color: #8b968a;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: auto;
    padding-top: 12px;
}


/* ---- THUMBNAILS: coloured gradients standing in for photos ----
   To use a real photo, swap the gradient for:
       background: url("your-photo.jpg") center / cover no-repeat; */

.thumb {
    aspect-ratio: 16 / 10;
    background-position: center;
    background-size: cover;
}

.thumb-coffee {
    background-image: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 62%), linear-gradient(135deg, #c39a6d, #7b5435);
}

.thumb-food {
    background-image: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 62%), linear-gradient(135deg, #c9825a, #8b4a2e);
}

.thumb-green {
    background-image: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 62%), linear-gradient(135deg, #7fa06a, #3d6a45);
}

.thumb-shops {
    background-image: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 62%), linear-gradient(135deg, #b9a05f, #7c6332);
}

.thumb-walks {
    background-image: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 62%), linear-gradient(135deg, #86a39a, #46655d);
}


/* ---- NOTE: the "how to use this template" box ---- */

#note {
    background: #f2ecdf;
    border: 1px solid #e7dfd0;
    border-radius: 12px;
    margin-top: 44px;
    padding: 26px 30px;
}

#note h2 {
    color: #24352a;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 12px;
}

#note p {
    color: #55654f;
    margin-bottom: 12px;
}

#note p:last-child {
    margin-bottom: 0;
}

#note code {
    background: #ffffff;
    border: 1px solid #e2d9c7;
    border-radius: 4px;
    color: #8b4a2e;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    padding: 1px 5px;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    border-top: 1px solid #e7dfd0;
    color: #9aa094;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 44px;
    padding-top: 22px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #7f887a;
    text-decoration: none;
}

#footer a:hover {
    color: #2f6d4f;
}


/* ---- MEDIUM SCREENS: two columns once things get cosy ---- */

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---- SMALL SCREENS: one column, tighter spacing ---- */

@media (max-width: 640px) {
    body {
        padding: 16px 10px;
    }

    #page {
        border-radius: 12px;
        padding: 16px 16px 22px 16px;
    }

    #masthead {
        padding: 32px 24px 30px 24px;
    }

    #masthead h1 {
        font-size: 36px;
    }

    #categories {
        padding: 20px 0;
    }

    .grid {
        gap: 18px;
        grid-template-columns: 1fr;
    }

    #note {
        padding: 22px 20px;
    }
}


/* ---- PRINT: drop the background and shadows for clean paper ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #page {
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }

    #categories,
    #masthead::before,
    #masthead::after {
        display: none;
    }

    .place:hover {
        transform: none;
    }
}
