/* Al Taqwa Agents — card design from the approved "Find an Agent" mock-up. Change the colours here. */
.aq-directory {
	--aq-green: #116530;
	--aq-green-dark: #0a4420;
	--aq-ink: #172019;
	--aq-muted: #657068;
	--aq-line: #dfe7df;
	--aq-chip: #eef5ef;
	font-family: inherit;
	color: var(--aq-ink);
	line-height: 1.55;
}
.aq-directory *, .aq-directory *::before, .aq-directory *::after { box-sizing: border-box; }

/* Search bar */
.aq-search {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
	background: #fff; border: 1px solid var(--aq-line); border-radius: 20px;
	padding: 18px; margin: 0 0 26px; box-shadow: 0 12px 35px rgba(10, 68, 32, .12);
}
.aq-input {
	height: 52px; padding: 0 16px; margin: 0; font: inherit; font-size: 1rem; color: var(--aq-ink);
	background: #fff; border: 1px solid var(--aq-line); border-radius: 13px; outline: none;
}
.aq-input:focus { border-color: var(--aq-green); box-shadow: 0 0 0 3px rgba(17, 101, 48, .12); }
.aq-input-q { flex: 1 1 280px; min-width: 0; }
.aq-select { flex: 0 1 220px; max-width: 100%; }
.aq-clear { color: var(--aq-muted); text-decoration: underline; font-size: .9rem; }
.aq-count { margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--aq-green-dark); }

/* Buttons */
.aq-btn {
	display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; min-height: 40px;
	border-radius: 10px; border: 1px solid var(--aq-green); background: #fff; color: var(--aq-green-dark);
	font: inherit; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer; transition: filter .2s;
}
.aq-btn:hover { filter: brightness(.96); color: var(--aq-green-dark); }
.aq-btn.aq-primary { background: var(--aq-green); color: #fff; }
.aq-btn.aq-primary:hover { color: #fff; }
.aq-search .aq-btn { height: 52px; padding: 0 24px; }

/* Grid */
.aq-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aq-grid.aq-cols-1 { grid-template-columns: 1fr; }
.aq-grid.aq-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .aq-grid.aq-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .aq-grid, .aq-grid.aq-cols-3 { grid-template-columns: 1fr; } }

/* Card */
.aq-card {
	display: grid; grid-template-columns: 150px 1fr; background: #fff; border: 1px solid var(--aq-line);
	border-radius: 20px; overflow: hidden; box-shadow: 0 8px 25px rgba(26, 45, 31, .06); transition: .2s;
}
.aq-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(26, 45, 31, .11); }
.aq-logo { display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; border-right: 1px solid var(--aq-line); background: #fff; }
.aq-logo img { width: 120px; height: 120px; object-fit: contain; display: block; }
.aq-initial { width: 96px; height: 96px; border-radius: 50%; background: var(--aq-chip); color: var(--aq-green); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; }
.aq-body { padding: 24px; min-width: 0; }
.aq-name { font-size: 1.25rem; line-height: 1.25; margin: 0 0 12px; color: var(--aq-green-dark); }
.aq-agent { margin: 0 0 14px; }
.aq-sec { margin-top: 16px; }
.aq-sec h3 { font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; color: var(--aq-muted); }
.aq-address { margin: 0; }
.aq-chips, .aq-phones { display: flex; flex-wrap: wrap; gap: 7px; }
.aq-chip { background: var(--aq-chip); border: 1px solid #d7e6d9; border-radius: 999px; padding: 5px 9px; font-size: .86rem; }
.aq-phones { gap: 4px 14px; }
.aq-phones a { color: var(--aq-green-dark); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.aq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Empty + pagination */
.aq-empty { text-align: center; padding: 55px 20px; background: #fff; border: 1px solid var(--aq-line); border-radius: 18px; }
.aq-empty h2 { margin: 0 0 6px; }
.aq-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.aq-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--aq-line); border-radius: 10px; color: var(--aq-green-dark); text-decoration: none; background: #fff; }
.aq-pagination .page-numbers.current, .aq-pagination a.page-numbers:hover { background: var(--aq-green); border-color: var(--aq-green); color: #fff; }

@media (max-width: 560px) {
	.aq-search { display: block; }
	.aq-search > * { width: 100%; margin-bottom: 10px; }
	.aq-count { display: block; margin: 0; }
	.aq-card { grid-template-columns: 1fr; }
	.aq-logo { border-right: 0; border-bottom: 1px solid var(--aq-line); padding: 18px; }
	.aq-logo img { height: 105px; }
	.aq-body { padding: 20px; }
}
