/* /search-places.css */

:root {
    --are-dark-blue: #1a3748;
}

.sp-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 15px 60px;
}

.sp-heading {
    font-size: 1.6rem;
    margin: 0 0 20px;
}

/* ---- form ---- */
.sp-form {
    display: flex;
    gap: 8px;
    margin: 0 0 30px;
}

.sp-input {
    flex: 1 1 auto;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.sp-submit {
    padding: 10px 20px;
    background: var(--are-dark-blue);
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

/* ---- list ---- */
.sp-list,
.sp-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
}

.sp-sublist {
    margin: 10px 0 0 40px;
}

.sp-subitem {
    padding: 6px 0;
}

.sp-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.sp-link:hover .sp-name {
    text-decoration: underline;
}

/* ---- 150px thumb ---- */
.sp-thumb {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.sp-thumb-empty {
    background: var(--are-dark-blue);
}

.sp-subitem .sp-thumb {
    width: 75px;
    height: 75px;
    flex: 0 0 75px;
}

/* ---- text ---- */
.sp-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sp-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.sp-subitem .sp-name {
    font-size: 0.95rem;
    font-weight: 400;
}

.sp-parent {
    font-size: 0.85rem;
    color: #777;
}

.sp-empty {
    color: #777;
}

@media (max-width: 600px) {
    .sp-thumb {
        width: 90px;
        height: 90px;
        flex: 0 0 90px;
    }
    .sp-sublist {
        margin-left: 20px;
    }
}