/* ============================================
   CDHome - Referenciák oldal
   ============================================ */

.bi-drone::before {
    content: "" !important;
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='5.5' y='6' width='5' height='4' rx='1' fill='black'/%3E%3Cpath d='M6.5 7L3.5 4M9.5 7L12.5 4M6.5 9L3.5 12M9.5 9L12.5 12' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='3.5' cy='3.5' r='2' fill='none' stroke='black' stroke-width='1'/%3E%3Ccircle cx='12.5' cy='3.5' r='2' fill='none' stroke='black' stroke-width='1'/%3E%3Ccircle cx='3.5' cy='12.5' r='2' fill='none' stroke='black' stroke-width='1'/%3E%3Ccircle cx='12.5' cy='12.5' r='2' fill='none' stroke='black' stroke-width='1'/%3E%3Ccircle cx='3.5' cy='3.5' r='.7' fill='black'/%3E%3Ccircle cx='12.5' cy='3.5' r='.7' fill='black'/%3E%3Ccircle cx='3.5' cy='12.5' r='.7' fill='black'/%3E%3Ccircle cx='12.5' cy='12.5' r='.7' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='5.5' y='6' width='5' height='4' rx='1' fill='black'/%3E%3Cpath d='M6.5 7L3.5 4M9.5 7L12.5 4M6.5 9L3.5 12M9.5 9L12.5 12' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='3.5' cy='3.5' r='2' fill='none' stroke='black' stroke-width='1'/%3E%3Ccircle cx='12.5' cy='3.5' r='2' fill='none' stroke='black' stroke-width='1'/%3E%3Ccircle cx='3.5' cy='12.5' r='2' fill='none' stroke='black' stroke-width='1'/%3E%3Ccircle cx='12.5' cy='12.5' r='2' fill='none' stroke='black' stroke-width='1'/%3E%3Ccircle cx='3.5' cy='3.5' r='.7' fill='black'/%3E%3Ccircle cx='12.5' cy='3.5' r='.7' fill='black'/%3E%3Ccircle cx='3.5' cy='12.5' r='.7' fill='black'/%3E%3Ccircle cx='12.5' cy='12.5' r='.7' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ============================================
   HERO - Lista oldal (globális hero rendszer override-ok)
   ============================================ */
.ref-hero {
    min-height: 680px;
    margin-bottom: 0;
}

.ref-hero .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(5, 2, 2, 0.82) 100%
    );
}

.ref-hero.hero-with-image::after {
    background: linear-gradient(to top, #f5f0eb 0%, rgba(245, 240, 235, 0.55) 40%, transparent 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    height: 110px !important;
}

.ref-hero-accent {
    background: linear-gradient(90deg, #f0d48a, #d4a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Szűrő sáv
   ============================================ */
.ref-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.ref-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.ref-filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(153,0,0,0.03);
}

.ref-filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.ref-filter-count {
    font-size: 0.75rem;
    background: rgba(0,0,0,0.08);
    padding: 1px 8px;
    border-radius: 50px;
}

.ref-filter-tag.active .ref-filter-count {
    background: rgba(255,255,255,0.2);
}

/* ============================================
   Tartalom szekció
   ============================================ */
.ref-content-section {
    padding: 4rem 0 6rem;
    background: var(--bg-warm);
}

/* ============================================
   Referencia kártyák
   ============================================ */
.ref-card {
    display: block;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    height: 100%;
}

.ref-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.ref-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

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

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

.ref-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}

.ref-card-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.ref-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.ref-card:hover .ref-card-overlay {
    opacity: 1;
}

.ref-card-view {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
}

.ref-card-body {
    padding: 1.2rem 1.4rem 1.4rem;
}

.ref-card-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ref-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.ref-card-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.ref-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.ref-card-tools {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ref-tool-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.ref-card:hover .ref-tool-badge {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.ref-tool-more {
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================
   RÉSZLET OLDAL - Hero
   ============================================ */
.refdet-hero {
    min-height: 580px;
    display: flex;
    align-items: flex-end;
    padding: 3rem 0;
    margin-top: -1rem;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    position: relative;
    color: #fff;
}

.refdet-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.15) 100%);
}

.refdet-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: linear-gradient(to top, #f5f0eb 0%, rgba(245, 240, 235, 0.55) 40%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

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

.refdet-back {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.refdet-back:hover {
    color: #fff;
}

.refdet-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.refdet-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.refdet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.refdet-meta span {
    display: inline-flex;
    align-items: center;
}

/* ============================================
   RÉSZLET OLDAL - Szekciók
   ============================================ */
.refdet-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.refdet-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ============================================
   Leírás szekció
   ============================================ */
.refdet-desc-section {
    padding: 3.5rem 0 2rem;
    background: var(--bg-warm);
}

.refdet-description {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-body);
}

.refdet-description h2,
.refdet-description h3 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.refdet-description ul,
.refdet-description ol {
    margin-left: 1.5rem;
}

.refdet-description strong {
    color: var(--text-dark);
}

/* ============================================
   Statisztika sáv
   ============================================ */
.refdet-stats {
    padding: 0 0 3rem;
    background: var(--bg-warm);
}

.refdet-stats-grid {
    display: flex;
    justify-content: center;
    gap: 1px;
    background: var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.refdet-stat {
    flex: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    min-width: 0;
}

.refdet-stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.refdet-stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* ============================================
   Info szekció (kiemelt pontok + platformok)
   ============================================ */
.refdet-info-section {
    padding: 3.5rem 0;
    background: #fff;
}

.refdet-info-card {
    padding: 0;
    height: 100%;
}

.refdet-info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.refdet-highlight-list,
.refdet-platform-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.refdet-highlight-list li,
.refdet-platform-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text-body);
}

.refdet-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
    position: relative;
}

.refdet-check-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.refdet-dot-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ============================================
   Használt eszközök - sötét szekció
   ============================================ */
.refdet-tools-section {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #1a1212 0%, #2a1515 50%, #1a1212 100%);
    position: relative;
    overflow: hidden;
}

.refdet-tools-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 83, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(153, 0, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.refdet-dark-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.refdet-dark-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.refdet-tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.refdet-tool-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.refdet-tool-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 168, 83, 0.3);
    transform: translateY(-2px);
}

.refdet-tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.refdet-tool-card:hover .refdet-tool-icon {
    background: linear-gradient(135deg, var(--accent), #c49a48);
    color: #1a1212;
}

.refdet-tool-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* ============================================
   ELŐTTE / UTÁNA SLIDER
   ============================================ */
.ba-slider {
    margin-bottom: 1rem;
}

.ba-caption {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.ba-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.ba-image {
    position: relative;
    width: 100%;
}

.ba-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

.ba-after {
    position: relative;
}

.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.ba-before img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    min-width: 0;
    max-height: none;
}

.ba-label {
    position: absolute;
    bottom: 12px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
}

.ba-label-before {
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
}

.ba-label-after {
    right: 12px;
    background: rgba(153,0,0,0.85);
    color: #fff;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-handle-line {
    flex: 1;
    width: 3px;
    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.ba-handle-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    pointer-events: auto;
    cursor: col-resize;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-handle-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

/* ============================================
   Előtte/utána, galéria, videó szekciók
   ============================================ */
.refdet-ba-section,
.refdet-gallery-section,
.refdet-video-section {
    padding: 3.5rem 0;
    background: var(--bg-warm);
}

.refdet-gallery-section {
    background: #fff;
}

/* ============================================
   GALÉRIA
   ============================================ */
.refdet-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 10px;
}

.refdet-gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.refdet-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.refdet-gallery-zoom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.35s;
    color: #fff;
    font-size: 1.2rem;
}

.refdet-gallery-item:hover .refdet-gallery-zoom {
    opacity: 1;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.ref-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ref-lightbox.active {
    display: flex;
}

.ref-lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

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

.ref-lb-prev,
.ref-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.ref-lb-prev { left: 20px; }
.ref-lb-next { right: 20px; }

.ref-lb-prev:hover,
.ref-lb-next:hover {
    background: rgba(255,255,255,0.25);
}

.ref-lb-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-lb-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.ref-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ============================================
   VIDEÓK
   ============================================ */
.refdet-video-card {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.refdet-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.refdet-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.refdet-video-embed-vertical {
    padding-bottom: 0;
    height: 500px;
    position: relative;
}

.refdet-video-caption {
    padding: 10px 16px;
    background: #1a1a1a;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Facebook / TikTok link kártyák */
.refdet-video-card-link {
    background: #1a1a2e;
}

.refdet-fb-link,
.refdet-tt-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
}

.refdet-fb-link:hover,
.refdet-tt-link:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.refdet-fb-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.refdet-tt-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #25f4ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.refdet-fb-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.refdet-fb-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.refdet-fb-action {
    font-size: 0.85rem;
    opacity: 0.7;
}

.refdet-fb-arrow {
    font-size: 1.1rem;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ============================================
   CTA
   ============================================ */
.refdet-cta-section {
    padding: 5rem 0 10rem;
    margin-bottom: -5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1212 0%, #2a1515 50%, #1a1212 100%);
}

.refdet-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(153, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.refdet-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.refdet-cta-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.refdet-cta-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.refdet-cta-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.refdet-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.refdet-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #d4a853, #c49a48);
    color: #1a1a1a !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
}

.refdet-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.35);
    color: #1a1a1a !important;
}

.refdet-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.refdet-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.refdet-cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #1a1a1a);
    pointer-events: none;
}

/* CTA - Agent kártya */
.refdet-cta-agent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.refdet-cta-agent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 168, 83, 0.4);
    flex-shrink: 0;
}

.refdet-cta-agent-initial {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a853, #c49a48);
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.refdet-cta-agent-info {
    text-align: left;
}

.refdet-cta-agent-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.refdet-cta-agent-position {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ============================================
   ANIMÁCIÓK
   ============================================ */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: refFadeUp 0.8s ease-out forwards;
}

.anim-fade-down {
    opacity: 0;
    transform: translateY(-20px);
    animation: refFadeDown 0.8s ease-out forwards;
}

.anim-delay-1 { animation-delay: 0.2s; }
.anim-delay-2 { animation-delay: 0.4s; }

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

/* Scroll reveal */
.sr-fade {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ============================================
   RESZPONZÍV
   ============================================ */
@media (max-width: 991px) {
    .ref-hero {
        min-height: 580px;
    }
    
    .refdet-hero {
        min-height: 580px;
    }

    .refdet-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .refdet-gallery-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 767px) {
    .ref-hero {
        min-height: 500px;
    }
    
    .ref-content-section {
        padding: 2.5rem 0 4rem;
    }
    
    .ref-card-img {
        height: 180px;
    }
    
    .refdet-hero {
        min-height: 65vh;
    }

    .refdet-desc-section,
    .refdet-ba-section,
    .refdet-gallery-section,
    .refdet-video-section {
        padding: 2.5rem 0;
    }

    .refdet-info-section {
        padding: 2.5rem 0;
    }

    .refdet-tools-section {
        padding: 3rem 0;
    }

    .refdet-stats-grid {
        flex-direction: column;
        gap: 0;
        border-radius: 12px;
    }

    .refdet-stat {
        padding: 1.2rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .refdet-stat-num {
        font-size: 1.8rem;
    }

    .refdet-stat-label {
        margin-top: 0;
    }
    
    .refdet-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 6px;
    }

    .refdet-gallery-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .refdet-cta-section {
        padding: 3.5rem 0;
    }

    .refdet-cta-actions {
        flex-direction: column;
    }

    .refdet-cta-btn-primary,
    .refdet-cta-btn-secondary {
        justify-content: center;
    }

    .refdet-cta-agent {
        max-width: 100%;
    }
    
    .ba-handle-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .ref-lb-prev,
    .ref-lb-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .ref-lb-prev { left: 10px; }
    .ref-lb-next { right: 10px; }
    
    .refdet-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .refdet-video-embed-vertical {
        height: 420px;
    }

    .refdet-active-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding: 2rem 1.5rem;
    }

    .refdet-active-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .refdet-active-text {
        text-align: center;
    }

    .refdet-active-btn {
        width: 100%;
        justify-content: center;
    }

}

@media (prefers-reduced-motion: reduce) {
    .sr-fade {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Aktív ingatlan banner
   ============================================ */
.refdet-active-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 40%, #3a1c1c 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    animation: refBannerSlideIn 0.6s ease-out forwards;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.refdet-active-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 10% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 50%, rgba(153, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.refdet-active-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(212, 168, 83, 0.15);
    pointer-events: none;
}

.refdet-active-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    position: relative;
}

.refdet-active-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
    border: 1px solid rgba(212, 168, 83, 0.25);
    color: #d4a853;
    font-size: 1.5rem;
}

.refdet-active-text {
    flex: 1;
    min-width: 0;
}

.refdet-active-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.refdet-active-text span {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
    line-height: 1.4;
}

.refdet-active-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 10px;
    padding: 0.75rem 1.6rem;
    background: linear-gradient(135deg, #d4a853, #c49a48);
    color: #1a1a1a !important;
    border: none;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.refdet-active-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.35);
    background: linear-gradient(135deg, #e0b65e, #d4a853);
    color: #1a1a1a !important;
}

.refdet-active-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.refdet-active-btn:hover i {
    transform: translateX(3px);
}

@keyframes refBannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
