/**
 * ResortMaster Pro Frontend Styles
 * Visitor-facing resort website styling
 * 
 * @package ResortMaster_Pro
 */

:root {
	--rmp-primary: #1a4d6f;
	--rmp-accent: #2d7a8a;
	--rmp-gold: #d4a574;
	--rmp-light: #f8f7f5;
	--rmp-dark: #333333;
	--rmp-border-radius: 8px;
	--rmp-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	--rmp-transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
html {
	scroll-behavior: smooth;
}

body {
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--rmp-dark);
	line-height: 1.6;
	background-color: #ffffff;
}

a {
	color: var(--rmp-primary);
	text-decoration: none;
	transition: var(--rmp-transition);
}

a:hover {
	color: var(--rmp-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Playfair Display', serif;
	color: var(--rmp-primary);
	font-weight: 600;
	line-height: 1.2;
}

h1 {
	font-size: 3rem;
}

h2 {
	font-size: 2.2rem;
}

h3 {
	font-size: 1.8rem;
}

/* ===== Container ===== */
.rmp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== Hero Section ===== */
.rmp-hero {
	position: relative;
	height: 500px;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	overflow: hidden;
}

.rmp-hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: -1;
}

.rmp-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(26, 77, 111, 0.4);
	z-index: 0;
}

.rmp-hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	padding: 40px;
}

.rmp-hero-title {
	font-size: 3.5rem;
	margin-bottom: 20px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rmp-hero-subtitle {
	font-size: 1.5rem;
	margin-bottom: 30px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.rmp-hero-cta {
	display: inline-block;
	padding: 14px 32px;
	background-color: var(--rmp-gold);
	color: white;
	border-radius: var(--rmp-border-radius);
	font-weight: 600;
	text-decoration: none;
	transition: var(--rmp-transition);
	margin: 0 10px;
	box-shadow: var(--rmp-shadow);
}

.rmp-hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ===== Section Spacing ===== */
.rmp-section {
	padding: 80px 0;
}

.rmp-section.rmp-section-light {
	background-color: var(--rmp-light);
}

.rmp-section-title {
	text-align: center;
	margin-bottom: 50px;
	position: relative;
}

.rmp-section-title::after {
	content: '';
	display: block;
	width: 80px;
	height: 3px;
	background: var(--rmp-gold);
	margin: 15px auto 0;
}

.rmp-section-subtitle {
	text-align: center;
	color: #666;
	font-size: 1.1rem;
	margin-bottom: 30px;
}

/* ===== Card Component ===== */
.rmp-card {
	background: white;
	border-radius: var(--rmp-border-radius);
	overflow: hidden;
	box-shadow: var(--rmp-shadow);
	transition: var(--rmp-transition);
}

.rmp-card:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(-5px);
}

.rmp-card-image {
	width: 100%;
	height: 250px;
	object-fit: cover;
	display: block;
}

.rmp-card-content {
	padding: 25px;
}

.rmp-card-title {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

.rmp-card-description {
	color: #666;
	margin-bottom: 15px;
	line-height: 1.6;
}

.rmp-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 15px;
	border-top: 1px solid var(--rmp-light);
}

/* ===== Room Grid ===== */
.rmp-rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

.rmp-room-card {
	background: white;
	border-radius: var(--rmp-border-radius);
	overflow: hidden;
	box-shadow: var(--rmp-shadow);
	transition: var(--rmp-transition);
}

.rmp-room-card:hover {
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
	transform: translateY(-8px);
}

.rmp-room-image {
	position: relative;
	overflow: hidden;
	height: 250px;
}

.rmp-room-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--rmp-transition);
}

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

.rmp-room-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--rmp-gold);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

.rmp-room-content {
	padding: 25px;
}

.rmp-room-category {
	color: var(--rmp-accent);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.rmp-room-title {
	font-size: 1.4rem;
	margin-bottom: 10px;
	color: var(--rmp-primary);
}

.rmp-room-description {
	color: #666;
	font-size: 0.95rem;
	margin-bottom: 15px;
}

.rmp-room-amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
}

.rmp-amenity-tag {
	background: var(--rmp-light);
	color: var(--rmp-primary);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
}

.rmp-room-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 15px;
	border-top: 1px solid var(--rmp-light);
}

.rmp-room-guests {
	font-size: 0.9rem;
	color: #666;
}

.rmp-room-price {
	font-size: 1.5rem;
	color: var(--rmp-gold);
	font-weight: 700;
}

.rmp-room-cta {
	display: inline-block;
	background: var(--rmp-primary);
	color: white;
	padding: 10px 20px;
	border-radius: var(--rmp-border-radius);
	font-weight: 600;
	text-decoration: none;
	transition: var(--rmp-transition);
}

.rmp-room-cta:hover {
	background: var(--rmp-accent);
	color: white;
}

/* ===== Gallery Grid ===== */
.rmp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.rmp-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: var(--rmp-border-radius);
	aspect-ratio: 1 / 1;
	background: var(--rmp-light);
}

.rmp-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--rmp-transition);
}

.rmp-gallery-item:hover img {
	transform: scale(1.1);
}

.rmp-gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(26, 77, 111, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--rmp-transition);
}

.rmp-gallery-item:hover .rmp-gallery-overlay {
	opacity: 1;
}

.rmp-gallery-icon {
	font-size: 2rem;
	color: white;
}

/* ===== Testimonials ===== */
.rmp-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.rmp-testimonial-card {
	background: white;
	padding: 30px;
	border-radius: var(--rmp-border-radius);
	box-shadow: var(--rmp-shadow);
	border-left: 4px solid var(--rmp-gold);
}

.rmp-testimonial-stars {
	color: var(--rmp-gold);
	font-size: 1.2rem;
	margin-bottom: 15px;
}

.rmp-testimonial-text {
	color: #666;
	margin-bottom: 20px;
	font-style: italic;
	line-height: 1.8;
}

.rmp-testimonial-author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.rmp-testimonial-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.rmp-testimonial-name {
	font-weight: 600;
	color: var(--rmp-primary);
	margin-bottom: 3px;
}

.rmp-testimonial-country {
	font-size: 0.85rem;
	color: #999;
}

/* ===== Buttons ===== */
.rmp-btn {
	display: inline-block;
	padding: 12px 28px;
	background: var(--rmp-primary);
	color: white;
	border-radius: var(--rmp-border-radius);
	font-weight: 600;
	text-decoration: none;
	transition: var(--rmp-transition);
	border: 2px solid var(--rmp-primary);
	cursor: pointer;
	font-size: 1rem;
}

.rmp-btn:hover {
	background: var(--rmp-accent);
	border-color: var(--rmp-accent);
	color: white;
}

.rmp-btn-outline {
	background: transparent;
	color: var(--rmp-primary);
	border-color: var(--rmp-primary);
}

.rmp-btn-outline:hover {
	background: var(--rmp-primary);
	color: white;
}

/* ===== Forms ===== */
.rmp-form {
	max-width: 600px;
	margin: 0 auto;
}

.rmp-form-group {
	margin-bottom: 20px;
}

.rmp-form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--rmp-primary);
}

.rmp-form-input,
.rmp-form-textarea,
.rmp-form-select {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--rmp-light);
	border-radius: var(--rmp-border-radius);
	font-size: 1rem;
	font-family: inherit;
	transition: var(--rmp-transition);
}

.rmp-form-input:focus,
.rmp-form-textarea:focus,
.rmp-form-select:focus {
	outline: none;
	border-color: var(--rmp-accent);
	box-shadow: 0 0 0 3px rgba(45, 122, 138, 0.1);
}

.rmp-form-textarea {
	resize: vertical;
	min-height: 120px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	.rmp-hero-title {
		font-size: 2rem;
	}

	.rmp-hero-subtitle {
		font-size: 1.1rem;
	}

	.rmp-rooms-grid {
		grid-template-columns: 1fr;
	}

	.rmp-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rmp-section {
		padding: 40px 0;
	}

	.rmp-container {
		padding: 0 15px;
	}
}

@media (max-width: 480px) {
	.rmp-hero-cta {
		display: block;
		margin: 10px 0;
	}

	.rmp-gallery-grid {
		grid-template-columns: 1fr;
	}

	.rmp-testimonials-grid {
		grid-template-columns: 1fr;
	}

	h1 {
		font-size: 1.5rem;
	}

	h2 {
		font-size: 1.3rem;
	}
}

/* ===== Accessibility ===== */
.rmp-skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--rmp-primary);
	color: white;
	padding: 8px;
	text-decoration: none;
	z-index: 100;
}

.rmp-skip-link:focus {
	top: 0;
}

/* ===== Loading State ===== */
.rmp-loading {
	opacity: 0.6;
	pointer-events: none;
}

.rmp-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(26, 77, 111, 0.3);
	border-radius: 50%;
	border-top-color: var(--rmp-primary);
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
