/* Norsk Buss Utleie - Frontend */
.nbu-booking-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.nbu-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.nbu-category-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff !important;
    border: none !important;
    outline: none;
    box-shadow: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nbu-category-btn:hover,
.nbu-category-btn:focus,
.nbu-category-btn:active {
    opacity: 0.95;
    border: none !important;
    outline: none;
}

.nbu-category-btn:not(.active) {
    opacity: 0.75;
}

.nbu-category-btn:not(.active):hover {
    opacity: 0.9;
}

.nbu-category-btn.active {
    opacity: 1;
}

.nbu-bus-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.nbu-bus-category-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-weight: 500;
}

.nbu-bus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

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

.nbu-bus-card-clickable {
    cursor: pointer;
}


.nbu-bus-gallery {
    position: relative;
}

.nbu-bus-gallery-main {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.nbu-bus-gallery .nbu-bus-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    transition: opacity 0.3s;
}

.nbu-bus-gallery .nbu-bus-image.nbu-gallery-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.nbu-bus-gallery .nbu-bus-image:not(.nbu-gallery-hidden) {
    z-index: 1;
}

.nbu-bus-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.nbu-bus-gallery-thumbs .nbu-gallery-thumb {
    flex: 0 0 56px;
    height: 42px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, opacity 0.2s;
}

.nbu-bus-gallery-thumbs .nbu-gallery-thumb:hover {
    opacity: 0.9;
}

.nbu-bus-gallery-thumbs .nbu-gallery-thumb.nbu-gallery-thumb-active {
    border-color: #1e3a5f;
}

.nbu-bus-image {
    flex-shrink: 0;
    aspect-ratio: 4/3;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.nbu-bus-image-placeholder {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}

/* Summary gallery (booking form) */
#nbu-selected-bus-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.nbu-summary-gallery {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.nbu-summary-gallery .nbu-summary-main {
    position: relative;
    height: 460px;
    overflow: hidden;
}

.nbu-booking-wrap .nbu-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff !important;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s;
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.nbu-booking-wrap .nbu-gallery-nav:hover,
.nbu-booking-wrap .nbu-gallery-nav:focus,
.nbu-booking-wrap .nbu-gallery-nav:focus-visible,
.nbu-booking-wrap .nbu-gallery-nav:active {
    opacity: 0.95;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.nbu-booking-wrap .nbu-gallery-prev {
    left: 12px;
}

.nbu-booking-wrap .nbu-gallery-next {
    right: 12px;
}

.nbu-summary-gallery .nbu-summary-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    transition: opacity 0.3s;
}

.nbu-summary-gallery .nbu-summary-img.nbu-gallery-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.nbu-summary-gallery .nbu-summary-img:not(.nbu-gallery-hidden) {
    z-index: 1;
}

.nbu-summary-gallery .nbu-summary-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.nbu-summary-gallery .nbu-summary-thumb {
    flex: 0 0 80px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s, opacity 0.2s;
}

.nbu-summary-gallery .nbu-summary-thumb:hover,
.nbu-summary-gallery .nbu-summary-thumb:focus,
.nbu-summary-gallery .nbu-summary-thumb:focus-visible {
    opacity: 0.9;
    outline: none !important;
    box-shadow: none !important;
}

.nbu-summary-gallery .nbu-summary-thumb.nbu-gallery-thumb-active {
    border-color: #1e3a5f;
}

.nbu-bus-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nbu-bus-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.nbu-bus-meta {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: #64748b;
}

.nbu-bus-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #475569;
}

.nbu-bus-specs span {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}

.nbu-bus-specs .nbu-seter-note {
    font-weight: 400;
    opacity: 0.9;
}

.nbu-bus-features {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: #64748b;
}

.nbu-bus-features.nbu-bus-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 16px;
}

@media (min-width: 480px) {
    .nbu-bus-features.nbu-bus-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nbu-bus-features li::before {
    content: "✓ ";
    color: #22c55e;
    font-weight: 600;
}

.nbu-bus-pricing {
    margin-top: auto;
    margin-bottom: 16px;
}

.nbu-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
}

.nbu-price-unit {
    font-size: 0.875rem;
    color: #64748b;
}

.nbu-select-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff !important;
    border: none !important;
    outline: none;
    box-shadow: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nbu-select-btn:hover,
.nbu-select-btn:focus,
.nbu-select-btn:active {
    opacity: 0.95;
    border: none !important;
    outline: none;
}

/* Booking form */
.nbu-booking-form-wrap {
    animation: nbuFadeIn 0.3s ease;
}

@keyframes nbuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nbu-back {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff !important;
    border: none !important;
    outline: none;
    box-shadow: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    text-decoration: none;
}

.nbu-back:hover,
.nbu-back:focus,
.nbu-back:active {
    opacity: 0.95;
    border: none !important;
    outline: none;
}

.nbu-booking-form {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#nbu-selected-bus-summary h4,
#nbu-selected-bus-summary .nbu-summary-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

#nbu-selected-bus-summary .nbu-summary-merke {
    margin: 0 0 8px;
    font-size: 0.875rem;
    color: #64748b;
}

#nbu-selected-bus-summary .nbu-summary-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

#nbu-selected-bus-summary .nbu-summary-spec {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #475569;
}

#nbu-selected-bus-summary .nbu-summary-features {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

#nbu-selected-bus-summary .nbu-summary-features li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#nbu-selected-bus-summary .nbu-summary-features li::before {
    content: "✓ ";
    color: #22c55e;
    font-weight: 600;
}

.nbu-bus-contents-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#nbu-selected-bus-summary .nbu-summary-editor-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
}

#nbu-selected-bus-summary .nbu-summary-editor-content p {
    margin: 0 0 8px;
}

#nbu-selected-bus-summary .nbu-summary-editor-content p:last-child {
    margin-bottom: 0;
}

#nbu-selected-bus-summary .nbu-summary-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

#nbu-selected-bus-summary .nbu-summary-editor-content ul,
#nbu-selected-bus-summary .nbu-summary-editor-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

#nbu-selected-bus-summary .nbu-summary-editor-content strong {
    font-weight: 600;
}

#nbu-selected-bus-summary p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.nbu-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

.nbu-form-section h3 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: #1e3a5f;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.nbu-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.nbu-form-row {
    margin-bottom: 16px;
}

.nbu-form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nbu-form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.nbu-form-row input,
.nbu-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.nbu-form-row input:focus,
.nbu-form-row textarea:focus {
    outline: none;
}

.nbu-checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nbu-checkbox-row input {
    width: auto;
}

.nbu-sjafør-row {
    margin-bottom: 24px;
}

.nbu-sjafør-row label {
    font-size: 0.95rem;
    font-weight: 600;
}

.nbu-sjafør-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
}

.nbu-pickup-info {
    margin: -4px 0 16px;
    padding: 10px 14px;
    background: #f0f9ff;
    border-left: 4px solid #1e3a5f;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1e3a5f;
}

.nbu-sjaforkort-info {
    margin: -4px 0 16px;
    padding: 10px 14px;
    background: #fefce8;
    border-left: 4px solid #ca8a04;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #713f12;
}

.nbu-driver-location-fields {
    margin-bottom: 8px;
}

.nbu-field-group-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.nbu-terms-row label {
    font-size: 0.95rem;
}

.nbu-terms-row a {
    color: #1e3a5f;
    text-decoration: underline;
}

.nbu-terms-row a:hover {
    text-decoration: none;
}

.nbu-form-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.nbu-info-text {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.nbu-standard-tekst {
    margin: 16px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 4px solid #1e3a5f;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

.nbu-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #1e3a5f;
    border-radius: 8px;
    margin: 16px 0;
}

.nbu-total-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.nbu-total-values {
    text-align: right;
}

.nbu-total-value-mva {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.nbu-total-value-eks {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 400;
    display: block;
    margin-top: 6px;
}

.nbu-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff !important;
    border: none !important;
    outline: none;
    box-shadow: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nbu-submit-btn:hover,
.nbu-submit-btn:focus,
.nbu-submit-btn:active {
    opacity: 0.95;
    border: none !important;
    outline: none;
}

.nbu-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success message */
.nbu-success-message {
    text-align: center;
    padding: 48px 24px;
}

.nbu-success-inner {
    max-width: 400px;
    margin: 0 auto;
}

.nbu-success-icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    line-height: 64px;
    background: #22c55e;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.nbu-success-inner h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #1e293b;
}

.nbu-success-inner p {
    margin: 0;
    color: #64748b;
}

/* Loading / error */
.nbu-form-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
