/* Nattoint Hotel Directory — frontend styles */

.nhd-directory {
	--nhd-bg: #ffffff;
	--nhd-card: #ffffff;
	--nhd-card-border: #e6e2d3;
	--nhd-gold: #b8860b;
	--nhd-gold-soft: #d9a94a;
	--nhd-text: #1c1b18;
	--nhd-text-muted: #6f6c62;
	--nhd-radius: 14px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--nhd-text);
	background: var(--nhd-bg);
	margin: 24px 0;
}
.nhd-directory *, .nhd-directory *::before, .nhd-directory *::after { box-sizing: border-box; }

/* ---- Card ---- */
.nhd-hotel-card {
	flex: 0 0 auto;
	width: 148px;
	text-align: center;
}
.nhd-hotel-logo-btn {
	display: block;
	width: 112px;
	height: 112px;
	margin: 0 auto 10px;
	padding: 0;
	border: 1px solid var(--nhd-card-border);
	background: linear-gradient(145deg, #ffffff, #faf8f2);
	cursor: pointer;
	overflow: hidden;
	position: relative;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* Default shape: circle, cropped photo-style logo */
.nhd-hotel-logo-btn.nhd-shape-circle {
	border-radius: 50%;
}
.nhd-hotel-logo-btn.nhd-shape-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Transparent PNG: keep it square with a plain white plate so the logo reads cleanly */
.nhd-hotel-logo-btn.nhd-shape-square {
	border-radius: 16px;
	background: #ffffff;
	padding: 14px;
}
.nhd-hotel-logo-btn.nhd-shape-square img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.nhd-hotel-logo-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(184,134,11,0);
	transition: box-shadow .25s ease;
}
.nhd-hotel-logo-btn:hover,
.nhd-hotel-logo-btn:focus-visible {
	transform: translateY(-4px);
	border-color: var(--nhd-gold);
	outline: none;
}
.nhd-hotel-logo-btn:hover::after,
.nhd-hotel-logo-btn:focus-visible::after {
	box-shadow: 0 0 16px 2px rgba(184,134,11,.25);
}

.nhd-hotel-name {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .2px;
	color: var(--nhd-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---- Homepage: horizontal scroll ---- */
.nhd-directory-home .nhd-scroll {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 10px 6px 20px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--nhd-gold) transparent;
}
.nhd-directory-home .nhd-scroll::-webkit-scrollbar { height: 6px; }
.nhd-directory-home .nhd-scroll::-webkit-scrollbar-track { background: transparent; }
.nhd-directory-home .nhd-scroll::-webkit-scrollbar-thumb { background: var(--nhd-card-border); border-radius: 10px; }
.nhd-directory-home .nhd-scroll::-webkit-scrollbar-thumb:hover { background: var(--nhd-gold); }
.nhd-directory-home .nhd-hotel-card { scroll-snap-align: start; }

.nhd-view-more-card { display: flex; align-items: center; justify-content: center; }
.nhd-view-more-btn {
	width: 112px;
	height: 112px;
	margin: 0 auto;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: #fcfaf4;
	border: 2px dashed var(--nhd-card-border);
	color: var(--nhd-gold);
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.nhd-view-more-btn:hover { border-color: var(--nhd-gold); color: var(--nhd-gold); transform: translateY(-4px); }
.nhd-view-more-icon { font-size: 20px; line-height: 1; }

/* ---- Full directory: search + grid ---- */
.nhd-search-wrap {
	position: relative;
	max-width: 420px;
	margin: 0 0 28px;
}
.nhd-search-input {
	width: 100%;
	padding: 12px 16px 12px 40px;
	background: #ffffff;
	border: 1px solid var(--nhd-card-border);
	border-radius: 999px;
	color: var(--nhd-text);
	font-size: 14px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.nhd-search-input::placeholder { color: var(--nhd-text-muted); }
.nhd-search-input:focus {
	outline: none;
	border-color: var(--nhd-gold);
	box-shadow: 0 0 0 3px rgba(184,134,11,.12);
}
.nhd-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	opacity: .55;
	font-size: 14px;
	pointer-events: none;
}

.nhd-directory-list .nhd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 26px 16px;
}
.nhd-no-results {
	color: var(--nhd-text-muted);
	font-style: italic;
}
.nhd-empty { color: var(--nhd-text-muted); }

/* ---- Modal ---- */
.nhd-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.nhd-modal.is-open { display: flex; }
.nhd-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(28,27,24,.5);
	backdrop-filter: blur(4px);
}
.nhd-modal-box {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: #ffffff;
	border: 1px solid #ece7d6;
	border-radius: 18px;
	padding: 32px 28px 28px;
	text-align: center;
	box-shadow: 0 0 0 1px rgba(184,134,11,.06), 0 20px 50px rgba(28,27,24,.16), 0 0 30px rgba(184,134,11,.06);
	animation: nhd-pop .22s ease;
}
@keyframes nhd-pop {
	from { opacity: 0; transform: scale(.92) translateY(8px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}
.nhd-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	color: #a09c8f;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}
.nhd-modal-close:hover { color: #b8860b; }

.nhd-modal-logo {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border: 2px solid #b8860b;
	margin: 0 auto 16px;
	display: block;
}
.nhd-modal-logo.nhd-shape-circle { border-radius: 50%; }
.nhd-modal-logo.nhd-shape-square {
	border-radius: 14px;
	background: #ffffff;
	object-fit: contain;
	padding: 10px;
}

.nhd-modal-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
	color: #1c1b18;
	letter-spacing: .2px;
}
.nhd-modal-desc {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.6;
	color: #56534a;
	white-space: pre-line;
	text-align: justify;
	text-align-last: left;
}
.nhd-modal-btn {
	display: inline-block;
	padding: 11px 28px;
	background: linear-gradient(135deg, #b8860b, #d9a94a);
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	border-radius: 999px;
	text-decoration: none;
	letter-spacing: .3px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.nhd-modal-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(184,134,11,.3); color: #ffffff; }
.nhd-modal-btn[href="#"] { display: none; }
