/* vasarlas.php oldal stílusai — 2026.10.10-ig a vasarlas.php végén volt <style>-ként; a <head>-ben töltődik ($oldalCss), hogy az első kirajzolásnál már érvényes legyen (CLS) */
/* Vásárlás oldal stílusok */
.vasarlas-hero {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.vasarlas-hero .section-title,
.vasarlas-hero .section-subtitle {
    color: white;
}

.vasarlas-hero .section-subtitle {
    font-size: 1.1rem;
    margin-top: 1rem;
}

.vasarlas-section .section-title::after {
    display: none;
}

.vasarlas-section .section-title {
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.vasarlas-section {
    padding: 3rem 0;
}

.vasarlas-section-alt {
    background-color: #FAF5FF;
}

/* Sakktábla elrendezés */
.vasarlas-checkerboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.vasarlas-cell {
    border-radius: 15px;
    overflow: hidden;
    min-height: 300px;
}

.vasarlas-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vasarlas-text {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.vasarlas-text h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: white;
}

.vasarlas-text p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.95);
}

.vasarlas-text p:last-child {
    margin-bottom: 0;
}

/* Bevezető szekció nagyobb szöveg */
.vasarlas-intro-text p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Három oszlopos elrendezés */
.vasarlas-three-column {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.vasarlas-column {
    display: flex;
    flex-direction: column;
}

.vasarlas-text-column {
    gap: 1.5rem;
}

.vasarlas-text-block {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.vasarlas-text-block h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: white;
}

.vasarlas-text-block p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
}

.vasarlas-text-block p:last-child {
    margin-bottom: 0;
}

.vasarlas-image-column {
    justify-content: center;
}

.vasarlas-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.vasarlas-image-column img.img-left-focus {
    object-position: left center;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Képsor */
.vasarlas-image-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.vasarlas-image-item {
    border-radius: 10px;
    overflow: hidden;
}

.vasarlas-image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.vasarlas-warning-text {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
}

.vasarlas-warning-text p {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: white;
}

.vasarlas-warning-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .vasarlas-image-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Költség szekció */
.vasarlas-cost-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.vasarlas-cost-text {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.vasarlas-cost-text h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    color: white;
}

.vasarlas-cost-text p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
}

.vasarlas-cost-text .cost-highlight {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1rem;
}

.vasarlas-cost-text .cost-note {
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.vasarlas-cost-image {
    border-radius: 15px;
    overflow: hidden;
}

.vasarlas-cost-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .vasarlas-cost-layout {
        grid-template-columns: 1fr;
    }
}

/* Középre igazított kép */
.vasarlas-centered-image {
    max-width: 700px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.vasarlas-centered-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section-subtitle-warning {
    text-align: center;
    font-size: 1.2rem;
    color: #5A1F6A;
    font-weight: bold;
    margin-top: 1.5rem;
}

/* 4x2 Sakktábla */
.vasarlas-checkerboard-4x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.vasarlas-checkerboard-4x2 .checker-cell {
    border-radius: 15px;
    overflow: hidden;
    min-height: 280px;
}

.vasarlas-checkerboard-4x2 .checker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vasarlas-checkerboard-4x2 .checker-text {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.vasarlas-checkerboard-4x2 .checker-text h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: white;
}

.vasarlas-checkerboard-4x2 .checker-text p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.95);
}

.vasarlas-checkerboard-4x2 .checker-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .vasarlas-checkerboard-4x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .vasarlas-checkerboard-4x2 {
        grid-template-columns: 1fr;
    }
}

/* Nagy szövegdoboz */
.vasarlas-big-text-box {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.vasarlas-big-text-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    color: rgba(255,255,255,0.95);
}

.vasarlas-big-text-box p:last-child {
    margin-bottom: 0;
}

.vasarlas-big-text-box .highlight-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

/* Checklist */
.vasarlas-checklist {
    max-width: 900px;
    margin: 2rem auto;
}

.checklist-item {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    text-align: center;
}

.checklist-item p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.95);
}

.checklist-item p:last-child {
    margin-bottom: 0;
}

/* Türelem szekció */
.vasarlas-patience-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.vasarlas-patience-text {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.vasarlas-patience-text > p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    color: rgba(255,255,255,0.95);
}

.copyright-notice {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
    margin-top: 1rem;
}

.copyright-notice p {
    margin: 0 0 0.3rem 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

.copyright-notice p:last-child {
    margin-bottom: 0;
}

.vasarlas-patience-image {
    border-radius: 15px;
    overflow: hidden;
}

.vasarlas-patience-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .vasarlas-patience-layout {
        grid-template-columns: 1fr;
    }
}

/* Térkép szekció */
.vasarlas-map-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.vasarlas-map-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

.vasarlas-map-image img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-map {
    display: inline-block;
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 45, 142, 0.4);
}

.btn-map:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 45, 142, 0.5);
}

/* Tabs */
.vasarlas-tabs {
    max-width: 1000px;
    margin: 2rem auto 0;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    background: white;
    border: 2px solid #7B2D8E;
    color: #7B2D8E;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #FAF5FF;
}

.tab-btn.active {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    border-color: transparent;
}

.tab-content {
    display: none;
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: white;
}

.tab-content p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.95);
}

.tab-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tab-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
}

.tab-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #90EE90;
}

.tab-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.tab-text {
    text-align: center;
}

.tab-image {
    border-radius: 10px;
    overflow: hidden;
}

.tab-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .tab-layout {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .vasarlas-three-column {
        grid-template-columns: 1fr;
    }

    .vasarlas-image-column img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .vasarlas-checkerboard {
        grid-template-columns: 1fr;
    }

    .vasarlas-cell {
        min-height: 250px;
    }
}

/* Scroll to top gomb */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(123, 45, 142, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #7B2D8E 0%, #5A1F6A 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 45, 142, 0.5);
}

/* Lightbox */
.vasarlas-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.vasarlas-lightbox.active {
    display: flex;
}

.vasarlas-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    line-height: 1;
}

.vasarlas-lightbox .lightbox-close:hover {
    color: #7B2D8E;
}

.vasarlas-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(123, 45, 142, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10001;
}

.vasarlas-lightbox .lightbox-nav:hover {
    background: rgba(123, 45, 142, 1);
}

.vasarlas-lightbox .lightbox-prev {
    left: 20px;
}

.vasarlas-lightbox .lightbox-next {
    right: 20px;
}

.vasarlas-lightbox .lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 160px);
    max-height: calc(100% - 80px);
}

.vasarlas-lightbox .lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 8px;
}

.vasarlas-lightbox .lightbox-counter {
    color: white;
    margin-top: 15px;
    font-size: 1rem;
    opacity: 0.8;
}

/* Kattintható képek */
.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .vasarlas-lightbox .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .vasarlas-lightbox .lightbox-prev {
        left: 10px;
    }

    .vasarlas-lightbox .lightbox-next {
        right: 10px;
    }

    .vasarlas-lightbox .lightbox-content {
        max-width: calc(100% - 100px);
    }

    .vasarlas-lightbox .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .vasarlas-lightbox .lightbox-content {
        max-width: calc(100% - 80px);
    }
}
