/* ImmoPortal - CSS Custom Property Based Theming */
/* No external fonts or resources (DSGVO compliance) */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

/* System font stack */
html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--brand-background, #ffffff);
    color: var(--brand-text, #111827);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: var(--brand-primary, #1a56db);
    color: #ffffff;
    padding: 0.75rem 0;
}

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

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.navbar-brand {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.navbar-brand:hover {
    color: #ffffff;
    opacity: 0.9;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: #ffffff;
    opacity: 0.8;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.lang-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.15s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--brand-primary, #1a56db);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--brand-secondary, #6b7280);
    color: #ffffff;
}

.btn-accent {
    background-color: var(--brand-accent, #f59e0b);
    color: #111827;
}

/* Footer */
.footer {
    border-top: 3px solid var(--brand-accent, #f59e0b);
    padding: 1.5rem 0;
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--brand-secondary, #6b7280);
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--brand-primary, #1a56db);
    text-decoration: none;
}

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

.footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-powered {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary, #1a56db);
    box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.2);
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Landing page */
.landing-hero {
    text-align: center;
    padding: 4rem 0;
}

.landing-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--brand-primary, #1a56db);
}

.landing-hero p {
    font-size: 1.125rem;
    color: var(--brand-secondary, #6b7280);
    margin-bottom: 2rem;
}

/* Auth pages */
.auth-container {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-container h1 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

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

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

.auth-container .form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--brand-text, #111827);
}

.auth-container .form-group input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-container .form-group input:focus {
    outline: none;
    border-color: var(--brand-primary, #1a56db);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.auth-container button[type="submit"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--brand-primary, #1a56db);
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.15s ease;
}

.auth-container button[type="submit"]:hover {
    opacity: 0.9;
}

.auth-links {
    text-align: center;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-links a {
    color: var(--brand-primary, #1a56db);
    text-decoration: none;
}

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

/* Nav logout button (inline form) */
.nav-logout-form {
    display: inline;
}

.nav-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

/* Tenant inactive page */
.tenant-inactive {
    text-align: center;
    padding: 4rem 0;
}

.tenant-inactive h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ====================================================================
   ADMIN LAYOUT
   ==================================================================== */

.admin-body {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--brand-primary, #1a56db);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.admin-sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-sidebar-logo {
    max-height: 40px;
    width: auto;
}

.admin-sidebar-brand {
    font-size: 1.125rem;
    font-weight: 600;
}

.admin-nav {
    flex: 1;
    padding: 0.5rem 0;
}

.admin-nav-link {
    display: block;
    padding: 0.625rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
}

.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.admin-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
}

.admin-user {
    display: block;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.admin-logout {
    font-size: 0.8rem;
    opacity: 0.7;
}

.admin-main {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.admin-page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-text, #111827);
}

.admin-content {
    padding: 1.5rem;
    flex: 1;
}

/* Admin dashboard */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-summary {
    margin: 0.5rem 0;
}

.color-preview-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.dashboard-checklist {
    list-style: none;
    padding: 0;
}

.dashboard-checklist li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--brand-secondary, #6b7280);
}

.dashboard-checklist li::before {
    content: "\2610";
    position: absolute;
    left: 0;
}

.dashboard-checklist li.done {
    color: var(--brand-text, #111827);
}

.dashboard-checklist li.done::before {
    content: "\2611";
    color: #16a34a;
}

/* Branding page */
.branding-section {
    margin-bottom: 2rem;
}

.branding-section h2 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.color-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-input-row input[type="color"] {
    width: 48px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 2px;
    cursor: pointer;
}

.color-hex {
    max-width: 100px;
    font-family: monospace;
    font-size: 0.8rem;
}

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

.logo-upload-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.logo-thumbnail {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    overflow: hidden;
}

.logo-preview-img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.logo-placeholder {
    color: var(--brand-secondary, #6b7280);
    font-size: 0.8rem;
}

.logo-delete-form {
    margin-top: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.btn-danger {
    background-color: #dc2626;
    color: #ffffff;
}

/* Branding preview */
.branding-preview-container {
    max-width: 900px;
}

.preview-frame {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* ====================================================================
   LEGAL PAGES EDITOR
   ==================================================================== */

.legal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1rem;
}

.legal-tab {
    padding: 0.625rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-secondary, #6b7280);
}

.legal-tab.active {
    color: var(--brand-primary, #1a56db);
    border-bottom-color: var(--brand-primary, #1a56db);
}

.legal-tab-content {
    display: none;
}

.legal-tab-content.active {
    display: block;
}

.legal-editor {
    min-height: 300px;
    border: 1px solid #d1d5db;
    border-radius: 0 0 0.375rem 0.375rem;
}

/* ====================================================================
   ONBOARDING
   ==================================================================== */

.onboard-container {
    max-width: 500px;
    margin: 2rem auto;
}

/* ====================================================================
   PROPERTY SEARCH PAGE
   ==================================================================== */

.search-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.search-layout {
    display: flex;
    gap: 1.5rem;
}

/* Filter sidebar */
.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filter-toggle-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    float: right;
}

.filter-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group .form-label {
    font-size: 0.8rem;
    color: var(--brand-secondary, #6b7280);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.filter-submit {
    flex: 1;
}

.filter-reset {
    flex: 0;
    white-space: nowrap;
}

.filter-toggle {
    display: none;
    margin-bottom: 1rem;
}

/* Sort bar */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-count {
    font-weight: 500;
    color: var(--brand-text, #111827);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-size: 0.875rem;
    color: var(--brand-secondary, #6b7280);
}

.sort-options select {
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8rem;
}

/* Results grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.search-results {
    flex: 1;
    min-width: 0;
}

/* Empty state */
.search-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.search-empty p {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.search-empty-hint {
    color: var(--brand-secondary, #6b7280);
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}

/* Property card */
.property-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.property-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.property-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.property-card-no-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--brand-secondary, #6b7280);
    text-decoration: none;
    font-size: 0.875rem;
}

.property-card-body {
    padding: 1rem;
}

.property-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.property-card-title a {
    color: var(--brand-text, #111827);
    text-decoration: none;
}

.property-card-title a:hover {
    color: var(--brand-primary, #1a56db);
}

.property-card-location {
    font-size: 0.8rem;
    color: var(--brand-secondary, #6b7280);
    margin-bottom: 0.5rem;
}

.property-card-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--brand-secondary, #6b7280);
    margin-bottom: 0.75rem;
}

/* Price display */
.property-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-text, #111827);
}

.price-on-request {
    font-size: 0.875rem;
    color: var(--brand-secondary, #6b7280);
    font-style: italic;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-festpreis {
    background-color: #16a34a;
    color: #ffffff;
}

.badge-vb {
    background-color: #ea580c;
    color: #ffffff;
}

.badge-bieterverfahren {
    background-color: #2563eb;
    color: #ffffff;
}

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

.pagination-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--brand-text, #111827);
}

.pagination-link:hover {
    background-color: #f3f4f6;
}

.pagination-link.active {
    background-color: var(--brand-primary, #1a56db);
    color: #ffffff;
    border-color: var(--brand-primary, #1a56db);
}

/* ====================================================================
   PROPERTY DETAIL PAGE
   ==================================================================== */

.property-detail {
    max-width: 900px;
}

.detail-back {
    margin-bottom: 1rem;
}

/* Gallery */
.gallery {
    margin-bottom: 1.5rem;
}

.gallery-hero {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.gallery-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--brand-primary, #1a56db);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.gallery-modal-image {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 2;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.25rem;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-modal-prev { left: 1rem; }
.gallery-modal-next { right: 1rem; }

/* Detail header */
.detail-header {
    margin-bottom: 1.5rem;
}

.detail-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.detail-location {
    color: var(--brand-secondary, #6b7280);
    margin-bottom: 0.75rem;
}

/* Key facts row */
.detail-facts {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.fact-item {
    display: flex;
    flex-direction: column;
}

.fact-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-text, #111827);
}

.fact-label {
    font-size: 0.75rem;
    color: var(--brand-secondary, #6b7280);
}

/* Detail sections */
.detail-section {
    margin-bottom: 2rem;
}

.detail-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-primary, #1a56db);
}

.detail-description {
    line-height: 1.7;
}

/* Detail grid (two-column on desktop) */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.field-label {
    font-size: 0.8rem;
    color: var(--brand-secondary, #6b7280);
}

.field-value {
    font-weight: 500;
}

/* Feature badges */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Energy section */
.energy-section {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.energy-section h2 {
    border-bottom-color: #f59e0b;
}

.energy-not-available {
    color: var(--brand-secondary, #6b7280);
    font-style: italic;
}

/* Energy class badge */
.energy-class-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 700;
    color: #ffffff;
}

.energy-class-aplus { background: #15803d; }
.energy-class-a     { background: #16a34a; }
.energy-class-b     { background: #65a30d; }
.energy-class-c     { background: #ca8a04; }
.energy-class-d     { background: #d97706; }
.energy-class-e     { background: #ea580c; }
.energy-class-f     { background: #dc2626; }
.energy-class-g     { background: #b91c1c; }
.energy-class-h     { background: #991b1b; }

/* Energy color bar */
.energy-bar {
    display: flex;
    margin-top: 1rem;
    border-radius: 0.25rem;
    overflow: hidden;
}

.energy-bar-segment {
    flex: 1;
    text-align: center;
    padding: 0.375rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.5;
}

.energy-bar-segment.energy-bar-active {
    opacity: 1;
    transform: scaleY(1.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.energy-bar-aplus  { background: #15803d; }
.energy-bar-a      { background: #16a34a; }
.energy-bar-b      { background: #65a30d; }
.energy-bar-c      { background: #ca8a04; }
.energy-bar-d      { background: #d97706; }
.energy-bar-e      { background: #ea580c; }
.energy-bar-f      { background: #dc2626; }
.energy-bar-g      { background: #b91c1c; }
.energy-bar-h      { background: #991b1b; }

/* Contact form section */
.contact-form-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

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

.contact-form textarea {
    resize: vertical;
}

.text-danger {
    color: #dc2626;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-hero h1 {
        font-size: 1.75rem;
    }

    .footer-info {
        flex-direction: column;
    }

    /* Admin responsive */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-menu-toggle {
        display: block;
    }

    .color-grid {
        grid-template-columns: 1fr;
    }

    .logo-grid {
        grid-template-columns: 1fr;
    }

    /* Search responsive */
    .search-layout {
        flex-direction: column;
    }

    .filter-sidebar {
        display: none;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        z-index: 200;
        overflow-y: auto;
        padding: 1rem;
    }

    .filter-sidebar.open {
        display: block;
    }

    .filter-toggle-close {
        display: block;
    }

    .filter-toggle {
        display: block;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    /* Detail responsive */
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-facts {
        gap: 1rem;
    }

    .gallery-hero img {
        max-height: 300px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
