/* Modern Responsive Design for 2026world */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
	--primary: #1e3a8a;
	--primary-light: #3b82f6;
	--accent: #10b981;
	--dark: #0f172a;
	--light: #f8fafc;
	--slate: #64748b;
	--white: #ffffff;
	--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--border-radius: 8px;
	--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-sans);
	background-color: var(--light);
	color: var(--dark);
	line-height: 1.5;
}

#wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header & Nav */
header {
	background: var(--white);
	padding: 20px 0;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 20px;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo img {
	height: 60px;
	width: auto;
}

#top-menu {
	background: var(--primary);
	border-radius: var(--border-radius);
	margin-bottom: 30px;
}

#top-menu ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	padding: 10px;
}

#top-menu li a {
	color: var(--white);
	text-decoration: none;
	padding: 10px 20px;
	display: block;
	transition: background 0.3s;
	font-weight: 500;
}

#top-menu li a:hover {
	background: var(--primary-light);
	border-radius: 4px;
}

/* Dropdown Menus */
#for-sale-dropdown,
#for-rent-dropdown,
#lang-menu-dropdown {
	position: absolute;
	display: none;
	background: var(--white);
	min-width: 200px;
	box-shadow: var(--shadow-lg);
	border-radius: var(--border-radius);
	padding: 10px 0;
	z-index: 9999;
	border: 1px solid #e2e8f0;
}

#for-sale-dropdown ul,
#for-rent-dropdown ul,
#lang-menu-dropdown ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#for-sale-dropdown li a,
#for-rent-dropdown li a,
#lang-menu-dropdown li a {
	padding: 10px 20px;
	display: block;
	color: var(--dark);
	text-decoration: none;
	transition: background 0.2s;
	font-size: 0.9rem;
}

#for-sale-dropdown li a:hover,
#for-rent-dropdown li a:hover,
#lang-menu-dropdown li a:hover {
	background: var(--light);
	color: var(--primary);
}

#lang-menu-dropdown li a {
	background-repeat: no-repeat;
	background-position: 15px center;
	padding-left: 45px;
	min-height: 36px;
	display: flex;
	align-items: center;
}

/* Hide legacy iframes used for IE6 z-index fixes */
iframe[id^="frame-"] {
	display: none !important;
}

/* Layout Grid */
#content {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 30px;
	margin-bottom: 40px;
}

#left {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#right {
	background: var(--white);
	padding: 25px;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
}

/* Module Styling */
.module-global {
	background: var(--white);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.module-top-title {
	background: var(--primary);
	color: var(--white);
	padding: 12px 15px;
	font-weight: 600;
	font-size: 1.1rem;
}

.module-content {
	padding: 15px;
}

/* Footer */
footer {
	background: var(--dark);
	color: var(--white);
	padding: 40px 0;
	margin-top: 50px;
	border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
}

/* Search Module Styling */
.form-group label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 5px;
	color: var(--slate);
}

.form-row {
	display: flex;
	gap: 10px;
}

.form-row .form-group {
	flex: 1;
}

.search-btn {
	width: 100%;
	background: var(--accent) !important;
	color: var(--white) !important;
	margin-top: 10px;
	padding: 12px !important;
	border-radius: var(--border-radius);
	font-weight: 700;
	border: none;
	cursor: pointer;
}


/* Forms & Inputs */
input,
select,
textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	margin-bottom: 15px;
}

button,
.button {
	background: var(--primary);
	color: var(--white);
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: opacity 0.3s;
}

button:hover {
	opacity: 0.9;
}

/* Property Grid & Cards */
#main-advert-list ul {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	padding: 0;
}

#main-advert-list li {
	background: var(--white);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
	border: 1px solid #f1f5f9;
	display: flex;
	flex-direction: column;
}

#main-advert-list li:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

#main-advert-list img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

#main-advert-list h2 {
	font-size: 1.1rem;
	padding: 15px 15px 5px;
	color: var(--dark);
}

#main-advert-list span {
	padding: 0 15px;
	font-size: 0.9rem;
	color: var(--slate);
}

.main-advert-price {
	display: block;
	padding: 10px 15px !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: var(--accent) !important;
}

.main-advert-detail {
	margin: 15px;
	text-align: center;
	background: var(--primary);
	color: var(--white);
	text-decoration: none;
	padding: 10px;
	border-radius: 4px;
	font-weight: 600;
	margin-top: auto;
}

/* Tabs */
#main-advert ul:first-child {
	display: flex;
	gap: 10px;
	list-style: none;
	margin-bottom: 20px;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 10px;
}

#main-advert ul:first-child li a {
	padding: 8px 16px;
	text-decoration: none;
	color: var(--slate);
	font-weight: 600;
	border-radius: 4px;
}

#main-advert ul:first-child li.main-advert-selected a {
	background: var(--primary);
	color: var(--white);
}

/* Featured Advert (Hero) */
#private-advert-modern {
	margin-bottom: 40px;
}

.private-advert-card {
	background: var(--white);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-lg);
	display: flex;
	overflow: hidden;
	min-height: 400px;
}

.featured-image-container {
	flex: 1.5;
	position: relative;
	background: #000;
}

.featured-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: var(--accent);
	color: var(--white);
	padding: 5px 15px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.8rem;
	box-shadow: var(--shadow);
}

.featured-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 30px;
}

.featured-title {
	font-size: 1.75rem;
	margin-bottom: 15px;
	color: var(--dark);
}

.featured-location {
	color: var(--slate);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.featured-specs {
	display: flex;
	gap: 20px;
	margin-bottom: 25px;
	border-top: 1px solid #f1f5f9;
	padding-top: 20px;
}

.spec-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--slate);
	font-size: 0.95rem;
}

.featured-price {
	font-size: 2rem;
	font-weight: 800;
	color: var(--primary);
	margin-bottom: 30px;
}

.featured-btn {
	background: var(--primary);
	color: var(--white);
	text-decoration: none;
	padding: 15px 30px;
	border-radius: var(--border-radius);
	text-align: center;
	font-weight: 700;
	transition: background 0.3s;
}

.featured-btn:hover {
	background: var(--primary-light);
}

.featured-thumbnails {
	margin-top: auto;
}

.featured-thumbnails ul {
	display: flex;
	gap: 10px;
	list-style: none;
	overflow-x: auto;
	padding-top: 20px;
}

.thumb-img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	cursor: pointer;
	border: 2px solid transparent;
}

.thumb-img:hover {
	border-color: var(--primary);
}

@media (max-width: 768px) {
	.private-advert-card {
		flex-direction: column;
	}

	.featured-image-container {
		height: 300px;
	}
}

@media (max-width: 992px) {
	#content {
		grid-template-columns: 1fr;
	}

	#left {
		order: 2;
	}

	#right {
		order: 1;
	}
}

@media (max-width: 640px) {
	#main-advert-list ul {
		grid-template-columns: 1fr;
	}
}