/* Root variables */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f5f7fa;
    --dark-text: #2c3e50;
    --border-color: #e9ecef;
}

/* Icon actions (dashboard, product pages) */
.product-actions .btn {
    transition: transform 0.08s ease, box-shadow 0.12s ease;
}

.product-actions .btn:hover {
    transform: translateY(-1px);
}

.product-actions .btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

/* Navigation Styles */
.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Brand Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    transition: all 0.2s;
}

.brand:hover {
    color: #4f4c97;
    transform: translateY(-1px);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4f4c97 0%, #6366f1 100%);
    border-radius: 8px;
    color: white;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(79, 76, 151, 0.2);
    transition: all 0.2s;
}

.brand:hover .brand-logo {
    box-shadow: 0 4px 8px rgba(79, 76, 151, 0.3);
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
}

.brand-tagline {
    font-size: 10px;
    font-weight: 400;
    color: #6b7280;
    letter-spacing: 0.5px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #6b7280;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    background: #f9fafb;
    color: #111827;
}

/* Categories bar (second row under top navbar) */
.category-navbar {
    border-top: 1px solid #e5e7eb;
    top: 64px;
    z-index: 999;
}

.category-navbar .nav-container {
    height: 48px;
}

.category-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-links::-webkit-scrollbar {
    display: none;
}

.category-navbar .nav-link {
    padding: 6px 12px;
    font-size: 14px;
    white-space: nowrap;
}

.category-label {
    display: flex;
    align-items: center;
    padding: 0 6px 0 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Authenticated user button - with green indicator */
.nav-link-authenticated {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #111827;
    position: relative;
}

.nav-link-authenticated::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: absolute;
    left: 6px;
    top: 6px;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.nav-link-authenticated:hover {
    background: #f9fafb;
    border-color: #10b981;
    color: #065f46;
}

/* Guest user button - neutral accent */
.nav-link-guest {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.nav-link-guest:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
}

.nav-link.primary {
    background: #2563eb;
    color: white;
}

.nav-link.primary:hover {
    background: #1d4ed8;
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.nav-toggle:hover {
    color: #111827;
}

.nav-toggle:active {
    color: #111827;
    background: transparent;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    /* Disable hover effect on mobile to prevent sticky green state */
    .nav-toggle:hover {
        color: #6b7280;
        background: transparent;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
    }
}

/* Dropdown Menu Styles */
.dropdown-container {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    border: none;
    background: transparent;
}

#dropdownMenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 8px 0 0 0;
    z-index: 1001;
}

#dropdownMenu li {
    margin: 2px 8px;
}

#dropdownMenu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#dropdownMenu li a i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

#dropdownMenu li a:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4f4c97;
    transform: translateX(4px);
}

main {
  display: flex;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 10px auto;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#property-image {
  flex: 1;
  min-width: 300px; /* Voorkomt dat de afbeelding te klein wordt */
  margin-right: 20px;
}

#property-image img {
  width: 100%;
  height: auto;
  display: block; /* Verwijder onnodige ruimte onder de afbeelding */
}

#property-info {
  flex: 2;
  min-width: 300px;
}

#property-features {
  list-style-type: disc;
  padding-left: 20px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto; /* Pushes the footer to the bottom */
    clear: both;
}

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

.body {
    background: linear-gradient(135deg, #656f7e 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

/* Container padding */
.container {
    padding-left: 10px;
    padding-right: 10px;
}

.property-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.property-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.property-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.property-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.property-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.property-image-section {
    position: relative;
}

.property-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

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

.price-section {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius);
    color: white;
}

.price-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.detail-card {
    padding: 1rem;
    background: var(--color-background);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.detail-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

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

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

.info-section {
    padding: 1.25rem;
    background: var(--color-background);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

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

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.energy-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #22c55e;
    color: white;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Shared action button variants (used in user/profile & user/edit_profile templates) */
.btn.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.btn.btn-save:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.35);
    color: #fff;
}

.btn.btn-cancel {
    background: #fff;
    border: 2px solid #6c757d;
    color: #6c757d;
    border-radius: 50px;
}

.btn.btn-cancel:hover {
    background: #495057;
    border-color: #495057;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(73, 80, 87, 0.25);
}



/* Responsieve aanpassingen */
@media (max-width: 768px) {
  main {
    flex-direction: column; /* Stapel de secties verticaal */
  }

  #property-image {
    margin-right: 0;
  }

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

    .property-image {
        height: 300px;
    }

    .property-title {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

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

/* Print styles */
@media print {
    body {
        background-color: white;
    }
}

.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}
input[type="password"]:focus {
    outline: none;
    border-color: #4CAF50;
}
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0e2468 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
button:hover {
    background-color: #45a049;
}

.container-body {
        background-color: white;
        padding: 2rem;
        border-radius: 8px;
        margin: 2rem auto;
        max-width: 1600px;
}

.password-reset-wrapper {
    max-width: 1042px;
    margin: 0 auto;
    padding: 2rem 0;
}

.password-reset-wrapper h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.password-reset-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

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

.password-reset-form input[type="password"],
.password-reset-form input[type="text"],
.password-reset-form input[type="email"] {
    width: 100% !important;
    min-width: 100% !important;
    padding: 1rem !important;
    font-size: 1.1rem !important;
    box-sizing: border-box !important;
}

.password-reset-form .form-control {
    width: 100% !important;
    min-width: 100% !important;
    padding: 1rem !important;
    font-size: 1.1rem !important;
}

.password-reset-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 1.1rem;
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

/* Index page hero section */

.hero-section { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 0;
    margin-bottom: 40px;
    border-radius: 10px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* show.html product container adjustments */

.product-container {
background: white;
border-radius: 5px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
overflow: hidden;
}

.product-header {
background: linear-gradient(135deg, #e4e4e4 0%, #f4f6ff 100%);
color: white;
padding: 30px;
text-align: center;
}

.product-header h1 {
font-size: 2.2rem;
font-weight: 700;
margin-bottom: 10px;
}

.product-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Image Slider */
.image-section {
    position: relative;
}

.slider-container {
position: relative;
width: 100%;
border-radius: px;
overflow: hidden;
background: transparent;
aspect-ratio: 1
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.slider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.9);
color: #333;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
font-size: 18px;
z-index: 11;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
background: rgba(255, 255, 255, 1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
left: 20px;
}

.slider-btn.next {
right: 20px;
}

.slider-dots {
position: absolute;
bottom: 15px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
z-index: 10;
}

.dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
background: white;
transform: scale(1.2);
}
.content-wrapper { 
    background: #fffaf9; 
    min-height: 100px; 
    padding: 0.5rem 0; 
    width: 100%;
}
.dashboard-container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 767.98px) {
    .dashboard-container {
        padding: 0 16px;
    }
}

.content-container { max-width: 1600px; margin: 0 auto; padding: 0 24px; }

/* Details Section */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px;
    border-radius: 15px;
    text-align: center;
}

.price-label {
font-size: 0.9rem;
opacity: 0.9;
margin-bottom: 10px;
}

.price-value {
font-size: 2.5rem;
font-weight: 700;
}

.specs-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}

.spec-item {
background: #f8f9fa;
padding: 15px;
border-radius: 10px;
border-left: 4px solid #667eea;
}

.spec-label {
font-size: 0.85rem;
color: #6c757d;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 5px;
}

.spec-value {
font-size: 1.1rem;
font-weight: 600;
color: #2c3e50;
}

.description-box {
background: #f8f9fa;
padding: 25px;
border-radius: 15px;
border-left: 4px solid #667eea;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.description-box h3 {
color: #2c3e50;
margin-bottom: 15px;
font-weight: 600;
}

.description-box p {
color: #666;
line-height: 1.6;
}

.action-buttons {
display: flex;
gap: 15px;
margin-top: 20px;
}

.btn-contact {
flex: 1;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 15px 30px;
border-radius: 50px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}

.btn-contact:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
color: white;
}

.btn-offer {
flex: 1;
background: white;
color: #667eea;
border: 2px solid #667eea;
padding: 15px 30px;
border-radius: 50px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}

.btn-offer:hover {
background: #667eea;
color: white;
transform: translateY(-2px);
}

.seller-info {
background: #f8f9fa;
padding: 20px;
border-radius: 15px;
display: flex;
align-items: center;
gap: 15px;
}

.seller-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background: #667eea;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
font-weight: 700;
}

.seller-details h4 {
margin: 0;
color: #2c3e50;
font-weight: 600;
}

.seller-details p {
margin: 5px 0 0 0;
color: #6c757d;
font-size: 0.9rem;
}

.login-container {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Responsive */
@media (max-width: 992px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

@media (max-width: 768px) {
    .product-header h1 {
        font-size: 1.8rem;
    }

    .product-content {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .price-value {
        font-size: 2rem;
    }

}
