/* ============================================================
   SEEBLAD — Seebladsgade 7-11, Odense C
   Premium rental living by the harbor
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

:root {
    --color-ink: #2a2520;
    --color-ink-light: #5a5045;
    --color-ink-muted: #8a7f72;
    --color-cream: #faf6f0;
    --color-warm-white: #f3ece2;
    --color-sage: #5a8a5e;
    --color-sage-dark: #3d6b40;
    --color-sage-light: #d6e8d0;
    --color-water: #4a7a8a;
    --color-water-dark: #2a5a6a;
    --color-water-light: #e3eee8;
    --color-terracotta: #c47a5a;
    --color-gold: #c4a96a;
    --color-sand: #e8d8c4;
    --color-sand-light: #f0e6d6;
    --color-border: #ddd4c6;
    --color-white: #ffffff;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 3.5rem;
    --space-2xl: 5rem;

    --max-width: 1280px;
    --radius: 6px;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-cream);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.addr-short { display: none; }
.addr-long { display: inline; }
.date-year { display: inline; }
.date-flex { display: inline; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { 
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 0 2rem; 
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-sage-dark);
    display: block;
    margin-bottom: 0.75rem;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--color-ink);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo .logo-accent {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-logo .logo-accent svg {
    width: 36px;
    height: 36px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-ink-light);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-sage-dark);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--color-ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--color-ink); }

.nav-cta {
    background: var(--color-sage-dark) !important;
    color: var(--color-white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background: #2a5a3a !important;
    transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* Mobile menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-ink);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-cream);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0 var(--space-xl);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 70% 30%, rgba(122,154,126,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 70%, rgba(74,122,138,0.06) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content { 
    position: relative; 
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--color-ink);
}

.hero-title em {
    font-style: italic;
    color: var(--color-sage-dark);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-ink-light);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-hover);
}

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

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-white);
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    z-index: 3;
}

.hero-badge .number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-sage-dark);
    line-height: 1;
}

.hero-badge .label {
    font-size: 0.8rem;
    color: var(--color-ink-muted);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .hero-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .hero { min-height: auto; padding: 7rem 0 3rem; }
    .hero-badge { bottom: -15px; left: 10px; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--color-water-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(42,90,106,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-ink);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-ink);
    transform: translateY(-1px);
}

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

.btn-sage:hover {
    background: var(--color-sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(90,122,94,0.3);
}

.btn-arrow::after {
    content: '→';
    transition: transform var(--transition);
}

.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* ============================================================
   Sections
   ============================================================ */

section {
    padding: var(--space-xl) 0;
}

.section-header {
    max-width: 640px;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-ink-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================================
   Features / USP Grid
   ============================================================ */

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

.feature-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-sage-dark);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-ink-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Apartment Listings
   ============================================================ */

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.listing-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: var(--color-warm-white);
}

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

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

.listing-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-white);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-sage-dark);
}

.listing-tag.available-now {
    background: var(--color-sage);
    color: var(--color-white);
}

.listing-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin: 0.75rem 0;
    border-radius: 6px;
    overflow: hidden;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.gallery-thumb:first-child,
.gallery-thumb.active {
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 1;
}

.listing-address {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.listing-meta {
    display: flex;
    gap: 1.25rem;
    color: var(--color-ink-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.listing-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.listing-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-ink);
}

.listing-price small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-ink-muted);
    font-weight: 400;
}

.listing-date {
    font-size: 0.8rem;
    color: var(--color-ink-muted);
}

.listing-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-sage-dark);
    transition: var(--transition);
}

.listing-link:hover {
    gap: 0.7rem;
}

@media (max-width: 768px) {
    .listings-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Gallery / Image Grid
   ============================================================ */

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

.gallery-grid .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
}

.gallery-grid .gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-grid .gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: var(--transition);
}

.gallery-item:hover::after {
    background: rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid .gallery-item.wide { grid-column: span 1; }
    .gallery-grid .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
}

/* ============================================================
   Area / Neighborhood Section
   ============================================================ */

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

.area-highlight.reverse { direction: rtl; }
.area-highlight.reverse > * { direction: ltr; }

.area-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.poi-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.poi-list li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-ink-light);
}

.poi-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: var(--color-water-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-water-dark);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .area-highlight, .area-highlight.reverse { 
        grid-template-columns: 1fr; 
        gap: 2rem;
        direction: ltr;
    }
    .poi-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Stats Bar
   ============================================================ */

.stats-bar {
    background: var(--color-ink);
    color: var(--color-white);
    padding: var(--space-lg) 0;
    border-radius: 16px;
    margin: var(--space-xl) 2rem;
    background: linear-gradient(135deg, #2a2520 0%, #3a3025 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stats-bar { margin: var(--space-lg) 1rem; }
}

/* ============================================================
   Contact Form
   ============================================================ */

.contact-section {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-ink);
    background: var(--color-cream);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(122,154,126,0.15);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-block h3 {
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--color-sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage-dark);
}

.contact-info-item .info-label {
    font-size: 0.8rem;
    color: var(--color-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.contact-info-item .info-value {
    font-size: 1rem;
    color: var(--color-ink);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-section { padding: 2rem 1.5rem; }
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    background: #2a2520;
    color: rgba(255,255,255,0.7);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: var(--space-lg);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    display: block;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--color-white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-bottom a:hover { color: var(--color-white); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ============================================================
   Page Header (for subpages)
   ============================================================ */

.page-header {
    padding: 10rem 0 2rem;
    background: var(--color-warm-white);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 70% 0%, rgba(122,154,126,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--color-ink-light);
    max-width: 560px;
    line-height: 1.8;
}

/* ============================================================
   Floor Plan Section
   ============================================================ */

.floorplan-section {
    background: var(--color-warm-white);
    border-radius: 16px;
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.floorplan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.floorplan-item {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.floorplan-item img {
    width: 100%;
    padding: 1.5rem;
}

.floorplan-item .floorplan-label {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .floorplan-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA Banner
   ============================================================ */

.cta-banner {
    background: linear-gradient(135deg, #3d6b40 0%, #2a5a3a 50%, #1e4a2e 100%);
    border-radius: 16px;
    padding: var(--space-lg);
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.cta-banner h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
    position: relative;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.cta-banner .btn {
    background: var(--color-white);
    color: var(--color-ink);
    position: relative;
}

.cta-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ============================================================
   Apartment Detail Page
   ============================================================ */

.apartment-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.apartment-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.apartment-gallery .main-photo {
    grid-column: 1 / -1;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
}

.apartment-gallery .thumb {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
}

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

.apartment-info {
    position: sticky;
    top: 100px;
}

.apartment-info .price-block {
    background: var(--color-warm-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.spec-item {
    padding: 1rem;
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.spec-item .spec-label {
    font-size: 0.75rem;
    color: var(--color-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.spec-item .spec-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .apartment-detail-grid { grid-template-columns: 1fr; }
    .apartment-info { position: static; }
}

/* ============================================================
   Parking Card
   ============================================================ */

.parking-card {
    background: var(--color-warm-white);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.parking-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 12px;
    background: var(--color-water-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-water-dark);
    font-size: 1.5rem;
}

.parking-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.parking-info p {
    color: var(--color-ink-light);
    font-size: 0.9rem;
}

/* ============================================================
   Map embed
   ============================================================ */

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin: var(--space-lg) 0;
    border: 1px solid var(--color-border);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ============================================================
   Lightbox overlay
   ============================================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

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

/* ============================================================
   Form success message
   ============================================================ */

.form-success {
    display: none;
    background: var(--color-sage-light);
    color: var(--color-sage-dark);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    margin-top: 1rem;
}

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

/* ============================================================
   Animations
   ============================================================ */

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Utility classes
   ============================================================ */

.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.flex { display: flex; }
.gap-sm { gap: var(--space-sm); }

/* ==================== Toast Popup ==================== */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-width: 90vw;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-success {
    background: #2a5a3a;
    color: #fff;
}

.toast-error {
    background: #a03030;
    color: #fff;
}

.toast svg {
    flex-shrink: 0;
}

/* Photo info badge */
.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.75rem;
    background: rgba(0,0,0,0.55);
    color: rgba(255,255,255,0.9);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: center;
    backdrop-filter: blur(4px);
}

/* Featured apartment pulse */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Featured grid responsive */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr !important;
    }
    .featured-grid > div:first-child {
        min-height: 220px;
    }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    /* Container */
    .container { padding: 0 1.25rem; }

    /* Page header (boliger, omraadet, kontakt) */
    .page-header { padding: 6rem 0 1.5rem; }
    .page-header h1 { font-size: 2rem; }
    .page-header p { font-size: 0.95rem; }

    /* Section spacing */
    section { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .section-header { margin-bottom: 1.5rem; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.9rem; }

    /* Featured grid - stack */
    .featured-grid {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    .featured-grid > div:first-child { min-height: 250px; }
    .featured-grid > div:last-child { padding: 1.5rem 1.25rem !important; }

    /* Hide "Se mere →" on mobile */
    td a span[style*="font-size:0.8rem"] { display: none !important; }

    /* Features grid */
    .features-grid { gap: 1rem !important; }
    .feature-card { padding: 1.25rem !important; }
    .feature-card h3 { font-size: 1rem; }
    .feature-card p { font-size: 0.85rem; }

    /* Gallery grid */
    .gallery-grid { grid-template-columns: 1fr 1fr !important; gap: 0.5rem !important; }
    .gallery-item.wide { grid-column: span 2; }

    /* Listing cards */
    .listings-grid { gap: 1rem; }
    .listing-body { padding: 1.25rem; }
    .listing-address { font-size: 1rem; }
    .listing-meta { font-size: 0.82rem; gap: 0.5rem; }
    .listing-footer { padding: 0.85rem 1.25rem; }

    /* Gallery strip in cards */
    .gallery-strip { gap: 0.25rem !important; margin-bottom: 0.5rem; }
    .gallery-thumb { border-radius: 4px !important; }

    /* Area section */
    .area-highlight { gap: 2rem !important; }
    .area-image { aspect-ratio: 16/9; max-height: 200px; }
    .poi-list { gap: 0.75rem; }
    .poi-list li { font-size: 0.85rem; }
    .poi-icon { width: 32px; height: 32px; min-width: 32px; font-size: 0.95rem; }

    /* Name section */
    .name-section .container > div { 
        flex-direction: column !important; 
        gap: 1.5rem !important; 
    }

    /* Callback form */
    form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer { padding: 2.5rem 0 2rem; margin-top: 2rem; }

    /* Lightbox */
    .lightbox img { max-width: 95vw; }
}

@media (max-width: 480px) {
    /* Container even tighter */
    .container { padding: 0 1rem; }

    /* Hero */
    h1 { font-size: 2rem !important; }

    /* Features: single column */
    .features-grid { grid-template-columns: 1fr !important; }

    /* Listing image shorter */
    .listing-image { aspect-ratio: 16/9; }

    /* Photo info badge */
    .photo-info { font-size: 0.65rem; padding: 0.3rem 0.5rem; }

    /* Listing tag badges */
    .listing-tag { font-size: 0.68rem; padding: 0.25rem 0.6rem; }
}

/* ============================================================
   MOBILE FIXES v2 - Hero + Table
   ============================================================ */

@media (max-width: 768px) {
    /* Hero overlay text - tighter on mobile */
    .hero-img-wrap { max-height: 70vh; }
    .hero-img-wrap img { height: 100%; object-fit: cover; }
    .hero-img-wrap > div[style*="position:absolute"] {
        padding: 1.25rem 1.25rem !important;
    }
    .hero h1 { font-size: 1.4rem !important; line-height: 1.3 !important; }
    .hero h1 br { display: none; }
    .hero p { font-size: 0.85rem !important; margin-bottom: 0.75rem !important; }
    .hero .btn { padding: 0.7rem 1.5rem !important; font-size: 0.85rem !important; }
    .hero .eyebrow { font-size: 0.65rem !important; margin-bottom: 0.3rem !important; }

    /* Abbreviate "Seebladsgade" → "Sbl." on mobile */
    .addr-long { display: none; }
    .addr-short { display: inline; }
    
    /* Abbreviate dates: hide year, shorten "eller senere" to "+" */
    .date-year { display: none; }
    .date-flex { font-size: 0; }
    .date-flex::after { content: "+"; font-size: 0.82rem; }
    
    /* Table - fit on screen, no scroll */
    .table-wrap table { min-width: 0 !important; }
    .table-wrap { overflow-x: hidden !important; }
    
    /* Hide Vær column */
    .table-wrap table th:nth-child(3),
    .table-wrap table td:nth-child(3) { display: none; }

    /* Table font and spacing */
    .table-wrap table { font-size: 0.82rem !important; }
    .table-wrap table th { font-size: 0.68rem !important; letter-spacing: 0.05em !important; }
    .table-wrap table th,
    .table-wrap table td { padding: 0.6rem 0.5rem !important; }
    .table-wrap table td:first-child,
    .table-wrap table th:first-child { padding-left: 0.75rem !important; }
    .table-wrap table td:last-child,
    .table-wrap table th:last-child { padding-right: 0.75rem !important; text-align: right; }
    
    /* Ledig nu badge smaller */
    .table-wrap table span[style*="border-radius:50px"] { 
        font-size: 0.65rem !important; 
        padding: 0.15rem 0.45rem !important; 
    }

    /* Section header with "Se alle" button */
    .section-header[style*="display:flex"] { 
        flex-direction: column !important; 
        align-items: flex-start !important; 
    }
}

@media (max-width: 480px) {
    /* Even tighter hero */
    .hero h1 { font-size: 1.25rem !important; }
    .hero-img-wrap > div[style*="position:absolute"] {
        padding: 1rem !important;
    }
    .hero-img-wrap { max-height: 60vh; }
}
