/*!
Theme Name: Sunrise Stay Maldives
Version: 2.3.0
*/

:root {
	--primary: #388487;
	--primary-dark: #2a6361;
	--secondary: #1A1A1A;
	--accent: #388487;
	--bg: #FAFAFA;
	--white: #ffffff;
	--border: #E5E7EB;
	--shadow: 0 1px 3px rgba(0,0,0,0.06);
	--shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
	--radius: 14px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg);
	color: var(--secondary);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ================================================
   HEADER
   ================================================ */
.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 999;
}

.header-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding { flex-shrink: 0; }

.logo-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--secondary);
}

.logo-img { height: 72px; width: auto; }

.logo-text {
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.logo-text.is-scrolled {
	animation: slideInTitle 0.3s ease forwards;
	color: var(--primary);
}

/* Navigation */
.main-navigation { display: flex; align-items: center; margin-left: auto; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-menu li { display: flex; }

.nav-menu a {
	color: var(--secondary);
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 10px;
	transition: all 0.2s;
}

.nav-menu a:hover { color: var(--primary); background: rgba(56, 132, 135, 0.08); }
.nav-menu a.nav-cta { background: var(--primary); color: var(--white); font-weight: 600; }
.nav-menu a.nav-cta:hover { background: var(--primary-dark); }
.nav-menu i { font-size: 18px; }

/* Header Actions (WhatsApp + Hamburger) */
.header-actions { display: flex; align-items: center; gap: 8px; }

.header-wa {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #25D366;
	color: var(--white);
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 20px;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 1001;
}

.hamburger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 22px;
}

.hamburger span {
	display: block;
	height: 2px;
	background: var(--secondary);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.menu-toggle.is-active .hamburger span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.is-active .hamburger span:nth-child(2) {
	opacity: 0;
}
.menu-toggle.is-active .hamburger span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideInTitle {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Page title animations */
.sunrise-hero h1,
.rooms-archive-header h1,
.shop-archive-header h1,
.room-header h1,
.product-header h1 {
	animation: fadeInUp 0.6s ease both;
}

.sunrise-hero .hero-subtitle,
.rooms-archive-header .room-count,
.shop-archive-header .product-count {
	animation: fadeInUp 0.6s ease 0.15s both;
}

.sunrise-hero .hero-actions {
	animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-label {
	animation: fadeIn 0.5s ease 0.1s both;
}

.section-header {
	animation: fadeInUp 0.5s ease 0.2s both;
}

.room-card, .product-card {
	animation: fadeInUp 0.5s ease both;
}

.room-card:nth-child(1), .product-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2), .product-card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3), .product-card:nth-child(3) { animation-delay: 0.3s; }
.room-card:nth-child(4), .product-card:nth-child(4) { animation-delay: 0.4s; }

/* ================================================
   MAIN CONTENT
   ================================================ */
#primary { padding: 0; }
.entry-header, .entry-content { display: none !important; }

/* ================================================
   HERO SECTION (Homepage)
   ================================================ */
.sunrise-rooms-wrapper { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }

.sunrise-hero {
	text-align: center;
	padding: 48px 20px 32px;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(56, 132, 135, 0.06) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 20%, rgba(56, 132, 135, 0.04) 0%, transparent 50%),
		radial-gradient(ellipse at 60% 80%, rgba(56, 132, 135, 0.05) 0%, transparent 50%);
	border-radius: 20px;
	margin-bottom: 8px;
}

.sunrise-hero h1 {
	color: var(--secondary);
	font-size: 38px;
	margin: 0 0 10px;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.sunrise-hero h1 span { color: var(--primary); }

.hero-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(56, 132, 135, 0.1);
	color: var(--primary);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 16px;
}

.hero-label i { font-size: 16px; }

.hero-subtitle {
	color: #6B7280;
	font-size: 16px;
	max-width: 520px;
	margin: 0 auto 24px;
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	border: none;
}

.btn-primary {
	background: #25D366;
	color: var(--white);
}

.btn-primary:hover {
	background: #1fb855;
	transform: translateY(-1px);
}

.btn-secondary {
	background: var(--white);
	color: var(--secondary);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	border-color: var(--primary);
	color: var(--primary);
	transform: translateY(-1px);
}

.btn-primary i,
.btn-secondary i { font-size: 18px; }

/* ================================================
   SECTION HEADER
   ================================================ */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.section-header h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	color: var(--secondary);
}

.room-count,
.product-count {
	color: #6B7280;
	font-size: 13px;
	background: rgba(56, 132, 135, 0.08);
	padding: 4px 12px;
	border-radius: 20px;
}

/* ================================================
   ROOM & PRODUCT CARDS (Grid)
   ================================================ */
.sunrise-rooms-list,
.shop-products-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.room-card,
.product-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.25s ease;
	text-decoration: none;
	color: inherit;
}

.room-card:hover,
.product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary);
}

.card-image {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.room-card:hover .card-image img,
.product-card:hover .card-image img {
	transform: scale(1.05);
}

.card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(8px);
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--secondary);
	display: flex;
	align-items: center;
	gap: 4px;
}

.card-badge i { color: var(--primary); font-size: 13px; }

.card-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.card-title-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.card-title-row h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--secondary);
}

.card-action {
	color: var(--white);
	background: var(--primary);
	font-size: 12px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	padding: 5px 12px;
	border-radius: 8px;
	transition: background 0.2s;
	flex-shrink: 0;
}

.room-card:hover .card-action,
.product-card:hover .card-action {
	background: var(--primary-dark);
}

.card-action i { font-size: 13px; }

.card-location {
	color: #6B7280;
	font-size: 13px;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.card-location i { font-size: 13px; color: var(--primary); }

.card-price {
	margin-top: auto;
	padding-top: 8px;
}

.card-price .amount {
	color: var(--primary);
	font-size: 20px;
	font-weight: 700;
}

.card-price .per-night {
	color: #6B7280;
	font-size: 13px;
}

.no-rooms,
.no-products {
	text-align: center;
	color: #9CA3AF;
	padding: 40px 20px;
	grid-column: 1 / -1;
}

/* ================================================
   ROOMS ARCHIVE (/rooms)
   ================================================ */
.rooms-archive {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 24px 48px;
}

.rooms-archive-header {
	margin-bottom: 24px;
}

.rooms-archive-header h1 {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 6px;
}

/* ================================================
   SHOP ARCHIVE (/shop)
   ================================================ */
.shop-archive {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 24px 48px;
}

.shop-archive-header {
	margin-bottom: 24px;
}

.shop-archive-header h1 {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 6px;
}

/* ================================================
   SINGLE ROOM PAGE
   ================================================ */
.room-single {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 24px 48px;
}

.room-header {
	margin-bottom: 24px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #6B7280;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 12px;
	transition: color 0.2s;
}

.back-link:hover { color: var(--primary); }
.back-link i { font-size: 16px; }

.room-header h1 {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 6px;
}

.room-location {
	color: #6B7280;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.room-location i { color: var(--primary); font-size: 16px; }

/* Room Layout - 70/30 */
.room-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 24px;
	align-items: start;
}

/* Room Gallery */
.room-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.room-gallery img {
	width: 100%;
	border-radius: var(--radius);
	object-fit: cover;
}

/* Room Sidebar */
.room-sidebar {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Booking Card */
.room-booking-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
}

.room-booking-card .price {
	font-size: 28px;
	font-weight: 800;
	color: var(--secondary);
	margin: 0 0 16px;
}

.room-booking-card .price span {
	font-size: 14px;
	font-weight: 400;
	color: #6B7280;
}

.book-btn,
.email-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	border: none;
}

.book-btn {
	background: #25D366;
	color: var(--white);
	margin-bottom: 8px;
}

.book-btn:hover { background: #1fb855; }

.book-btn i,
.email-btn i { font-size: 18px; }

.email-btn {
	background: var(--white);
	color: var(--secondary);
	border: 1px solid var(--border);
}

.email-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Amenities Sidebar */
.room-amenities-sidebar {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
}

.room-amenities-sidebar h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 12px;
}

.amenity-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.amenity-pill {
	background: rgba(56, 132, 135, 0.08);
	color: var(--primary-dark);
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
}

/* Room Map */
.room-map {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
}

.room-map h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 12px;
}

.map-embed iframe {
	border-radius: 12px;
}

/* Floating Section Nav */
.room-floating-nav {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 6px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.12);
	z-index: 998;
}

.floating-nav-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 12px;
	text-decoration: none;
	color: #6B7280;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s;
}

.floating-nav-item:hover,
.floating-nav-item.active {
	background: rgba(56, 132, 135, 0.1);
	color: var(--primary);
}

.floating-nav-item i { font-size: 18px; }

/* ================================================
   SINGLE PRODUCT PAGE
   ================================================ */
.product-single {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 24px 48px;
}

.product-header {
	margin-bottom: 24px;
}

.product-header h1 {
	font-size: 28px;
	font-weight: 800;
	margin: 0;
}

/* Product Layout - 60/40 */
.product-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 24px;
	align-items: start;
}

.product-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.product-gallery img,
.product-image img {
	width: 100%;
	border-radius: var(--radius);
	object-fit: cover;
}

.product-description {
	margin-top: 24px;
}

.product-description h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 12px;
}

.product-content {
	color: #4B5563;
	line-height: 1.7;
	font-size: 15px;
}

/* Product Sidebar */
.product-sidebar {
	position: sticky;
	top: 100px;
}

.product-order-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
}

.product-order-card .price {
	font-size: 28px;
	font-weight: 800;
	color: var(--primary);
	margin: 0 0 20px;
}

/* Order Form */
.order-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.form-group label {
	font-size: 13px;
	font-weight: 600;
	color: var(--secondary);
	display: flex;
	align-items: center;
	gap: 6px;
}

.form-group label i { color: var(--primary); font-size: 15px; }

.form-group input,
.form-group select,
.form-group textarea {
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s;
	background: var(--white);
	color: var(--secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(56, 132, 135, 0.1);
}

.form-note {
	font-size: 12px;
	color: #9CA3AF;
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
}

.form-note i { font-size: 13px; }

.order-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px;
	background: var(--primary);
	color: var(--white);
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s;
	margin-top: 4px;
}

.order-submit-btn:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
}

.order-submit-btn i { font-size: 18px; }

/* Order Success */
.order-success {
	text-align: center;
	padding: 20px 0;
}

.order-success i {
	font-size: 48px;
	color: #25D366;
	margin-bottom: 8px;
}

.order-success h3 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
}

.order-success p {
	color: #6B7280;
	font-size: 14px;
	margin: 0 0 16px;
}

/* Order Error */
.order-error {
	background: #FEF2F2;
	border: 1px solid #FECACA;
	border-radius: 10px;
	padding: 12px 16px;
	margin-top: 8px;
}

.order-error p {
	color: #DC2626;
	font-size: 13px;
	margin: 0;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
	background: var(--secondary);
	color: var(--white);
	padding: 0;
}

.footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 24px 20px;
}

.footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	margin-bottom: 16px;
}

.footer-brand { flex-shrink: 0; }

.footer-logo {
	height: 40px;
	width: auto;
	opacity: 0.9;
}

.footer-links {
	display: flex;
	gap: 24px;
}

.footer-links a {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-social {
	display: flex;
	gap: 8px;
}

.footer-social a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 18px;
	transition: background 0.2s;
}

.footer-social a:hover { background: var(--primary); }

.footer-bottom {
	text-align: center;
}

.footer-bottom p {
	color: rgba(255,255,255,0.4);
	font-size: 12px;
	margin: 0;
}

/* ================================================
   404 PAGE
   ================================================ */
.error-404 {
	max-width: 600px;
	margin: 0 auto;
	padding: 80px 24px;
	text-align: center;
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
	/* Header */
	.header-inner { padding: 8px 16px; }
	.logo-img { height: 56px; }
	.logo-text { font-size: 15px; }

	.main-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100vh;
		background: var(--white);
		box-shadow: -4px 0 24px rgba(0,0,0,0.1);
		padding: 80px 24px 24px;
		transition: right 0.3s ease;
		z-index: 1000;
	}

	.main-navigation.toggled {
		right: 0;
	}

	.nav-menu {
		flex-direction: column;
		gap: 4px;
	}

	.nav-menu a {
		font-size: 15px;
		padding: 12px 16px;
	}

	.nav-menu a span { display: inline; }
	.nav-menu i { font-size: 20px; }

	.header-wa { display: flex; }
	.menu-toggle { display: flex; }

	/* Hero */
	.sunrise-hero { padding: 32px 16px 24px; }
	.sunrise-hero h1 { font-size: 28px; }
	.hero-subtitle { font-size: 14px; }

	.hero-actions { flex-direction: column; align-items: center; }
	.btn-primary, .btn-secondary { width: 100%; justify-content: center; }

	/* Cards */
	.sunrise-rooms-wrapper { padding: 24px 16px; }

	.sunrise-rooms-list,
	.shop-products-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.card-image { height: 180px; }

	/* Archives */
	.rooms-archive,
	.shop-archive { padding: 24px 16px 36px; }

	.rooms-archive-header h1,
	.shop-archive-header h1 { font-size: 24px; }

	/* Single Room */
	.room-single,
	.product-single { padding: 16px 16px 36px; }

	.room-layout,
	.product-layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.room-sidebar,
	.product-sidebar {
		position: static;
	}

	.room-header h1,
	.product-header h1 { font-size: 24px; }

	/* Floating Nav */
	.floating-nav-item { padding: 8px 12px; font-size: 12px; }
	.floating-nav-item span { display: none; }

	/* Footer */
	.footer-top {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}

	.footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
	.footer-social { justify-content: center; }
}

/* Small mobile */
@media (max-width: 480px) {
	.logo-img { height: 48px; }
	.sunrise-hero h1 { font-size: 24px; }
	.card-image { height: 160px; }
}
