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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #3a0ca3;
}

.logo-text span {
    color: #4361ee;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 5px;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: #4361ee;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4361ee;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-login {
    background: transparent;
    color: #3a0ca3;
    margin-right: 15px;
}

.btn-register {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-register:hover {
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-field {
    flex: 1 1 50px;
}

.search-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234361ee' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 45px;
    background-size: 20px;
}

.search-input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
}

.search-btn {
    flex: 1 1 50px;
    display: flex;
    align-items: flex-end;
}

.search-btn button {
    background: linear-gradient(135deg, #f72585, #b5179e);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s;
}

.search-btn button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
}

/* Section Styles */
.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #3a0ca3;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;

}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
}

.property-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .property-img img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f72585;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-info {
    padding: 20px;
}

.price {
    color: #f72585;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.property-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.property-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.property-address {
    color: #666;
    margin-bottom: 15px;
    align-items: center;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.property-address i {
    margin-right: 8px;
    color: #4361ee;
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.feature {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.feature i {
    color: #4361ee;
    margin-right: 5px;
}

/* Services */
.services {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #3a0ca3;
}

/* Agents */
.agents-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.agent-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.agent-img {
    height: 220px;
    overflow: hidden;
}

.agent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-info h3 {
    margin-bottom: 5px;
}

.agent-info p {
    color: #666;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #4361ee;
    color: white;
    transform: translateY(-3px);
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    color: white;
}

.testimonials .section-title h2 {
    color: white;
}

.testimonials .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.client {
    display: flex;
    align-items: center;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h4 {
    margin-bottom: 5px;
}

.client-info p {
    font-style: normal;
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Footer */
footer {
    background: #1d1d1d;
    color: #ddd;
    padding: 70px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #4361ee;
}

.footer-col p {
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: #4361ee;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #4361ee;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

.property-hero {
    position: relative;
}

.main-image {
    height: 70vh;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.main-image:hover {
    transform: scale(1.01);
}

.image-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.image-nav-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.7;
}

.image-nav-item:hover, .image-nav-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.image-nav-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    display: flex;
    gap: 40px;
}

.property-details {
    flex: 1;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.property-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.property-price {
    font-size: 2rem;
    font-weight: 700;
    color: #f72585;
}

.property-price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.property-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    font-size: 1.5rem;
    color: #4361ee;
    margin-right: 10px;
}

.meta-text h4 {
    font-size: 1.1rem;
    color: #2c3e50;
}

.meta-text p {
    color: #666;
    font-size: 0.9rem;
}

.property-description {
    margin-bottom: 40px;
}

.property-description h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

#id_rent_property_sale {
    visibility: hidden;
    position: absolute;
}

.property-description p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.property-features-section {
    margin-bottom: 40px;
}

.property-features-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.feature-item i {
    color: #4361ee;
    margin-right: 10px;
    font-size: 1.2rem;
}

.property-sidebar {
    flex: 0 0 350px;
}

.agent-card-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.agent-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-contact {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    margin-right: 15px;
}

.contact-text h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3px;
}

.contact-text p {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.agent-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.agent-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    transition: all 0.3s;
}

.agent-social a:hover {
    background: #4361ee;
    color: white;
    transform: translateY(-3px);
}

.schedule-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.schedule-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.property-gallery {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2c3e50;
}

.view-all {
    color: #4361ee;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 415px;
}

.nearby-properties {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}


.page-title {
    background: linear-gradient(rgba(58, 12, 163, 0.9), rgba(67, 97, 238, 0.9));
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
}

.page-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.results-info {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
}

.results-count {
    font-size: 1.1rem;
    font-weight: 500;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-options label {
    margin-right: 10px;
}

.sort-options select {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    background: white;
    color: #3a0ca3;
    font-weight: 500;
}

.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.filters-sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h3 {
    margin-bottom: 20px;
    color: #3a0ca3;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-section h3 span {
    font-size: 0.9rem;
    color: #f72585;
    cursor: pointer;
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.price-range input {
    width: 48%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.filter-options {
    list-style: none;
}

.filter-options li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.filter-options li input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.filter-options li label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-btn {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.property-listings {
    flex: 1;
}

.list-view-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-option {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3a0ca3;
    transition: all 0.3s;
}

.view-option.active, .view-option:hover {
    background: #3a0ca3;
    color: white;
}

.property-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #eef2ff;
    color: #4361ee;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.action-btn:hover {
    background: #4361ee;
    color: white;
}

.action-btn.favorite {
    margin-right: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    color: #3a0ca3;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination li a:hover, .pagination li a.active {
    background: #3a0ca3;
    color: white;
}

@media (max-width: 1190px) {
    .property-container {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .property-container {
        flex-direction: column;
    }

    .property-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item:first-child {
        grid-column: span 3;
        height: 300px;
    }

    .main-container {
        flex-direction: column;
    }

    .filters-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }

    .list-view-controls {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-image{
        height: 55vh;
    }
    .hero {
        height: auto;
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .search-box {
        flex-direction: column;
    }

    .property-header {
        flex-direction: column;
    }

    .property-price {
        margin-top: 15px;
    }

    .property-meta {
        flex-wrap: wrap;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:first-child {
        grid-column: span 2;
        height: 250px;
    }

    .page-title h1 {
        font-size: 2.2rem;
    }

    .results-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    nav ul {
        display: none;
    }

    .image-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .agent-contact{
        flex-direction: column;
    }
    .main-image{
        height: 40vh;
    }
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 20px;
    }

    .section-title h2 {
        font-size: 2rem;
    }


    .image-nav {
        display: none;
    }

    .property-title h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:first-child {
        grid-column: span 1;
        height: 200px;
    }

    .page-title h1 {
        font-size: 1.8rem;
    }


    .property-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn.favorite {
        margin-right: 0;
    }
    .logo-text{
        display: none;
    }
}

.page-header {
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.listing-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.listing-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.form-section h2 i {
    margin-right: 10px;
    color: #4361ee;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.input-field {
    position: relative;
}

.input-field input,
.input-field select,
.input-field textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
}

.input-field input[type="number"] {
    -moz-appearance: textfield;
}

.input-field input[type="number"]::-webkit-outer-spin-button,
.input-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.input-field textarea {
    min-height: 120px;
    resize: vertical;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.custom-input-container {
    display: none;
    margin-top: 10px;
}

.custom-input-container.show {
    display: block;
}

.custom-input-container .input-field {
    margin-top: 5px;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input {
    margin-right: 8px;
}

.radio-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    flex: 1;
}

.radio-card:hover {
    border-color: #4361ee;
}

.radio-card.selected {
    border-color: #4361ee;
    background-color: #f0f4ff;
}

.radio-card i {
    font-size: 2rem;
    color: #4361ee;
    margin-bottom: 10px;
}

.radio-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.radio-card p {
    font-size: 0.9rem;
    color: #666;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #4361ee;
}

.upload-area i {
    font-size: 3rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.upload-area h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.upload-area p {
    color: #666;
    margin-bottom: 15px;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #eef2ff;
    color: #4361ee;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.upload-btn:hover {
    background: #4361ee;
    color: white;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f72585;
}

.price-input {
    display: flex;
    align-items: center;
    height: 52px;
}

.price-input span {
    padding: 0 15px;
    background: #eef2ff;
    height: 100%;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #4361ee;
    font-weight: 500;
    min-width: 45px;
    justify-content: center;
}

.price-input input {
    border-radius: 0 8px 8px 0;
    border-left: none;
    padding-left: 15px;
    height: 100%;
}

.price-input input:focus {
    border-left: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.submit-section {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 25px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .listing-form {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .form-section h2 {
        font-size: 1.5rem;
    }

    .price-input {
        flex-direction: column;
        height: auto;
    }

    .price-input span {
        border-radius: 8px 8px 0 0;
        border-right: 1px solid #ddd;
        border-bottom: none;
        padding: 10px 15px;
        width: 100%;
        justify-content: flex-start;
    }

    .price-input input {
        border-radius: 0 0 8px 8px;
        border-left: 1px solid #ddd;
        border-top: none;
        width: 100%;
    }
}

.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
}

.fullscreen-gallery.active {
    display: flex;
}

.gallery-container {
    position: relative;
    width: 90%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.gallery-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.gallery-close {
    position: absolute;
    z-index: 1000;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    overflow-x: auto;
    width: 90%;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
/*    overflow: hidden;*/
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-thumb.active, .gallery-thumb:hover {
    opacity: 1;
    border-color: #4361ee;
}

.gallery-thumb img {
    width: 76px;
    height: 56px;
    border-radius: 5px;
    object-fit: cover;
}

/* User Profile Styles */

.user-profile {
    position: relative;
    cursor: pointer;
}

.profile-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-image:hover {
    border-color: #4361ee;
    transform: scale(1.05);
}

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

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    overflow: hidden;
}

.user-profile:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.user-info {
    padding: 20px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.user-details p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.dropdown-links {
    padding: 10px 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    position: relative;
}

.dropdown-link:hover {
    background: #f0f4ff;
    color: #4361ee;
    padding-left: 25px;
}

.dropdown-link i {
    width: 20px;
    margin-right: 12px;
    color: #4361ee;
    transition: transform 0.3s;
}

.dropdown-link:hover i {
    transform: scale(1.1);
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.logout-link {
    color: #f72585;
}

.logout-link:hover {
    background: #fff5f5;
    color: #f72585;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f72585;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(247, 37, 133, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(247, 37, 133, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(247, 37, 133, 0);
    }
}


/* Search wrapper for suggestions dropdown */
.search-wrapper {
    position: relative;
}

/* Enhanced Search Input */
.search-input {
    width: 100%;
    padding: 12px 20px;
    padding-left: 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234361ee' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-input:focus {
    outline: none;
    border-color: #4361ee;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-input.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%234361ee' d='M8 1a7 7 0 0 1 7 7h-2a5 5 0 0 0-5-5V1z'/%3E%3C/svg%3E");
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestions-dropdown.show {
    display: block;
}

/* Dropdown Header */
.suggestion-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f5;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.suggestion-count {
    background: #4361ee;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Suggestions List */
.suggestions-list {
    max-height: 300px;
    overflow-y: auto;
}

.suggestions-list::-webkit-scrollbar {
    width: 6px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 3px;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

/* Individual Suggestion Item */
.suggestion-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item.active {
    background-color: #eef2ff;
    border-left: 3px solid #4361ee;
}

.suggestion-item .suggestion-icon {
    width: 24px;
    height: 24px;
    background: #eef2ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 12px;
}

.suggestion-item .suggestion-content {
    flex: 1;
}

.suggestion-item .suggestion-title {
    font-weight: 500;
    color: #212529;
    font-size: 14px;
    margin-bottom: 2px;
}

.suggestion-item .suggestion-subtitle {
    font-size: 12px;
    color: #6c757d;
}

.suggestion-item .suggestion-match {
    color: #4361ee;
    font-weight: 600;
}

.suggestion-item .similarity-badge {
    background: #eef2ff;
    color: #4361ee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* No suggestions state */
.suggestion-item.no-suggestions {
    color: #6c757d;
    font-style: italic;
    cursor: default;
    justify-content: center;
    padding: 20px;
}

.suggestion-item.no-suggestions:hover {
    background-color: transparent;
}

.suggestion-item.loading {
    color: #6c757d;
    font-style: italic;
    cursor: default;
    justify-content: center;
    padding: 20px;
}

.suggestion-item.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4361ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Dropdown Footer */
.suggestion-footer {
    padding: 10px 20px;
    border-top: 1px solid #f1f3f5;
    background: #f8f9fa;
    text-align: center;
}

.suggestion-footer small {
    color: #6c757d;
    font-size: 11px;
}


nav{
    transform: translateX(-50px);
}

@media (max-width: 1200px) {
    nav{
        transform: translate(0px);
    }
}

@media (max-width: 768px) {
    .suggestions-dropdown {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        max-height: 50vh;
    }

    #mapDiv{
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    }

    .search-input {
        padding: 10px 15px;
        padding-left: 40px;
        font-size: 14px;
        background-size: 16px;
        background-position: 12px center;
    }
}

@media (max-width: 480px) {
    .property-address{
        white-space: normal;
    }

    .suggestions-dropdown {
        left: 5px;
        right: 5px;
        max-height: 60vh;
    }

    .suggestion-header {
        padding: 10px 15px;
    }

    .suggestion-item {
        padding: 10px 15px;
    }

    .suggestion-item .similarity-badge {
        font-size: 10px;
        padding: 2px 6px;
        min-width: 35px;
    }
    #id_rent_description{
        height: 540px;
    }
}

/* Add to the existing search-box styles */
.search-box {
    position: relative;
}

/* Ensure proper stacking context */
.search-field {
    position: relative;
}

/* Update search-field to handle suggestions */
.search-field:first-child {
    flex: 2 1 50px; /* Give the location field more space */
}

/* Ensure the suggestions dropdown appears above other elements */
.search-wrapper {
    z-index: 100;
}

/* Update the hero section search box to handle suggestions */
.hero .search-box {
    z-index: 10;
    position: relative;
}

/* Animation for suggestion match highlighting */
@keyframes highlightPulse {
    0% { background-color: #fff3cd; }
    50% { background-color: #ffeaa7; }
    100% { background-color: #fff3cd; }
}

.suggestion-match {
    animation: highlightPulse 2s ease-in-out;
}

.text-container {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .text-container.expanded {
    -webkit-line-clamp: unset;
  }
