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

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

#qtc-map {
    width: 100%;
    height: 520px;
    background-color: var(--qtc-map-bg, #f2f2f2);
    border: 1px solid var(--qtc-map-border, #ddd);
}

#qtc-error {
	display: none;
	color: #D90000;
	font-size: 14px;
	font-weight: 700;
	margin-top: 15px;
}

.qtc-map-caption {
    margin-top: 10px;
    line-height: 1.2;
}

.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;
    font-size: 16px;
}

.qtc-search-row input[type="text"] {
    color: var(--qtc-search-text, #000);
    flex: 1 1 320px;
    border: 1px solid var(--qtc-search-inputborder, #ddd);
    outline: none;
    border-radius: 4px;
}

.qtc-search-row button {
    cursor: pointer;
    color: var(--qtc-btn-color, #fff);
	min-width: var(--qtc-btn-width, auto);
    background: var(--qtc-btn-bg, #1d4ed8);
	padding: var(--qtc-btn-padding, 12px 24px);
    border-radius: var(--qtc-btn-radius, 12px);
    font-weight: var(--qtc-btn-fw, 700);
}

#qtc-terms {
    appearance: auto;
    width: 15px;
    height: 15px;
}

.qtc-terms-text a {
    text-decoration: underline;
}

.qtc-terms-row {
    margin: 18px 0;
}

.qtc-terms-row label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.2;
    font-size: 14px;
    color: var(--qtc-terms-label, #000);
    font-weight: 700;
}

#qtc-results {
	height: 100%;
    display: flex;
    flex-direction: column;
}

.qtc-result-card {
/*     display: inline-flex;
    flex-direction: column;
    gap: 8px; */
    border-bottom: 1px solid var(--qtc-card-seperator, #e5e5e5);
    padding: 16px 0;
    cursor: pointer;
}

.qtc-result-card:first-child {
    padding-top: 0;
}

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

.qtc-result-details {
	display: flex;
    flex-direction: column;
    gap: 8px;
}

.qtc-result-footer {
	display: flex;
	gap: 8px;
	align-items: center;
}

/* .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-color: var(--qtc-number-bg, #1d4ed8);
    color: var(--qtc-number-text, #fff);
    font-weight: 700;
    font-size: 14px;
    flex: 0 0 32px;
}

.qtc-result-card .qtc-result-title {
    color: var(--qtc-title, #000);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.qtc-result-card h4 {
    color: var(--qtc-title, #000);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    /* 	color: red;
    margin: 0 0 6px;
    font-size: 18px; */
}

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

.qtc-clinic-link {
    color: var(--qtc-link-text, #1c4cd3);
    text-decoration: underline;
}

.qtc-directions-link {
    color: var(--qtc-directions-text, #1c4cd3);
}

.qtc-clinic-link,
.qtc-directions-link {
    font-size: 14px;
    line-height: 1.2;
}

.qtc-result-card .info-text {
    color: var(--qtc-info-text, #888);
    font-size: 14px;
    line-height: 1.2;
}

.qtc-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
	
	justify-content: var(--qtc-pagination-position, left);
    margin-top: auto;
    padding-top: 15px;
}

.qtc-page-btn {
    padding: var(--qtc-page-btn-padding, 6px 12px);
    border: 1px solid var(--qtc-page-btn-border, #000);
	color: var(--qtc-page-btn-color, #000);
    background: var(--qtc-page-btn-bg, #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 {
    display: none;
    color: var(--qtc-summary-text, #666);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.qtc-search-summary.show {
    display: block;
}

/* QTC Popup */
.qtc-terms-modal {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	flex-direction: column;
	justify-content: center;
	background: #414042c8;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 10;
	display: none;
}

.qtc-terms-modal.show {
    display: flex;
}

/* Remove empty Google Maps InfoWindow header space */
.gm-style .gm-style-iw-chr {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    width: auto !important;
    height: auto !important;
    z-index: 10;
}

/* Hide the empty header-title container */
.gm-style .gm-style-iw-ch {
    display: none !important;
}

/* Control popup spacing */
.gm-style .gm-style-iw-c {
    padding: 14px 42px 14px 14px !important;
    border-radius: 10px !important;
}

/* Remove Google’s additional content spacing */
.gm-style .gm-style-iw-d {
    max-height: none !important;
    overflow: hidden !important;
}

/* Adjust close button */
.gm-style button.gm-ui-hover-effect {
    top: 2px !important;
    right: 2px !important;
    width: 32px !important;
    height: 32px !important;
}

.qtc-map-popup {
    min-width: 220px;
    max-width: 360px;
    color: #2c2c2c;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
}

.qtc-map-popup-title {
    display: block;
    margin: 0 0 3px;
    padding: 0;
    font-size: 15px;
    line-height: 1.3;
}

.qtc-map-popup-clinic {
    margin-bottom: 3px;
}

.qtc-map-popup-address {
    color: #555;
}

.gm-ui-hover-effect>span{
	margin:5px !important;
}