:root {
    --primary-color: #0052ff;
    --dark-color: #1a202c;
    --gray-color: #6c757d;
    --light-gray-color: #f8f9fa;
    --white-color: #ffffff;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #0045d1;
    transform: translateY(-2px);
}

/* Section Styles */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--dark-color);
}
.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* General Body & Typography */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 15px;
}
h1, h2, h3, h4 {
    font-weight: 600;
}
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
a:hover {
    color: #0056b3;
}
/* Add/modify this block */
header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    /* Add these lines for the sticky effect */
    position: sticky;
    top: 0;
    z-index: 999;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px; /* Add padding here */
}

/* Header/Nav */
header nav {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
header .logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #343a40;
}
header .nav-links a {
    margin-left: 20px;
    font-weight: 500;
}

/* Listings Page Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.listing-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.listing-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.listing-card .card-content {
    padding: 20px;
}
.listing-card .card-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 10px;
}
.listing-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.25em;
}
.listing-card .card-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #000;
}
.listing-card .card-location {
    color: #6c757d;
    margin-top: 5px;
    font-size: 0.9em;
}
.listing-card .card-button {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    font-weight: 500;
}

/* Listing Details Page */
.listing-details-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}
.gallery .main-image img {
    width: 100%;
    border-radius: 12px;
    max-height: 500px;
    object-fit: cover;
}
.gallery .thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}
.gallery .thumbnails img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.gallery .thumbnails img:hover, .gallery .thumbnails img.active {
    border-color: #007bff;
}
.pricing-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}
.pricing-box .price {
    font-size: 2.2em;
    font-weight: 700;
}
.pricing-box button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
}
@media (max-width: 768px) {
    .listing-details-layout {
        grid-template-columns: 1fr;
    }
}

/* Header Button & Responsive Adjustments */
.nav-button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
}
.nav-button:hover {
    color: white;
    background-color: #0056b3;
}

/* Mobile Menu Styles */
.mobile-menu-icon {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}
.mobile-menu-icon span {
    width: 100%;
    height: 3px;
    background-color: #343a40;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 280px;
    height: 100%;
    background-color: #2c3e50;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: right 0.4s ease-in-out;
    padding: 60px 20px 20px 20px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-panel.active {
    right: 0; /* Slide in */
}
.mobile-nav-panel a {
    color: white;
    font-size: 1.2em;
    padding: 15px 10px;
    text-decoration: none;
    border-radius: 5px;
}
.mobile-nav-panel a:hover {
    background-color: #34495e;
}
.close-icon {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5em;
    color: white;
    cursor: pointer;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Media Query for mobile screens */
@media (max-width: 860px) {
    .nav-links {
        display: none; /* Hide desktop nav links */
    }
    .mobile-menu-icon {
        display: flex; /* Show hamburger icon */
    }
}
/* Custom Radio Button Card Styles */
.account-type-group {
    display: grid;
    /* Change this line */
    grid-template-columns: repeat(3, 1fr); /* This creates 3 equal columns */
    gap: 15px;
    margin-top: 5px;
}
.account-type-group label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.account-type-group label:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}
.account-type-group input[type="radio"] {
    display: none; /* Hide the actual radio button */
}
.account-type-group input[type="radio"]:checked + .radio-content {
    /* This applies styles to the content when the radio is checked */
    font-weight: 600;
}
.account-type-group label.selected {
    border-color: #007bff;
    background-color: #e7f1ff;
}
.radio-icon {
    font-size: 1.5em;
    margin-right: 15px;
}
