/* ============================================
   SIMPLESIAM - MARKETPLACE STYLES
   ============================================ */

:root {
	--dark-bg: #06091f;
	--primary-color: #b38f2a;
	--primary-hover: #d4a878;
	--secondary-color: #205b4f;
	--accent-color: #53a292;
	--accent-hover: #6db8a5;
	--success-color: #53a292;
	--danger-color: #d47a73;
	--warning-color: #cba590;
	--info-color: #7f7c76;
	--light-bg: #1a1d2e;
	--light-border: #2a2e42;
	--dark-text: #ffffff;
	--gray-text: #a8a8b8;
	--spacing-unit: 1rem;
	--font-serif: 'Playfair Display', 'Georgia', 'Garamond', serif;
	--font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================
   RESET & GENERAL
   ============================================ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
	color: var(--dark-text);
	background-color: var(--dark-bg);
	line-height: 1.7;
	letter-spacing: 0.3px;
	padding-top: 0;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: var(--primary-hover);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-unit);
}

/* ============================================
   HEADER
   ============================================ */

.header {
	background: transparent;
	border-bottom: none;
	padding: 1.5rem 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	box-shadow: none;
	width: 100%;
}

.header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.logo:hover {
	opacity: 0.8;
}

.logo__image {
	height: 50px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

.header__nav {
	display: flex;
	gap: 2.5rem;
}

.nav-link {
	color: var(--dark-text);
	font-weight: 500;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	position: relative;
}

.nav-link:hover {
	color: var(--accent-color);
}

.nav-link:after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent-color);
	transition: width 0.3s ease;
}

.nav-link:hover:after {
	width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
	background: linear-gradient(to bottom, var(--dark-bg), #021d1a);
	border-top: 1px solid var(--light-border);
	padding: 3rem 0;
	margin-top: 5rem;
	text-align: center;
	color: var(--gray-text);
	font-size: 0.9rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
	min-height: calc(100vh - 200px);
	padding: 0;
	margin-top: 100px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
	text-align: center;
	padding: 5rem 2rem;
	background: var(--dark-bg);
	color: var(--dark-text);
	border-radius: 0;
	margin-bottom: 0;
	border-top: none;
	border-bottom: none;
	position: relative;
	overflow: hidden;
}

.hero h1 {
	font-size: 3.2rem;
	margin-bottom: 1rem;
	font-weight: 700;
	letter-spacing: -1px;
	color: var(--primary-color);
	position: relative;
	z-index: 2;
	font-family: var(--font-serif);
}

.hero p {
	font-size: 1.15rem;
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto;
	color: var(--gray-text);
	font-weight: 400;
	line-height: 1.8;
	position: relative;
	z-index: 2;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
	padding: 1.25rem;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	border-left: 4px solid;
}

.alert-info {
	background-color: #f0f9ff;
	border-left-color: var(--info-color);
	color: var(--info-color);
}

.alert-success {
	background-color: #f0fdf4;
	border-left-color: var(--success-color);
	color: var(--success-color);
}

.alert-error {
	background-color: #fef2f2;
	border-left-color: var(--danger-color);
	color: var(--danger-color);
}

.alert-warning {
	background-color: #fffbeb;
	border-left-color: var(--warning-color);
	color: var(--warning-color);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
	display: inline-block;
	padding: 0.9rem 2rem;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-size: 0.95rem;
	text-align: center;
	transition: all 0.3s ease;
	text-decoration: none;
	font-weight: 500;
	font-family: inherit;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.btn-primary {
	background-color: var(--primary-color);
	color: white;
	box-shadow: 0 2px 8px rgba(139, 115, 85, 0.15);
}

.btn-primary:hover {
	background-color: var(--primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(139, 115, 85, 0.25);
}

.btn-secondary {
	background-color: white;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
	background-color: var(--light-bg);
	border-color: var(--accent-color);
	color: var(--accent-color);
}

.btn-large {
	padding: 1.1rem 2.5rem;
	font-size: 1rem;
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
	margin-bottom: 1.5rem;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--dark-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--light-border);
	border-radius: 2px;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.2s;
	color: var(--dark-text);
	background-color: rgba(26, 29, 46, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(179, 143, 42, 0.15);
	background-color: rgba(26, 29, 46, 0.8);
}

textarea {
	resize: vertical;
	min-height: 120px;
}

fieldset {
	margin-bottom: 2rem;
	padding: 1.5rem;
	border: 1px solid var(--light-border);
	border-radius: 0.5rem;
	background: var(--light-bg);
}

legend {
	padding: 0 0.5rem;
	font-weight: 600;
	color: var(--dark-text);
}

/* ============================================
   CATALOG SHOWCASE
   ============================================ */

.catalog-showcase {
	width: 100vw;
	height: 70vh;
	background: var(--light-bg);
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	position: relative;
	margin: 0;
	margin-left: calc(-50vw + 50%);
	margin-bottom: -80px;
	min-height: 500px;
}

.catalog-showcase img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
	display: block;
}

.catalog-showcase__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background: linear-gradient(135deg, rgba(6, 9, 31, 0.6) 0%, rgba(6, 9, 31, 0.3) 100%);
	padding: 2rem;
	z-index: 2;
}

.catalog-showcase__overlay h1 {
	font-size: 3.2rem;
	font-weight: 700;
	color: var(--primary-color);
	font-family: var(--font-serif);
	margin-bottom: 1rem;
	letter-spacing: -1px;
}

.catalog-showcase__overlay p {
	font-size: 1.15rem;
	opacity: 0.9;
	max-width: 600px;
	color: var(--gray-text);
	font-weight: 400;
	line-height: 1.8;
}

.showcase-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 5rem;
	color: var(--gray-text);
}

/* ============================================
   PROPERTY GRID & CARDS
   ============================================ */

.properties-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2.5rem;
	margin: 3rem 0;
	padding-top: 1rem;
}

.property-card {
	background: var(--light-bg);
	border: 1px solid var(--light-border);
	border-radius: 2px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.property-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 28px rgba(0,0,0,0.6);
	border-color: var(--primary-color);
}

.property-card__image {
	width: 100%;
	height: 280px;
	background: var(--light-bg);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	position: relative;
}

.property-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-card__image img {
	transform: scale(1.08);
}

.property-card__image-placeholder {
	font-size: 3rem;
	color: var(--gray-text);
}

.property-card__content {
	padding: 1.75rem;
}

.property-card__title {
	margin-bottom: 0.75rem;
	font-size: 1.2rem;
	font-weight: 600;
}

.property-card__title a {
	color: var(--dark-text);
}

.property-card__title a:hover {
	color: var(--accent-color);
}

.property-card__location {
	color: var(--gray-text);
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
	letter-spacing: 0.3px;
}

.property-card__capacity {
	color: var(--gray-text);
	font-size: 0.85rem;
	margin-bottom: 1.25rem;
}

.property-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--light-border);
}

.property-card__price {
	display: flex;
	flex-direction: column;
}

.price {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--accent-color);
}

.price-unit {
	font-size: 0.8rem;
	color: var(--gray-text);
	letter-spacing: 0.3px;
}

/* ============================================
   PROPERTY DETAIL
   ============================================ */

.property-detail {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 3.5rem;
	margin: 2.5rem 0;
}

.property-detail__images {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.image-gallery {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.main-image {
	width: 100%;
	height: 450px;
	background: var(--light-bg);
	border-radius: 2px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.thumbnails {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 1rem;
}

.thumbnail {
	aspect-ratio: 1;
	border: 2px solid var(--light-border);
	border-radius: 2px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	background: var(--light-bg);
}

.thumbnail.active {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.15);
}

.thumbnail:hover {
	border-color: var(--accent-color);
}

.thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.no-images {
	width: 100%;
	height: 450px;
	background: var(--light-bg);
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gray-text);
	font-size: 2rem;
}

.property-detail__info {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.property-detail__info h1 {
	font-size: 2.8rem;
	color: var(--primary-color);
	font-weight: 700;
	line-height: 1.3;
	font-family: var(--font-serif);
}

.property-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.75rem;
	padding: 2rem;
	background: rgba(26, 29, 46, 0.7);
	border-radius: 2px;
	border: 1px solid var(--light-border);
}

.info-item .label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: var(--primary-color);
	font-size: 0.85rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.info-item p {
	color: var(--dark-text);
	margin: 0.25rem 0;
	font-size: 1.05rem;
}

.price-highlight {
	font-size: 1.6rem !important;
	color: var(--primary-color) !important;
	font-weight: 600 !important;
}

.property-description {
	padding: 2rem;
	background: rgba(26, 29, 46, 0.7);
	border-radius: 2px;
	border: 1px solid var(--light-border);
}

.property-description h2 {
	margin-bottom: 1.25rem;
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--primary-color);
}

.property-description p {
	color: var(--gray-text);
	line-height: 1.8;
	white-space: pre-wrap;
	font-size: 0.95rem;
}

.property-booking {
	padding: 2rem;
	border: 2px solid var(--primary-color);
	border-radius: 2px;
	text-align: center;
	background: rgba(179, 143, 42, 0.08);
}

.property-booking h2 {
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--primary-color);
}

/* ============================================
   RESERVATION FORM
   ============================================ */

.reservation-form__wrapper {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 2.5rem;
	margin: 2.5rem 0;
}

.reservation-form__property-summary {
	position: sticky;
	top: 120px;
	padding: 2rem;
	background: var(--light-bg);
	border-radius: 2px;
	height: fit-content;
	border: 1px solid var(--light-border);
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.reservation-form__property-summary h2 {
	margin-bottom: 1.25rem;
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--primary-color);
}

.property-summary-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 2px;
	margin-bottom: 1.5rem;
	display: block;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.reservation-form__property-summary p {
	margin: 0.75rem 0;
	font-size: 0.95rem;
	color: var(--gray-text);
}

.reservation-form {
	background: var(--light-bg);
	border: 1px solid var(--light-border);
	border-radius: 2px;
	padding: 2.5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.reservation-form h1 {
	margin-bottom: 2rem;
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--primary-color);
	font-family: var(--font-serif);
}

.form-actions {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--light-border);
}

.price-calculation {
	padding: 1.5rem;
	background: rgba(179, 143, 42, 0.1);
	border-radius: 2px;
	margin-top: 1.5rem;
	border-left: 4px solid var(--primary-color);
}

.price-calculation p {
	margin: 0.75rem 0;
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--gray-text);
}

.total-price {
	font-size: 1.8rem;
	color: var(--primary-color);
	font-weight: 700;
}

/* ============================================
   CONFIRMATION PAGE
   ============================================ */

.confirmation-success {
	text-align: center;
	padding: 3.5rem 2.5rem;
	max-width: 650px;
	margin: 3rem auto;
	background: var(--light-bg);
	border-radius: 2px;
	border: 2px solid var(--success-color);
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.success-icon {
	font-size: 4.5rem;
	margin-bottom: 1.5rem;
}

.confirmation-success h1 {
	font-size: 2.2rem;
	margin-bottom: 0.75rem;
	color: var(--success-color);
	font-weight: 700;
	font-family: var(--font-serif);
}

.confirmation-message {
	font-size: 1rem;
	color: var(--gray-text);
	margin-bottom: 2.5rem;
	line-height: 1.7;
}

.confirmation-details {
	background: rgba(26, 29, 46, 0.5);
	padding: 2rem;
	border-radius: 2px;
	margin-bottom: 2rem;
	text-align: left;
	border: 1px solid var(--light-border);
}

.detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid var(--light-border);
	gap: 1rem;
}

.detail-row:last-child {
	border-bottom: none;
}

.detail-row .label {
	font-weight: 600;
	color: var(--dark-text);
	flex: 1;
}

.detail-row .value {
	color: var(--gray-text);
	font-family: monospace;
	text-align: right;
}

.detail-row .price {
	color: var(--primary-color);
	font-weight: 700;
	font-family: inherit;
}

.copy-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--primary-color);
	font-size: 0.85rem;
	margin-left: 0.5rem;
	text-decoration: underline;
	transition: color 0.2s;
	font-weight: 500;
}

.copy-btn:hover {
	color: var(--primary-hover);
}

.confirmation-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.confirmation-info {
	background: rgba(83, 162, 146, 0.1);
	padding: 1.5rem;
	border-radius: 2px;
	border-left: 4px solid var(--success-color);
	text-align: left;
	color: var(--gray-text);
	font-size: 0.9rem;
	line-height: 1.7;
}

.confirmation-info p {
	margin: 0.75rem 0;
}

/* ============================================
   ERROR PAGE
   ============================================ */

.error-page {
	text-align: center;
	padding: 3.5rem 2.5rem;
	max-width: 650px;
	margin: 3rem auto;
	background: var(--light-bg);
	border-radius: 2px;
	border: 2px solid var(--danger-color);
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.error-icon {
	font-size: 4.5rem;
	margin-bottom: 1.5rem;
}

.error-page h1 {
	font-size: 2.2rem;
	margin-bottom: 0.75rem;
	color: var(--danger-color);
	font-weight: 700;
	font-family: var(--font-serif);
}

.error-message {
	font-size: 1rem;
	color: var(--gray-text);
	margin-bottom: 2.5rem;
	line-height: 1.7;
}

.error-actions {
	text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.header {
		position: absolute;
		width: 100%;
	}

	.header .container {
		flex-direction: column;
		gap: 1rem;
	}

	.hero {
		padding: 2rem 1rem;
	}

	.hero h1 {
		font-size: 1.75rem;
	}

	.catalog-showcase {
		height: 50vh;
		margin: 0;
		margin-left: calc(-50vw + 50%);
		min-height: 350px;
	}

	.catalog-showcase__overlay h1 {
		font-size: 1.75rem;
	}

	.properties-grid {
		grid-template-columns: 1fr;
	}

	.property-detail {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.property-detail__images {
		order: -1;
	}

	.main-image {
		height: 300px;
	}

	.reservation-form__wrapper {
		grid-template-columns: 1fr;
	}

	.reservation-form__property-summary {
		position: relative;
		top: auto;
		order: -1;
	}

	.form-actions {
		flex-direction: column-reverse;
	}

	.btn {
		width: 100%;
	}
}

@media (max-width: 480px) {
	:root {
		font-size: 14px;
	}

	.hero h1 {
		font-size: 1.5rem;
	}

	.property-card__footer {
		flex-direction: column;
	}

	.confirmation-details {
		text-align: center;
	}

	.detail-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.copy-btn {
		margin-left: 0;
		display: block;
		margin-top: 0.5rem;
	}
}
