.qtc-wrap {
    margin: 0 20px;
}

.qtc-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
}

#qtc-map {
    width: 100%;
    height: 520px;
    background: #f2f2f2;
    border: 1px solid #ddd;
}

.qtc-search-form {
    margin-top: 20px;
}

.qtc-search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qtc-search-row input,
.qtc-search-row button {
    padding: 12px 14px;
    font-size: 16px;
}

.qtc-search-row input[type="text"] {
    flex: 1 1 320px;
}

.qtc-search-row button {
    cursor: pointer;
}
#qtc-terms{
	appearance: auto;
	width:20px;
}

.qtc-terms-row {
    margin-top: 12px;
}

.qtc-terms-row label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.qtc-result-card {
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
    cursor: pointer;
}

.qtc-result-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qtc-result-title-wrap {
    flex: 1;
}

.qtc-serial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex: 0 0 32px;
}

.qtc-result-card h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.qtc-result-card p {
    margin: 4px 0;
}

.qtc-result-card a {
    text-decoration: none;
}

.qtc-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.qtc-page-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.qtc-page-btn.is-active {
    font-weight: 700;
    border-color: #1d4ed8;
}

.qtc-page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.qtc-empty,
.qtc-error {
    padding: 14px;
    background: #fafafa;
    border: 1px solid #ddd;
}

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

    #qtc-map {
        height: 380px;
    }
}
.qtc-directions-link {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
}
.qtc-search-summary {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}