* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Poppins", sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-bubbles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
}
.bg-bubbles li {
	position: absolute;
	list-style: none;
	display: block;
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.15);
	bottom: -160px;
	animation: square 25s infinite;
	transition-timing-function: linear;
	border-radius: 50%;
}
.bg-bubbles li:nth-child(1) {
	left: 10%;
	width: 80px;
	height: 80px;
	animation-delay: 0s;
	animation-duration: 17s;
}
.bg-bubbles li:nth-child(2) {
	left: 20%;
	width: 20px;
	height: 20px;
	animation-delay: 2s;
	animation-duration: 35s;
}
.bg-bubbles li:nth-child(3) {
	left: 25%;
	width: 100px;
	height: 100px;
	animation-delay: 4s;
	animation-duration: 22s;
}
.bg-bubbles li:nth-child(4) {
	left: 40%;
	width: 60px;
	height: 60px;
	animation-delay: 0s;
	animation-duration: 29s;
}
.bg-bubbles li:nth-child(5) {
	left: 70%;
	width: 40px;
	height: 40px;
	animation-delay: 9s;
	animation-duration: 32s;
}
.bg-bubbles li:nth-child(6) {
	left: 80%;
	width: 110px;
	height: 110px;
	animation-delay: 3s;
	animation-duration: 40s;
}
.bg-bubbles li:nth-child(7) {
	left: 32%;
	width: 150px;
	height: 150px;
	animation-delay: 7s;
	animation-duration: 45s;
}
.bg-bubbles li:nth-child(8) {
	left: 55%;
	width: 35px;
	height: 35px;
	animation-delay: 15s;
	animation-duration: 50s;
}
.bg-bubbles li:nth-child(9) {
	left: 15%;
	width: 45px;
	height: 45px;
	animation-delay: 2s;
	animation-duration: 30s;
}
.bg-bubbles li:nth-child(10) {
	left: 90%;
	width: 90px;
	height: 90px;
	animation-delay: 5s;
	animation-duration: 38s;
}

@keyframes square {
	0% {
		transform: translateY(0);
		opacity: 0.5;
	}
	100% {
		transform: translateY(-1200px) rotate(600deg);
		opacity: 0;
	}
}

/* ===== MAIN CONTAINER ===== */
.landing-container {
	position: relative;
	z-index: 10;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.content-wrapper {
	max-width: 1200px;
	width: 100%;
	background: rgba(255, 255, 255, 0.97);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===== HEADER ===== */
.kos-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 40px;
	text-align: center;
	color: white;
	position: relative;
	overflow: hidden;
}

.kos-header::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: rgba(255, 255, 255, 0.08);
	transform: rotate(45deg);
	animation: shine 6s infinite;
}

@keyframes shine {
	0% {
		transform: translateX(-100%) rotate(45deg);
	}
	100% {
		transform: translateX(100%) rotate(45deg);
	}
}

.kos-header .logo {
	width: 100px;
	height: 100px;
	margin: 0 auto 20px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}
	70% {
		box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.kos-header .logo img {
	max-width: 80px;
	max-height: 80px;
}
.kos-header h1 {
	font-size: 36px;
	font-weight: 700;
	margin: 10px 0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.kos-header p {
	font-size: 16px;
	opacity: 0.9;
	margin: 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
	padding: 50px 40px;
}

/* Welcome */
.welcome-text {
	text-align: center;
	margin-bottom: 40px;
}
.welcome-text h2 {
	font-size: 30px;
	color: #333;
	margin-bottom: 8px;
	font-weight: 700;
}
.welcome-text p {
	font-size: 16px;
	color: #666;
	max-width: 600px;
	margin: 0 auto;
}

/* Section block (kamar, auth, maps) */
.section-block {
	margin-top: 55px;
}

.section-title {
	text-align: center;
	margin-bottom: 30px;
}
.section-title h2 {
	font-size: 28px;
	color: #333;
	font-weight: 700;
	margin-bottom: 6px;
}
.section-title p {
	font-size: 15px;
	color: #777;
	margin: 0;
}

/* ===== ROOM CARDS ===== */
.room-card {
	background: #fff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transition: 0.3s;
	margin-bottom: 28px;
	position: relative;
}
.room-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.room-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}
.room-no-img {
	height: 220px;
	background: #f4f4f4;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bbb;
}

.room-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: linear-gradient(135deg, #f5576c, #f093fb);
	color: #fff;
	padding: 4px 14px;
	border-radius: 30px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 12px rgba(245, 87, 108, 0.35);
	z-index: 5;
}

.room-body {
	padding: 18px 20px 20px;
}
.room-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #222;
}
.room-price {
	font-size: 26px;
	color: #28a745;
	font-weight: 700;
	margin-bottom: 12px;
}
.room-price small {
	font-size: 14px;
	font-weight: 400;
	color: #999;
}
.room-feature {
	margin-bottom: 4px;
	color: #555;
	font-size: 13px;
}
.room-feature i {
	width: 18px;
}

.room-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.room-actions .btn {
	flex: 1;
	min-width: 110px;
	border-radius: 30px;
	padding: 9px 14px;
	font-weight: 600;
	font-size: 13px;
	border: none;
	cursor: pointer;
	text-align: center;
	transition: 0.25s;
}

.btn-room {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: #fff;
}
.btn-room:hover {
	transform: scale(1.03);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.45);
	color: #fff;
}

.btn-whatsapp {
	background: #25d366;
	color: #fff;
}
.btn-whatsapp:hover {
	transform: scale(1.03);
	box-shadow: 0 5px 15px rgba(37, 211, 102, 0.45);
	color: #fff;
}

/* ===== INFO SECTION (Mengapa) ===== */
.info-section {
	margin-top: 55px;
	padding: 36px 30px;
	background: linear-gradient(135deg, #f5f7fa 0%, #dce3f0 100%);
	border-radius: 16px;
}
.info-section h3 {
	text-align: center;
	margin-bottom: 28px;
	font-size: 26px;
	color: #333;
	font-weight: 700;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.info-item {
	text-align: center;
	padding: 24px 16px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s;
}
.info-item:hover {
	transform: translateY(-6px);
}
.info-item i {
	font-size: 38px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 12px;
	display: block;
}
.info-item h4 {
	font-size: 16px;
	color: #333;
	margin-bottom: 8px;
	font-weight: 600;
}
.info-item p {
	color: #777;
	font-size: 13px;
	margin: 0;
	line-height: 1.6;
}

/* ===== AUTH CARDS (Login + Daftar) ===== */
.auth-cards {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.auth-card {
	flex: 1;
	min-width: 260px;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 28px 24px;
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	transition:
		transform 0.3s,
		box-shadow 0.3s;
	position: relative;
	overflow: hidden;
}

.auth-login {
	background: linear-gradient(135deg, #4facfe 0%, #00d2ff 100%);
	box-shadow: 0 10px 30px rgba(79, 172, 254, 0.35);
	color: #fff;
}

.auth-daftar {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	box-shadow: 0 10px 30px rgba(67, 233, 123, 0.35);
	color: #fff;
}

.auth-card::before {
	content: "";
	position: absolute;
	top: -40px;
	right: -40px;
	width: 140px;
	height: 140px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 50%;
}

.auth-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
	color: #fff;
	text-decoration: none;
}

.auth-icon {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	flex-shrink: 0;
}

.auth-info {
	flex: 1;
}
.auth-info h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #fff;
}
.auth-info p {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 14px;
	line-height: 1.5;
}

.auth-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.22);
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	padding: 7px 18px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s;
}

.auth-card:hover .auth-btn {
	background: rgba(255, 255, 255, 0.35);
}

/* ===== CONTACT INFO ===== */
.contact-info {
	text-align: center;
	margin-top: 40px;
	padding: 18px 20px;
	background: #f8f9fa;
	border-radius: 12px;
	font-size: 14px;
	color: #555;
}
.contact-info a {
	color: #555;
	text-decoration: none;
	transition: color 0.2s;
}
.contact-info a:hover {
	color: #667eea;
}
.contact-info .contact-sep {
	margin: 0 14px;
	color: #ccc;
}

/* ===== MAP ===== */
.map-container {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.map-container iframe {
	width: 100%;
	height: 420px;
	border: 0;
	display: block;
}

/* ===== FOOTER ===== */
.footer {
	background: linear-gradient(135deg, #2d2d3a, #1a1a2e);
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
	padding: 24px 20px;
	font-size: 13px;
}
.footer p {
	margin: 4px 0;
}
.footer a {
	color: #667eea;
	text-decoration: none;
}
.footer a:hover {
	text-decoration: underline;
}

/* ===== LOADING ===== */
.loading-overlay {
	position: fixed;
	inset: 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.5s ease;
}
.loading-overlay.fade-out {
	opacity: 0;
	pointer-events: none;
}

.loader {
	width: 70px;
	height: 70px;
	border: 5px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 0.9s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ===== LIGHTBOX MODERN ===== */
body.lightbox-open {
	overflow: hidden;
}

.lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 12, 0.97);
	z-index: 99999;
	display: none;
	flex-direction: column;
}
.lightbox-overlay.active {
	display: flex;
}

.lightbox-header {
	display: flex;
	align-items: center;
	padding: 14px 20px;
	background: rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
}

.lightbox-title {
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 600;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 12px;
}

.lightbox-counter {
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
	margin-right: 14px;
	white-space: nowrap;
}

.lightbox-close {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	flex-shrink: 0;
}
.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.25);
}

.lightbox-body {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	overflow: hidden;
}

.lightbox-img-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 12px 0;
	position: relative;
}

.lightbox-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
	display: block;
	animation: lbFadeIn 0.22s ease;
}
@keyframes lbFadeIn {
	from {
		opacity: 0;
		transform: scale(0.97);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.lightbox-caption {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	padding: 5px 18px;
	border-radius: 20px;
	white-space: nowrap;
	max-width: 80%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lightbox-caption:empty {
	display: none;
}

.lightbox-nav {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.2s,
		transform 0.2s;
	flex-shrink: 0;
	margin: 0 14px;
	z-index: 2;
}
.lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(1.1);
}
.lightbox-nav:active {
	transform: scale(0.93);
}

.lightbox-spinner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lb-spin {
	width: 44px;
	height: 44px;
	border: 4px solid rgba(255, 255, 255, 0.18);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.9s linear infinite;
}

.lightbox-thumbnails {
	display: flex;
	gap: 8px;
	padding: 12px 16px;
	background: rgba(0, 0, 0, 0.4);
	overflow-x: auto;
	flex-shrink: 0;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}
.lightbox-thumbnails::-webkit-scrollbar {
	height: 3px;
}
.lightbox-thumbnails::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.25);
	border-radius: 2px;
}

.lb-thumb {
	width: 72px;
	height: 54px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition:
		border-color 0.2s,
		transform 0.2s,
		opacity 0.2s;
	flex-shrink: 0;
	opacity: 0.55;
}
.lb-thumb:hover {
	opacity: 1;
	transform: scale(1.05);
}
.lb-thumb.active {
	border-color: #667eea;
	opacity: 1;
}
.lb-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.kos-header h1 {
		font-size: 26px;
	}
	.kos-header p {
		font-size: 14px;
	}
	.main-content {
		padding: 30px 18px;
	}
	.welcome-text h2 {
		font-size: 22px;
	}
	.section-title h2 {
		font-size: 22px;
	}
	.info-section h3 {
		font-size: 20px;
	}
	.auth-cards {
		gap: 16px;
	}
	.auth-card {
		padding: 22px 18px;
	}
	.auth-info h3 {
		font-size: 17px;
	}
	.lightbox-nav {
		width: 40px;
		height: 40px;
		font-size: 16px;
		margin: 0 8px;
	}
	.lb-thumb {
		width: 56px;
		height: 42px;
	}
	.contact-info {
		font-size: 12px;
	}
	.contact-info .contact-sep {
		margin: 0 8px;
	}
}

/* Deskripsi kamar - clamp 2 baris */
.room-desc {
	font-size: 13px;
	color: #555;
	margin: 6px 0 2px;
	line-height: 1.5;
	max-height: 3.6em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
}

.detail-link {
	font-size: 12px;
	color: #667eea;
	cursor: pointer;
	display: inline-block;
	margin-top: 2px;
	font-weight: 500;
}
.detail-link:hover {
	text-decoration: underline;
}

/* ===== MODAL DETAIL KAMAR ===== */
.modal-detail .modal-content {
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	border: none;
	overflow: hidden;
}

.modal-detail .modal-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 18px 25px;
	border-bottom: none;
}

.modal-detail .modal-header .modal-title {
	font-weight: 600;
	font-size: 18px;
}

.modal-detail .modal-header .close {
	color: #fff;
	opacity: 0.8;
	font-size: 28px;
	text-shadow: none;
}

.modal-detail .modal-header .close:hover {
	opacity: 1;
}

.modal-detail .modal-body {
	padding: 25px 30px 15px;
}

.modal-detail .modal-body h3 {
	font-size: 22px;
	font-weight: 700;
	color: #333;
	margin-top: 0;
}

/* Harga dengan background gradient */
.detail-price-wrapper {
	background: linear-gradient(135deg, #667eea, #764ba2);
	padding: 12px 24px;
	border-radius: 12px;
	display: inline-block;
	margin: 8px 0 18px;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.detail-price-wrapper .label-harga {
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	font-weight: 500;
	display: block;
	margin-bottom: 2px;
}

.detail-price-wrapper .detail-price {
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	margin: 0;
}

.detail-price-wrapper .detail-price small {
	font-size: 16px;
	font-weight: 400;
	opacity: 0.9;
}

/* Deskripsi */
#detailDeskripsi {
	background: #f8f9fa;
	padding: 14px 18px;
	border-radius: 8px;
	color: #555;
	line-height: 1.8;
	border-left: 4px solid #667eea;
	margin-top: 5px;
	white-space: pre-wrap;
}

/* Fasilitas */
.detail-fasilitas {
	padding-left: 0;
	margin-top: 8px;
	list-style: none;
}

.detail-fasilitas li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	color: #555;
	display: flex;
	align-items: center;
	gap: 8px;
}

.detail-fasilitas li:last-child {
	border-bottom: none;
}

.detail-fasilitas li i {
	color: #28a745;
	width: 20px;
	font-size: 14px;
}

/* Footer */
.modal-detail .modal-footer {
	border-top: 2px solid #f0f0f0;
	padding: 15px 30px;
	background: #fafafa;
}

.modal-detail .modal-footer .btn {
	border-radius: 30px;
	padding: 8px 28px;
	font-weight: 600;
}

.modal-detail .modal-footer .btn-default {
	background: #f0f0f0;
	color: #555;
	border: none;
}

.modal-detail .modal-footer .btn-default:hover {
	background: #e0e0e0;
}

.modal-detail .modal-footer .btn-whatsapp {
	background: #25d366;
	color: #fff;
	border: none;
}

.modal-detail .modal-footer .btn-whatsapp:hover {
	background: #1da851;
	transform: scale(1.02);
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}
