/* =====================================================================
 * Dịch vụ (services directory) + "Sale phụ trách" box on stay / itinerary pages.
 * Loaded after stays.css (listing hero, filter, chips, price).
 * ================================================================== */

/* ---- Avatar --------------------------------------------------------- */

.nbt-avatar {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; overflow: hidden;
	background: var(--nbt-green-soft, #E6EEE9); color: var(--nbt-green, #1E4A3D);
	font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.3rem;
	box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--nbt-line, #E7E0D3);
}
.nbt-avatar--round { border-radius: 50%; }
.nbt-avatar--square { border-radius: 14px; }
.nbt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Card ----------------------------------------------------------- */

.nbt-service-grid > .col { display: flex; }
.nbt-service-card {
	display: flex; flex-direction: column; width: 100%; height: 100%;
	padding: 18px 18px 6px; box-sizing: border-box;
	background: #fff; border: 1px solid var(--nbt-line, #E7E0D3); border-radius: 16px;
	transition: box-shadow .2s ease, transform .2s ease;
}
.nbt-service-card:hover { box-shadow: 0 10px 26px rgba(30, 74, 61, .10); transform: translateY(-2px); }

.nbt-service-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.nbt-service-card__who { min-width: 0; }
.nbt-service-card__name {
	margin: 0 0 2px; font-size: 1.08rem; line-height: 1.3; color: var(--nbt-ink, #1B2420);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nbt-service-card__groups { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--nbt-red, #A8322D); font-size: .8rem; font-weight: 600; }
.nbt-service-card__groups .nbt-icon,
.nbt-svc-row__meta .nbt-icon { flex: none; }
.nbt-service-card__groups span,
.nbt-svc-row__meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Group tabs with icons; icon-only view switch. */
.nbt-svc-bar__groups a { display: inline-flex; align-items: center; gap: 7px; }
.nbt-svc-bar__groups a .nbt-icon { color: var(--nbt-red, #A8322D); }
.nbt-svc-bar__groups a.is-active .nbt-icon { color: #fff; }
.nbt-view-toggle--icons a { justify-content: center; width: 38px; padding: 0; }
.nbt-view-toggle--icons svg { width: 18px; height: 18px; }

.nbt-service-card__loc { margin: 0 0 8px; font-size: .86rem; color: var(--nbt-ink-muted, #55605B); }
.nbt-service-card__loc i { color: var(--nbt-green, #1E4A3D); }
.nbt-service-card__intro { margin: 0 0 10px; font-size: .92rem; line-height: 1.55; color: #3A4540; }

.nbt-service-card__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
.nbt-service-card__photos a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--nbt-paper, #F7F3EC); }
.nbt-service-card__photos a.is-hidden { display: none; }
.nbt-service-card__photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.nbt-service-card__photos a:hover img { transform: scale(1.06); }
.nbt-service-card__more {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(27, 36, 32, .55); color: #fff; font-weight: 700;
}

.nbt-service-card .nbt-chips { margin-bottom: 10px; }

.nbt-service-card__phone { display: block; margin-top: 2px; color: var(--nbt-ink-muted, #55605B); font-size: .84rem; }

.nbt-service-card__foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed #E2DCD0; }
.nbt-service-card__foot .nbt-price { margin: 0 0 2px; }
.nbt-service-card__foot .nbt-price strong { font-size: 1.02rem; }
.nbt-service-card__foot .nbt-contact-icons { margin: 8px 0 12px; }
.nbt-service-card__nocontact { margin: 8px 0 12px; font-size: .85rem; font-style: italic; color: var(--nbt-ink-muted, #55605B); }

/* Small round contact icons, no labels (grid cards + list rows).
 * Scoped with 3 classes: home.css (loaded later) sizes ".nbt-contact-icons .nbt-icon-btn svg". */
.nbt-service-card .nbt-contact-icons .nbt-contact-icons__row,
.nbt-svc-row .nbt-contact-icons .nbt-contact-icons__row { flex-wrap: nowrap; gap: 6px; }
.nbt-service-card .nbt-contact-icons .nbt-icon-btn,
.nbt-svc-row .nbt-contact-icons .nbt-icon-btn { min-width: 0; gap: 0; }
.nbt-service-card .nbt-contact-icons .nbt-icon-btn span,
.nbt-svc-row .nbt-contact-icons .nbt-icon-btn span {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.nbt-service-card .nbt-contact-icons .nbt-icon-btn svg,
.nbt-svc-row .nbt-contact-icons .nbt-icon-btn svg { width: 36px; height: 36px; padding: 9px; border-radius: 50%; }
.nbt-service-card .nbt-contact-icons .nbt-icon-btn--zalo svg,
.nbt-svc-row .nbt-contact-icons .nbt-icon-btn--zalo svg { padding: 4px; }

/* ---- Filter bar: group tabs left, compact selects right ---------------- */

.nbt-svc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.nbt-svc-bar .nbt-svc-bar__groups { flex: 1 1 auto; margin: 0; }
.nbt-svc-bar__form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.nbt-svc-select { position: relative; display: inline-flex; align-items: center; margin: 0; font-weight: normal; }
.nbt-svc-select svg {
	position: absolute; left: 11px; width: 16px; height: 16px; pointer-events: none;
	fill: none; stroke: var(--nbt-green, #1E4A3D); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.nbt-svc-select select {
	height: 38px; margin: 0; padding: 0 30px 0 34px; min-width: 0; width: auto; max-width: 220px;
	border: 1.5px solid #E2DCD0; border-radius: 999px; background-color: #fff; box-shadow: none;
	font-size: .88rem; color: var(--nbt-ink, #1B2420);
}
.nbt-svc-select select:focus { border-color: var(--nbt-green, #1E4A3D); box-shadow: 0 0 0 3px rgba(30, 74, 61, .12); outline: 0; }

.nbt-svc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.nbt-svc-head__count { margin: 0; font-size: 1.4rem; color: var(--nbt-ink, #1B2420); }
.nbt-svc-head__tools { display: flex; align-items: center; gap: 14px; }

/* ---- List view: 2 columns of compact rows ------------------------------ */

.nbt-svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.nbt-svc-row {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px;
	background: #fff; border: 1px solid var(--nbt-line, #E7E0D3); border-radius: 14px;
	transition: box-shadow .2s ease;
}
.nbt-svc-row:hover { box-shadow: 0 8px 22px rgba(30, 74, 61, .08); }
.nbt-svc-row .nbt-avatar { width: 56px; height: 56px; font-size: 1.1rem; box-shadow: none; }
.nbt-svc-row__body { flex: 1; min-width: 0; line-height: 1.35; }
.nbt-svc-row__name {
	margin: 0 0 3px; font-size: 1.18rem; font-weight: 700; line-height: 1.25; color: var(--nbt-ink, #1B2420);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.nbt-svc-row__phone { display: inline-flex; align-items: center; gap: 6px; color: #3A4540; font-size: .9rem; }
.nbt-svc-row__phone svg { width: 14px; height: 14px; fill: none; stroke: var(--nbt-green, #1E4A3D); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nbt-svc-row__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px;
	margin: 3px 0 0; color: var(--nbt-green, #1E4A3D); font-size: .8rem;
}
.nbt-svc-row__meta > span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.nbt-svc-row__area { color: var(--nbt-ink-muted, #55605B); }
.nbt-svc-row__area .nbt-icon { color: var(--nbt-red, #A8322D); }
.nbt-svc-row .nbt-contact-icons { flex: none; margin: 0; }
.nbt-svc-row__nocontact { flex: none; margin: 0; font-size: .8rem; font-style: italic; color: var(--nbt-ink-muted, #55605B); }

@media (max-width: 849px) {
	.nbt-svc-list { grid-template-columns: minmax(0, 1fr); }
	.nbt-svc-bar__form { width: 100%; }
	.nbt-svc-select { flex: 1 1 160px; }
	.nbt-svc-select select { width: 100%; max-width: none; }
}
@media (max-width: 549px) {
	.nbt-svc-row { gap: 10px; padding: 12px; }
	.nbt-svc-row .nbt-avatar { width: 46px; height: 46px; }
	.nbt-svc-row__name { font-size: 1.06rem; }
	.nbt-svc-row .nbt-contact-icons .nbt-contact-icons__row { gap: 4px; }
	.nbt-svc-row .nbt-contact-icons .nbt-icon-btn svg { width: 32px; height: 32px; padding: 8px; }
	.nbt-svc-row .nbt-contact-icons .nbt-icon-btn--zalo svg { padding: 3px; }
	.nbt-svc-head__count { font-size: 1.15rem; }
	.nbt-view-toggle span { display: none; }
}

/* ---- "Sale phụ trách" box (stay aside, itinerary aside, offline box) ---- */

.nbt-sales { margin: 16px 0; text-align: left; }
.nbt-sales__label { margin: 0 0 10px; font-size: .88rem; font-weight: 600; color: #46524D; text-align: center; }
.nbt-sales__list { list-style: none; margin: 0; padding: 0; }
.nbt-sale {
	display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 9px 10px;
	background: #fff; border: 1px solid var(--nbt-line, #E7E0D3); border-radius: 14px;
}
.nbt-sales .nbt-sale .nbt-avatar { width: 40px; height: 40px; font-size: .9rem; box-shadow: none; }
.nbt-sale__body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.nbt-sale__name {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	color: var(--nbt-ink, #1B2420); font-size: .92rem; overflow-wrap: anywhere;
}
.nbt-sale__phone { margin-top: 2px; color: var(--nbt-ink-muted, #55605B); font-size: .8rem; white-space: nowrap; }
.nbt-sales .nbt-sale .nbt-contact-icons { margin: 0; flex: none; }
.nbt-sales .nbt-sale .nbt-contact-icons__row { gap: 5px; flex-wrap: nowrap; }
.nbt-sales .nbt-sale .nbt-icon-btn { min-width: 0; gap: 0; }
.nbt-sales .nbt-sale .nbt-icon-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nbt-sales .nbt-sale .nbt-icon-btn svg { width: 28px; height: 28px; padding: 6px; border-radius: 8px; }
.nbt-sales .nbt-sale .nbt-icon-btn--zalo svg { padding: 3px; }
.nbt-sales .nbt-sale .nbt-icon-btn:hover svg { box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.nbt-offline .nbt-sales { margin: 14px 0 10px; }
.nbt-trip-contact .nbt-sales { margin: 4px 0 0; }

@media (prefers-reduced-motion: reduce) {
	.nbt-service-card, .nbt-service-card__photos img, .nbt-svc-row { transition: none; }
	.nbt-service-card:hover { transform: none; }
	.nbt-service-card__photos a:hover img { transform: none; }
}
