/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1b4576;
    --secondary-color: #d47637;
    --accent-color: #2b578e;
    --light-color: #f8f9fa;
    --dark-color: #2d3748;
    --text-color: #333;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --danger-color: #e53e3e;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.logo p {
    font-size: 0.8rem;
    color: var(--dark-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.admin-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(176, 91, 26, 0.711), rgba(33, 50, 114, 0.64));
    background-size: cover;
    background-position: center;
    height: 80vh;
    margin-top: 70px;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 8px;
}

.btn-secondary:hover {
    background-color: #e59763;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.text-center {
    text-align: center;
}

/* Sections */
.section {
    padding: 5rem 0;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.property-location {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.property-features span {
    background-color: var(--light-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Trust Signals */
.trust-signals {
    background-color: var(--light-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h3, .footer h4 {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-img{
    width: 80px;
    height: 65px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Property Detail Page */
.property-detail {
    padding-top: 100px;
}

.property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.property-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.property-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.property-sidebar {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Admin Styles */
.admin-container {
    min-height: 100vh;
    background-color: #f5f5f5;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--primary-color);
    color: white;
    position: fixed;
    height: 100vh;
    padding-top: 20px;
}

.admin-content {
    margin-left: 250px;
    padding: 20px;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    border-left: 3px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: rgba(255,255,255,0.1);
    border-left-color: var(--secondary-color);
}

.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--primary-color);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}




/* ===== SIMPLE BLOG-STYLE CARDS - CENTERED ON WIDESCREEN ===== */
/* Brand Colors: #1b4576 (primary), #d47637 (secondary) */

.featured-properties {
    padding: 4rem 0;
    background: #f8fafc;
    width: 100%;
    display: flex;
    justify-content: center;
}

.featured-properties .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d47637;
    background: rgba(212, 118, 55, 0.08);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1b4576;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: #6c757d;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Properties Grid - Perfectly Centered */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 3rem;
}

/* Property Card */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(27, 69, 118, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(27, 69, 118, 0.1);
}

/* Card Media */
.card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-media img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #d47637;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-badge.corporate {
    background: #1b4576;
}

.card-badge.premium {
    background: #b8860b;
}

.card-price {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(27, 69, 118, 0.9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.card-price .price {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-price .period {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-left: 2px;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.card-location i {
    color: #d47637;
    font-size: 0.8rem;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1b4576;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: #d47637;
}

.card-subtitle {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(108, 117, 125, 0.1);
}

/* Features */
.card-features {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.card-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #495057;
}

.card-features i {
    color: #d47637;
    font-size: 0.8rem;
}

/* Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(108, 117, 125, 0.1);
}

.agent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d47637;
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1b4576;
}

.agent-title {
    font-size: 0.65rem;
    color: #6c757d;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1b4576;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.card-btn:hover {
    background: #1b4576;
    color: white;
    gap: 0.6rem;
}

.card-btn i {
    font-size: 0.7rem;
}

/* Section Footer */
.section-footer {
    text-align: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: #1b4576;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #1b4576;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #1b4576;
    color: white;
    gap: 0.75rem;
}

.btn-outline i {
    transition: transform 0.3s;
}

.btn-outline:hover i {
    transform: translateX(4px);
}

/* ===== WIDESCREEN CENTERING ===== */
/* For screens larger than 1400px */
@media (min-width: 1400px) {
    .featured-properties .container {
        max-width: 1320px;
    }
}

/* For screens larger than 1600px */
@media (min-width: 1600px) {
    .featured-properties .container {
        max-width: 1440px;
    }
    
    .properties-grid {
        gap: 2.5rem;
    }
}

/* For screens larger than 1900px */
@media (min-width: 1400px) {
    .featured-properties .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .featured-properties .container {
        max-width: 1440px;
    }
    
    .properties-grid {
        gap: 2.5rem;
    }
}

@media (min-width: 1900px) {
    .featured-properties .container {
        max-width: 1600px;
    }
    
    /*.property-card {
        max-width: 500px;
        justify-self: center;
    }*/
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .featured-properties {
        padding: 3rem 0;
    }
    
    .featured-properties .container {
        padding: 0 1.5rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card-media {
        height: 220px;
    }

    .slider-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 576px) {
    .featured-properties .container {
        padding: 0 1rem;
    }
    
    .section-tag {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-features {
        gap: 1rem;
    }

    .slider-btn {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeIn 0.6s ease forwards;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }



/* ===== SLIDER STYLES - ADDED WITHOUT CHANGING YOUR DESIGN ===== */
.card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 5;
    color: #1b4576;
    font-size: 0.8rem;
}

.slider-container:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: white;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}
