/* ===== GENERAL ===== */
body {
margin: 0;
font-family: 'Poppins', sans-serif;
color: #333;
background: #f7f9fc;
}
a { text-decoration: none; }

/* ===== NAVBAR ===== */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(90deg, #003366, #0055a5);
color: white;
padding: 15px 90px 15px 20px;
position: relative;
}
.navbar ul {
display: flex;
gap: 25px;
list-style: none;
}
.navbar a {
color: #fff;
font-weight: 500;
transition: color 0.3s ease;
}
.navbar a:hover,
.navbar a.active {
color: #ff8500;
}

/* --- Navbar Responsive --- */
.menu-toggle {
display: none;
font-size: 1.8rem;
cursor: pointer;
}

@media (max-width: 768px) {
.navbar {
padding: 15px 20px;
}

.navbar ul {
display: none;
flex-direction: column;
background: linear-gradient(90deg, #003366, #0055a5);
position: absolute;
top: 60px;
right: 0;
width: 100%;
text-align: center;
padding: 10px 0;
z-index: 999;
}

.navbar ul.show {
display: flex;
}

.menu-toggle {
display: block;
color: #fff;
}

.navbar ul li {
margin: 10px 0;
}
}

/* ===== HERO ===== */
.hero {
position: relative;
background: url('../images/hero.jpg') center/cover no-repeat;
height: 70vh;
display: flex;
align-items: center;
justify-content: center;
}
.hero-car {
position: relative;
background: url('../images/car-hero.jpg') center/cover no-repeat;
height: 70vh;
display: flex;
align-items: center;
justify-content: center;
}
.hero-house {
position: relative;
background: url('../images/house-hero.jpg') center/cover no-repeat;
height: 70vh;
display: flex;
align-items: center;
justify-content: center;
}
.hero-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(3px);
}
.hero-content {
position: relative;
color: white;
text-align: center;
padding-top: 20px;
}
.hero-content h2 { font-size: 2.5rem; margin-bottom: 10px; }
.btn-primary {
background: #ff8500;
color: white;
padding: 10px 20px;
border-radius: 5px;
font-weight: bold;
transition: 0.3s;
}
.btn-primary:hover { background: #e67400; }

.reset {
display: grid;
justify-content: center;
}
.reset:hover {
transform: translateY(-8px);
}

/* ===== FEATURED SECTION GRID ===== */
.featured-section {
padding: 60px 5%;
background: #f9fafc;
max-width: 1200px;
margin: 0 auto;
}
.featured-section h2 {
text-align: center;
font-size: 2rem;
color: #003366;
margin-bottom: 30px;
font-weight: 600;
}

/* Responsive grid - 4 per row on desktop, 1 on mobile */
.listing-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
justify-content: center;
align-items: stretch;
margin-bottom: 50px;
}

/* ===== CARD STYLE ===== */
.listing-card {
background: #ffffff;
border-radius: 14px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: all 0.3s ease;
min-height: 400px;
}
.listing-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.listing-card h3 {
font-size: 1.1rem;
text-align: center;
margin: 10px 0 5px;
color: #003366;
}
.listing-card .price {
font-weight: 600;
color: #0066cc;
text-align: center;
margin-bottom: 5px;
}
.listing-card .location {
font-size: 0.9rem;
text-align: center;
color: #555;
}
.listing-card .desc {
font-size: 0.85rem;
color: #666;
text-align: center;
padding: 0 10px;
flex-grow: 1;
}
.listing-card:hover {
transform: translateY(-8px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== CARD ACTIONS ===== */
.listing-actions {
display: flex;
justify-content: space-around;
padding: 10px 0;
border-top: 1px solid #eee;
background: #fdfdfd;
}
.listing-actions a {
padding: 8px 15px;
border-radius: 6px;
font-size: 0.85rem;
text-decoration: none;
color: #fff;
transition: background 0.3s ease;
}
.listing-actions a.view-btn {
background: #003366;
}
.listing-actions a.interest-btn {
background: #d4af37;
}
.listing-actions a:hover {
opacity: 0.9;
}

/* ===== CTA SECTION ===== */
.cta-section {
background: linear-gradient(90deg, #003366, #0055a5);
color: white;
text-align: center;
padding: 70px 20px;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 10px; }

.btn-outline { 
    border: 2px solid #003366; 
    padding: 8px 15px; 
    color: #003366; 
    border-radius: 5px; 
    align-items: center; /* For centers items vertically */ 
    justify-items: center; /* For centers items hor*/ 
    margin: 0 auto; 
    transition: 0.3s; 
} 
.btn-outline:hover { 
    background: #003366; color: white; 
}


/* ===== FOOTER ===== */
.footer {
background: linear-gradient(90deg, #003366, #0055a5);
color: white;
padding: 40px;
}
.footer-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 30px;
}
.footer-links h4 {
color: #ff8500;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: white; }
.footer-right input {
padding: 8px;
border: none;
border-radius: 5px;
}
.footer-right button {
margin-left: 5px;
}
.footer-bottom {
text-align: center;
margin-top: 20px;
border-top: 1px solid rgba(255,255,255,0.2);
padding-top: 10px;
}

/* ========== FILTER SECTION ========== */
.filter-section {
padding: 40px 0 10px;
text-align: center;
}
.filter-form {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
.filter-form input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 8px;
width: 200px;
}
.filter-form .btn {
background-color: #0056b3;
color: white;
border: none;
border-radius: 8px;
padding: 10px 20px;
cursor: pointer;
transition: 0.3s;
}
.filter-form .btn:hover {
background-color: #003f8a;
}

/* ========== PAGINATION ========== */
.pagination {
display: flex;
justify-content: center;
padding: 20px 0;
}
.pagination a {
padding: 8px 12px;
margin: 0 4px;
border-radius: 6px;
background-color: #f0f0f0;
color: #333;
text-decoration: none;
transition: 0.3s;
}
.pagination a.active,
.pagination a:hover {
background-color: #0056b3;
color: #fff;
}

/* ===== DETAILS SECTION ===== */
.details-section {
background-color: #f5f8fc;
padding: 60px 0;
}

/* Card Layout */
.details-card {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: center;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 16px rgba(0,0,0,0.1);
overflow: hidden;
transition: transform 0.3s ease;
max-width: 1100px;
margin: 0 auto;
}
.details-card:hover {
transform: translateY(-4px);
}

/* Image Container */
.image-container {
flex: 1 1 45%;
min-width: 300px;
max-height: 500px;
display: flex;
align-items: center;
justify-content: center;
background: #f7f9fc;
border-radius: 12px;
padding: 20px 40px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
overflow: hidden;
}
.image-container img {
width: 100%;
height: auto;
max-height: 470px;
object-fit: cover;
border-radius: 10px;
display: block;
margin: 0 auto;
}

/* Info Section */
.details-info {
flex: 1 1 55%;
padding: 40px 35px;
display: flex;
flex-direction: column;
justify-content: center;
}
.details-info h2 {
color: #0a1f44;
margin-bottom: 12px;
font-size: 1.9rem;
}
.details-info .location,
.details-info .price {
color: #0066cc;
font-weight: 600;
margin-bottom: 10px;
}
.details-info .desc {
color: #333;
line-height: 1.6;
margin-top: 15px;
margin-bottom: 25px;
}
.details-buttons {
display: flex;
gap: 15px;
margin-top: 20px;
}
.btn {
text-decoration: none;
padding: 12px 25px;
border-radius: 8px;
font-weight: 600;
transition: all 0.3s ease;
}
.back-btn {
background-color: #ddd;
color: #000;
}
.interest-btn {
background-color: #0066cc;
color: #fff;
}
.interest-btn:hover {
background-color: #004c99;
}

/* ===== Responsive Fixes for Details Page ===== */
@media (max-width: 992px) {
.details-card {
flex-direction: column;
align-items: center;
text-align: center;
padding: 25px 15px;
}

.image-container {
width: 100%;
max-height: 400px;
margin-bottom: 25px;
}

.image-container img {
width: 90%;
height: auto;
border-radius: 10px;
}

.details-info {
width: 100%;
padding: 20px;
text-align: left;
}

.details-info h2 {
text-align: center;
margin-bottom: 15px;
}

.details-info .location,
.details-info .price,
.details-info .desc {
text-align: left;
}

.details-buttons {
justify-content: center;
flex-wrap: wrap;
gap: 10px;
}

.details-buttons a {
width: auto;
text-align: center;
}
}

@media (max-width: 600px) {
.details-section {
padding: 30px 10px;
}

.image-container {
max-height: 320px;
padding: 10px;
}

.image-container img {
width: 100%;
max-height: 300px;
}

.details-info {
padding: 10px;
}

.details-info h2 {
font-size: 1.4rem;
}

.details-info .desc {
font-size: 0.95rem;
line-height: 1.5;
}

.details-buttons {
flex-direction: column;
align-items: center;
}

.details-buttons a {
width: 80%;
}
}
