/* ==========================================================
   CROTA v1.0
   STYLE.CSS

   01. CSS változók
   02. Reset
   03. Tipográfia
   04. Header
   05. Layout
   06. Hero
   07. Cards
   08. Buttons
   09. Tables
   10. Forms
   11. Details
   12. Gallery
   13. Footer
   14. Utilities
   15. Animations
   16. Responsive
   ========================================================== */

/* ==========================================================
   CROTA v1.0
   01. CSS VÁLTOZÓK
   ----------------------------------------------------------
   Az oldal teljes színvilága és alapértékei.
   ========================================================== */

:root {

    /* ===== Színek ===== */

    --green: #2f6b3d;
    --green-dark: #244f2e;
    --green-light: #3d8550;

    --gold: #b8860b;
    --gold-light: #d4a937;

    --background: #f8f8f6;
    --surface: #ffffff;

    --text: #333333;
    --text-light: #666666;

    --border: #dddddd;
    --border-light: #eeeeee;

    --success: #2e7d32;
    --warning: #f9a825;
    --danger: #c62828;
    --info: #1565c0;


    /* ===== Méretek ===== */

    --container-width: 1200px;

    --radius-small: 6px;
    --radius: 10px;
    --radius-large: 16px;

    --header-height: 70px;


    /* ===== Árnyékok ===== */

    --shadow-small: 0 2px 6px rgba(0,0,0,.08);

    --shadow:
        0 4px 12px rgba(0,0,0,.08);

    --shadow-large:
        0 10px 25px rgba(0,0,0,.15);


    /* ===== Térközök ===== */

    --space-xs: .25rem;
    --space-sm: .5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;


    /* ===== Betűméretek ===== */

    --font-small: .875rem;
    --font-base: 1rem;
    --font-large: 1.125rem;

    --h1: 2.5rem;
    --h2: 2rem;
    --h3: 1.5rem;


    /* ===== Animáció ===== */

    --transition-fast: .2s ease;
    --transition: .25s ease;
    --transition-slow: .4s ease;

}

/* ==========================================================
   CROTA v1.0
   02. RESET + ALAPBEÁLLÍTÁSOK
   ----------------------------------------------------------
   Egységes alap minden böngésző számára.
   ========================================================== */


/* ===== Box modell ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ===== Alap ===== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #F0F8FF;
    color: var(--text);

    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-base);
    line-height: 1.7;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}


/* ===== Kijelölés ===== */

::selection {
    background: var(--gold);
    color: white;
}


/* ===== Görgetősáv ===== */
/* Chrome, Edge */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #efefef;
}

::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-dark);
}


/* ===== Képek ===== */

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


/* ===== Videók ===== */

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


/* ===== Linkek ===== */

a {
    color: var(--green);
    text-decoration: none;

    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold);
}


/* ===== Lista ===== */

ul,
ol {
    padding-left: 1.4rem;
}

li {
    margin-bottom: .35rem;
}


/* ===== Vízszintes vonal ===== */

hr {
    margin: var(--space-xl) 0;

    border: 0;
    border-top: 1px solid var(--border);
}


/* ===== Konténer ===== */

.container {
    width: 100%;
    max-width: var(--container-width);

    margin: 0 auto;
    padding: 0 20px;
}


/* ===== Kiemelések ===== */

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}


/* ===== Billentyűzettel navigálók ===== */

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}


/* ===== Letiltott elemek ===== */

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ==========================================================
   CROTA v1.0
   03. TIPOGRÁFIA
   ----------------------------------------------------------
   Egységes szövegmegjelenítés.
   ========================================================== */


/* ===== Címsorok ===== */

h1,
h2,
h3,
h4,
h5,
h6 {

    color: var(--green);

    font-weight: 700;

    line-height: 1.25;

    margin-top: 0;
    margin-bottom: 1rem;

}

h1 {
    font-size: var(--h1);
}

h2 {
    font-size: var(--h2);

    margin-top: var(--space-xl);
}

h3 {
    font-size: var(--h3);

    margin-top: var(--space-lg);
}

h4 {

    font-size: 1.25rem;

    margin-top: var(--space-md);

}

h5 {

    font-size: 1.1rem;

}

h6 {

    font-size: 1rem;

    text-transform: uppercase;

    letter-spacing: .05em;

}


/* ===== Bekezdések ===== */

p {

    margin-bottom: var(--space-md);

    color: var(--text);

}


/* ===== Kis szöveg ===== */

small {

    font-size: var(--font-small);

    color: var(--text-light);

}


/* ===== Listák ===== */

ul,
ol {

    margin-bottom: var(--space-md);

}

li {

    margin-bottom: .4rem;

}


/* ===== Idézet ===== */

blockquote {

    margin: var(--space-lg) 0;

    padding: 1rem 1.5rem;

    border-left: 5px solid var(--gold);

    background: #faf8f1;

    font-style: italic;

    color: var(--text-light);

}


/* ===== Kódrészlet ===== */

code {

    padding: .15rem .4rem;

    background: #efefef;

    border-radius: var(--radius-small);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: .95em;

}

pre {

    padding: 1rem;

    margin: var(--space-lg) 0;

    overflow-x: auto;

    border-radius: var(--radius);

    background: #2c2c2c;

    color: #eeeeee;

}

pre code {

    background: none;

    color: inherit;

    padding: 0;

}


/* ===== Elválasztó ===== */

.section-title {

    margin-bottom: 2rem;

    text-align: center;

}

.section-title::after {

    content: "";

    display: block;

    width: 80px;

    height: 4px;

    margin: .8rem auto 0;

    border-radius: 50px;

    background: var(--gold);

}


/* ===== Segédosztályok ===== */

.text-center {

    text-align: center;

}

.text-right {

    text-align: right;

}

.text-left {

    text-align: left;

}

.text-muted {

    color: var(--text-light);

}

.lead {

    font-size: 1.2rem;

    color: var(--text-light);

    font-weight: 300;

}

/* ==========================================================
   CROTA v1.0
   04. HEADER + NAVIGÁCIÓ
   ----------------------------------------------------------
   Felső navigációs sáv
   ========================================================== */


/* ===== Fejléc ===== */

header {

    position: sticky;

    top: 0;

    z-index: 1000;

    height: var(--header-height);

    background: rgba(255,255,255,.92);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    box-shadow: var(--shadow-small);

}


/* ===== Tartalom ===== */

.header-container {

    max-width: var(--container-width);

    height: 100%;

    margin: auto;

    padding: 0 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


/* ===== Logo ===== */

.logo {

    display: flex;

    align-items: center;

    gap: .75rem;

}

.logo img {

    height: 48px;

    width: auto;

}

.logo span {

    color: var(--green);

    font-size: 1.3rem;

    font-weight: 700;

}


/* ===== Navigáció ===== */

nav ul {

    list-style: none;

    margin: 0;

    padding: 0;

    display: flex;

    gap: 1.5rem;

}

nav li {

    margin: 0;

}

nav a {

    display: block;

    padding: 1.45rem 0;

    color: var(--text);

    font-weight: 600;

    border-bottom: 3px solid transparent;

    transition:
        color var(--transition-fast),
        border-color var(--transition-fast);

}

nav a:hover {

    color: var(--green);

    border-bottom-color: var(--gold);

}

nav a.active {

    color: var(--green);

    border-bottom-color: var(--gold);

}


/* ===== Mobil gomb ===== */

.menu-toggle {

    display: none;

    cursor: pointer;

    background: none;

    border: none;

    padding: .5rem;

}


/* ===== Hamburger ===== */

.menu-toggle span {

    display: block;

    width: 28px;

    height: 3px;

    margin: 5px 0;

    border-radius: 5px;

    background: var(--green);

    transition: var(--transition);

}

/* ===== Mobil navigáció ===== */

@media (max-width:768px){

    .menu-toggle{

        display:block;

    }

    nav{

        position:absolute;

        top:100%;

        left:0;

        right:0;

        background:white;

        box-shadow:var(--shadow);

        display:none;

    }

    nav.active{

        display:block;

    }

    nav ul{

        flex-direction:column;

        gap:0;

    }

    nav a{

        padding:1rem 20px;

        border-bottom:1px solid var(--border);

    }

}

/* ==========================================================
   CROTA v1.0
   05. ÁLTALÁNOS TARTALMI ELEMEK
   ----------------------------------------------------------
   Az oldalak alap elrendezése
   ========================================================== */


/* ===== Oldal fejléc ===== */

.page-header {

    margin: 3rem 0;

    text-align: center;

}

.page-header h1 {

    margin-bottom: .75rem;

}

.page-header p {

    max-width: 700px;

    margin: auto;

    color: var(--text-light);

}


/* ===== Tartalmi szekció ===== */

.section {

    margin: var(--space-xl) 0;

}


/* ===== Tartalom ===== */

.page-content {

    max-width: 1000px;

    margin: auto;

}


/* ===== Rács ===== */

.grid {

    display: grid;

    gap: 2rem;

}


/* ===== Két oszlop ===== */

.grid-2 {

    grid-template-columns: repeat(2, 1fr);

}


/* ===== Három oszlop ===== */

.grid-3 {

    grid-template-columns: repeat(3, 1fr);

}


/* ===== Négy oszlop ===== */

.grid-4 {

    grid-template-columns: repeat(4, 1fr);

}


/* ===== Flex ===== */

.flex {

    display: flex;

}

.flex-between {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.flex-center {

    display: flex;

    justify-content: center;

    align-items: center;

}


/* ===== Térközök ===== */

.mt-0 { margin-top: 0; }

.mt-1 { margin-top: .5rem; }

.mt-2 { margin-top: 1rem; }

.mt-3 { margin-top: 2rem; }

.mt-4 { margin-top: 4rem; }


.mb-0 { margin-bottom: 0; }

.mb-1 { margin-bottom: .5rem; }

.mb-2 { margin-bottom: 1rem; }

.mb-3 { margin-bottom: 2rem; }

.mb-4 { margin-bottom: 4rem; }


/* ===== Padding ===== */

.p-1 { padding: .5rem; }

.p-2 { padding: 1rem; }

.p-3 { padding: 2rem; }


/* ===== Maximális szélességek ===== */

.w-100 {

    width: 100%;

}

.max-600 {

    max-width: 600px;

    margin-inline: auto;

}

.max-800 {

    max-width: 800px;

    margin-inline: auto;

}

.max-1000 {

    max-width: 1000px;

    margin-inline: auto;

}

/* ===== Mobil ===== */

@media (max-width:768px){

    .grid-2,
    .grid-3,
    .grid-4{

        grid-template-columns:1fr;

    }

    .flex-between{

        flex-direction:column;

        align-items:flex-start;

        gap:1rem;

    }

    .page-header{

        margin:2rem 0;

    }

}

/* ==========================================================
   CROTA v1.0
   06. HERO
   ----------------------------------------------------------
   Főoldali és belső oldali fejléc
   ========================================================== */


/* ===== Hero ===== */

.hero {

	 height: 920px;
    background: url("../images/hero.jpg") center center / cover no-repeat;
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 420px;

    padding: 5rem 1rem;

    color: white;
    text-align: center;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;

}


/* ===== Sötét réteg ===== */

.hero::before {

    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.45);

}


/* ===== Tartalom ===== */

.hero-content {

    position: relative;

    z-index: 2;

    max-width: 900px;

}


/* ===== Főcím ===== */

.hero h1 {

    margin-bottom: 1rem;

    color: white;

    font-size: clamp(2.2rem, 5vw, 3.8rem);

    text-shadow: 0 2px 10px rgba(0,0,0,.5);

}


/* ===== Alcím ===== */

.hero p {

    margin: auto;

    max-width: 700px;

    font-size: 1.2rem;

    color: rgba(255,255,255,.92);

}


/* ===== Gombok ===== */

.hero-buttons {

    display: flex;

    justify-content: center;

    gap: 1rem;

    margin-top: 2rem;

    flex-wrap: wrap;

}

/* ===== Kis Hero ===== */

.hero-small {

    min-height: 260px;

    padding: 3rem 1rem;

}

.hero-small h1 {

    font-size: clamp(2rem,4vw,3rem);

}

@media (max-width:768px){

    .hero{

        min-height:300px;

        padding:3rem 1rem;

    }

    .hero p{

        font-size:1rem;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

    }

}

/* ==========================================================
   CROTA v1.0
   07. KÁRTYÁK (CARDS)
   ----------------------------------------------------------
   Egységes megjelenés minden tartalmi dobozhoz.
   ========================================================== */


/* ===== Alap kártya ===== */

.card {

    display: flex;
    flex-direction: column;

    height: 100%;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-large);

    overflow: hidden;

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}


/* ===== Hover ===== */

.card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow-large);

}


/* ===== Kép ===== */

.card img {

    width: 100%;
    height: 220px;

    object-fit: cover;

}


/* ===== Tartalom ===== */

.card-body {

    flex: 1;

    padding: 1.5rem;

}


/* ===== Cím ===== */

.card-title {

    margin: 0 0 .75rem;

    color: var(--green);

    font-size: 1.35rem;

}


/* ===== Szöveg ===== */

.card-text {

    margin-bottom: 1rem;

    color: var(--text-light);

}


/* ===== Lábléc ===== */

.card-footer {

    margin-top: auto;

    padding: 1rem 1.5rem;

    border-top: 1px solid var(--border-light);

    background: #fafafa;

}


/* ===== Meta adatok ===== */

.card-meta {

    display: flex;

    flex-wrap: wrap;

    gap: .75rem;

    margin-bottom: 1rem;

    font-size: .9rem;

    color: var(--text-light);

}


/* ===== Jelvény ===== */

.badge {

    display: inline-block;

    padding: .35rem .8rem;

    border-radius: 999px;

    background: var(--green);

    color: white;

    font-size: .8rem;

    font-weight: 600;

}


/* ===== Arany jelvény ===== */

.badge-gold {

    background: var(--gold);

}


/* ===== Szürke jelvény ===== */

.badge-light {

    background: #e8e8e8;

    color: var(--text);

}

/* ===== Mobil ===== */

@media (max-width:768px){

    .card img{

        height:180px;

    }

    .card-body{

        padding:1.2rem;

    }

}

/* ==========================================================
   CROTA v1.0
   08. GOMBOK (BUTTONS)
   ----------------------------------------------------------
   Egységes gombstílusok és állapotok
   ========================================================== */


/* ===== Alap gomb ===== */

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    padding: .8rem 1.4rem;

    border: none;
    border-radius: var(--radius);

    background: var(--green);
    color: #fff;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    text-decoration: none;

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);

    box-shadow: var(--shadow-small);

}


/* ===== Hover ===== */

.btn:hover {

    background: var(--green-dark);

    transform: translateY(-2px);

    box-shadow: var(--shadow);

}


/* ===== Aktív ===== */

.btn:active {

    transform: translateY(0);

    box-shadow: var(--shadow-small);

}


/* ===== Billentyűzet fókusz ===== */

.btn:focus-visible {

    outline: 3px solid var(--gold);

    outline-offset: 3px;

}


/* ===== Letiltott ===== */

.btn:disabled,
.btn.disabled {

    opacity: .6;

    cursor: not-allowed;

    pointer-events: none;

}


/* ==========================================================
   Körvonalas gomb
   ========================================================== */

.btn-outline {

    background: transparent;

    border: 2px solid var(--green);

    color: var(--green);

}

.btn-outline:hover {

    background: var(--green);

    color: white;

}


/* ==========================================================
   Arany gomb
   ========================================================== */

.btn-gold {

    background: var(--gold);

}

.btn-gold:hover {

    background: var(--gold-light);

}


/* ==========================================================
   Veszély gomb
   ========================================================== */

.btn-danger {

    background: var(--danger);

}

.btn-danger:hover {

    filter: brightness(.92);

}


/* ==========================================================
   Kis gomb
   ========================================================== */

.btn-small {

    padding: .55rem 1rem;

    font-size: .9rem;

}


/* ==========================================================
   Nagy gomb
   ========================================================== */

.btn-large {

    padding: 1rem 2rem;

    font-size: 1.1rem;

}


/* ==========================================================
   Teljes szélesség
   ========================================================== */

.btn-block {

    display: flex;

    width: 100%;

}


/* ==========================================================
   Ikon
   ========================================================== */

.btn svg {

    width: 18px;

    height: 18px;

    fill: currentColor;

    flex-shrink: 0;

}

/* ===== Mobil ===== */

@media (max-width:768px){

    .btn{

        width:100%;

    }

    .hero-buttons .btn{

        width:auto;

        min-width:220px;

    }

}

/* ==========================================================
   CROTA v1.0
   09. TÁBLÁZATOK (TABLES)
   ----------------------------------------------------------
   Egységes táblázat megjelenés
   ========================================================== */


/* ===== Táblázat konténer ===== */

.table-responsive {

    width: 100%;

    overflow-x: auto;

    margin: var(--space-lg) 0;

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);

}


/* ===== Táblázat ===== */

.table {

    width: 100%;

    border-collapse: collapse;

    background: var(--surface);

    min-width: 700px;

}


/* ===== Fejléc ===== */

.table thead {

    background: var(--green);

    color: white;

}

.table th {

    padding: 1rem;

    text-align: left;

    font-weight: 600;

    white-space: nowrap;

}


/* ===== Cellák ===== */

.table td {

    padding: .9rem 1rem;

    border-bottom: 1px solid var(--border);

    vertical-align: middle;

}


/* ===== Páros sorok ===== */

.table tbody tr:nth-child(even) {

    background: #fafafa;

}


/* ===== Hover ===== */

.table tbody tr:hover {

    background: #f3f8f4;

}


/* ===== Utolsó sor ===== */

.table tbody tr:last-child td {

    border-bottom: none;

}


/* ===== Első oszlop ===== */

.table td:first-child {

    font-weight: 600;

    color: var(--green);

}


/* ===== Rendezhető oszlop ===== */

.table th.sortable {

    cursor: pointer;

    user-select: none;

}

.table th.sortable:hover {

    background: var(--green-dark);

}


/* ===== Középre igazítás ===== */

.table .center {

    text-align: center;

}


/* ===== Jobbra igazítás ===== */

.table .right {

    text-align: right;

}

/* ===== Mobil ===== */

@media (max-width:768px){

    .table th,
    .table td{

        padding:.75rem;

        font-size:.9rem;

    }

}

/* ===== Állapotok ===== */

.table tr.highlight {

    background: #fff8e6;

}

.table tr.selected {

    background: #e8f5e9;

}


/* ===== Üres táblázat ===== */

.table-empty {

    padding: 3rem;

    text-align: center;

    color: var(--text-light);

    background: var(--surface);

    border: 1px dashed var(--border);

    border-radius: var(--radius-large);

}

/* ==========================================================
   CROTA v1.0
   10. ŰRLAPOK (FORMS)
   ----------------------------------------------------------
   Kapcsolati, regisztrációs és beküldő űrlapok
   ========================================================== */


/* ===== Űrlap ===== */

.form {

    display: flex;
    flex-direction: column;
    gap: 1.5rem;

}


/* ===== Űrlap csoport ===== */

.form-group {

    display: flex;
    flex-direction: column;
    gap: .5rem;

}


/* ===== Címkék ===== */

.form-label {

    font-weight: 600;
    color: var(--green);

}


/* Kötelező mező */

.required::after {

    content: " *";

    color: var(--danger);

}


/* ===== Mezők ===== */

.form-control {

    width: 100%;

    padding: .85rem 1rem;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    color: var(--text);

    font: inherit;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);

}


/* ===== Fókusz ===== */

.form-control:focus {

    outline: none;

    border-color: var(--gold);

    box-shadow: 0 0 0 4px rgba(184,134,11,.15);

}


/* ===== Placeholder ===== */

.form-control::placeholder {

    color: #999;

}


/* ===== Textarea ===== */

textarea.form-control {

    min-height: 160px;

    resize: vertical;

}


/* ===== Select ===== */

select.form-control {

    cursor: pointer;

}


/* ===== Checkbox / Radio ===== */

.form-check {

    display: flex;

    align-items: center;

    gap: .6rem;

}

.form-check input {

    accent-color: var(--green);

}


/* ===== Segítő szöveg ===== */

.form-help {

    font-size: .9rem;

    color: var(--text-light);

}


/* ===== Hibás mező ===== */

.form-control.error {

    border-color: var(--danger);

}

.form-control.error:focus {

    box-shadow: 0 0 0 4px rgba(198,40,40,.15);

}


/* ===== Sikeres mező ===== */

.form-control.success {

    border-color: var(--success);

}

.form-control.success:focus {

    box-shadow: 0 0 0 4px rgba(46,125,50,.15);

}


/* ===== Hibaüzenet ===== */

.error-message {

    font-size: .9rem;

    color: var(--danger);

}


/* ===== Sikerüzenet ===== */

.success-message {

    font-size: .9rem;

    color: var(--success);

}


/* ===== Űrlap műveletek ===== */

.form-actions {

    display: flex;

    gap: 1rem;

    justify-content: flex-end;

    flex-wrap: wrap;

}

/* ===== Mobil ===== */

@media (max-width:768px){

    .form-actions{

        flex-direction: column;

    }

    .form-actions .btn{

        width: 100%;

    }

}

.upload-area{

    padding:2rem;

    border:2px dashed var(--border);

    border-radius:var(--radius-large);

    text-align:center;

    transition:var(--transition);

}

.upload-area:hover{

    border-color:var(--green);

    background:#fafdfb;

}

.loading{

    opacity:.6;

    pointer-events:none;

    cursor:wait;

}

/* ==========================================================
   CROTA v1.0
   11. DETAILS / ACCORDION
   ----------------------------------------------------------
   Összecsukható információs blokkok
   ========================================================== */


/* ===== Details ===== */

.details {

    margin-bottom: 1rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-large);

    overflow: hidden;

    box-shadow: var(--shadow-small);

}


/* ===== Nyitott állapot ===== */

.details[open] {

    box-shadow: var(--shadow);

}


/* ===== Címsor ===== */

.details summary {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1rem 1.5rem;

    cursor: pointer;

    font-weight: 600;

    color: var(--green);

    list-style: none;

    transition: background var(--transition);

}


/* Safari / Chrome marker eltüntetése */

.details summary::-webkit-details-marker {

    display: none;

}

.details summary::marker {

    display: none;

}


/* ===== Hover ===== */

.details summary:hover {

    background: #fafdfb;

}


/* ===== Nyíl ===== */

.details summary::after {

    content: "+";

    font-size: 1.4rem;

    font-weight: 400;

    color: var(--gold);

    transition: transform var(--transition);

}


/* ===== Nyitott nyíl ===== */

.details[open] summary::after {

    content: "−";

}


/* ===== Tartalom ===== */

.details-content {

    padding: 1.5rem;

    border-top: 1px solid var(--border-light);

    background: var(--surface);

}


/* ===== Bekezdések ===== */

.details-content p:last-child {

    margin-bottom: 0;

}


/* ===== Lista ===== */

.details-content ul,
.details-content ol {

    margin-bottom: 0;

}

/* ===== Fontos ===== */

.details-important {

    border-left: 5px solid var(--gold);

}


/* ===== Figyelmeztetés ===== */

.details-warning {

    border-left: 5px solid var(--danger);

}


/* ===== Információ ===== */

.details-info {

    border-left: 5px solid var(--info);

}

/* ===== Mobil ===== */

@media (max-width:768px){

    .details summary{

        padding: 1rem;

        font-size: .95rem;

    }

    .details-content{

        padding: 1rem;

    }

}

/* ==========================================================
   CROTA v1.0
   12. GALÉRIA
   ----------------------------------------------------------
   Reszponzív képrács
   ========================================================== */


/* ===== Galéria ===== */

.gallery {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 1.5rem;

}


/* ===== Galéria elem ===== */

.gallery-item {

    display: block;

    background: var(--surface);

    border-radius: var(--radius-large);

    overflow: hidden;

    text-decoration: none;

    color: inherit;

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}


/* ===== Hover ===== */

.gallery-item:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-large);

}


/* ===== Kép ===== */

.gallery-item img {

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition: transform .35s ease;

}


/* ===== Kép nagyítása ===== */

.gallery-item:hover img {

    transform: scale(1.05);

}


/* ===== Felirat ===== */

.gallery-caption {

    padding: 1rem 1.2rem;

}


/* ===== Cím ===== */

.gallery-caption h3 {

    margin: 0 0 .5rem;

    font-size: 1.15rem;

    color: var(--green);

}


/* ===== Leírás ===== */

.gallery-caption p {

    margin: 0;

    color: var(--text-light);

    font-size: .95rem;

}

/* ===== Címkék ===== */

.gallery-tags {

    display: flex;

    flex-wrap: wrap;

    gap: .5rem;

    margin-top: .8rem;

}

/* ===== Üres galéria ===== */

.gallery-empty {

    padding: 4rem 2rem;

    text-align: center;

    border: 2px dashed var(--border);

    border-radius: var(--radius-large);

    color: var(--text-light);

}

/* ===== Mobil ===== */

@media (max-width:768px){

    .gallery{

        grid-template-columns:1fr;

    }

}

/* ==========================================================
   CROTA v1.0
   13. FOOTER
   ----------------------------------------------------------
   Oldal lábléce
   ========================================================== */


/* ===== Footer ===== */

.footer {

    margin-top: var(--space-xl);

    background: var(--green-dark);

    color: rgba(255,255,255,.9);

    border-top: 4px solid var(--gold);

}


/* ===== Tartalom ===== */

.footer-container {

    max-width: var(--container-width);

    margin: 0 auto;

    padding: 3rem 20px 2rem;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));

    gap: 2rem;

}


/* ===== Címek ===== */

.footer h3 {

    margin-bottom: 1rem;

    color: white;

    font-size: 1.15rem;

}


/* ===== Bekezdések ===== */

.footer p {

    color: rgba(255,255,255,.85);

    margin-bottom: .75rem;

}


/* ===== Lista ===== */

.footer ul {

    list-style: none;

    margin: 0;

    padding: 0;

}

.footer li {

    margin-bottom: .6rem;

}


/* ===== Linkek ===== */

.footer a {

    color: rgba(255,255,255,.85);

    transition: color var(--transition-fast);

}

.footer a:hover {

    color: var(--gold);

}


/* ===== Ikonsor ===== */

.footer-social {

    display: flex;

    gap: .75rem;

    margin-top: 1rem;

}

.footer-social a {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    transition:
        background var(--transition),
        transform var(--transition);

}

.footer-social a:hover {

    background: var(--gold);

    transform: translateY(-2px);

}


/* ===== SVG ikon ===== */

.footer-social svg {

    width: 20px;

    height: 20px;

    fill: currentColor;

}


/* ===== Alsó sáv ===== */

.footer-bottom {

    padding: 1rem 20px;

    border-top: 1px solid rgba(255,255,255,.12);

    text-align: center;

    font-size: .9rem;

    color: rgba(255,255,255,.7);

}

/* ===== Mobil ===== */

@media (max-width:768px){

    .footer-container{

        grid-template-columns:1fr;

        text-align:center;

    }

    .footer-social{

        justify-content:center;

    }

}

/* ==========================================================
   CROTA v1.0
   14. SEGÉDOSZTÁLYOK (UTILITIES)
   ----------------------------------------------------------
   Általánosan használható segédosztályok
   ========================================================== */


/* ===== Láthatóság ===== */

.hidden {

    display: none !important;

}

.invisible {

    visibility: hidden !important;

}


/* ===== Akadálymentesítés ===== */

.visually-hidden {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}


/* ===== Igazítás ===== */

.text-center {

    text-align: center !important;

}

.text-left {

    text-align: left !important;

}

.text-right {

    text-align: right !important;

}


/* ===== Szélesség ===== */

.w-100 {

    width: 100% !important;

}


/* ===== Kép ===== */

.img-fluid {

    display: block;

    max-width: 100%;

    height: auto;

}


/* ===== Elválasztó ===== */

.divider {

    height: 1px;

    margin: var(--space-xl) 0;

    background: var(--border);

}


/* ===== Árnyék ===== */

.shadow {

    box-shadow: var(--shadow);

}

.shadow-lg {

    box-shadow: var(--shadow-large);

}


/* ===== Lekerekítés ===== */

.rounded {

    border-radius: var(--radius);

}

.rounded-lg {

    border-radius: var(--radius-large);

}


/* ===== Flex ===== */

.d-flex {

    display: flex;

}

.justify-center {

    justify-content: center;

}

.align-center {

    align-items: center;

}


/* ===== Köz ===== */

.gap-sm {

    gap: .5rem;

}

.gap {

    gap: 1rem;

}

.gap-lg {

    gap: 2rem;

}

/* ===== Kurzor ===== */

.cursor-pointer {

    cursor: pointer;

}


/* ===== Szöveg tördelése ===== */

.break-word {

    overflow-wrap: break-word;

    word-break: break-word;

}

/* ==========================================================
   CROTA v1.0
   15. ANIMÁCIÓK
   ----------------------------------------------------------
   Finom animációk és áttűnések
   ========================================================== */


/* ===== Fade In ===== */

@keyframes fadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}


/* ===== Slide Up ===== */

@keyframes slideUp {

    from {

        opacity: 0;

        transform: translateY(25px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* ===== Slide Down ===== */

@keyframes slideDown {

    from {

        opacity: 0;

        transform: translateY(-20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* ===== Zoom In ===== */

@keyframes zoomIn {

    from {

        opacity: 0;

        transform: scale(.96);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}


/* ==========================================================
   Segédosztályok
   ========================================================== */

.fade-in {

    animation: fadeIn .6s ease both;

}

.slide-up {

    animation: slideUp .5s ease both;

}

.slide-down {

    animation: slideDown .4s ease both;

}

.zoom-in {

    animation: zoomIn .4s ease both;

}


/* ==========================================================
   Hover animációk
   ========================================================== */

.hover-lift {

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}

.hover-lift:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-large);

}


/* ==========================================================
   Forgatás
   ========================================================== */

.rotate {

    transition: transform var(--transition);

}

.rotate:hover {

    transform: rotate(5deg);

}


/* ==========================================================
   Finom nagyítás
   ========================================================== */

.scale {

    transition: transform var(--transition);

}

.scale:hover {

    transform: scale(1.03);

}


/* ==========================================================
   Ikonok
   ========================================================== */

.icon {

    transition:
        transform var(--transition),
        color var(--transition);

}

.icon:hover {

    transform: scale(1.15);

}


/* ==========================================================
   Rendszer beállítás tiszteletben tartása
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    * {

        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;

    }

}

/* ===== Megjelenítés ===== */

.is-visible {

    animation: fadeIn .35s ease;

}

/* ==========================================================
   CROTA v1.0
   16. MOBIL FINOMHANGOLÁSOK
   ----------------------------------------------------------
   Globális reszponzív beállítások
   ========================================================== */

@media (max-width:768px){

    /* ===== Alap ===== */

    html{

        font-size:15px;

    }

    body{

        line-height:1.6;

    }


    /* ===== Konténer ===== */

    .container{

        padding-left:16px;
        padding-right:16px;

    }


    /* ===== Címsorok ===== */

    h1{

        font-size:2rem;

    }

    h2{

        font-size:1.75rem;

    }

    h3{

        font-size:1.35rem;

    }


    /* ===== Szekciók ===== */

    .section{

        margin:3rem 0;

    }


    /* ===== Page Header ===== */

    .page-header{

        margin:2rem 0;

    }


    /* ===== Táblázatok ===== */

    .table-responsive{

        border-radius:var(--radius);

    }


    /* ===== Details ===== */

    .details{

        border-radius:var(--radius);

    }


    /* ===== Kártyák ===== */

    .card{

        border-radius:var(--radius);

    }


    /* ===== Galéria ===== */

    .gallery{

        gap:1rem;

    }


    /* ===== Gombok ===== */

    .btn{

        min-height:48px;

    }


    /* ===== Űrlapok ===== */

    .form-control{

        min-height:48px;

        font-size:16px;

    }

    textarea.form-control{

        min-height:160px;

    }


    /* ===== Képek ===== */

    img{

        height:auto;

    }

}

/* ==========================================================
   TABLET
   ========================================================== */

@media (min-width:769px) and (max-width:1024px){

    .container{

        padding-left:24px;
        padding-right:24px;

    }

    .grid-3{

        grid-template-columns:repeat(2,1fr);

    }

    .grid-4{

        grid-template-columns:repeat(2,1fr);

    }

}

/* ==========================================================
   LARGE DESKTOP
   ========================================================== */

@media (min-width:1400px){

    .container{

        max-width:1320px;

    }

}

/* ==========================================================
   PRINT
   ========================================================== */

@media print{

    header,
    footer,
    .hero,
    .btn{

        display:none !important;

    }

    body{

        background:white;

        color:black;

    }

    a{

        color:black;

        text-decoration:none;

    }

}

/* ==========================================================
   Reference Cards
========================================================== */

.reference-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.reference-id {
    display: inline-block;
    margin-bottom: .75rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #222222;
    font-size: .99rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.reference-card h3 {
    margin-bottom: .75rem;
}

.reference-card p {
    margin: .35rem 0;
}

.reference-card .button {
    margin-top: auto;
    width: 100%;
    text-align: center;
}
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* ==========================================================
   Status Badge
========================================================== */

.status {
    display: inline-block;
    margin-top: .4rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-planned {
    background: #fff3cd;
    color: #856404;
}

/* ==========================================================
   Reference Details
========================================================== */

.reference-header {
    text-align: center;
    margin-bottom: 2rem;
}

.reference-header h2 {
    margin-top: .5rem;
    margin-bottom: 0;
}

.reference-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.reference-image img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.reference-data {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.reference-data h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.reference-data p {
    margin: .6rem 0;
}

.reference-description {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.reference-description h3 {
    margin-top: 0;
}

.reference-description p {
    line-height: 1.8;
    text-align: justify;
    white-space: pre-line;
}

.reference-map {
    margin-bottom: 2rem;
}

.reference-map h3 {
    margin-bottom: 1rem;
}

#map {
    width: 100%;
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.reference-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ==========================================================
   Reference Details
========================================================== */

.reference-content {
    grid-template-columns: 1fr;
}

.reference-actions {
    flex-direction: column;
}

.reference-actions .button {
    width: 100%;
}
.reference-actions .button {
    min-width: 220px;
    text-align: center;
}

.button.secondary {
    background: #6c757d;
}

.button.secondary:hover {
    background: #5a6268;
}
/* ==========================================================
   CROTA – Referencia kereső
   Egységes keresőmező az Aktiválások oldallal
   ========================================================== */

.search {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search h2 {
    margin: 0 0 .75rem;
    font-size: 1rem;
}

#searchBox {
    display: block;
    width: 100%;
    min-height: 64px;
    padding: 0 1rem;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    outline: none;
}

#searchBox::placeholder {
    color: var(--text-light);
    opacity: 1;
}

#searchBox:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(190, 139, 0, .15);
}

@media (max-width: 768px) {
    .search {
        padding: 1rem;
    }

    #searchBox {
        min-height: 58px;
        font-size: 1rem;
    }
}


/* ==========================================================
   CROTA – Közös végleges vizuális javítások
   ========================================================== */

/* A hero képen ne jelenjen meg középen szöveges overlay. */
.hero-content {
    display: none;
}

/* Hiányzó referenciafotó helyőrzője. */
.card-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    box-sizing: border-box;
    background: linear-gradient(
        135deg,
        #f0f0ed 0%,
        #fafaf8 50%,
        #e8e8e4 100%
    );
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.card-image-placeholder .placeholder-icon {
    font-size: 1.35rem;
    line-height: 1;
}

/* ==========================================================
   CROTA – Részletes referenciaoldal
   ========================================================== */

.reference-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.reference-data {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.reference-description {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.reference-actions .btn {
    min-width: 220px;
    text-align: center;
}

.reference-activations {
    margin-bottom: 2rem;
}

.reference-activations h3 {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .reference-content {
        grid-template-columns: 1fr;
    }

    .reference-actions {
        flex-direction: column;
    }

    .reference-actions .btn {
        width: 100%;
    }

    .card-image-placeholder {
        min-height: 180px;
    }
}


/* ==========================================================
   CROTA – ADIF feltöltő
   ========================================================== */

.adif-card,
.adif-help-card {
    margin-bottom: 2rem;
}

.adif-field {
    margin: 1.5rem 0;
}

.adif-field label {
    display: block;
    margin-bottom: .6rem;
}

.adif-field input[type="file"],
.adif-field select {
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    padding: .8rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.adif-field input[type="file"] {
    padding: .85rem 1rem;
}

.adif-field select:focus,
.adif-field input[type="file"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 151, 63, .15);
}

.adif-status,
.adif-warnings,
.adif-result {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
}

.adif-status.success {
    background: #edf7ee;
    border: 1px solid #b9d9bd;
}

.adif-status.error {
    background: #fbefef;
    border: 1px solid #e0bcbc;
}

.adif-preview {
    margin-top: 2rem;
}

.adif-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.adif-summary > div {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-align: center;
}

.adif-summary span,
.adif-summary strong {
    display: block;
}

.adif-summary span {
    margin-bottom: .35rem;
    color: var(--text-light);
    font-size: .9rem;
}

.adif-summary strong {
    font-size: 1.1rem;
}

.adif-warnings {
    background: #fff7e5;
    border: 1px solid #e6c77b;
}

.adif-warnings ul {
    margin: .7rem 0;
}

.adif-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.adif-actions .btn {
    min-width: 220px;
}

.adif-result {
    background: #edf7ee;
    border: 1px solid #b9d9bd;
}

.adif-result-record {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
}

.adif-result-record p {
    margin: .35rem 0;
}

@media (max-width: 900px) {
    .adif-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .adif-summary {
        grid-template-columns: 1fr;
    }

    .adif-actions {
        flex-direction: column;
    }

    .adif-actions .btn {
        width: 100%;
    }
}


/* ==========================================================
   CROTA v1.0
   HÍREK
   ----------------------------------------------------------
   A news.json-ben tárolt sor- és bekezdéstörések megőrzése.
   ========================================================== */

.news-text {
    white-space: pre-line;
}


/* ==========================================================
   CROTA – Referenciahelyek térképe
   ----------------------------------------------------------
   A references.html oldalon megjelenő Leaflet / OpenStreetMap
   térkép megjelenítése.
   ========================================================== */

.reference-map-section {
    margin-bottom: 2rem;
}

.references-map {
    width: 100%;
    height: 560px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #e8e8e8;
}

.references-map-status {
    margin-top: 1rem;
    padding: 1rem;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-small);
    background: #faf8f1;
    color: var(--text);
}

.map-popup {
    min-width: 220px;
}

.map-popup-reference {
    margin-bottom: .35rem;
    color: var(--green);
    font-weight: 700;
}

.map-popup h3 {
    margin: .25rem 0 .75rem;
    font-size: 1rem;
    line-height: 1.3;
}

.map-popup p {
    margin: .3rem 0;
    line-height: 1.4;
}

.map-popup-link {
    display: inline-block;
    margin-top: .6rem;
    padding: .45rem .75rem;
    border-radius: var(--radius-small);
    background: var(--green);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.map-popup-link:hover {
    background: var(--green-dark);
    color: #ffffff;
}

@media (max-width: 768px) {

    .references-map {
        height: 420px;
    }

}

/* ==========================================================
   CROTA – Közeli romok keresése QRA lokátor alapján
   ----------------------------------------------------------
   A felhasználó QRA / Maidenhead lokátorából számított
   környezetben lévő referenciahelyek megjelenítése.
   ========================================================== */

.qra-nearby-panel {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.qra-nearby-controls {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.qra-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 210px;
}

.qra-field label {
    font-weight: 600;
    color: var(--text);
}

.qra-input,
.qra-select {
    width: 100%;
    min-height: 44px;
    padding: .65rem .8rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    box-sizing: border-box;
}

.qra-input:focus,
.qra-select:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

.qra-search-button {
    min-height: 44px;
    padding: .65rem 1rem;
    border: 0;
    border-radius: var(--radius-small);
    background: var(--green);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.qra-search-button:hover {
    background: var(--green-dark);
}

.qra-search-button:active {
    transform: translateY(1px);
}

.qra-help {
    margin: .9rem 0 0;
    color: var(--text-light);
    font-size: .9rem;
    line-height: 1.5;
}

.qra-status {
    margin: .9rem 0 0;
    padding: .7rem .9rem;
    border-left: 4px solid var(--green);
    border-radius: var(--radius-small);
    background: #f1f7f2;
    color: var(--text);
}

.qra-status-error {
    border-left-color: #b33a3a;
    background: #fff2f2;
}

.qra-results {
    margin-top: 1rem;
}

.qra-results-heading {
    margin-bottom: .65rem;
    font-weight: 700;
}

.qra-results-list {
    display: grid;
    gap: .55rem;
}

.qra-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem .9rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.qra-result-item:hover {
    border-color: var(--green);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.qra-result-distance {
    flex: 0 0 72px;
    font-weight: 700;
    color: var(--green);
}

.qra-result-main {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.qra-result-main strong {
    color: var(--green);
}

.qra-result-main span {
    font-weight: 500;
}

.qra-result-main small {
    color: var(--text-light);
}

.qra-no-results {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: #fafafa;
    line-height: 1.5;
}

.qra-map-marker-wrapper {
    background: transparent;
    border: 0;
}

.qra-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 30px;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    border-radius: 15px;
    background: var(--green);
    color: #ffffff;
    font-size: .78rem;
    font-weight: 700;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .35);
}

.qra-search-circle {
    stroke: var(--green);
    fill: var(--green);
}

@media (max-width: 768px) {

    .qra-nearby-panel {
        padding: 1rem;
    }

    .qra-nearby-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .qra-field {
        width: 100%;
        min-width: 0;
    }

    .qra-search-button {
        width: 100%;
    }

    .qra-result-item {
        align-items: flex-start;
    }

    .qra-result-distance {
        flex-basis: 64px;
    }

}

/* ==========================================================
   CROTA CLUSTER
========================================================== */

.cluster-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: var(--surface);
}

.cluster-filter-field,
.cluster-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cluster-filter-field label,
.cluster-field label {
    font-weight: 700;
}

.cluster-select,
.cluster-input,
.cluster-field input,
.cluster-field select {
    min-height: 44px;
    box-sizing: border-box;
    padding: .65rem .75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: #fff;
    color: var(--text);
    font: inherit;
}

.cluster-search-field {
    flex: 1 1 260px;
}

.cluster-refresh-button {
    min-height: 44px;
}

.cluster-status,
.cluster-form-status {
    min-height: 1.4rem;
    color: var(--text-light);
}

.cluster-list {
    display: grid;
    gap: 1rem;
}

.cluster-card {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.15rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cluster-card-main {
    min-width: 0;
    flex: 1;
}

.cluster-card-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .35rem;
}

.cluster-callsign {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green);
}

.cluster-time {
    color: var(--text-light);
    white-space: nowrap;
}

.cluster-card h3 {
    margin: .15rem 0 .2rem;
}

.cluster-location {
    margin: 0 0 .75rem;
    color: var(--text-light);
}

.cluster-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.cluster-meta span {
    padding: .3rem .55rem;
    border-radius: 999px;
    background: #f2f2f2;
}

.cluster-heard {
    margin: .9rem 0 .25rem;
}

.cluster-heard-count {
    margin: 0;
    color: var(--text-light);
}

.cluster-card-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .55rem;
    flex: 0 0 160px;
}

.cluster-heard-button {
    width: 100%;
}

.cluster-empty {
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: var(--surface);
}

.cluster-error {
    border-color: #c0392b;
}

.cluster-form {
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: var(--surface);
}

.cluster-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .cluster-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cluster-card {
        flex-direction: column;
    }

    .cluster-card-actions {
        flex-basis: auto;
    }

    .cluster-card-topline {
        flex-direction: column;
        gap: .2rem;
    }

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