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

:root {
    /* Navy blue inspired color palette */
    --primary-color: #1e3a8a; /* Deep navy blue */
    --secondary-color: #3b82f6; /* Bright blue */
    --accent-color: #2563eb; /* Medium blue */
    --dark-color: #1e293b; /* Dark slate */
    --light-blue: #60a5fa; /* Light blue */
    --gold: #fbbf24; /* Gold accent */
    --text-color: #1e293b;
    --light-bg: #f1f5f9; /* Light blue-gray background */
    --white: #ffffff;
    --border-color: #cbd5e1;
    --shadow: 0 4px 15px rgba(30, 58, 138, 0.15);
    --shadow-hover: 0 8px 25px rgba(30, 58, 138, 0.25);
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.logo i {
    color: var(--white);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--white);
    opacity: 0.8;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* User Menu */
/* User Menu */
.user-menu {
    position: relative;
}

.user-menu > .btn {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 5px;
    box-shadow: var(--shadow);
    min-width: 200px;
    margin-top: 0.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
}

.dropdown-menu a i {
    color: var(--graphite);
    width: 20px;
}

/* Hero Section with Dynamic Background */
.hero {
    position: relative;
    background: url('header4.png') center 40%/cover no-repeat;
    color: var(--white);
    padding: 150px 20px 100px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.2s;
}

/* Keyframe Animations */
@keyframes backgroundPulse {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(5deg);
    }
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.btn-clear {
    background: var(--accent-color);
    color: var(--white);
}

.btn-clear:hover {
    background: var(--accent-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Membership Banner Styles */
.membership-banner {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.membership-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.membership-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.membership-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.membership-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.membership-icon i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.membership-text h3 {
    color: white;
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.membership-text p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1rem;
}

.membership-action {
    flex-shrink: 0;
}

.membership-banner .btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.membership-banner .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Membership Banner Variations */
.membership-banner.pro {
    background: linear-gradient(135deg, #fbbf24 0%, #3b82f6 100%);
}

.membership-banner.elite {
    background: linear-gradient(135deg, #8e44ad 0%, #e74c3c 100%);
}

@media (max-width: 768px) {
    .membership-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .membership-info {
        flex-direction: column;
        text-align: center;
    }

    .membership-text h3 {
        font-size: 1.25rem;
    }

    .membership-text p {
        font-size: 0.9rem;
    }
}

/* Section Styles */
.properties-section,
.list-property-section,
.about-section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Search and Filter Bar */
.search-filter-bar {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.search-box {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    background: var(--white);
}

.search-box i {
    color: var(--graphite);
    margin-right: 10px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters select {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

.filters select:focus {
    border-color: var(--accent-color);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.property-card {
    grid-column: span 3;
}

.property-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    animation: fadeIn 0.5s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.my-property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pro-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.masked-content {
    color: #999;
    font-style: italic;
    cursor: help;
    position: relative;
}

.masked-content i {
    font-size: 0.8em;
    margin-right: 3px;
}

.pro-locked {
    background: rgba(212, 175, 55, 0.05);
    border: 2px dashed var(--gold);
    border-radius: 10px;
    padding: 1.5rem;
}

.pro-locked h3 {
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upgrade-prompt {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.upgrade-prompt p {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.upgrade-prompt .btn {
    margin-top: 0.5rem;
}

.owner-badge {
    display: inline-block;
    background: var(--light-bg);
    color: #666;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.owner-badge i {
    color: var(--graphite);
}

.property-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.property-content {
    padding: 1.5rem;
}

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

.property-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-type {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.property-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    margin: 0.5rem 0;
}

.property-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.property-detail i {
    color: var(--graphite);
}

.property-description {
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-contact-section {
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.property-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-contact.locked {
    opacity: 0.6;
}

.contact-item-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.contact-item-small i {
    color: var(--primary-color);
    width: 16px;
    font-size: 0.9rem;
}

.contact-item-small a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.contact-item-small a:hover {
    text-decoration: underline;
}

.contact-item-small .masked-content {
    font-size: 0.85rem;
}

.upgrade-mini-prompt {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 5px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.upgrade-mini-prompt i {
    font-size: 0.75rem;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
}

.property-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.2rem;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group small {
    margin-top: 0.3rem;
    color: #666;
    font-size: 0.85rem;
}

/* About Section */
.about-section {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
    opacity: 0.7;
}

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

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
    position: relative;
}

.close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    background: var(--accent-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    margin: 10px;
    z-index: 10;
}

.close:hover {
    background: var(--graphite);
}

.modal-property-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-property-content {
    padding: 2rem;
}

.modal-property-header {
    margin-bottom: 1.5rem;
}

.modal-property-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-property-price {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.modal-property-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.modal-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-detail-item i {
    color: var(--graphite);
}

.modal-property-description {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.modal-contact-info {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.modal-contact-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0.5rem 0;
}

.contact-item i {
    color: var(--graphite);
}

/* Auth Modal Styles */
.auth-modal {
    max-width: 500px;
}

.auth-container {
    padding: 2rem;
}

.auth-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-container .form-group {
    margin-bottom: 1.5rem;
}

.auth-container label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.auth-container label i {
    color: var(--graphite);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-switch a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.auth-error.show {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .property-card {
        grid-column: span 4;
    }
}

@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .property-card {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .auth-buttons {
        margin-top: 0.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .properties-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .property-card {
        grid-column: span 4;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        min-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-property-image {
        height: 250px;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .hero,
    .list-property-section,
    .search-filter-bar {
        display: none;
    }
}
