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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

button {
    cursor: pointer;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff2d95;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #ff2d95;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 45, 149, 0.2);
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ff2d95;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.cta-button {
    background: linear-gradient(135deg, #ff2d95 0%, #5b24ff 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(91, 36, 255, 0.3);
}

/* Search Section */
.search-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.search-container {
    display: flex;
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-input, .search-select {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus, .search-select:focus {
    border-color: #ff2d95;
}

.search-button {
    background: linear-gradient(135deg, #ff2d95 0%, #5b24ff 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 36, 255, 0.3);
}

/* Featured Listings */
.featured-listings {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.listing-image {
    position: relative;
}

.listing-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.listing-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff2d95 0%, #5b24ff 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.listing-details {
    padding: 20px;
}

.listing-details h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.listing-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.listing-amenities {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.listing-owner {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    font-style: italic;
}

.view-details-button {
    background-color: transparent;
    color: #ff2d95;
    border: 1px solid #ff2d95;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s;
    width: 100%;
}

.view-details-button:hover {
    background-color: #ff2d95;
    color: white;
}

.view-more-container {
    text-align: center;
}

.view-more-button {
    background-color: transparent;
    color: #5b24ff;
    border: 1px solid #5b24ff;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
}

.view-more-button:hover {
    background-color: #5b24ff;
    color: white;
}

/* How It Works Section */
.how-it-works {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.step-card {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff2d95 0%, #5b24ff 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-card p {
    font-size: 16px;
    color: #666;
}

/* Owner CTA Section */
.owner-cta {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 40px 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 40px;
}

.owner-cta-content {
    flex: 1;
}

.owner-cta-image {
    flex: 1;
}

.owner-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.owner-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

/* Footer */
footer {
    background-color: #1a1a2e;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff2d95;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff2d95;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ff2d95;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 80%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
}

.close-modal:hover {
    color: #ff2d95;
}

.modal-body {
    display: flex;
    padding: 20px;
}

.modal-image-gallery {
    flex: 1;
    padding-right: 30px;
}

#modal-main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
}

.modal-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modal-thumbnail:hover, .modal-thumbnail.active {
    opacity: 1;
}

.modal-info {
    flex: 1;
}

.modal-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.modal-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff2d95;
    margin-bottom: 10px;
}

.modal-location {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.modal-details, .modal-description, .modal-owner {
    margin-bottom: 25px;
}

.modal-details h3, .modal-description h3, .modal-owner h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.modal-amenities-list {
    list-style: disc;
    padding-left: 20px;
}

.modal-amenities-list li {
    margin-bottom: 5px;
    color: #555;
}

.modal-description p {
    color: #555;
    line-height: 1.8;
}

.modal-owner p {
    color: #555;
    margin-bottom: 5px;
}

.contact-owner-button {
    background: linear-gradient(135deg, #ff2d95 0%, #5b24ff 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.contact-owner-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(91, 36, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero, .owner-cta, .modal-body {
        flex-direction: column;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 30px;
    }
    
    .steps-container {
        flex-wrap: wrap;
    }
    
    .step-card {
        flex-basis: 45%;
        margin-bottom: 20px;
    }
    
    .modal-image-gallery {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-basis: 100%;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Neon Glow Effects */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 45, 149, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.owner-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(91, 36, 255, 0.2), transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: -1;
}

/* Additional styles for login button */
.login-button {
    background: linear-gradient(135deg, #ff2d95 0%, #5b24ff 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 36, 255, 0.3);
}

/* Messaging page specific styles */
.messaging-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.messaging-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #FFF3CD;
    color: #856404;
}

.status-approved {
    background-color: #D4EDDA;
    color: #155724;
}

.status-rejected {
    background-color: #F8D7DA;
    color: #721C24;
}

.status-terminated {
    background-color: #E2E3E5;
    color: #383D41;
}

/* Button Styles */
.primary-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff2d95 0%, #5b24ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 45, 149, 0.3);
}