/* GBF Guest Harbor module */
.gh-hero {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    padding: 42px;
    margin-bottom: 24px;
    background: radial-gradient(circle at 15% 10%, rgba(80,180,255,.18), transparent 34%), linear-gradient(135deg, rgba(5,21,36,.98), rgba(7,43,65,.86));
    box-shadow: 0 22px 70px rgba(0,0,0,.28);
}

    .gh-hero.compact {
        padding: 30px;
        display: flex;
        justify-content: space-between;
        gap: 24px;
        align-items: center;
    }

    .gh-hero h1 {
        margin: 0 0 8px;
        font-size: clamp(2rem, 3.5vw, 4.5rem);
        font-weight: 900;
        letter-spacing: -.04em;
    }

    .gh-hero p {
        color: rgba(255,255,255,.72);
        max-width: 760px;
        margin: 0;
    }

.gh-eyebrow {
    color: #f4c86a;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800;
    font-size: .78rem;
    margin-bottom: 10px;
}

.gh-panel {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    background: rgba(7,24,38,.78);
    box-shadow: 0 16px 45px rgba(0,0,0,.18);
}

    .gh-panel h2 {
        font-weight: 850;
        letter-spacing: -.03em;
        margin-bottom: 18px;
    }

.gh-search-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 16px;
    align-items: end;
}

.gh-form-action {
    display: flex;
    align-items: end;
}

.gh-form-stack {
    display: grid;
    gap: 14px;
}

.gh-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

    .gh-steps div {
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 18px;
        padding: 18px;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .gh-steps strong {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #061624;
        background: #f4c86a;
        font-weight: 900;
    }

.gh-summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

    .gh-summary-row div, .gh-admin-card {
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 20px;
        padding: 20px;
        text-decoration: none;
        color: inherit;
    }

        .gh-summary-row strong, .gh-admin-card strong {
            display: block;
            font-size: clamp(1.6rem, 3vw, 3rem);
            font-weight: 900;
            letter-spacing: -.05em;
        }

        .gh-summary-row span, .gh-admin-card span {
            color: rgba(255,255,255,.65);
        }

.gh-admin-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.gh-admin-card:hover {
    border-color: rgba(244,200,106,.65);
    transform: translateY(-1px);
}

.gh-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    color: rgba(255,255,255,.72);
}

.gh-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: -1px;
}

    .gh-dot.free {
        background: #3fd28b;
    }

    .gh-dot.busy {
        background: #e15757;
    }

    .gh-dot.occupied {
        background: #4aa3ff;
    }

    .gh-dot.warning {
        background: #f4c86a;
    }

    .gh-dot.selected {
        background: #f4c86a;
    }

.gh-zone-title {
    margin-top: 12px;
}

.gh-harbor-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 14px;
    padding: 64px 22px 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(5,24,42,.72), rgba(4,18,31,.95));
    border: 1px solid rgba(255,255,255,.12);
    overflow: hidden;
    margin-bottom: 26px;
}

    .gh-harbor-map.small {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    }

    .gh-harbor-map.control {
        grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
    }

.gh-pier-label {
    position: absolute;
    left: 22px;
    top: 18px;
    color: rgba(255,255,255,.72);
    font-weight: 800;
    letter-spacing: .03em;
}

.gh-pier-line {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 48px;
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, #9b6a32, #d5a15a, #8b5b2c);
    box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

.gh-berth {
    min-height: 154px;
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 14px 35px rgba(0,0,0,.22);
}

    .gh-berth.is-free {
        background: linear-gradient(160deg, rgba(41,155,103,.92), rgba(15,87,67,.95));
    }

    .gh-berth.is-busy {
        background: linear-gradient(160deg, rgba(171,57,57,.92), rgba(96,28,38,.95));
        opacity: .78;
    }

    .gh-berth.is-occupied {
        background: linear-gradient(160deg, rgba(50,114,187,.92), rgba(21,62,112,.95));
    }

    .gh-berth.is-warning {
        background: linear-gradient(160deg, rgba(218,159,50,.95), rgba(106,67,18,.96));
    }

.gh-berth-name {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -.05em;
}

.gh-berth-status {
    font-weight: 800;
}

.gh-berth-meta, .gh-occupied-by {
    color: rgba(255,255,255,.72);
    font-size: .9rem;
}

.gh-berth-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 0 16px;
    color: #061624;
    background: #f4c86a;
    text-decoration: none;
    font-weight: 900;
    margin-top: 8px;
}

.gh-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    font-weight: 800;
}

    .gh-status.is-free {
        background: rgba(63,210,139,.16);
        color: #82f0b8;
    }

    .gh-status.is-busy {
        background: rgba(225,87,87,.16);
        color: #ff9b9b;
    }

.gh-booking-card {
    display: grid;
    gap: 10px;
}

    .gh-booking-card > div {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .gh-booking-card span, .gh-dl dt {
        color: rgba(255,255,255,.62);
    }

    .gh-booking-card strong {
        text-align: right;
    }

.gh-receipt-status {
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 20px;
    display: grid;
    gap: 6px;
    background: rgba(244,200,106,.13);
    border: 1px solid rgba(244,200,106,.38);
}

    .gh-receipt-status.paid {
        background: rgba(63,210,139,.13);
        border-color: rgba(63,210,139,.38);
    }

.gh-dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px 14px;
}

    .gh-dl dd {
        margin: 0;
        font-weight: 700;
    }

.gh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-mini.danger {
    background: rgba(225,87,87,.2);
    border-color: rgba(225,87,87,.45);
    color: #ffd0d0;
}

@media (max-width: 900px) {
    .gh-hero.compact {
        display: block;
    }

    .gh-search-form, .gh-steps, .gh-summary-row, .gh-admin-grid {
        grid-template-columns: 1fr;
    }

    .gh-harbor-map {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
        padding-inline: 14px;
    }

    .gh-berth {
        min-height: 140px;
    }

    .gh-dl {
        grid-template-columns: 1fr;
    }
}

@media print {
    .side-panel, .gh-actions, .btn-gbf, .btn-mini {
        display: none !important;
    }

    .content {
        margin: 0 !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .gh-panel, .gh-hero {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}


/* v4.4.6 visual map */
.gh-filter-panel {
    margin-bottom: 1rem;
}

.gh-inline-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

    .gh-inline-form > div {
        min-width: 160px;
    }

.gh-map-shell {
    overflow: hidden;
}

.gh-map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

    .gh-map-header h2 {
        margin: 0 0 .35rem;
    }

.gh-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.gh-map-viewport {
    overflow: auto;
    border-radius: 22px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.12);
    padding: 14px;
}

.gh-map-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 1.58 / 1;
    min-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    background-color: #15324a;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

    .gh-map-canvas::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(3,14,25,.35), rgba(3,14,25,.05), rgba(3,14,25,.25));
        pointer-events: none;
    }

.gh-map-water-label, .gh-map-land-label {
    position: absolute;
    z-index: 1;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    background: rgba(0,0,0,.35);
    border-radius: 999px;
    padding: .25rem .55rem;
}

.gh-map-water-label {
    left: 18px;
    top: 18px;
}

.gh-map-land-label {
    right: 18px;
    bottom: 18px;
}

.gh-map-berth {
    position: absolute;
    z-index: 2;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,.35);
    color: white;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 5px rgba(0,0,0,.4);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    transform-origin: center center;
    min-width: 28px;
    min-height: 28px;
}

    .gh-map-berth span {
        transform: rotate(0deg);
        font-size: clamp(.7rem, 1.1vw, 1.05rem);
        pointer-events: none;
    }

    .gh-map-berth:hover {
        filter: brightness(1.16);
        box-shadow: 0 0 0 4px rgba(115,215,255,.22), 0 12px 28px rgba(0,0,0,.25);
    }

    .gh-map-berth.is-free {
        background: rgba(42, 174, 101, .90);
    }

    .gh-map-berth.is-busy {
        background: rgba(214, 65, 65, .92);
    }

    .gh-map-berth.is-reserved {
        background: rgba(230, 174, 45, .94);
        color: #0b1724;
        text-shadow: none;
    }

    .gh-map-berth.is-disabled {
        background: rgba(115, 125, 135, .72);
        cursor: not-allowed;
        opacity: .78;
    }

    .gh-map-berth.is-selected {
        outline: 4px solid #73d7ff;
        box-shadow: 0 0 0 7px rgba(115,215,255,.22), 0 0 26px rgba(115,215,255,.45);
    }

.gh-selected-card {
    border-radius: 20px;
    background: rgba(8, 27, 44, .86);
    border: 1px solid rgba(255,255,255,.14);
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}

    .gh-selected-card h2 {
        margin: .3rem 0 1rem;
        font-size: 2rem;
    }

    .gh-selected-card dl {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: .45rem .8rem;
        margin: 0 0 1rem;
    }

    .gh-selected-card dt {
        color: #9cc8e8;
    }

    .gh-selected-card dd {
        margin: 0;
        font-weight: 800;
    }

.btn-gbf.is-disabled {
    pointer-events: none;
    opacity: .45;
}

.gh-status.is-reserved {
    background: rgba(230,174,45,.2);
    color: #ffd36b;
    border-color: rgba(230,174,45,.4);
}

.gh-status.is-disabled {
    background: rgba(125,125,125,.2);
    color: #ddd;
    border-color: rgba(180,180,180,.3);
}

.gh-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.two-col.wide-right {
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
}

.admin-preview .gh-map-canvas {
    min-height: 620px;
}

@media (max-width: 1100px) {
    .gh-visual-grid, .two-col.wide-right {
        grid-template-columns: 1fr;
    }

    .gh-selected-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .gh-map-canvas {
        min-height: 430px;
    }

    .gh-selected-card dl {
        grid-template-columns: 1fr;
    }

    .gh-inline-form {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* v4.4.7 - Midtre havn visual tuning */
.gh-map-canvas {
    aspect-ratio: 1920 / 1080;
    min-height: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .gh-map-canvas::before {
        background: radial-gradient(circle at 58% 58%, rgba(115, 215, 255, .08), transparent 30%), linear-gradient(90deg, rgba(3,14,25,.20), rgba(3,14,25,.02), rgba(3,14,25,.18));
    }

.gh-map-viewport {
    padding: 10px;
}

.gh-map-berth {
    border-radius: 8px;
    border-width: 2px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 6px 16px rgba(0,0,0,.28);
}

    .gh-map-berth span {
        font-size: clamp(.62rem, .86vw, .95rem);
        line-height: 1;
        white-space: nowrap;
        letter-spacing: -.03em;
    }

    .gh-map-berth.is-free {
        background: linear-gradient(180deg, rgba(64, 196, 118, .96), rgba(28, 133, 82, .94));
    }

    .gh-map-berth.is-busy {
        background: linear-gradient(180deg, rgba(227, 67, 61, .97), rgba(151, 39, 45, .95));
    }

    .gh-map-berth.is-selected {
        outline: 3px solid #73d7ff;
        box-shadow: 0 0 0 5px rgba(115,215,255,.23), 0 0 22px rgba(115,215,255,.55), 0 10px 26px rgba(0,0,0,.35);
    }

.gh-selected-card {
    min-width: 290px;
}

@media (max-width: 720px) {
    .gh-map-viewport {
        padding: 6px;
    }

    .gh-map-canvas {
        min-width: 860px;
    }
}
