/* ============================================================
   Retail Tenants — Modern UI
   - Filter pills (category) + chips (floor)
   - Card grid layout
   - Detail modal popup
   ============================================================ */

:root {
	--rt-primary: #395A7F;
	--rt-primary-hover: #6e9fc1;
	--rt-bg: #f5f7fa;
	--rt-card-bg: #ffffff;
	--rt-border: #e5e9ef;
	--rt-text: #2a3f5a;
	--rt-text-muted: #6b7c91;
	--rt-shadow: 0 4px 16px rgba(57, 90, 127, 0.08);
	--rt-shadow-hover: 0 12px 32px rgba(57, 90, 127, 0.18);
	--rt-radius: 12px;
}

.retail-tenant-page {
	margin: 0 16% 50px;
	padding: 0;
}

/* ============== Hero banner ============== */

.rt-hero {
	position: relative;
	width: 100%;
	min-height: 560px;
	background-color: #1a2a3f;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 40px;
}

.rt-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(20, 32, 50, 0.35) 0%,
		rgba(20, 32, 50, 0.55) 60%,
		rgba(20, 32, 50, 0.7) 100%
	);
	z-index: 1;
}

.rt-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 240px 24px 60px;
	max-width: 900px;
	animation: rtHeroFade 0.8s ease-out;
}

@keyframes rtHeroFade {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.rt-hero__eyebrow {
	display: inline-block;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 4px;
	text-transform: uppercase;
	padding: 6px 18px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	margin-bottom: 24px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.08);
}

.rt-hero__title {
	font-size: 4.2rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
	letter-spacing: -1.5px;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
	line-height: 1.05;
}

.rt-hero__subtitle {
	font-size: 1.15rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 auto 28px;
	letter-spacing: 0.2px;
	max-width: 700px;
	line-height: 1.5;
}

/* Stats row */
.rt-hero__stats {
	display: inline-flex;
	align-items: center;
	gap: 28px;
	padding: 18px 36px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	margin-top: 8px;
}

.rt-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 70px;
}

.rt-hero__stat-num {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	letter-spacing: -1px;
}

.rt-hero__stat-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.rt-hero__stat-divider {
	width: 1px;
	height: 36px;
	background: rgba(255, 255, 255, 0.25);
}

/* Ẩn h1 cũ trong section vì banner đã có title */
.retail-tenant-page > h1 {
	display: none;
}

/* ============== Filter bar ============== */

.retail-tenant-page .rt-filter {
	margin: 32px 0 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

.retail-tenant-page .rt-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
}

.retail-tenant-page .rt-filter-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--rt-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-right: 8px;
}

.retail-tenant-page .rt-pill {
	display: inline-block;
	padding: 8px 18px;
	background: var(--rt-card-bg);
	border: 1.5px solid var(--rt-border);
	border-radius: 999px;
	color: var(--rt-text);
	font-size: 0.92rem;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.retail-tenant-page .rt-pill:hover {
	border-color: var(--rt-primary-hover);
	color: var(--rt-primary-hover);
}

.retail-tenant-page .rt-pill.is-active {
	background: var(--rt-primary);
	border-color: var(--rt-primary);
	color: #fff;
	box-shadow: 0 4px 12px rgba(57, 90, 127, 0.25);
}

.retail-tenant-page .rt-pill-small {
	padding: 6px 14px;
	font-size: 0.85rem;
}

/* ============== Count + divider ============== */

.retail-tenant-page .count {
	margin: 0;
	text-align: right;
	color: var(--rt-text-muted);
	font-size: 0.9rem;
	font-weight: 500;
	padding-top: 16px;
}

.retail-tenant-page .count span {
	color: var(--rt-primary);
	font-weight: 700;
	font-size: 1.05rem;
}

.retail-tenant-page .horizon-line {
	height: 1px;
	background: var(--rt-border);
	margin: 12px 0 32px;
}

/* ============== Category sections ============== */

.retail-tenant-page .category-container {
	margin: 0;
}

.retail-tenant-page .floor-tenant {
	margin-bottom: 56px;
}

.retail-tenant-page .floor-tenant .title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--rt-primary);
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--rt-primary);
	display: inline-block;
}

/* ============== Card grid ============== */

.retail-tenant-page .all-logo-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
}

.retail-tenant-page .logo-container {
	background: var(--rt-card-bg);
	border-radius: 14px;
	padding: 0;
	text-align: left;
	border: 1px solid var(--rt-border);
	box-shadow: 0 2px 6px rgba(57, 90, 127, 0.04);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.35s ease,
		border-color 0.35s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.retail-tenant-page .logo-container:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(57, 90, 127, 0.15);
	border-color: transparent;
}

/* Vùng logo: nền nhạt, separate khỏi vùng info */
.retail-tenant-page .logo-container img {
	width: 100%;
	max-width: none;
	height: 180px;
	object-fit: contain;
	padding: 32px 28px;
	background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
	margin: 0;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	border-bottom: 1px solid var(--rt-border);
}

.retail-tenant-page .logo-container:hover img {
	transform: scale(1.06);
}

/* Vùng info dưới */
.retail-tenant-page .logo-container .tenant-name {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--rt-text);
	margin: 0;
	padding: 18px 18px 0;
	line-height: 1.35;
	min-height: auto;
	display: block;
	text-align: left;
	letter-spacing: -0.2px;
	flex: 1;
}

.retail-tenant-page .logo-container .tenant-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px 16px;
	margin: 0;
	width: 100%;
	font-size: 0.82rem;
	color: var(--rt-text-muted);
}

.retail-tenant-page .logo-container .tenant-info .floor {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px;
	background: rgba(57, 90, 127, 0.08);
	border-radius: 999px;
	color: var(--rt-primary);
	font-weight: 600;
	font-size: 0.78rem;
	transition: background 0.25s ease, color 0.25s ease;
}

.retail-tenant-page .logo-container .tenant-info .floor::before {
	content: '\f3c5';
	font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free', 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 0.7rem;
}

.retail-tenant-page .logo-container:hover .tenant-info .floor {
	background: var(--rt-primary);
	color: #fff;
}

/* Mũi tên "→" góc phải, fade-in khi hover */
.retail-tenant-page .logo-container .tenant-info::after {
	content: '\f061';
	font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free', 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
	font-weight: 900;
	color: var(--rt-primary);
	font-size: 0.85rem;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.retail-tenant-page .logo-container:hover .tenant-info::after {
	opacity: 1;
	transform: translateX(0);
}

.retail-tenant-page .logo-container .tenant-info .floor span,
.retail-tenant-page .logo-container .tenant-info .contact {
	display: none; /* Ẩn ở card, đầy đủ ở modal */
}

/* ============== Modal popup ============== */

.rt-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 32, 48, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 20px;
}

.rt-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.rt-modal__panel {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 540px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
	transform: translateY(20px) scale(0.97);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
}

.rt-modal.is-open .rt-modal__panel {
	transform: translateY(0) scale(1);
}

.rt-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.05);
	color: var(--rt-text);
	font-size: 1.1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
	z-index: 2;
}

.rt-modal__close:hover {
	background: rgba(0, 0, 0, 0.12);
	transform: rotate(90deg);
}

.rt-modal__logo-wrap {
	height: 220px;
	background: linear-gradient(135deg, #f5f7fa 0%, #e9eef5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.rt-modal__logo-wrap img {
	max-width: 80%;
	max-height: 160px;
	object-fit: contain;
}

.rt-modal__body {
	padding: 28px 32px 32px;
}

.rt-modal__name {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--rt-text);
	margin: 0 0 6px;
	line-height: 1.25;
}

.rt-modal__cat {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--rt-primary);
	background: rgba(57, 90, 127, 0.1);
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 20px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.rt-modal__info {
	display: flex;
	flex-direction: column;
	gap: 14px;
	border-top: 1px solid var(--rt-border);
	padding-top: 20px;
}

.rt-modal__info-row {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 0.95rem;
	color: var(--rt-text);
}

.rt-modal__info-row i {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(57, 90, 127, 0.08);
	color: var(--rt-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	flex-shrink: 0;
}

.rt-modal__info-row .label {
	color: var(--rt-text-muted);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 600;
	display: block;
}

.rt-modal__info-row .value {
	font-weight: 600;
	color: var(--rt-text);
}

.rt-modal__info-row a.value {
	color: var(--rt-primary);
	text-decoration: none;
}

.rt-modal__info-row a.value:hover {
	color: var(--rt-primary-hover);
	text-decoration: underline;
}

/* Lock body scroll khi modal mở */
body.rt-modal-open {
	overflow: hidden;
}

/* ============== Responsive ============== */

@media (max-width: 992px) {
	.retail-tenant-page {
		margin: 0 8% 50px;
	}
	.rt-hero {
		min-height: 480px;
	}
	.rt-hero__content {
		padding: 200px 24px 50px;
	}
	.rt-hero__title {
		font-size: 3rem;
	}
	.rt-hero__subtitle {
		font-size: 1rem;
	}
	.rt-hero__stats {
		gap: 18px;
		padding: 14px 24px;
	}
	.rt-hero__stat-num {
		font-size: 1.6rem;
	}
	.retail-tenant-page .all-logo-container {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
		gap: 18px;
	}
	.retail-tenant-page .logo-container img {
		height: 150px;
		padding: 24px 22px;
	}
}

@media (max-width: 600px) {
	.retail-tenant-page {
		margin: 0 16px 40px;
	}
	.rt-hero {
		min-height: 400px;
	}
	.rt-hero__content {
		padding: 160px 18px 36px;
	}
	.rt-hero__eyebrow {
		font-size: 0.72rem;
		letter-spacing: 2.5px;
		padding: 5px 14px;
		margin-bottom: 16px;
	}
	.rt-hero__title {
		font-size: 2rem;
		letter-spacing: -0.5px;
	}
	.rt-hero__subtitle {
		font-size: 0.92rem;
	}
	.rt-hero__stats {
		gap: 12px;
		padding: 12px 18px;
		margin-top: 12px;
	}
	.rt-hero__stat {
		min-width: 56px;
	}
	.rt-hero__stat-num {
		font-size: 1.3rem;
	}
	.rt-hero__stat-label {
		font-size: 0.65rem;
		letter-spacing: 1px;
	}
	.rt-hero__stat-divider {
		height: 28px;
	}
	.retail-tenant-page .all-logo-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.retail-tenant-page .logo-container img {
		height: 110px;
		padding: 16px 12px;
	}
	.retail-tenant-page .logo-container .tenant-name {
		padding: 12px 12px 0;
		font-size: 0.92rem;
	}
	.retail-tenant-page .logo-container .tenant-info {
		padding: 10px 12px 12px;
	}
	.rt-modal__panel {
		max-width: 100%;
	}
	.rt-modal__logo-wrap {
		height: 180px;
	}
	.rt-modal__body {
		padding: 22px 22px 26px;
	}
	.rt-modal__name {
		font-size: 1.3rem;
	}
}

/* Ẩn các filter cũ (select dropdowns) khi UI mới được apply */
.retail-tenant-page #filter.filter-container {
	display: none;
}
