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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-primary {
    background: #10B981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-outline {
    background: transparent;
    color: #10B981;
    border: 1.5px solid #10B981;
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: #059669;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #10B981;
    margin-right: 2rem;
    flex-shrink: 0;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #10B981;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #10B981;
    border-radius: 1px;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #10B981;
    border-radius: 1px;
    animation: navLinkHover 0.2s ease forwards;
}

.nav-link.active:hover::after {
    width: 100%;
    left: 0;
    transform: none;
    animation: none;
}

@keyframes navLinkHover {
    to {
        width: 100%;
    }
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-auth .btn {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 20px;
}

.hero-content h1 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #6b7280;
}

.hero-image {
    flex: 1;
    padding: 0 20px;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Search Container */
.search-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-range {
    display: flex;
    gap: 1rem;
    grid-column: span 2;
}

.price-range .search-input {
    flex: 1;
    min-width: 120px;
}

.search-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

.search-input::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: #10B981;
}

.search-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Featured Section */
.featured-section {
    padding: 6rem 0;
    background: #fafafa;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

.sort-select {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.listing-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #10B981;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.listing-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-available {
    background: #10B981;
    color: white;
}

.status-sold {
    background: #ef4444;
    color: white;
}

.status-reserved {
    background: #f59e0b;
    color: white;
}

.listing-content {
    padding: 1.5rem;
}

.listing-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.listing-location {
    color: #6b7280;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.listing-location i {
    margin-right: 5px;
}

.listing-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 1rem;
}

.listing-actions {
    display: flex;
    gap: 1rem;
}

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

/* Load More */
.load-more-container {
    text-align: center;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.features {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 2rem;
    color: #10B981;
    margin-top: 0.5rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: #f9fafb;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #10B981;
    width: 40px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #10B981;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 10px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #10B981;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-section ul li a:hover {
    color: #10B981;
    padding-left: 4px;
}

.footer-section ul li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: #10B981;
    transition: width 0.2s ease;
    margin-right: 0;
}

.footer-section ul li a:hover::before {
    width: 8px;
    margin-right: 4px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #10B981;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 900px;
}

/* Google Sign-In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-google:active {
    transform: scale(0.98);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    color: #9ca3af;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
}

.auth-footer a {
    color: #10B981;
    font-weight: 500;
    text-decoration: none;
}

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

/* Button Block */
.btn-block {
    width: 100%;
}

/* Button Loader */
.btn-loader {
    display: inline-flex;
    align-items: center;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ef4444;
}

.modal h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal form input,
.modal form select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal form input:focus,
.modal form select:focus {
    outline: none;
    border-color: #10B981;
}

.modal p {
    text-align: center;
    margin-top: 1rem;
}

.modal p a {
    color: #10B981;
    text-decoration: none;
    font-weight: 500;
}

.modal p a:hover {
    text-decoration: underline;
}

/* Land Detail Modal */
.land-detail-header {
    position: relative;
    margin-bottom: 2rem;
}

.land-detail-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
}

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

.thumbnail-images {
    display: grid;
    gap: 1rem;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

.thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.land-detail-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.land-main-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.land-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 1.5rem;
}

.land-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-item {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
}

.meta-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.meta-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.land-description {
    margin-bottom: 2rem;
}

.land-features {
    margin-bottom: 2rem;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.feature-item.available {
    color: #10B981;
}

.land-sidebar {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 15px;
    height: fit-content;
}

.contact-owner {
    text-align: center;
    margin-bottom: 2rem;
}

.owner-info {
    margin-bottom: 2rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .land-detail-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .land-detail-images {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-auth {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .price-range {
        flex-direction: column;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .land-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content,
    .hero-image {
        padding: 0 15px;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .listing-actions {
        flex-direction: column;
    }
    
    .land-meta {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #10B981;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* ============================================
   ROLE-BASED UI STYLES
   ============================================ */

/* Save Button on Listing Cards */
.save-btn {
    position: absolute;
    top: 15px;
    right: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.save-btn i {
    color: #9ca3af;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.save-btn:hover {
    background: white;
    transform: scale(1.1);
}

.save-btn:hover i {
    color: #ef4444;
}

.save-btn.saved i {
    color: #ef4444;
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 2000;
    overflow: hidden;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-bottom: 1px solid #e5e7eb;
}

.user-avatar-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-menu-info {
    display: flex;
    flex-direction: column;
}

.user-menu-info span:first-child {
    font-weight: 600;
    color: #1f2937;
}

.user-type-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    display: inline-block;
    width: fit-content;
}

.user-type-badge.buyer {
    background: #dbeafe;
    color: #1d4ed8;
}

.user-type-badge.owner {
    background: #d1fae5;
    color: #047857;
}

.user-menu-items {
    padding: 8px 0;
}

.user-menu-items a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-menu-items a:hover {
    background: #f3f4f6;
    color: #10B981;
}

.user-menu-items a i {
    width: 20px;
    text-align: center;
}

.user-menu-items hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Buyer Dashboard Modal Styles */
.buyer-dashboard {
    padding: 20px;
}

.buyer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 1rem;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #f3f4f6;
    color: #10B981;
}

.tab-btn.active {
    background: #d1fae5;
    color: #047857;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Saved Listings Grid */
.saved-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.saved-listing-card {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.saved-listing-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.saved-listing-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.saved-listing-info {
    padding: 15px;
}

.saved-listing-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #1f2937;
}

.saved-listing-info .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10B981;
    margin-bottom: 5px;
}

.saved-listing-info .location {
    font-size: 0.85rem;
    color: #6b7280;
}

.saved-listing-actions {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: none;
}

.btn-danger:hover {
    background: #fecaca;
}

/* Inquiry Cards in Buyer Dashboard */
.buyer-dashboard .inquiries-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.inquiry-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.inquiry-property {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.inquiry-property h4 {
    margin: 0;
    color: #1f2937;
}

.inquiry-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.inquiry-status.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.inquiry-status.status-responded {
    background: #d1fae5;
    color: #047857;
}

.inquiry-message {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.inquiry-date {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Buyer Profile Form */
.buyer-profile-form {
    max-width: 500px;
}

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

.buyer-profile-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.buyer-profile-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.buyer-profile-form input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Role-specific nav button styles */
#ownerDashboardLink,
#buyerDashboardLink {
    display: none;
    align-items: center;
    gap: 8px;
}

#ownerDashboardLink i,
#buyerDashboardLink i {
    font-size: 0.9rem;
}

/* Small button variant */
.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive adjustments for role UI */
@media (max-width: 768px) {
    .user-menu-dropdown {
        right: 10px !important;
        left: 10px !important;
        min-width: auto;
    }
    
    .save-btn {
        right: 50px;
        width: 32px;
        height: 32px;
    }
    
    .buyer-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .saved-listings-grid {
        grid-template-columns: 1fr;
    }
    
    #ownerDashboardLink,
    #buyerDashboardLink {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}
