/* ═══════════════════════════════════════════════════════
   Empresas.pt — Premium Design System
   Dark mode, glassmorphism, micro-animations
   ═══════════════════════════════════════════════════════ */

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

:root {
    /* Palette */
    --bg-primary: #06091a;
    --bg-secondary: #0c1029;
    --bg-card: rgba(15, 20, 50, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #e8eaf0;
    --text-secondary: #8b92a8;
    --text-muted: #5a6178;
    --accent: #d4a853;
    --accent-glow: rgba(212, 168, 83, 0.25);
    --accent-secondary: #b08a3e;
    --success: #2dd4a8;
    --error: #f87171;
    --warning: #fbbf24;

    /* Spacing */
    --container: 1200px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    /* Typography */
    --font: 'Inter', -apple-system, sans-serif;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;

    /* Logo filter (none for dark, invert for light) */
    --logo-filter: none;
}

/* ── Light Theme ─────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary: #f5f6fa;
    --bg-secondary: #e8eaf0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --border-glass: rgba(0, 0, 0, 0.1);
    --text-primary: #1a1d2e;
    --text-secondary: #4a5068;
    --text-muted: #7a8098;
    --accent: #b08a3e;
    --accent-glow: rgba(176, 138, 62, 0.2);
    --accent-secondary: #96752e;
}

[data-theme="light"] .site-header {
    background: rgba(245, 246, 250, 0.9);
}

[data-theme="light"] .hero,
[data-theme="light"] .page-hero {
    background: linear-gradient(180deg, #e0e3f0 0%, var(--bg-primary) 100%);
}

[data-theme="light"] .card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 40px var(--accent-glow);
}

[data-theme="light"] .card-image-placeholder {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(176, 138, 62, 0.1));
}

[data-theme="light"] .nav-link {
    color: var(--text-primary);
}

[data-theme="light"] .logo-img,
[data-theme="light"] .footer-logo-img {
    content: url('../../images/enteroctopus3_cropped.png');
}

[data-theme="light"] .search-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

[data-theme="light"] .filter-select {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

[data-theme="light"] .filter-select option {
    background: #fff;
}

[data-theme="light"] .benefit-card:hover,
[data-theme="light"] .info-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}


/* ── Theme Toggle ────────────────────────────────────── */
.theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* ── Footer credit ───────────────────────────────────── */
.footer-credit {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-credit a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.footer-credit a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 9, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    padding: 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.4rem;
}

.logo-accent {
    color: var(--accent);
}

/* Logo SVG image */
.logo-img {
    height: 160px;
    width: auto;
    transition: var(--transition-fast);
}

.logo:hover .logo-img {
    opacity: 0.85;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    opacity: 0.7;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-admin {
    border: 1px solid var(--border-glass);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 70%),
        radial-gradient(ellipse at 80% 80%, rgba(45, 212, 168, 0.08), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), #f0d48a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 36px;
}

/* ── Search ──────────────────────────────────────────── */
.search-form {
    max-width: 640px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 6px 6px 6px 20px;
    gap: 12px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ── Filters ─────────────────────────────────────────── */
.filters-section {
    padding: 20px 0;
}

.filters-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-family: var(--font);
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--accent);
}

.filter-select option {
    background: var(--bg-secondary);
}

.results-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.count-number {
    color: var(--accent);
    font-weight: 700;
}

/* ── Listings Grid ───────────────────────────────────── */
.listings-section {
    padding: 10px 0 80px;
}

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

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 168, 83, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(212, 168, 83, 0.1));
}

.placeholder-icon {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.5;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-lg {
    font-size: 0.8rem;
    padding: 6px 16px;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-sector {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 6px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Pagination ──────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.pagination-num {
    min-width: 40px;
    padding: 8px 12px;
}

.pagination-btn:hover:not(.disabled),
.pagination-num:hover:not(.active) {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--accent);
}

.pagination-num.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: default;
}

.pagination-btn.disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.pagination-dots {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0 4px;
}

/* ── Empty State ─────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ── Detail Page ─────────────────────────────────────── */
.detail-page {
    padding: 40px 0 80px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.detail-image-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 16/9;
}

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

.detail-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(212, 168, 83, 0.15));
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.4;
    min-height: 300px;
}

.detail-content {
    padding: 24px 0;
}

.detail-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.detail-sector {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 100px;
}

.detail-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-views svg,
.stat-contacts svg {
    color: var(--accent);
}

.detail-price-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.detail-price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.detail-description h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.detail-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ── Contact Sidebar ─────────────────────────────────── */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 96px;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-xs);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

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

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.25);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* ── Alerts ──────────────────────────────────────────── */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 16px;
}

.alert-success {
    background: rgba(45, 212, 168, 0.1);
    border: 1px solid rgba(45, 212, 168, 0.2);
    color: var(--success);
}

.alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--error);
}

/* ── Toast ───────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

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

.toast-success {
    background: rgba(45, 212, 168, 0.9);
    color: var(--bg-primary);
}

.toast-error {
    background: rgba(248, 113, 113, 0.9);
    color: #fff;
}

/* ── Footer ──────────────────────────────────────────── */

/* ── Page Hero (Contact/Sell) ────────────────────────── */
.page-hero {
    position: relative;
    padding: 60px 0 50px;
    text-align: center;
    overflow: hidden;
}

.page-hero .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-hero .hero-subtitle {
    max-width: 560px;
}

/* ── Form Page Layout ────────────────────────────────── */
.form-page-section {
    padding: 10px 0 80px;
}

.form-page-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

.form-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 36px;
}

.form-page-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-page-card-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin: 28px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.form-section-title:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    margin-top: 8px;
}

/* ── Info Cards (Sidebar) ────────────────────────────── */
.form-page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 24px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: rgba(212, 168, 83, 0.2);
}

.info-card-highlight {
    border-color: rgba(212, 168, 83, 0.15);
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 168, 83, 0.05));
}

.info-card-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.process-list {
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 2;
}

.process-list li::marker {
    color: var(--accent);
    font-weight: 700;
}

/* ── Benefits Section ────────────────────────────────── */
.benefits-section {
    padding: 20px 0 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 168, 83, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.site-footer {
    border-top: 1px solid var(--border-glass);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Animations ──────────────────────────────────────── */
.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        position: static;
    }

    .form-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 60px;
    }

    .hero {
        padding: 50px 0 40px;
    }

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

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .results-count {
        margin-left: 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .detail-price {
        font-size: 1.4rem;
    }

    .detail-price-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }

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