/*
Theme Name: Közterület Média Billboard
Theme URI: https://kozteruletimedia.hu
Description: WordPress sablon óriásplakát ajánlatok megjelenítéséhez
Version: 1.0.0
Author: Közterület Média
Author URI: https://kozteruletimedia.hu
Text Domain: billboard-theme
*/

:root {
    --primary-green: rgb(78, 151, 24);
    --secondary-green: rgb(167, 207, 59);
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
}

/* Header Section with 45-degree angle */
.header-banner {
    background: white;
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 200px;
}

.header-column-1 {
    flex: 0 0 25%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
    padding-right: 70px;
}

.header-column-2 {
    flex: 0 0 45%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    padding: 30px 50px;
    position: relative;
    z-index: 2;
    margin-left: -50px;
    clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
    padding-left: 70px;
    padding-right: 70px;
}

.header-column-3 {
    flex: 1;
    background: var(--secondary-green);
    position: relative;
    z-index: 0;
    margin-left: -50px;
    clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%);
}

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

.agent-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-right: 20px;
}

.agent-info {
    color: white;
}

.agent-info h2 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.agent-info .subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 12px;
    font-weight: 500;
    color: white;
}

.contact-phone {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 8px;
    color: white;
}

.contact-email {
    font-size: 0.95rem;
    opacity: 0.95;
    color: white;
}

.logo {
    width: 150px;
    height: auto;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.logo-subtext {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Main Content */
.main-content {
    background-color: var(--light-gray);
    padding: 40px 0;
}

.content-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.page-title {
    color: var(--primary-green);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Property Badge */
.property-badge {
    background-color: #a8cf3b;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* KMR státusz badge (szabad / foglalt) */
.kmr-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.kmr-status-free {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.kmr-status-busy {
    background-color: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.surface-type-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 4px;
    line-height: 1.2;
}

.property-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    text-align: right;
}

/* Image Gallery */
.image-gallery {
    margin: 20px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

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

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

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    line-height: 40px;
    text-align: center;
}

.lightbox-close:hover {
    color: var(--secondary-green);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 48px;
    cursor: pointer;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.3s;
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
}

/* Property Details */
.property-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.property-details-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
    margin: 30px 0 20px 0;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

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

.detail-item {
    display: flex;
    gap: 10px;
}

.detail-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    white-space: nowrap;
}

.detail-value {
    color: #666;
    font-size: 0.95rem;
}

/* Description Section */
.description-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
    margin: 30px 0 15px 0;
}

.description-text {
    line-height: 1.8;
    color: #555;
    text-align: left;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-contact {
    background-color: #dc3545;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-contact:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: white;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-green);
    color: white;
    padding: 15px 30px;
    text-align: center;
    border-radius: 8px;
    margin: 30px auto;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.cta-banner:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: white;
}

.cta-banner-wrapper {
    text-align: center;
    margin: 30px 0;
}

/* Footer Info */
.footer-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.footer-note {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-link {
    color: #007bff;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ─── Map ─── */
.billboard-map {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    margin: 15px 0 30px;
    border: 1px solid #e0e0e0;
    z-index: 1;
}

/* ─── Forms Section ─── */
.forms-section {
    margin-top: 40px;
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f7eb 0%, #f8fbf5 100%);
    box-shadow: 0 4px 20px rgba(78, 151, 24, 0.12);
}

.forms-section .nav-tabs {
    border-bottom: 2px solid var(--primary-green);
    background: rgba(78, 151, 24, 0.08);
}

.forms-section .nav-tabs .nav-link {
    color: #555;
    font-weight: 600;
    border: none;
    border-radius: 0;
    padding: 12px 24px;
    transition: all 0.3s;
}

.forms-section .nav-tabs .nav-link.active {
    color: #fff;
    background: var(--primary-green);
    border-bottom: 3px solid var(--primary-green);
    border-radius: 6px 6px 0 0;
}

.forms-section .nav-tabs .nav-link:hover:not(.active) {
    color: var(--primary-green);
    background: rgba(78, 151, 24, 0.12);
}

.forms-section .tab-pane {
    background: transparent;
}

.forms-section .tab-pane .form-label {
    font-weight: 600;
    color: #444;
}

.forms-section .tab-pane .form-control {
    border: 2px solid var(--primary-green);
    background: #fff;
}

.forms-section .tab-pane .form-control:focus {
    border-color: #3d8a10;
    box-shadow: 0 0 0 3px rgba(78, 151, 24, 0.2);
}

.forms-section .tab-pane .wpcf7-list-item {
    margin: 0;
}

.forms-section .tab-pane .wpcf7-acceptance {
    display: block;
    margin-bottom: 8px;
}

.forms-section .tab-pane .btn-success {
    background: var(--primary-green);
    border-color: var(--primary-green);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.forms-section .tab-pane .btn-success:hover {
    background: #3d8a10;
    border-color: #3d8a10;
}

.order-price-display {
    background: var(--primary-green);
    border-radius: 10px;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-price-label {
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

/* ─── Egyedi ajánlat ─── */
.offer-surface-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.offer-surface-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.offer-surface-card:has(.offer-surface-header[aria-expanded="true"]) {
    border-color: var(--primary-green);
    box-shadow: 0 2px 12px rgba(78, 151, 24, 0.15);
}

.offer-surface-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8f0e0 0%, #eef4e8 100%);
    cursor: pointer;
    gap: 15px;
    transition: background 0.2s;
    border-left: 4px solid var(--primary-green);
}

.offer-surface-header:hover {
    background: linear-gradient(135deg, #dce9d2 0%, #e5ede0 100%);
}

.surface-thumb-placeholder {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    flex-shrink: 0;
    background: #d8e8cd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8cb87a;
    font-size: 1.5rem;
}

.offer-surface-header .surface-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.offer-surface-header .surface-info {
    flex: 1;
    min-width: 0;
}

.offer-surface-header .surface-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.offer-surface-header .surface-meta {
    font-size: 0.85rem;
    color: #888;
    margin: 3px 0 0;
}

.surface-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.offer-surface-header .surface-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-green);
    white-space: nowrap;
}
.offer-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border: 2px solid #ccc;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.offer-select-btn.selected {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}
.offer-select-btn:not(.selected):hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.offer-surface-header .toggle-icon {
    font-size: 1.2rem;
    color: #999;
    transition: transform 0.3s;
}

.offer-surface-header[aria-expanded="true"] {
    background: linear-gradient(135deg, #d4e8c4 0%, #e2f0d6 100%);
    border-bottom: 2px solid var(--primary-green);
    border-left: 4px solid #2d6b0e;
}

.offer-surface-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-green);
}

.offer-surface-body {
    padding: 20px;
    border-top: none;
    background: #f9fcf6;
}

.offer-surface-body .mini-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.offer-surface-body .mini-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.offer-surface-body .mini-map {
    height: 250px;
    border-radius: 8px;
    margin: 15px 0;
}

/* ─── Offer Summary ─── */
.offer-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.offer-summary h3 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 20px;
}

.offer-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.offer-summary-table th,
.offer-summary-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.offer-summary-table th {
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.offer-summary-table td.price-col {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.offer-summary-table tr.unchecked td {
    opacity: 0.4;
    text-decoration: line-through;
}

.offer-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid var(--primary-green);
    margin-top: 10px;
}

.offer-summary-total .total-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.offer-summary-total .total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.offer-discount-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #dc3545;
    font-weight: 600;
}

.offer-valid-until {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Ajándék plakát */
.offer-gift-section {
    margin-top: 20px;
    border: 2px dashed #4e9718;
    border-radius: 10px;
    padding: 16px;
    background: #f6fff0;
}
.offer-gift-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4e9718;
    margin-bottom: 10px;
}
.offer-gift-header i {
    color: #e74c3c;
    font-size: 1.2rem;
}
.offer-gift-condition {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid #4e9718;
}
.offer-gift-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
}
.offer-gift-thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}
.offer-gift-info {
    flex: 1;
}
.offer-gift-price {
    text-align: right;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .header-banner {
        flex-direction: column;
        min-height: auto;
    }

    .header-column-1,
    .header-column-2,
    .header-column-3 {
        flex: none;
        width: 100%;
        clip-path: none;
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-column-2 {
        padding: 30px 20px;
    }

    .header-column-3 {
        min-height: 50px;
    }

    .agent-photo {
        width: 100px;
        height: 100px;
        margin-right: 15px;
    }

    .agent-info h2 {
        font-size: 1.3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

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

    .btn-contact {
        width: 100%;
    }

    .lightbox-nav {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cta-banner {
        width: 100%;
        display: block;
    }

    /* Archive mobile */
    .filter-sidebar {
        position: static !important;
        margin-bottom: 15px;
    }

    .archive-hero h1 {
        font-size: 1.5rem;
    }

    .billboard-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ─── No-consultant header variant ────────────────────────────────────────── */

.header-banner.no-consultant .brand-tagline {
    text-align: center;
    padding: 10px 0;
}

.header-banner.no-consultant .brand-tagline h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.header-banner.no-consultant .brand-tagline .subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ─── Copy link button ────────────────────────────────────────────────────── */

.copy-link-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.copy-link-btn {
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 4px 14px;
}

.copy-link-feedback {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ─── Archive Page ────────────────────────────────────────────────────────── */

.archive-hero {
    background: linear-gradient(135deg, #3a8c0e 0%, var(--primary-green) 50%, #5a9e2a 100%);
    padding: 50px 0 40px;
    text-align: center;
    color: white;
}

.archive-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0 8px;
}

.archive-hero p {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.archive-content {
    padding: 30px 0 60px;
    background: var(--light-gray);
    min-height: 50vh;
}

/* Filter sidebar */
.filter-sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h4 {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.filter-reset {
    font-size: 0.8rem;
    color: #c0392b;
    text-decoration: none;
}

.filter-reset:hover {
    text-decoration: underline;
    color: #a93226;
}

.filter-group {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 15px;
}

.filter-group > label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

.filter-group > label i {
    color: var(--primary-green);
    margin-right: 4px;
}

.filter-checkboxes {
    max-height: 200px;
    overflow-y: auto;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 0.85rem;
    padding: 3px 0;
    cursor: pointer;
    color: #333;
}

.filter-checkbox input[type="checkbox"] {
    accent-color: var(--primary-green);
}

.filter-checkbox small {
    margin-left: auto;
}

/* Results header */
.archive-results-header {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #666;
}

.results-count {
    font-weight: 600;
    color: #333;
}

.results-filtered {
    color: var(--primary-green);
    font-weight: 500;
}

/* Billboard cards */
.billboard-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.billboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.billboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.billboard-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

.billboard-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.billboard-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #adb5bd;
    font-size: 3rem;
}

.billboard-card-img .type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.billboard-card-img .featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-green);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

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

.billboard-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.billboard-card-location {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
}

.billboard-card-location i {
    color: var(--primary-green);
    margin-right: 3px;
}

.billboard-card-meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.billboard-card-meta i.bi-lightbulb-fill {
    color: #f0ad00;
}

.billboard-card-meta i.bi-arrow-repeat {
    color: var(--primary-green);
}

.billboard-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.billboard-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.billboard-card-price.price-ask {
    font-size: 0.85rem;
    font-weight: 500;
    color: #888;
}

.billboard-card-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-green);
}

/* No results */
.archive-no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.archive-no-results h3 {
    color: #666;
    margin: 15px 0 10px;
}

.archive-no-results p {
    color: #999;
    margin-bottom: 20px;
}

/* Pagination */
.archive-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.archive-pagination .nav-links {
    display: flex;
    gap: 6px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.archive-pagination .page-numbers:hover {
    background: var(--primary-green);
    color: white;
}

.archive-pagination .page-numbers.current {
    background: var(--primary-green);
    color: white;
    font-weight: 700;
}

/* ─── Nearby Surfaces Upsell ─────────────────────────────────────────────── */

.nearby-surfaces-section {
    margin: 35px 0 10px;
}

.nearby-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.nearby-surfaces-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nearby-surfaces-table {
    width: 100%;
    border-collapse: collapse;
}

.nearby-surfaces-table th,
.nearby-surfaces-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.nearby-surfaces-table thead th {
    font-weight: 600;
    color: #555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #dee2e6;
}

.nearby-surfaces-table tbody tr.nearby-row {
    transition: background 0.15s;
}

.nearby-surfaces-table tbody tr.nearby-row:hover {
    background: rgba(78, 151, 24, 0.03);
}

.nearby-surfaces-table tbody tr.nearby-selected {
    background: rgba(78, 151, 24, 0.06);
}

.nearby-surfaces-table tbody tr.nearby-selected td {
    font-weight: 500;
}

/* Lenyitható részletek panel */
.nearby-details-row td {
    padding: 0 !important;
    border-bottom: none;
}

.nearby-details-inner {
    padding: 16px 20px 16px 55px;
    background: #fff;
    border-top: 1px solid rgba(78, 151, 24, 0.15);
    border-bottom: 2px solid rgba(78, 151, 24, 0.12);
}

.nearby-details-inner .mini-map {
    height: 180px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.nearby-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px 16px;
    font-size: 0.85rem;
}

.nearby-details-grid .detail-item {
    color: #555;
}

.nearby-details-grid .detail-item strong {
    color: #333;
}

.nearby-toggle-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
    white-space: nowrap;
}

.nearby-toggle-btn:hover {
    background: rgba(78, 151, 24, 0.1);
}

.nearby-toggle-btn i {
    transition: transform 0.2s;
}

.nearby-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.nearby-price-col {
    text-align: right !important;
    white-space: nowrap;
}

.nearby-thumb {
    width: 50px;
    height: 38px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.nearby-surface-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.nearby-surface-link:hover {
    text-decoration: underline;
}

.nearby-type-badge {
    background: rgba(78, 151, 24, 0.1);
    color: var(--primary-green);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.nearby-total-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 15px;
}

.nearby-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.nearby-total-row .nearby-total-label {
    color: #555;
    font-weight: 500;
}

.nearby-checked-row .nearby-total-label {
    color: var(--primary-green);
}

.nearby-grand-total {
    border-top: 2px solid var(--primary-green);
    margin-top: 8px;
    padding-top: 10px;
}

.nearby-grand-total .nearby-total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.nearby-grand-total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .nearby-thumb {
        width: 40px;
        height: 30px;
    }

    .nearby-surfaces-table th,
    .nearby-surfaces-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }

    .nearby-grand-total-value {
        font-size: 1.1rem;
    }
}
