@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --olive: #6b7c52;
    --olive-dark: #4a5738;
    --olive-light: #8a9e6e;
    --olive-bg: #6b7c52;
    --text: #2c3320;
    --muted: #666;
    --white: #ffffff;
    --light-bg: #f5f5f3;
    --border: #ddd;
    --radius: 4px;
    --danger: #b3452e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

/* ── NAV ── */
.site-nav {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.site-nav .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 12px 20px;
}

.site-nav a {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--olive); }

.site-nav .nav-logo {
    flex-shrink: 0;
}
.site-nav .nav-logo img {
    height: 64px;
    width: auto;
    display: block;
}

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/hero.jpg');
    background-size: cover;
    background-position: center 40%;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 60px 20px 100px;
}

.hero-content h1 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto;
}

/* V-alakú elválasztó a hero alján */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

/* ── SZEKCIÓK ── */
.section {
    padding: 64px 20px;
}

.section-olive {
    background: var(--olive-bg);
    color: var(--white);
    position: relative;
    padding: 72px 20px;
}

/* V felső él */
.section-olive::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: var(--white);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

/* V alsó él */
.section-olive::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    background: var(--white);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.section-olive .section-inner {
    padding-top: 40px;
    padding-bottom: 40px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 10px;
}

.section-olive .section-label {
    color: rgba(255,255,255,0.7);
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.section-olive .section-title {
    color: var(--white);
}

/* ── TÚRÁK RÁCS ── */
.tours-section {
    background: var(--light-bg);
    padding: 64px 20px;
}

.tours-heading {
    text-align: center;
    margin-bottom: 40px;
}

.tours-heading .section-label { color: var(--olive); }

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.tour-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.tour-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #c5c9b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #8a9e6e, #6b7c52);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-card-img-placeholder svg {
    opacity: 0.3;
    width: 64px;
    height: 64px;
    fill: white;
}

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

.tour-card-date {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.tour-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.tour-meta {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--muted);
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tour-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
    flex: 1;
}

.tour-link {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--olive);
    text-decoration: none;
}
.tour-link:hover { color: var(--olive-dark); }

.tour-card.past {
    opacity: 0.8;
}
.tour-card.past .tour-card-img-placeholder {
    background: linear-gradient(135deg, #9aa08c, #7a8470);
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 60px 20px;
    font-size: 1rem;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--olive-bg);
    color: var(--white);
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: var(--white);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.footer-inner {
    padding-top: 40px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin: 0 auto 24px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-fb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    color: var(--white);
    text-decoration: none;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}
.footer-fb:hover { border-color: white; }

.footer-copy {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-top: 8px;
}

/* ── CSAPAT ── */
.team-section {
    background: var(--olive-dark);
    padding: 100px 20px 80px;
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: var(--light-bg);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.team-heading {
    text-align: center;
    margin-bottom: 56px;
}

.team-heading .section-label {
    color: rgba(255,255,255,0.55);
}

.team-heading .section-title {
    color: var(--white);
}

.team-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: visible;
    padding: 240px 40px 16px;
    margin-top: -220px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    width: 160px;
    position: relative;
}

.hex-wrap {
    width: 160px;
    height: 184px;
    position: relative;
    transition: transform 0.25s ease;
}

.team-member:hover .hex-wrap {
    transform: translateY(-6px);
}

.hex-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--olive-light);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: background 0.25s;
}

.team-member:hover .hex-wrap::before {
    background: #a8bf82;
}

.hex-wrap img {
    position: absolute;
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-name-overlay {
    position: absolute;
    bottom: 18%;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--white);
    text-shadow: 0 1px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
    letter-spacing: 0.03em;
    pointer-events: none;
    z-index: 2;
}

/* hover popup */
.hex-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) scale(0.7);
    transform-origin: bottom center;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.25s ease;
    z-index: 10;
}

.hex-popup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member:hover .hex-popup {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ── ADMIN ── */
.admin-bar {
    background: var(--olive-dark);
    color: var(--white);
    padding: 12px 20px;
}
.admin-bar .ab-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}
.admin-bar a { color: var(--white); text-decoration: none; font-weight: 600; }

.admin-main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 32px;
    max-width: 560px;
    margin: 40px auto;
}

.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; }
input[type=text], input[type=date], input[type=number], input[type=password], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
textarea { resize: vertical; min-height: 90px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-dark); }
.btn-secondary { background: #eef0ea; color: var(--olive-dark); }
.btn-secondary:hover { background: #e0e4d8; }
.btn-danger { background: #fbe9e5; color: var(--danger); }
.btn-danger:hover { background: #f5d5cc; }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: #fbe9e5; color: var(--danger); }
.alert-success { background: #eef0ea; color: var(--olive-dark); }

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
table.admin-table th, table.admin-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
table.admin-table th { background: #eef0ea; color: var(--olive-dark); font-weight: 700; }
.row-actions { display: flex; gap: 8px; }

/* ── LOGIN ── */
.login-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
}
