:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-dark: #1d4ed8;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Navigation - Mobile First Approach */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.navbar.visible {
    transform: translateY(0);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1001;
}

/* Mobile Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
}

.nav-menu.active {
    left: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle .icon {
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle.active .hamburger {
    opacity: 0;
}

.mobile-menu-toggle.active .close {
    opacity: 1;
}

.mobile-menu-toggle .close {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.btn-login,
.btn-register {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-register {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border-color: var(--accent);
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-menu {
    position: relative;
    display: none;
}

.user-menu.show {
    display: block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item.admin {
    color: var(--gold);
    font-weight: 600;
}

/* Hero Section - Mobile Optimized */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./hero2.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    opacity: 0.5;
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(1.8rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(1.2rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: clamp(0.7rem, 3vw, 0.875rem);
    color: #94a3b8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Property Search Section - Mobile Optimized */
.property-search {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

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

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

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-input,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.search-btn {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.login-required {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 16px;
    margin: 2rem 0;
}

.login-required h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.login-required p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Properties Grid - Mobile Optimized */
.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.property-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

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

.property-image {
    height: 180px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    overflow: hidden;
}

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

.property-image .image-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.property-content {
    padding: 1.25rem;
}

.property-price {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.property-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

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

.btn-view {
    flex: 1;
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-favorite {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

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

.property-tabs {
    margin-top: 2rem;
}

/* Scroll offset für die Property Search Section */
#properties-search {
    scroll-margin-top: 5rem; /* Abstand für den fixed Header */
    padding-top: 2rem; /* Zusätzlicher visueller Abstand */
}

/* Alternative: Wenn die Container-Klasse für die Tab-Navigation verwendet wird */
.container#properties-search {
    scroll-margin-top: 5rem;
    padding-top: 2rem;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
}

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

.tab-content {
    display: flex;
    flex-direction: column;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Admin Panel - Mobile Optimized */
.admin-panel {
    display: none;
    padding: 2rem 0;
    background: var(--bg-tertiary);
}

.admin-panel.show {
    display: block;
}

.admin-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.admin-btn {
    background: var(--gold);
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-form {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none;
}

.admin-form.show {
    display: block;
    animation: slideInDown 0.3s ease;
}

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

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

.textarea-field {
    grid-column: 1 / -1;
    min-height: 100px;
    resize: vertical;
}

/* Calculator Section - Mobile Optimized */
.calculator {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.calculator-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.calculator-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

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

.calculate-btn {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    width: 100%;
    display: block;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.result-container {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: none;
}

.result-container.show {
    display: block;
    animation: slideInUp 0.5s ease;
}

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

.result-value {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--success), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.result-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 4vw, 1.1rem);
}

.result-details {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.result-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.breakdown-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
}

.breakdown-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.breakdown-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Styles - Mobile Optimized */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: 1rem;
    animation: slideInUp 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.auth-form {
    text-align: left;
}

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

.auth-form .form-input {
    width: 100%;
}

.auth-toggle {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

/* Services Section - Mobile Optimized */
.services {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.service-features li i {
    color: var(--success);
    font-size: 0.7rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.btn-service {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-service:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Contact Section - Mobile Optimized */
.contact {
    padding: 3rem 0;
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.contact-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-content h2 {
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: left;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.contact-form-group {
    margin-bottom: 1.25rem;
}

.contact-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.contact-form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.contact-form-submit {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer - Mobile Optimized */
.footer {
    background: var(--primary-light);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section p,
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Image Upload Styles - Mobile Optimized */
.image-upload-section {
    grid-column: 1 / -1;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.image-upload-section:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.image-upload-section.dragover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.upload-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.file-input {
    display: none;
}

.upload-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.upload-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

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

.image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

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

.image-preview .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-preview .remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-preview .main-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: var(--gold);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
}

.set-main-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.set-main-btn:hover {
    background: var(--gold);
}

/* Für Webkit-Browser (Chrome, Safari, Edge) */
.property-modal .modal-content::-webkit-scrollbar {
    display: none;
}

/* Für Firefox */
.property-modal .modal-content {
    scrollbar-width: none;
}

/* Für alle Browser - funktioniert aber scrolling bleibt erhalten */
.property-modal .modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;     /* Firefox */
}

/* Property Details Modal - Mobile Optimized */
.property-modal .modal-content {
    max-width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    padding: 0;
    margin: 0.5rem;
    border-radius: 16px;
}

.property-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.property-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

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

.property-title {
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
}

.property-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gold);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 3;
}

/* ==============================================
   ENHANCED IMAGE SLIDER STYLES
   ============================================== */

/* Image Slider Container */
.image-slider-container {
    position: relative;
    background: var(--bg-primary);
    border-radius: 0;
    overflow: hidden;
}

.image-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* View Mode Controls */
.image-view-controls {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.view-mode-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-mode-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.view-mode-btn.active {
    background: var(--accent);
    color: white;
}

/* Slider Track */
.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

/* Image View Modes */
.image-slider.fit-mode .slider-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-slider.fill-mode .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-slide img:hover {
    transform: scale(1.02);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.slider-controls:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Slider Counter */
.slider-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* ==============================================
   FULLSCREEN IMAGE VIEWER
   ============================================== */

.image-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    padding: 2rem;
}

.image-fullscreen-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.fullscreen-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.fullscreen-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    text-align: center;
}

/* ==============================================
   NO IMAGES PLACEHOLDER
   ============================================== */

.no-images-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.no-images-placeholder i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.no-images-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ==============================================
   LOADING STATES
   ============================================== */

.image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 1rem;
}

.image-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--error);
}

.slider-slide img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-slide img.loaded {
    opacity: 1;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
    .image-slider {
        height: 300px;
    }
    
    .image-view-controls {
        top: 0.5rem;
        left: 0.5rem;
        gap: 0.25rem;
    }
    
    .view-mode-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .slider-controls {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .slider-prev {
        left: 0.5rem;
    }
    
    .slider-next {
        right: 0.5rem;
    }
    
    .slider-counter {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .slider-indicators {
        bottom: 1rem;
    }
    
    .slider-indicator {
        width: 10px;
        height: 10px;
    }
    
    .fullscreen-close {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .fullscreen-info {
        bottom: 1rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .image-fullscreen-overlay {
        padding: 1rem;
    }
    
    .fullscreen-image {
        max-width: 95vw;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .image-slider {
        height: 250px;
    }
    
    .view-mode-btn {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
    
    .slider-controls {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .no-images-placeholder {
        height: 250px;
    }
    
    .no-images-placeholder i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .no-images-placeholder span {
        font-size: 1rem;
    }
}

/* ==============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================== */

@media (hover: none) and (pointer: coarse) {
    .slider-controls:hover,
    .view-mode-btn:hover,
    .slider-indicator:hover,
    .fullscreen-close:hover {
        transform: none;
    }
    
    .slider-controls:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .view-mode-btn:active,
    .fullscreen-close:active {
        transform: scale(0.95);
    }
    
    .slider-indicator:active {
        transform: scale(1.1);
    }
}

/* ==============================================
   HIGH DPI DISPLAY OPTIMIZATIONS
   ============================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .slider-slide img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .fullscreen-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================== */

@media (prefers-reduced-motion: reduce) {
    .slider-track {
        transition: none;
    }
    
    .slider-slide img,
    .view-mode-btn,
    .slider-controls,
    .slider-indicator,
    .fullscreen-image {
        transition: none;
        animation: none;
    }
    
    .image-fullscreen-overlay.show {
        animation: none;
    }
}

/* Focus indicators for keyboard navigation */
.slider-controls:focus,
.view-mode-btn:focus,
.slider-indicator:focus,
.fullscreen-close:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .slider-controls,
    .view-mode-btn,
    .fullscreen-close {
        background: black;
        border: 2px solid white;
    }
    
    .slider-indicator {
        border: 2px solid white;
    }
    
    .slider-indicator.active {
        background: white;
        border-color: black;
    }
}

/* Property Content - Mobile Optimized */
.property-content-wrapper {
    padding: 1.5rem;
}

.price-highlight {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    text-align: center;
}

.property-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: white;
    font-size: 1rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
}

.property-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.detail-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h4 i {
    color: var(--accent);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    font-size: 0.9rem;
}

.description-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.description-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-section h4 i {
    color: var(--accent);
}

.description-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
}

.contact-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
}

.contact-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
}

.contact-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

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

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

/* No Images Fallback */
.no-images-placeholder {
    height: 250px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.no-images-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.no-images-placeholder span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-error {
    color: var(--error);
}

.text-success {
    color: var(--success);
}

.hidden {
    display: none !important;
}

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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Auth Modal Improvements */
.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

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

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Desktop Responsive Breakpoints */
@media (min-width: 640px) {
    /* Small tablets and large phones */
    .nav-container {
        padding: 0 2rem;
    }

    .logo {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }

    .hero-stats {
        max-width: 500px;
        gap: 2rem;
    }

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

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

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

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

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

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

@media (min-width: 768px) {
    /* Tablets */
    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        padding: 0;
        gap: 2rem;
        box-shadow: none;
        left: auto;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 4rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

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

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

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

    .contact-container {
        grid-template-columns: 1fr 1fr;
    }

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

    .admin-controls {
        flex-direction: row;
    }

    .image-slider {
        height: 300px;
    }

    .property-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    /* Desktops */
    .search-form {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

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

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

    .image-slider {
        height: 400px;
    }

    .property-modal .modal-content {
        max-width: 1000px;
        margin: 2rem;
    }

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

@media (min-width: 1280px) {
    /* Large desktops */
    .calculator-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* Touch optimizations for mobile */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .property-card:hover,
    .service-card:hover,
    .stat-card:hover,
    .contact-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    /* Increase touch targets */
    .btn-primary,
    .btn-secondary,
    .btn-view,
    .btn-favorite,
    .contact-btn,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better touch feedback */
    .btn-primary:active,
    .btn-secondary:active,
    .btn-view:active {
        transform: scale(0.98);
    }
}

/* Mobile-specific hero background fix */
@media (max-width: 768px) {
    .hero::before {
        /* iOS Safari specific fix */
        background-attachment: scroll !important;
        /* Ensure proper rendering on mobile */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* Alternative background for very small/slow devices */
        background-color: var(--primary);
    }
    
    .hero {
        /* Fallback background color if image fails to load */
        background-color: var(--primary);
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
        padding: 4rem 0 2rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .hero-stats {
        margin-bottom: 1.5rem;
    }

    .modal-content {
        max-height: 85vh;
    }

    .image-slider {
        height: 200px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Dark mode support removed - keeping original light theme */

/* Print styles */
@media print {
    .navbar,
    .hero,
    .admin-panel,
    .modal,
    .loading-screen {
        display: none !important;
    }

    .property-card,
    .service-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Additional mobile-specific JavaScript integration */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
}

.mobile-menu-toggle .icon {
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle.active .hamburger {
    opacity: 0;
}

.mobile-menu-toggle.active .close {
    opacity: 1;
}

.mobile-menu-toggle .close {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Performance optimizations */
.property-image img,
.slider-slide img {
    will-change: transform;
    backface-visibility: hidden;
}

.modal {
    will-change: opacity;
}

.property-card,
.service-card {
    will-change: transform;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .modal {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .navbar {
        padding-top: env(safe-area-inset-top);
    }

    .hero {
        padding-top: calc(6rem + env(safe-area-inset-top));
    }

    .contact-form-input,
    .form-input,
    .form-select {
        border-radius: 0;
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Additional utility classes for mobile */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }
}

/* Improved focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.btn-view:focus,
.form-input:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Better visual hierarchy on mobile */
@media (max-width: 768px) {
    h1, h2, h3 {
        line-height: 1.2;
    }

    p {
        line-height: 1.6;
    }

    /* Improved spacing */
    .section-header {
        margin-bottom: 2rem;
    }

    .property-search,
    .services,
    .calculator,
    .contact {
        padding: 2rem 0;
    }

    /* Better button sizing */
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Improved modal sizing */
    .modal-content {
        border-radius: 12px;
    }

    /* Better image preview grid */
    .image-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Very small screens (less than 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    .search-container,
    .calculator-container {
        padding: 1rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .property-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-login,
    .btn-register {
        width: 100%;
        text-align: center;
    }
}

/* Loading improvements for mobile */
.loading-screen {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

@media (max-width: 768px) {
    .loader {
        width: 50px;
        height: 50px;
    }
}

/* Enhanced property card interactions - Mobile optimized but keeping functionality */
@media (max-width: 768px) {
    .property-actions {
        display: flex;
        gap: 0.5rem;
    }

    .btn-view {
        flex: 1;
    }

    .btn-favorite {
        min-width: 44px;
        flex-shrink: 0;
    }
}

/* Contact form improvements */
@media (max-width: 768px) {
    .contact-form-input[type="tel"],
    .contact-form-input[type="email"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Final responsive polish */
@media (max-width: 480px) {
    .section-title {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .price-highlight {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}

/* Property Management Modal Styles - Add to existing style.css */

/* Property Management Modal */
.property-management-modal .modal-content {
    max-width: 1000px;
    max-height: 95vh;
    overflow-y: auto;
    padding: 0;
    margin: 1rem;
    border-radius: 16px;
}

.property-management-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.property-management-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    border-radius: 16px 16px 0 0;
}

.property-management-header-content {
    position: relative;
    z-index: 2;
}

.property-management-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-management-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
}

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

.property-form-section {
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.property-form-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-form-section h4 i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

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

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

.property-form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.property-form-input,
.property-form-select,
.property-form-textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.property-form-input:focus,
.property-form-select:focus,
.property-form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.property-form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.property-form-group.full-width {
    grid-column: 1 / -1;
}

/* Enhanced Image Upload Section */
.property-image-upload-section {
    grid-column: 1 / -1;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.property-image-upload-section:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.property-image-upload-section.dragover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.property-upload-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.property-upload-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.property-upload-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.property-file-input {
    display: none;
}

.property-upload-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.property-upload-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.property-upload-progress {
    display: none;
    margin-top: 1rem;
    background: var(--bg-primary);
    border-radius: 50px;
    overflow: hidden;
    height: 8px;
}

.property-upload-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    width: 0%;
    transition: width 0.3s ease;
}

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

.property-image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.property-image-preview:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

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

.property-image-preview .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.property-image-preview .remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.property-image-preview .main-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: var(--gold);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-image-preview .set-main-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.property-image-preview .set-main-btn:hover {
    background: var(--gold);
}

/* Form Actions */
.property-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
}

.property-form-actions .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.property-form-actions .btn-secondary:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.property-form-actions .btn-primary {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.property-form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.property-form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.property-form-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.property-form-actions .btn-primary:hover::before {
    left: 100%;
}

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

.property-form-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error States */
.property-form-group.error .property-form-input,
.property-form-group.error .property-form-select,
.property-form-group.error .property-form-textarea {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.property-form-error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.property-form-group.error .property-form-error {
    display: block;
}

/* Success States */
.property-form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.property-form-success.show {
    display: flex;
}

/* Responsive Design for Property Management */
@media (max-width: 768px) {
    .property-management-modal .modal-content {
        margin: 0.5rem;
        max-height: 98vh;
    }
    
    .property-management-header {
        padding: 1.5rem;
    }
    
    .property-management-content {
        padding: 1.5rem;
    }
    
    .property-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .property-form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .property-form-actions .btn-primary,
    .property-form-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .property-image-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .property-image-upload-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .property-management-title {
        font-size: 1.25rem;
    }
    
    .property-image-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-form-section {
        padding: 1rem;
    }
    
    .property-upload-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ADMIN STYLES UPDATE - Replace existing admin styles with this */

/* Remove/Hide old admin panel styles */
.admin-panel {
    display: none !important;
}

.admin-panel.show {
    display: none !important;
}

.admin-controls {
    display: none !important;
}

.admin-btn {
    display: none !important;
}

.admin-form {
    display: none !important;
}

.admin-form.show {
    display: none !important;
}

/* New Admin Create Section */
.admin-create-section {
    display: none;
    margin: 2rem 0;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.admin-create-section.show {
    display: block;
}

.admin-create-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary);
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    max-width: 400px;
    width: 100%;
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.admin-create-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.admin-create-btn:hover::before {
    left: 100%;
}

.admin-create-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(245, 158, 11, 0.4);
}

.admin-create-btn:active {
    transform: translateY(-2px);
}

.admin-create-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.admin-create-btn span {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
    font-weight: 700;
}

.admin-create-btn small {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
    max-width: 240px;
    line-height: 1.3;
    color: var(--primary);
    text-align: center;
}

/* Animation for admin create section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for admin create button */
@media (max-width: 768px) {
    .admin-create-btn {
        min-width: 260px;
        padding: 1.25rem 1.5rem;
    }
    
    .admin-create-btn i {
        font-size: 1.3rem;
    }
    
    .admin-create-btn span {
        font-size: 1rem;
    }
    
    .admin-create-btn small {
        font-size: 0.75rem;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .admin-create-section {
        margin: 1.5rem 0;
    }
    
    .admin-create-btn {
        min-width: 240px;
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }
    
    .admin-create-btn i {
        font-size: 1.2rem;
    }
    
    .admin-create-btn span {
        font-size: 0.95rem;
    }
    
    .admin-create-btn small {
        font-size: 0.7rem;
        max-width: 200px;
    }
}

/* Ensure admin dropdown item is hidden */
.dropdown-item.admin {
    display: none !important;
}

/* Additional cleanup - remove any leftover admin form styles */
.form-grid {
    display: none !important;
}

.textarea-field {
    display: none !important;
}

.image-upload-section {
    display: none !important;
}

.upload-icon {
    display: none !important;
}

.upload-text {
    display: none !important;
}

.file-input {
    display: none !important;
}

.upload-btn {
    display: none !important;
}

.upload-progress {
    display: none !important;
}

.upload-progress-bar {
    display: none !important;
}

.image-preview-grid {
    display: none !important;
}

.image-preview {
    display: none !important;
}

.image-preview .remove-btn {
    display: none !important;
}

.image-preview .main-badge {
    display: none !important;
}

.set-main-btn {
    display: none !important;
}

/* Note: Keep the property management modal styles as they are still needed */
/* The above styles only remove the old inline admin panel */

/* BESCHREIBUNGS-FORMATIERUNG - CSS STYLES */
/* Diese Styles in style.css einfügen */

/* ==============================================
   ENHANCED TEXTAREA COMPONENTS
   ============================================== */

   .enhanced-textarea-container {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-primary);
    overflow: hidden;
    transition: all 0.3s ease;
}

.enhanced-textarea-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.textarea-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.textarea-header .property-form-label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.formatting-help {
    color: var(--accent);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.formatting-help:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-dark);
}

.textarea-tabs {
    display: flex;
    gap: 0.25rem;
}

.textarea-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.textarea-tab:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.textarea-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Formatting Help Panel */
.formatting-help-panel {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    animation: slideDown 0.3s ease;
}

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

.help-content h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.help-item {
    background: var(--bg-primary);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.help-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--gold);
}

/* Textarea Content Area */
.textarea-content {
    position: relative;
    min-height: 200px;
}

.textarea-edit-panel,
.textarea-preview-panel {
    display: none;
    height: 100%;
}

.textarea-edit-panel.active,
.textarea-preview-panel.active {
    display: block;
}

.enhanced-textarea {
    width: 100%;
    min-height: 150px;
    border: none;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    background: transparent;
    color: var(--text-primary);
    resize: vertical;
    outline: none;
}

.enhanced-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.character-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.character-counter.warning {
    color: var(--warning);
}

.character-counter.error {
    color: var(--error);
    font-weight: 600;
}

.formatting-buttons {
    display: flex;
    gap: 0.25rem;
}

.format-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Preview Panel */
.textarea-preview-panel {
    padding: 1rem;
    min-height: 200px;
    background: var(--bg-primary);
}

.preview-content {
    line-height: 1.6;
    color: var(--text-primary);
}

.preview-placeholder {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    margin: 0;
}

/* ==============================================
   FORMATTED DESCRIPTION DISPLAY
   ============================================== */

.description-text {
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.description-text p {
    margin-bottom: 1rem;
}

.description-text p:last-child {
    margin-bottom: 0;
}

.description-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.description-text em {
    color: var(--text-secondary);
    font-style: italic;
}

.description-list {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.description-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.description-list li::before {
    content: '•';
    color: var(--accent);
    font-weight: 600;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

.description-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.description-link:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent);
}

.keyword-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(245, 158, 11, 0.1));
    color: var(--accent-dark);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.empty-description {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px dashed var(--border);
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
    .textarea-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .textarea-tabs {
        width: 100%;
    }

    .textarea-tab {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.5rem;
    }

    .help-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .textarea-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .formatting-buttons {
        justify-content: center;
    }

    .enhanced-textarea {
        min-height: 120px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .description-text {
        font-size: 0.9rem;
    }

    .description-list li {
        padding-left: 1.2rem;
    }
}

@media (max-width: 480px) {
    .enhanced-textarea-container {
        border-radius: 8px;
    }

    .textarea-header {
        padding: 0.5rem 0.75rem;
    }

    .formatting-help {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .textarea-tab {
        font-size: 0.75rem;
        padding: 0.5rem 0.4rem;
    }

    .help-content h4 {
        font-size: 0.85rem;
    }

    .help-item {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .enhanced-textarea {
        padding: 0.75rem;
        font-size: 16px;
    }

    .character-counter {
        font-size: 0.75rem;
    }

    .format-btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* ==============================================
   ENHANCED PROPERTY DETAILS SECTION
   ============================================== */

.description-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.description-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.description-section h4 i {
    color: var(--accent);
    font-size: 1rem;
}

/* Improved typography for better readability */
.description-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Dark mode support (if needed later) */
@media (prefers-color-scheme: dark) {
    .keyword-highlight {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(245, 158, 11, 0.2));
        border-color: rgba(59, 130, 246, 0.3);
    }
}

/* Print styles */
@media print {
    .textarea-header,
    .textarea-footer,
    .formatting-buttons,
    .textarea-tabs {
        display: none !important;
    }
    .description-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .description-section {
        padding: 1rem;
        border: none;
        border-radius: 0;
    }
    .description-section h4 {
        font-size: 1rem;    
        margin-bottom: 1rem;
        border-bottom: none;
    }
    .description-text strong,
    .description-text em {
        font-weight: normal;
        color: inherit;
    }
    .description-text a {
        color: inherit;
        text-decoration: underline;
    }
    .description-text .keyword-highlight {
        background: none;
        color: inherit;
        padding: 0;
        border: none;
    }
    .description-text .empty-description {
        display: none;
    }
}

/* Property Card Description Preview */
.property-description-preview {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
    max-height: 2.8rem;
    overflow: hidden;
}

/* Enhance property content spacing */
.property-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==============================================
   MODAL VERBESSERUNGEN - CSS UPDATES
   ============================================== */

/* Body-Klasse für offene Modals - verhindert Hintergrund-Scrollen */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Modal Overlay - verbessert */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 1rem;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Property Modal spezifische Styles */
.property-modal .modal-content {
    max-width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    padding: 0;
    margin: 0.5rem;
    border-radius: 16px;
    position: relative;
}

/* Haupt-Schließen-Button im Modal Header */
.modal-close-main {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.modal-close-main:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Property Header mit Schließen-Button */
.property-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.property-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    border-radius: 16px 16px 0 0;
}

.property-header-content {
    position: relative;
    z-index: 2;
    padding-right: 60px; /* Platz für Schließen-Button */
}

/* Property Badge */
.property-badge {
    position: absolute;
    top: 1.5rem;
    right: 70px; /* Platz für Schließen-Button lassen */
    background: var(--gold);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 3;
}

/* Footer mit Schließen-Button */
.modal-footer {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-footer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-close-modal {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-close-modal:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact Actions im Footer */
.contact-actions-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.contact-btn-small {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.contact-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

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

.contact-btn-small.secondary:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Keyboard Navigation Hinweis */
.keyboard-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin: 0.5rem 0;
}

/* ==============================================
   RESPONSIVE ANPASSUNGEN
   ============================================== */

@media (max-width: 768px) {
    .modal-close-main {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    .property-header {
        padding: 1.25rem;
    }

    .property-header-content {
        padding-right: 50px;
    }

    .property-badge {
        right: 60px;
        top: 1.25rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .modal-footer-actions {
        justify-content: center;
        width: 100%;
    }

    .contact-actions-footer {
        justify-content: center;
        width: 100%;
    }

    .btn-close-modal,
    .contact-btn-small {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0.5rem;
    }

    .property-modal .modal-content {
        margin: 0.25rem;
        border-radius: 12px;
    }

    .modal-close-main {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .property-header {
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }

    .property-badge {
        position: static;
        display: inline-block;
        margin-top: 0.5rem;
        margin-right: 0;
    }

    .property-header-content {
        padding-right: 0;
    }

    .modal-footer {
        border-radius: 0 0 12px 12px;
    }

    .contact-actions-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .keyboard-hint {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
}

/* ==============================================
   FULLSCREEN MODAL IMPROVEMENTS
   ============================================== */

/* Fullscreen Overlay Schließen-Button */
.image-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.image-fullscreen-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

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

@media (max-width: 768px) {
    .fullscreen-close {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        top: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .fullscreen-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 1rem;
        right: 1rem;
    }
}

/* ==============================================
   ANIMATION VERBESSERUNGEN
   ============================================== */

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

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

/* Modal Content Animation */
.modal.show .modal-content {
    animation: slideInUp 0.4s ease;
}

/* ==============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================== */

/* Focus Styles für bessere Zugänglichkeit */
.modal-close-main:focus,
.btn-close-modal:focus,
.contact-btn-small:focus,
.fullscreen-close:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .modal.show .modal-content {
        animation: none;
    }
    
    .modal.show {
        animation: none;
    }
    
    .fullscreen-close,
    .modal-close-main,
    .btn-close-modal {
        transition: none;
    }
}

/* Sanierungskosten Styles */
.renovation-costs-section {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-top: 1.5rem;
}

.renovation-costs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.renovation-costs-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.renovation-costs-title i {
    color: var(--accent);
}

.add-renovation-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.add-renovation-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.renovation-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.renovation-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.renovation-item-remove {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.renovation-item-remove:hover {
    background: var(--error);
    color: white;
}

/* Property Detail Modal - Sanierungskosten */
.renovation-calculator {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--border);
}

.renovation-calculator-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.renovation-calculator-title i {
    color: var(--accent);
}

.renovation-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.renovation-option {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.renovation-option:hover {
    border-color: var(--accent);
    transform: translateX(2px);
}

.renovation-option.selected {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--accent);
}

.renovation-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.renovation-option-content {
    flex: 1;
}

.renovation-option-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.renovation-option-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.renovation-option-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.renovation-summary {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.renovation-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.renovation-summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.renovation-summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.renovation-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.renovation-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}

.renovation-summary-total .renovation-summary-label {
    color: var(--text-primary);
    font-weight: 700;
}

.renovation-summary-total .renovation-summary-value {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .renovation-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .renovation-option {
        flex-direction: column;
        text-align: center;
    }
    
    .renovation-option-price {
        margin-top: 0.5rem;
    }
}