* {
    box-sizing: border-box;
}

:root {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #17202a;
    background: #f5f7f8;
}

body {
    margin: 0;
}

.site-header {
    padding: 48px 22px 30px;
    background: #ffffff;
    border-bottom: 1px solid #e7ebee;
}

.site-header > div {
    max-width: 1180px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #68737d;
}

h1 {
    margin: 5px 0 8px;
    font-size: clamp(34px, 6vw, 58px);
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.site-header p {
    margin: 0;
    max-width: 720px;
    color: #59636d;
    font-size: 17px;
}

.layout {
    width: min(1180px, calc(100% - 30px));
    margin: 24px auto 60px;
}

.controls-card,
.map-card {
    background: #fff;
    border: 1px solid #e0e5e8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(20, 30, 40, 0.05);
}

.controls-card {
    padding: 18px;
    margin-bottom: 18px;
}

.controls {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 12px;
    align-items: end;
}

label {
    font-size: 13px;
    font-weight: 700;
}

select,
button {
    width: 100%;
    margin-top: 6px;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 11px;
    border: 1px solid #ccd4d9;
    font: inherit;
    background: #fff;
}

button {
    width: auto;
    border: 0;
    padding-inline: 20px;
    background: #15212b;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

button:disabled {
    opacity: .6;
    cursor: wait;
}

.privacy-note,
.status {
    margin-top: 12px;
    font-size: 13px;
}

.privacy-note {
    color: #56636d;
}

.status {
    font-weight: 700;
}

#map {
    height: min(58vh, 560px);
    min-height: 390px;
}

.results-section {
    margin-top: 28px;
}

.results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.results-header h2 {
    margin: 0 0 14px;
    font-size: 25px;
}

#resultCount {
    color: #69747d;
    font-size: 14px;
}

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

.place-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e5e8;
    border-radius: 16px;
}

.place-card img,
.image-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e8ecef;
}

.image-placeholder {
    display: grid;
    place-items: center;
    color: #7a858e;
}

.place-body {
    padding: 15px;
}

.place-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.category {
    color: #68747d;
    font-weight: 700;
}

.place-card h3 {
    margin: 9px 0 2px;
    font-size: 19px;
}

.location,
.description {
    color: #626e77;
}

.location {
    margin: 0 0 10px;
    font-size: 13px;
}

.description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.actions a {
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 36px;
    border-radius: 16px;
    background: #fff;
    border: 1px dashed #cbd3d8;
    color: #64707a;
    text-align: center;
}

@media (max-width: 860px) {
    .controls {
        grid-template-columns: 1fr 1fr;
    }

    .controls button {
        grid-column: 1 / -1;
    }

    .places-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .site-header {
        padding-top: 34px;
    }

    .layout {
        width: min(100% - 20px, 1180px);
        margin-top: 12px;
    }

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

    .controls button {
        grid-column: auto;
        width: 100%;
    }

    #map {
        min-height: 360px;
        height: 52vh;
    }

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