/* =========================================================================
   Grafiskatorget Frontend
   ========================================================================= */

:root {
    --gt-color-primary:   #1a5fa8;
    --gt-color-primary-h: #154d8a;
    --gt-color-text:      #1a1a1a;
    --gt-color-muted:     #666;
    --gt-color-border:    #e2e2e2;
    --gt-color-bg:        #f7f7f7;
    --gt-color-white:     #fff;
    --gt-color-green:     #2e7d32;
    --gt-color-red:       #c62828;
    --gt-radius:          8px;
    --gt-shadow:          0 2px 8px rgba(0,0,0,.08);
    --gt-shadow-h:        0 6px 20px rgba(0,0,0,.14);
    --gt-transition:      .2s ease;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.gt-main {
    padding: 2.5rem 0 4rem;
}

.gt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* -------------------------------------------------------------------------
   Archive header
   ------------------------------------------------------------------------- */

.gt-archive-header {
    margin-bottom: 2rem;
}

.gt-archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 .4rem;
    color: var(--gt-color-text);
}

.gt-archive-count {
    color: var(--gt-color-muted);
    font-size: .9rem;
    margin: 0;
}

/* -------------------------------------------------------------------------
   Grid
   ------------------------------------------------------------------------- */

.gt-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* -------------------------------------------------------------------------
   Card
   ------------------------------------------------------------------------- */

.gt-card {
    background: var(--gt-color-white);
    border: 1px solid var(--gt-color-border);
    border-radius: var(--gt-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--gt-transition), transform var(--gt-transition);
}

.gt-card:hover {
    box-shadow: var(--gt-shadow-h);
    transform: translateY(-2px);
}

.gt-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gt-color-bg);
}

.gt-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--gt-transition);
}

.gt-card:hover .gt-card__image img {
    transform: scale(1.04);
}

.gt-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.gt-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--gt-color-text);
    line-height: 1.35;
}

.gt-card__title a {
    color: inherit;
    text-decoration: none;
}

.gt-card__title a:hover {
    color: var(--gt-color-primary);
}

.gt-card__category {
    font-size: .75rem;
    font-weight: 500;
    color: var(--gt-color-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.gt-card__excerpt {
    color: var(--gt-color-muted);
    font-size: .9rem;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.gt-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .75rem;
    margin-top: .25rem;
    font-size: .85rem;
    color: var(--gt-color-muted);
}

.gt-card__meta span {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.gt-card__price {
    font-weight: 700;
    color: var(--gt-color-primary);
    font-size: 1rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--gt-color-border);
}

/* Company card logo */
.gt-card__logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: var(--gt-color-bg);
    border-bottom: 1px solid var(--gt-color-border);
}

.gt-card__logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.gt-card__logo-placeholder {
    font-size: 2rem;
    color: var(--gt-color-border);
}

/* -------------------------------------------------------------------------
   Badges / tags
   ------------------------------------------------------------------------- */

.gt-badge {
    display: inline-flex;
    align-items: center;
    padding: .25em .65em;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.gt-badge--kategori    { background: #e8f0fe; color: #1a5fa8; }
.gt-badge--kapacitet   { background: #e8f5e9; color: #2e7d32; }
.gt-badge--datum       { background: #fff8e1; color: #f57f17; }
.gt-badge--aktiv       { background: #e8f5e9; color: #2e7d32; }
.gt-badge--inaktiv     { background: #fce4ec; color: #c62828; }
.gt-badge--väntande    { background: #fff8e1; color: #f57f17; }

.gt-terms {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

/* -------------------------------------------------------------------------
   Single page
   .gt-single / .gt-single--* are applied to <body> as identifier classes only.
   The actual two-column layout lives in .gt-single-layout (see bottom of file).
   ------------------------------------------------------------------------- */

.gt-single__header {
    margin-bottom: 1.5rem;
}

.gt-single__title {
    font-size: 2rem;
    font-weight: 700;
    margin: .5rem 0;
    color: var(--gt-color-text);
    line-height: 1.25;
}

.gt-single__content {
    line-height: 1.75;
    color: var(--gt-color-text);
}

.gt-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--gt-radius);
}

.gt-single__image {
    border-radius: var(--gt-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gt-single__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* -------------------------------------------------------------------------
   Info card (sidebar on singles)
   ------------------------------------------------------------------------- */

.gt-info-card {
    background: var(--gt-color-white);
    border: 1px solid var(--gt-color-border);
    border-radius: var(--gt-radius);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}

.gt-info-card + .gt-info-card {
    margin-top: 1rem;
}

.gt-info-card__title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gt-color-muted);
    margin: 0 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--gt-color-border);
}

.gt-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.gt-meta-list li {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.gt-meta-list__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gt-color-muted);
    font-weight: 600;
}

.gt-meta-list__value {
    font-size: .95rem;
    color: var(--gt-color-text);
    word-break: break-word;
}

.gt-meta-list__value a {
    color: var(--gt-color-primary);
    text-decoration: none;
}

.gt-meta-list__value a:hover {
    text-decoration: underline;
}

/* Price highlight */
.gt-price-highlight {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gt-color-primary);
    margin: 0 0 1rem;
}

/* -------------------------------------------------------------------------
   Company logo on single
   ------------------------------------------------------------------------- */

.gt-foretag-logo {
    text-align: center;
    padding: 1.5rem;
    background: var(--gt-color-bg);
    border-radius: var(--gt-radius);
    margin-bottom: 1rem;
}

.gt-foretag-logo img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

/* -------------------------------------------------------------------------
   Related section
   ------------------------------------------------------------------------- */

.gt-related {
    margin-top: 3rem;
}

.gt-related__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--gt-color-text);
}

/* -------------------------------------------------------------------------
   Company link box
   ------------------------------------------------------------------------- */

.gt-foretag-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--gt-color-border);
    border-radius: var(--gt-radius);
    text-decoration: none;
    color: inherit;
    transition: background var(--gt-transition);
}

.gt-foretag-link:hover {
    background: var(--gt-color-bg);
}

.gt-foretag-link__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.gt-foretag-link__name {
    font-weight: 600;
    color: var(--gt-color-text);
}

.gt-foretag-link__sub {
    font-size: .85rem;
    color: var(--gt-color-muted);
}

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */

.gt-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: .25rem;
}

.gt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .75rem;
    border-radius: var(--gt-radius);
    font-size: .9rem;
    text-decoration: none;
    color: var(--gt-color-primary);
    border: 1px solid var(--gt-color-border);
    transition: background var(--gt-transition), color var(--gt-transition);
}

.gt-pagination .page-numbers:hover,
.gt-pagination .page-numbers.current {
    background: var(--gt-color-primary);
    color: var(--gt-color-white);
    border-color: var(--gt-color-primary);
}

/* -------------------------------------------------------------------------
   No results
   ------------------------------------------------------------------------- */

.gt-no-results {
    padding: 3rem 0;
    text-align: center;
    color: var(--gt-color-muted);
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------------
   Notice boxes (access control messages)
   ------------------------------------------------------------------------- */

.gt-form-notice {
    padding: 1.25rem 1.5rem;
    border-radius: var(--gt-radius);
    margin-bottom: 1.5rem;
    font-size: .95rem;
    line-height: 1.6;
}

.gt-form-notice p { margin: 0; }

.gt-form-notice a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.gt-form-notice--info {
    background: #e8f4fd;
    border: 1px solid #b3d7f0;
    color: #1a4f70;
}

.gt-form-notice--warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #6d4c00;
}

/* -------------------------------------------------------------------------
   Ad form: type tab switcher
   ------------------------------------------------------------------------- */

.gt-type-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.75rem;
    border-bottom: 2px solid var(--gt-color-border);
}

.gt-type-tab {
    padding: .65rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gt-color-muted);
    cursor: pointer;
    transition: color var(--gt-transition), border-color var(--gt-transition);
}

.gt-type-tab:hover {
    color: var(--gt-color-text);
}

.gt-type-tab.active {
    color: var(--gt-color-primary);
    border-bottom-color: var(--gt-color-primary);
}

@media (max-width: 520px) {
    .gt-type-tab {
        padding: .55rem .75rem;
        font-size: .82rem;
    }
}

/* -------------------------------------------------------------------------
   Registration form
   ------------------------------------------------------------------------- */

.gt-form-wrap {
    max-width: 680px;
}

.gt-form-fieldset {
    border: 1px solid var(--gt-color-border);
    border-radius: var(--gt-radius);
    padding: 1.5rem;
    margin: 0 0 1.5rem;
}

.gt-form-legend {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gt-color-muted);
    padding: 0 .5rem;
}

.gt-form-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1.1rem;
}

.gt-form-row:last-child {
    margin-bottom: 0;
}

.gt-form-row label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--gt-color-text);
}

.gt-form-row input[type="text"],
.gt-form-row input[type="email"],
.gt-form-row input[type="tel"],
.gt-form-row input[type="url"],
.gt-form-row input[type="file"],
.gt-form-row select,
.gt-form-row textarea {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--gt-color-border);
    border-radius: 6px;
    font-size: .95rem;
    color: var(--gt-color-text);
    background: var(--gt-color-white);
    transition: border-color var(--gt-transition), box-shadow var(--gt-transition);
    box-sizing: border-box;
}

.gt-form-row input:focus,
.gt-form-row select:focus,
.gt-form-row textarea:focus {
    outline: none;
    border-color: var(--gt-color-primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 168, .15);
}

.gt-form-row input[type="file"] {
    padding: .45rem .6rem;
    background: var(--gt-color-bg);
    cursor: pointer;
}

.gt-form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.gt-form-row--error input,
.gt-form-row--error select,
.gt-form-row--error textarea {
    border-color: var(--gt-color-red);
}

.gt-form-field-error {
    font-size: .82rem;
    color: var(--gt-color-red);
}

.gt-form-hint {
    font-weight: 400;
    color: var(--gt-color-muted);
    font-size: .82rem;
}

.gt-required {
    color: var(--gt-color-red);
}

.gt-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.gt-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.gt-form-required-note {
    font-size: .82rem;
    color: var(--gt-color-muted);
    margin: 0;
}

.gt-form-submit {
    display: inline-flex;
    align-items: center;
    padding: .75rem 2rem;
    background: var(--gt-color-primary);
    color: var(--gt-color-white);
    border: none;
    border-radius: var(--gt-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gt-transition);
}

.gt-form-submit:hover {
    background: var(--gt-color-primary-h);
}

.gt-form-error-summary {
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-radius: var(--gt-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--gt-color-red);
    font-size: .9rem;
}

.gt-form-error-summary ul {
    margin: .5rem 0 0 1.25rem;
    padding: 0;
}

.gt-form-success {
    background: #f0faf3;
    border: 1px solid #a8d5b5;
    border-radius: var(--gt-radius);
    padding: 2rem;
    text-align: center;
}

.gt-form-success h2 {
    color: var(--gt-color-green);
    margin-top: 0;
}

@media (max-width: 480px) {
    .gt-form-grid-2 {
        grid-template-columns: 1fr;
    }

    .gt-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .gt-form-submit {
        width: 100%;
        justify-content: center;
    }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .gt-archive-title {
        font-size: 1.5rem;
    }

    .gt-grid {
        grid-template-columns: 1fr;
    }

    .gt-single__title {
        font-size: 1.5rem;
    }
}

/* =========================================================================
   HOMEPAGE DESIGN SYSTEM
   ========================================================================= */

/* Design tokens */
:root {
    --gt-dark:      #1a1f2e;
    --gt-amber:     #f59e0b;
    --gt-amber-h:   #d97706;
    --gt-navy:      #1e3a5f;
    --gt-teal:      #0d9488;
    --gt-light:     #f5f5f3;
    --gt-hp-radius: 10px;
}

/* Base reset scoped to homepage body */
.gt-home {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

.gt-home *, .gt-home *::before, .gt-home *::after { box-sizing: border-box; }
.gt-home h1, .gt-home h2, .gt-home h3, .gt-home strong { font-weight: 500; }
.gt-home img { max-width: 100%; height: auto; display: block; }

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */

.gt-site-nav {
    background: var(--gt-dark);
    position: sticky;
    top: 0;
    z-index: 200;
    height: 64px;
}

.gt-site-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.gt-site-nav__logo {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .18em;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    flex-shrink: 0;
}

.gt-site-nav__logo span { color: var(--gt-amber); }

/* Outer wrapper div from wp_nav_menu() */
.gt-site-nav__links {
    flex: 1;
    min-width: 0;
}

/* <ul> generated by wp_nav_menu() */
.gt-site-nav__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gt-site-nav__menu > li {
    list-style: none;
}

/* Auth group (login/company + CTA) pushed to the right */
.gt-nav-auth {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* All nav link styles */
.gt-site-nav__menu a,
.gt-nav-auth > a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    padding: .5rem .4rem;
    transition: color .18s;
}

.gt-site-nav__menu a:hover,
.gt-nav-auth > a:hover { color: #fff; }

/* Logged-in company name */
.gt-nav-company {
    color: rgba(255, 255, 255, .85) !important;
}

/* Login link */
.gt-nav-login {
    color: rgba(255, 255, 255, .65) !important;
}

/* CTA button */
.gt-site-nav__cta {
    background: var(--gt-amber) !important;
    color: var(--gt-dark) !important;
    padding: .5rem 1.2rem !important;
    border-radius: 6px;
    font-weight: 500 !important;
    transition: background .18s !important;
}

.gt-site-nav__cta:hover {
    background: var(--gt-amber-h) !important;
    color: var(--gt-dark) !important;
}

/* Hamburger */
.gt-site-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    margin-left: auto;
}

.gt-site-nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    transition: opacity .2s;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.gt-site-hero {
    background-color: var(--gt-dark);
    background-image:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,.028) 0px,
            rgba(255,255,255,.028) 1px,
            transparent 1px,
            transparent 14px
        );
    padding: 5.5rem 0 6.5rem;
    text-align: center;
}

.gt-site-hero__inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gt-site-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem 1rem;
    background: rgba(245, 158, 11, .14);
    border: 1px solid rgba(245, 158, 11, .32);
    border-radius: 999px;
    color: var(--gt-amber);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.gt-site-hero__h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 1.25rem;
    letter-spacing: -.01em;
}

.gt-site-hero__sub {
    color: rgba(255, 255, 255, .6);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 2.75rem;
}

.gt-site-hero__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
}

/* Buttons */
.gt-site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.9rem;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
    white-space: nowrap;
}

.gt-site-btn--amber {
    background: var(--gt-amber);
    color: var(--gt-dark);
    border: 1px solid var(--gt-amber);
}
.gt-site-btn--amber:hover {
    background: var(--gt-amber-h);
    border-color: var(--gt-amber-h);
    color: var(--gt-dark);
}

.gt-site-btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .32);
}
.gt-site-btn--outline:hover {
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.gt-site-btn--secondary {
    background: transparent;
    color: var(--gt-color-primary);
    border: 1px solid var(--gt-color-primary);
}
.gt-site-btn--secondary:hover {
    background: var(--gt-color-primary);
    color: var(--gt-color-white);
    border-color: var(--gt-color-primary);
}

/* -------------------------------------------------------------------------
   Access gate (not logged in / no active company)
   ------------------------------------------------------------------------- */

.gt-access-gate {
    background: #f0f6ff;
    border: 1px solid #c2d9f5;
    border-radius: var(--gt-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 520px;
    margin: 2rem auto;
}

.gt-access-gate__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gt-color-text);
    margin: 0 0 .75rem;
}

.gt-access-gate__text {
    color: var(--gt-color-muted);
    margin: 0 0 1.75rem;
    font-size: .95rem;
    line-height: 1.6;
}

.gt-access-gate__actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Category cards
   ------------------------------------------------------------------------- */

.gt-site-cats {
    padding: 3.5rem 0;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
}

.gt-site-cats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gt-site-cat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--gt-hp-radius);
    text-decoration: none;
    transition: box-shadow .2s, transform .18s;
}

.gt-site-cat-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .09);
    transform: translateY(-2px);
}

.gt-site-cat-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gt-site-cat-card__icon svg { width: 22px; height: 22px; }

.gt-site-cat-card__icon--amber { background: rgba(245,158,11,.12); color: #c77f00; }
.gt-site-cat-card__icon--blue  { background: rgba(30,58,95,.09);   color: var(--gt-navy); }
.gt-site-cat-card__icon--teal  { background: rgba(13,148,136,.1);  color: var(--gt-teal); }

.gt-site-cat-card__body { flex: 1; min-width: 0; }

.gt-site-cat-card__body strong {
    display: block;
    font-size: .93rem;
    font-weight: 500;
    color: var(--gt-dark);
    margin-bottom: .2rem;
}

.gt-site-cat-card__body span {
    font-size: .78rem;
    color: #888;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gt-site-cat-card__arrow {
    color: #d1d5db;
    font-size: .95rem;
    flex-shrink: 0;
    transition: color .18s, transform .18s;
}

.gt-site-cat-card:hover .gt-site-cat-card__arrow {
    color: var(--gt-amber);
    transform: translateX(3px);
}

/* -------------------------------------------------------------------------
   Latest ads
   ------------------------------------------------------------------------- */

.gt-site-latest {
    background: var(--gt-light);
    padding: 4.5rem 0 5.5rem;
}

.gt-site-latest__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: .75rem;
}

.gt-site-latest__title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gt-dark);
    margin: 0;
}

.gt-site-latest__all {
    color: var(--gt-amber-h);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
}
.gt-site-latest__all:hover { text-decoration: underline; }

.gt-site-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gt-site-ad-card {
    background: #fff;
    border-radius: var(--gt-hp-radius);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .18s;
}

.gt-site-ad-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.gt-site-ad-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #ededeb;
    overflow: hidden;
    flex-shrink: 0;
}

.gt-site-ad-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}

.gt-site-ad-card:hover .gt-site-ad-card__image img { transform: scale(1.04); }

.gt-site-ad-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
}

.gt-site-ad-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    padding: .2rem .55rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.4;
}

.gt-site-ad-badge--blue  { background: var(--gt-navy);  color: #fff; }
.gt-site-ad-badge--teal  { background: var(--gt-teal);  color: #fff; }
.gt-site-ad-badge--amber { background: var(--gt-amber); color: var(--gt-dark); }
.gt-site-ad-badge--gray  { background: #6b7280;         color: #fff; }

.gt-site-ad-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.gt-site-ad-card__title {
    font-size: .93rem;
    font-weight: 500;
    color: var(--gt-dark);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.gt-site-ad-card__price {
    font-size: .88rem;
    font-weight: 500;
    color: var(--gt-navy);
    margin: 0;
}

.gt-site-ad-card__meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .6rem;
    border-top: 1px solid #f3f3f1;
    font-size: .76rem;
    color: #9ca3af;
    gap: .5rem;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.gt-site-footer {
    background: var(--gt-dark);
    padding: 3rem 0 2rem;
}

.gt-site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 1.5rem;
}

.gt-site-footer__logo {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.gt-site-footer__logo span { color: var(--gt-amber); }

.gt-site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
}

.gt-site-footer__nav a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: .85rem;
    transition: color .18s;
}
.gt-site-footer__nav a:hover { color: #fff; }

.gt-site-footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem;
}

.gt-site-footer__copy,
.gt-site-footer__tagline {
    font-size: .78rem;
    color: rgba(255, 255, 255, .35);
    margin: 0;
}

/* -------------------------------------------------------------------------
   Homepage responsive
   ------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .gt-site-cats__grid { grid-template-columns: 1fr; }
    .gt-site-ads-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gt-site-nav__hamburger { display: flex; }

    .gt-site-nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--gt-dark);
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 8px 24px rgba(0,0,0,.25);
    }

    .gt-site-nav__links.open { display: block; }

    /* Stack menu items vertically */
    .gt-site-nav__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 1.5rem 1rem;
    }

    .gt-site-nav__menu > li {
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .gt-site-nav__menu > li:last-child { border-bottom: none; }

    .gt-site-nav__menu a,
    .gt-nav-auth > a {
        display: block;
        padding: .75rem 0;
        font-size: .95rem;
    }

    /* Auth group stacks vertically too */
    .gt-nav-auth {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        gap: 0;
        padding-top: .5rem;
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .gt-site-nav__cta {
        display: block;
        text-align: center;
        margin-top: .5rem;
        padding: .65rem 1rem !important;
        border-radius: 6px;
    }
}

@media (max-width: 600px) {
    .gt-site-ads-grid { grid-template-columns: 1fr; }

    .gt-site-hero { padding: 3.5rem 0 4.5rem; }

    .gt-site-footer__top { flex-direction: column; align-items: flex-start; }
    .gt-site-footer__bottom { flex-direction: column; }
}

/* =========================================================================
   AUTH — Login page & logged-in state
   ========================================================================= */

.gt-form-notice--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: .9rem 1.25rem;
    border-radius: var(--gt-radius);
    font-size: .9rem;
    margin-bottom: 1.25rem;
}

.gt-auth-link {
    color: var(--gt-amber-h);
    text-decoration: none;
    font-size: .875rem;
}
.gt-auth-link:hover { text-decoration: underline; }

/* Login page centered layout */
.gt-login-wrap {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--gt-light);
}

.gt-login-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

.gt-login-box__header {
    text-align: center;
    margin-bottom: 2rem;
}

.gt-login-box__logo {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gt-dark);
}

.gt-login-box__logo span { color: var(--gt-amber); }

.gt-login-box__title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gt-dark);
    margin: .75rem 0 .35rem;
}

.gt-login-box__sub {
    font-size: .875rem;
    color: #888;
    margin: 0;
}

/* Inline row for checkbox + forgot password */
.gt-form-row--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.gt-checkbox-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    color: #555;
    cursor: pointer;
}

.gt-checkbox-label input { cursor: pointer; }

/* Full-width submit */
.gt-form-submit--full {
    width: 100%;
    justify-content: center;
    background: var(--gt-dark);
    font-weight: 500;
    font-size: .95rem;
    padding: .8rem 1rem;
    margin-top: .25rem;
}

.gt-form-submit--full:hover { background: #2d3444; }

.gt-login-box__footer {
    text-align: center;
    margin: 1.5rem 0 0;
    font-size: .875rem;
    color: #888;
}

.gt-login-box__footer a { color: var(--gt-amber-h); text-decoration: none; }
.gt-login-box__footer a:hover { text-decoration: underline; }

/* Already logged in state */
.gt-auth-logged-in {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.gt-auth-logged-in__welcome {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 1.25rem;
}

.gt-auth-logged-in__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* =========================================================================
   DASHBOARD — Mina annonser
   ========================================================================= */

.gt-mina-wrap {
    padding: 2.5rem 0 4rem;
}

/* Header bar */
.gt-mina-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gt-light);
}

.gt-mina-header__title {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gt-dark);
    margin: 0 0 .3rem;
}

.gt-mina-header__meta {
    font-size: .875rem;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.gt-mina-sep { opacity: .4; }

/* Ad list */
.gt-mina-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.gt-mina-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--gt-hp-radius);
    padding: 1.1rem 1.25rem;
    transition: box-shadow .18s;
}

.gt-mina-row:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }

.gt-mina-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.gt-mina-row__badges {
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* Override position:absolute on .gt-site-ad-badge when used in list context */
.gt-mina-row__badges .gt-site-ad-badge {
    position: static;
}

.gt-mina-status {
    display: inline-flex;
    align-items: center;
    padding: .15rem .55rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.gt-mina-status--green { background: #ecfdf5; color: #065f46; }
.gt-mina-status--amber { background: #fffbeb; color: #92400e; }
.gt-mina-status--gray  { background: #f3f4f6; color: #374151; }

.gt-mina-row__title {
    font-size: .95rem;
    font-weight: 500;
    color: var(--gt-dark);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.gt-mina-row__title:hover { color: var(--gt-amber-h); }

.gt-mina-row__sub {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    color: #9ca3af;
}

/* Action buttons */
.gt-mina-row__actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.gt-mina-btn {
    display: inline-flex;
    align-items: center;
    padding: .4rem .9rem;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.gt-mina-btn--edit {
    background: var(--gt-light);
    color: var(--gt-dark);
    border: 1px solid #e5e7eb;
}
.gt-mina-btn--edit:hover { background: #ebebea; color: var(--gt-dark); }

.gt-mina-btn--delete {
    background: #fff5f5;
    color: #c62828;
    border: 1px solid #fecaca;
}
.gt-mina-btn--delete:hover { background: #fee2e2; color: #991b1b; }

/* Empty state */
.gt-mina-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: var(--gt-hp-radius);
    color: #9ca3af;
}

.gt-mina-empty__icon {
    margin-bottom: 1.25rem;
    color: #d1d5db;
}

.gt-mina-empty__title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gt-dark);
    margin: 0 0 .5rem;
}

.gt-mina-empty__sub {
    font-size: .95rem;
    color: #9ca3af;
    margin: 0 0 1.75rem;
}

/* Auth + dashboard responsive */
@media (max-width: 600px) {
    .gt-login-box { padding: 1.75rem 1.25rem; }

    .gt-mina-header { flex-direction: column; }
    .gt-mina-header .gt-site-btn { width: 100%; justify-content: center; }

    .gt-mina-row { flex-direction: column; align-items: flex-start; }
    .gt-mina-row__actions { width: 100%; }
    .gt-mina-btn { flex: 1; justify-content: center; }
}

/* =========================================================================
   SINGLE POST TEMPLATES
   ========================================================================= */

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

/* -------------------------------------------------------------------------
   Back link + breadcrumb
   ------------------------------------------------------------------------- */

/* Generic page content wrapper (index.php fallback) */
.gt-page-content {
    max-width: 720px;
    margin: 2.5rem auto 4rem;
}

.gt-page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--gt-dark);
    margin: 0 0 1.5rem;
}

.gt-back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--gt-color-muted);
    text-decoration: none;
    font-size: .85rem;
    margin-bottom: 1.5rem;
    transition: color .18s;
}
.gt-back-link:hover { color: var(--gt-color-text); }

.gt-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: #777;
    margin-bottom: .85rem;
    line-height: 1.4;
}
.gt-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color .15s;
}
.gt-breadcrumb a:hover {
    color: var(--gt-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.gt-breadcrumb__sep {
    opacity: .35;
    font-size: .7rem;
    line-height: 1;
}
.gt-breadcrumb__current { color: var(--gt-dark); font-weight: 500; }

/* -------------------------------------------------------------------------
   Two-column single layout
   ------------------------------------------------------------------------- */

.gt-single-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 2.5rem;
    align-items: start;
}

.gt-single-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--gt-dark);
    margin: 0 0 1.25rem;
    line-height: 1.25;
}

.gt-single-header { margin-bottom: 1.5rem; }

.gt-single-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.gt-single-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}
.gt-single-content p { margin: 0 0 1.1em; }
.gt-single-content img { max-width: 100%; border-radius: var(--gt-hp-radius); }

/* -------------------------------------------------------------------------
   Sticky sidebar card
   ------------------------------------------------------------------------- */

.gt-single-sidebar { min-width: 0; }

.gt-sticky-card {
    position: sticky;
    top: 84px;
}

/* -------------------------------------------------------------------------
   Image gallery
   ------------------------------------------------------------------------- */

.gt-gallery { margin-bottom: 2rem; }

.gt-gallery__main-wrap {
    border-radius: var(--gt-hp-radius);
    overflow: hidden;
    background: #f0f0ee;
    aspect-ratio: 4 / 3;
}

.gt-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .14s ease;
}

.gt-gallery__thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
    flex-wrap: wrap;
}

.gt-gallery__thumb {
    width: 76px;
    height: 56px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #f0f0ee;
    transition: border-color .15s;
    flex-shrink: 0;
}
.gt-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gt-gallery__thumb.active { border-color: var(--gt-amber); }
.gt-gallery__thumb:hover  { border-color: var(--gt-amber-h); }

.gt-gallery__placeholder {
    aspect-ratio: 4 / 3;
    background: #f0f0ee;
    border-radius: var(--gt-hp-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    margin-bottom: 2rem;
}

/* -------------------------------------------------------------------------
   Price block
   ------------------------------------------------------------------------- */

.gt-price-block {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--gt-color-border);
}

.gt-price-amount {
    display: block;
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--gt-dark);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: .4rem;
}

.gt-price-amount--text {
    font-size: 1.2rem;
    color: var(--gt-color-muted);
    font-weight: 400;
    letter-spacing: 0;
}

.gt-price-type-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    background: rgba(245, 158, 11, .12);
    color: #92400e;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .03em;
}

/* -------------------------------------------------------------------------
   Contact reveal button + details
   ------------------------------------------------------------------------- */

.gt-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: .5rem;
    padding: .75rem 1rem;
    background: var(--gt-amber);
    color: var(--gt-dark);
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    margin: 1.25rem 0;
    transition: background .18s;
}
.gt-contact-btn:hover { background: var(--gt-amber-h); }

.gt-contact-details {
    background: var(--gt-light);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    flex-direction: column;
    gap: .6rem;
}

/* Only display when the HTML hidden attribute is absent */
.gt-contact-details:not([hidden]) {
    display: flex;
}

.gt-contact-name {
    font-weight: 500;
    font-size: .9rem;
    color: var(--gt-dark);
    margin: 0;
}

.gt-contact-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--gt-navy);
    text-decoration: none;
    font-size: .875rem;
    transition: color .15s;
}
.gt-contact-item:hover { color: var(--gt-color-primary); }
.gt-contact-item svg { flex-shrink: 0; opacity: .7; }

/* -------------------------------------------------------------------------
   Report link
   ------------------------------------------------------------------------- */

.gt-report-link {
    display: block;
    text-align: center;
    margin-top: .75rem;
    font-size: .78rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color .15s;
}
.gt-report-link:hover { color: var(--gt-color-red); }

/* Owner edit/delete actions (visible only to post owner) */
.gt-owner-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gt-color-border);
    margin-top: .5rem;
}

.gt-owner-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
}

.gt-owner-btn--edit {
    background: var(--gt-light);
    color: var(--gt-dark);
    border: 1px solid #e5e7eb;
}
.gt-owner-btn--edit:hover { background: #ebebea; }

.gt-owner-btn--delete {
    background: #fff5f5;
    color: #c62828;
    border: 1px solid #fecaca;
}
.gt-owner-btn--delete:hover { background: #fee2e2; color: #991b1b; }

/* Edit mode notice in ad form */
.gt-form-edit-notice {
    padding: .7rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: .9rem;
    color: #1e40af;
}

/* -------------------------------------------------------------------------
   Date range block (kapacitet)
   ------------------------------------------------------------------------- */

.gt-dates-block {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--gt-color-border);
}

.gt-dates-block__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gt-color-muted);
    font-weight: 500;
    margin-bottom: .4rem;
}

.gt-dates-block__range {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gt-dark);
    line-height: 1.3;
    margin-bottom: .6rem;
}

.gt-dates-block__dash { margin: 0 .35rem; opacity: .5; }

.gt-days-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
}
.gt-days-badge--active  { background: #ecfdf5; color: #065f46; }
.gt-days-badge--expired { background: #fee2e2; color: #991b1b; }

/* -------------------------------------------------------------------------
   Company profile header
   ------------------------------------------------------------------------- */

.gt-company-header {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--gt-color-border);
}

.gt-company-header__logo-wrap {
    width: 110px;
    height: 80px;
    border: 1px solid #e5e7eb;
    border-radius: var(--gt-hp-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: .75rem;
    flex-shrink: 0;
    overflow: hidden;
}

.gt-company-header__logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.gt-company-header__logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.gt-company-header__info { flex: 1; min-width: 0; }

.gt-badge-approved {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .75rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    margin-bottom: .6rem;
}

.gt-company-header__name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--gt-dark);
    margin: 0 0 .75rem;
    line-height: 1.2;
}

.gt-company-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    font-size: .875rem;
    color: var(--gt-color-muted);
}

.gt-company-header__meta span {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.gt-company-header__website {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--gt-color-primary);
    text-decoration: none;
}
.gt-company-header__website:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Company two-column layout
   ------------------------------------------------------------------------- */

.gt-company-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.gt-company-info-col .gt-info-card { position: sticky; top: 84px; }

/* -------------------------------------------------------------------------
   Company sections (ads / capacity)
   ------------------------------------------------------------------------- */

.gt-company-section {
    margin-bottom: 2.5rem;
}

.gt-company-section:last-child { margin-bottom: 0; }

.gt-company-section__title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gt-dark);
    margin: 0 0 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--gt-color-border);
}

.gt-company-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    background: var(--gt-light);
    color: var(--gt-color-muted);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    padding: 0 .35rem;
}

.gt-company-empty {
    color: var(--gt-color-muted);
    font-size: .9rem;
    padding: 1.25rem 0;
    margin: 0;
}

/* -------------------------------------------------------------------------
   Company about section
   ------------------------------------------------------------------------- */

.gt-company-about {
    border-top: 1px solid var(--gt-color-border);
    padding-top: 2.5rem;
    margin-top: .5rem;
}

.gt-company-about__title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gt-dark);
    margin: 0 0 1.5rem;
}

/* -------------------------------------------------------------------------
   Single responsive
   ------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .gt-single-layout  { grid-template-columns: 1fr; }
    .gt-sticky-card    { position: static; }
    .gt-company-layout { grid-template-columns: 1fr; }
    .gt-company-info-col .gt-info-card { position: static; }
}

@media (max-width: 640px) {
    .gt-company-header { flex-direction: column; gap: 1rem; }
    .gt-company-header__logo-wrap { width: 80px; height: 60px; }
    .gt-gallery__thumb { width: 60px; height: 44px; }
}

/* =========================================================================
   ARCHIVE FILTERS
   ========================================================================= */

/* -------------------------------------------------------------------------
   Archive header (extended with mobile filter button)
   ------------------------------------------------------------------------- */

.gt-archive-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.gt-archive-count {
    color: var(--gt-color-muted);
    font-size: .875rem;
    margin: .25rem 0 0;
}

.gt-archive-count__filtered {
    opacity: .7;
}

/* Mobile filter toggle button (hidden on desktop) */
.gt-filter-mobile-toggle {
    display: none;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    background: var(--gt-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
}

.gt-filter-mobile-toggle:hover { background: #2d3444; }

.gt-filter-mobile-toggle__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    background: var(--gt-amber);
    color: var(--gt-dark);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 500;
    padding: 0 .25rem;
}

/* -------------------------------------------------------------------------
   Filter chips
   ------------------------------------------------------------------------- */

.gt-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1.25rem;
}

.gt-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .75rem;
    background: var(--gt-dark);
    color: #fff;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}

.gt-filter-chip:hover { background: #2d3444; color: #fff; }

.gt-filter-chip__x {
    font-size: 1rem;
    line-height: 1;
    opacity: .75;
}

.gt-filter-chips__clear {
    font-size: .8rem;
    color: var(--gt-color-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: .3rem .4rem;
    transition: color .15s;
}

.gt-filter-chips__clear:hover { color: var(--gt-color-text); }

/* -------------------------------------------------------------------------
   Archive layout: sidebar (30%) + content (70%)
   ------------------------------------------------------------------------- */

.gt-archive-layout {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 2rem;
    align-items: start;
}

/* -------------------------------------------------------------------------
   Filter sidebar
   ------------------------------------------------------------------------- */

.gt-filter-sidebar {
    position: sticky;
    top: 80px; /* below nav */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--gt-hp-radius);
    overflow: hidden;
}

.gt-filter-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid #f0f0ee;
    background: var(--gt-light);
}

.gt-filter-sidebar__heading {
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gt-dark);
}

.gt-filter-clear-all {
    font-size: .78rem;
    color: var(--gt-amber-h);
    text-decoration: none;
}
.gt-filter-clear-all:hover { text-decoration: underline; }

/* Close button (hidden on desktop, shown on mobile) */
.gt-filter-close-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gt-color-muted);
    padding: 2px;
    line-height: 1;
}

/* Filter groups */
.gt-filter-group {
    border-bottom: 1px solid #f0f0ee;
}

.gt-filter-group:last-of-type { border-bottom: none; }

.gt-filter-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .8rem 1.1rem;
    background: none;
    border: none;
    font-size: .875rem;
    font-weight: 500;
    color: var(--gt-dark);
    cursor: pointer;
    text-align: left;
    transition: background .15s;
}

.gt-filter-group__toggle:hover { background: var(--gt-light); }

.gt-filter-chevron {
    transition: transform .2s;
    flex-shrink: 0;
}

.gt-filter-group__toggle[aria-expanded="false"] .gt-filter-chevron {
    transform: rotate(-90deg);
}

.gt-filter-group__list {
    padding: .25rem .75rem .75rem;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Scrollbar styling */
.gt-filter-group__list::-webkit-scrollbar { width: 4px; }
.gt-filter-group__list::-webkit-scrollbar-track { background: transparent; }
.gt-filter-group__list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Checkbox row */
.gt-filter-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .35rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background .12s;
}

.gt-filter-check:hover { background: var(--gt-light); }

.gt-filter-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gt-filter-check__box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .12s, background .12s;
}

.gt-filter-check--active .gt-filter-check__box,
.gt-filter-check input:checked + .gt-filter-check__box {
    background: var(--gt-dark);
    border-color: var(--gt-dark);
}

/* Checkmark via pseudo */
.gt-filter-check--active .gt-filter-check__box::after,
.gt-filter-check input:checked + .gt-filter-check__box::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.gt-filter-check__label {
    font-size: .875rem;
    color: #374151;
    line-height: 1.4;
    user-select: none;
}

.gt-filter-check--active .gt-filter-check__label {
    color: var(--gt-dark);
    font-weight: 500;
}

/* No-JS submit button */
.gt-filter-submit-btn {
    display: block;
    width: calc(100% - 1.5rem);
    margin: .75rem .75rem;
    padding: .6rem 1rem;
    background: var(--gt-dark);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}

.gt-filter-submit-btn:hover { background: #2d3444; }

/* Hide submit when JS available (JS adds class to html) */
html.gt-js .gt-filter-submit-btn { display: none; }

/* -------------------------------------------------------------------------
   Overlay (mobile)
   ------------------------------------------------------------------------- */

.gt-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 298;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.gt-filter-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* -------------------------------------------------------------------------
   Responsive — mobile drawer
   ------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .gt-archive-layout {
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gt-archive-layout {
        grid-template-columns: 1fr;
    }

    .gt-filter-mobile-toggle { display: inline-flex; }

    .gt-filter-overlay { display: block; }

    .gt-filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 90vw);
        z-index: 299;
        border-radius: 0;
        border: none;
        border-right: 1px solid #e5e7eb;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .27s cubic-bezier(.4, 0, .2, 1);
        box-shadow: none;
    }

    .gt-filter-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0, 0, 0, .18);
    }

    /* Prevent body scroll when drawer open */
    body.gt-filter-open { overflow: hidden; }

    .gt-filter-close-btn { display: block; }

    .gt-filter-sidebar__head { padding: 1rem 1.25rem; }

    .gt-filter-group__list { max-height: none; }
}

/* =========================================================================
   EXISTING IMAGES GRID (ad edit form)
   ========================================================================= */

.gt-bilder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .5rem;
}

.gt-bild-item {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .15s, opacity .15s;
    background: var(--gt-color-bg);
}

.gt-bild-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gt-bild-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .6rem;
    font-weight: 600;
    text-align: center;
    padding: 2px 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gt-bild-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: .8rem;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity .15s, background .15s;
}

.gt-bild-item:hover .gt-bild-remove-btn {
    opacity: 1;
}

.gt-bild-item--removing {
    border-color: var(--gt-color-red);
    opacity: .45;
}

.gt-bild-item--removing .gt-bild-remove-btn {
    opacity: 1;
    background: var(--gt-color-red);
}
}
