/* Real Estate Website Stylesheet */

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --error-color: #e53e3e;
    --warning-color: #d69e2e;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

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

.navbar {
    padding: 0.75rem 0;
}

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

.nav-brand a {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand a i {
    font-weight: 900;
}

.site-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 700;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.user-menu {
    position: relative;
}

.user-menu .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow-lg);
    border-radius: 5px;
    padding: 0.5rem 0;
    min-width: 150px;
    display: none;
    list-style: none;
}

.user-menu:hover .dropdown {
    display: block;
}

.user-menu .dropdown li {
    padding: 0.5rem 1rem;
}

.user-menu .dropdown a {
    display: block;
}

.btn-login, .btn-signup {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-login {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-signup {
    background: var(--primary-color);
    color: white;
}

.btn-signup:hover {
    background: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.search-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.search-btn {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 600;
}

.search-btn i {
    font-weight: 900;
    margin-right: 0.5rem;
}

.search-btn:hover {
    background: var(--secondary-color);
}

.hero-cta {
    margin-top: 2rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary i {
    font-weight: 900;
    margin-right: 0.5rem;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

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

.property-card {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.property-link {
    text-decoration: none;
    color: inherit;
}

.property-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 10px;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 5px;
    font-size: 0.85rem;
}

.property-badge.featured {
    background: var(--accent-color);
    left: 10px;
}

.property-badge.type {
    right: 10px;
}

.property-content {
    padding: 1.5rem;
}

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

.property-location {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.property-location i {
    font-weight: 900;
    color: var(--primary-color);
}

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

.property-specs span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.property-specs span i {
    font-weight: 900;
    color: var(--primary-color);
}

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

.property-time {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Listings Page */
.listings-page {
    padding: 2rem 0;
}

.listings-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.filters-sidebar {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.filters-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.listings-content {
    min-height: 500px;
}

.listings-header {
    margin-bottom: 2rem;
}

.listings-header h2 {
    color: var(--primary-color);
}

/* Property Detail Page */
.property-detail-page {
    padding: 2rem 0;
}

.property-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.property-images {
    margin-bottom: 2rem;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.image-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.property-video {
    margin: 2rem 0;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.property-video h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.property-info {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

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

.property-price-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-specs-detail {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 900;
}

.property-description, .property-amenities, .property-map {
    margin: 2rem 0;
}

.property-description h3, .property-amenities h3, .property-map h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.amenity-item {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 5px;
    font-size: 0.9rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
}

.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card, .property-actions, .property-stats {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.owner-info p {
    margin-bottom: 0.5rem;
}

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

.btn-favorite, .btn-compare {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-favorite.active, .btn-compare.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Forms */
.property-form, .auth-form, .contact-form {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee;
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background: #efe;
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Dashboard */
.dashboard-page {
    padding: 2rem 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 900;
}

.stat-icon i {
    font-weight: 900;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.dashboard-actions {
    margin-bottom: 2rem;
}

.properties-table {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: var(--success-color);
}

.status-pending {
    background: #fff3cd;
    color: var(--warning-color);
}

.status-rejected {
    background: #f8d7da;
    color: var(--error-color);
}

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-section {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.btn-danger {
    background: var(--error-color);
    color: white;
}

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

.btn-success:hover {
    background: #218838;
}

.admin-table {
    overflow-x: auto;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.admin-table table {
    width: 100%;
    min-width: 800px;
}

.admin-filters {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.admin-filters label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.admin-filters input,
.admin-filters select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.status-sold {
    background: #e2e3e5;
    color: #6c757d;
}

.status-blocked {
    background: #f8d7da;
    color: var(--error-color);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.property-form {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
}

.property-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.property-form input[type="text"],
.property-form input[type="number"],
.property-form input[type="url"],
.property-form select,
.property-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.property-form textarea {
    resize: vertical;
}

.property-form input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Floating Action Buttons */
.floating-actions,
.floating-actions-global {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floating-actions-global {
    transition: opacity 0.3s, transform 0.3s;
}

.floating-actions-global.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
}

/* Notification Toast */
@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
}

.notification-toast {
    animation: slideUp 0.3s ease-out;
}

/* Property Card Hover Effect for Floating Buttons */
.property-card {
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Card Action Buttons */
.card-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.card-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.card-action-btn.active {
    background: var(--error-color);
    color: white;
}

.card-action-btn.card-compare.active {
    background: var(--warning-color);
    color: white;
}

.card-action-btn.card-share {
    background: var(--secondary-color);
    color: white;
}

.card-action-btn.card-share:hover {
    background: var(--secondary-color);
    opacity: 0.9;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    position: relative;
    font-size: 1.25rem;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.fab-btn.active {
    background: var(--error-color);
}

.fab-btn.fab-compare.active {
    background: var(--warning-color);
}

.fab-btn.fab-share {
    background: var(--secondary-color);
}

.fab-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Property Card Actions */
.property-card {
    position: relative;
}

.property-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.card-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    font-size: 1rem;
}

.card-action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-action-btn.active {
    background: var(--error-color);
    color: white;
}

.card-action-btn.card-compare.active {
    background: var(--warning-color);
    color: white;
}

.card-action-btn.card-share {
    background: var(--secondary-color);
    color: white;
}

.card-action-btn.card-share:hover {
    background: var(--primary-color);
}

/* Contact Card Login Prompt */
.login-prompt {
    text-align: center;
    padding: 1.5rem;
}

.login-prompt p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.login-prompt .btn-primary,
.login-prompt .btn-secondary {
    margin-bottom: 0.5rem;
}

/* Contact Card */
.contact-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.owner-info p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.owner-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.owner-info a:hover {
    text-decoration: underline;
}

/* Responsive Floating Actions */
@media (max-width: 768px) {
    .floating-actions {
        right: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .property-card-actions {
        top: 5px;
        right: 5px;
    }
    
    .card-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a i {
    font-weight: 900;
}

.footer-section a:hover {
    color: white;
}

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

.social-links a {
    font-size: 1.5rem;
    font-weight: 900;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Cities Section */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.city-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.city-card i {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 900;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 900;
}

.feature-icon i {
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--bg-light);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
}

.scratch-card-notification {
    position: relative;
}

.wallet-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* Profile Page */
.profile-page {
    padding: 2rem 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    width: 100%;
}

.profile-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.profile-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.profile-card h2 i {
    font-weight: 900;
    font-size: 1.25rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-form label {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-form label i {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.profile-form .form-control {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.profile-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.profile-form small {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: -0.25rem;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-color);
}

.account-info i {
    font-weight: 900;
    color: var(--primary-color);
}

.account-role {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.account-role i {
    font-weight: 900;
    color: var(--accent-color);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-blocked {
    background: #f8d7da;
    color: #721c24;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        display: none;
        z-index: 1000;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
        font-weight: 700;
        font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
        font-size: 1rem;
        letter-spacing: 0.3px;
    }
    
    .user-menu .dropdown {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
        background: var(--bg-light);
        border-radius: 5px;
    }
    
    .user-menu:hover .dropdown {
        display: block;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .search-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input,
    .search-select {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .search-btn {
        width: 100%;
        padding: 0.875rem;
    }
    
    .listings-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .property-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .city-card {
        padding: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .property-image {
        height: 200px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .dashboard-stats,
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .search-box {
        padding: 0.875rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .property-content {
        padding: 1.25rem;
    }
    
    .property-price {
        font-size: 1.25rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-brand a {
        font-size: 1.25rem;
    }
    
    .site-logo {
        height: 32px;
        max-width: 140px;
    }
    
    .site-name {
        font-size: 1.2rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .view-all {
        align-self: flex-end;
    }
    
    .profile-page {
        padding: 1.5rem 0;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-card h2 {
        font-size: 1.25rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .profile-layout {
        gap: 1.5rem;
    }
    
    .account-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Listings Page Fixed Floating Buttons */
.listings-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.listings-fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    position: relative;
}

.listings-fab-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.listings-fab-btn.fab-favorites.active {
    background: var(--error-color);
}

.listings-fab-btn.fab-compare.active {
    background: var(--warning-color);
}

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.3s;
}

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

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

.modal-extra-large {
    max-width: 1200px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.favorite-item {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.favorite-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.favorite-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.favorite-info {
    padding: 1rem;
}

.favorite-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.favorite-info p {
    margin: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.favorite-price {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-remove-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--error-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn-remove-favorite:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

/* Compare Table */
.compare-table-container {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
    vertical-align: top;
}

.compare-table th {
    background: var(--bg-light);
    font-weight: 600;
    position: relative;
}

.compare-table th:first-child {
    background: var(--primary-color);
    color: white;
    min-width: 150px;
}

.compare-table td:first-child {
    background: var(--bg-light);
    font-weight: 600;
    min-width: 150px;
}

.compare-table img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.compare-table a {
    color: var(--primary-color);
    text-decoration: none;
}

.compare-table a:hover {
    text-decoration: underline;
}

.btn-remove-compare {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--error-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn-remove-compare:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

/* Share Modal */
.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-option-btn {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.share-option-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-3px);
}

.share-option-btn i {
    font-size: 2rem;
}

.share-link-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-link-container input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-copy-link {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-copy-link:hover {
    background: var(--secondary-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.error-message {
    padding: 1rem;
    background: #fee;
    color: var(--error-color);
    border-radius: 5px;
    text-align: center;
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .listings-fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .listings-fab-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-extra-large {
        max-width: 95%;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .compare-table-container {
        overflow-x: scroll;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

