/**handles:bilhuse-kort-frontend**/
.bilhuse-kort-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.bilhuse-kort-map-container {
    position: relative;
    width: 100%;
    height: auto;
}

.bilhuse-kort-map-container img {
    display: block;
    width: 100%;
    height: auto;
}

.bilhuse-kort-location {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.bilhuse-kort-location:hover {
    transform: translate(-50%, -50%) scale(1.05);
    z-index: 20;
}

.bilhuse-kort-location-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bilhuse-kort-location-banner {
    background: #ff6600;
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 40px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Preview grid med alle ikoner før hover */
.bilhuse-kort-icons-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 2px;
    width: 100%;
    height: 100%;
    min-height: 40px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-items: center;
}

/* Håndter forskellige antal ikoner */
/* Når der kun er ét ikon - vis i normal størrelse */
.bilhuse-kort-icons-preview:has(.bilhuse-kort-icon-preview-item:only-child) {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
}

.bilhuse-kort-icons-preview:has(.bilhuse-kort-icon-preview-item:only-child) .bilhuse-kort-icon-preview-item {
    width: 40px;
    height: 40px;
    background: #ff6600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bilhuse-kort-icons-preview:has(.bilhuse-kort-icon-preview-item:only-child) .bilhuse-kort-icon-preview-item img {
    width: 24px;
    height: 24px;
}

/* Når der er flere ikoner - vis i grid */
.bilhuse-kort-icons-preview:has(.bilhuse-kort-icon-preview-item:nth-child(2)) {
    grid-template-columns: repeat(2, 1fr);
}

.bilhuse-kort-icons-preview:has(.bilhuse-kort-icon-preview-item:nth-child(3)) {
    grid-template-columns: repeat(2, 1fr);
}

.bilhuse-kort-icons-preview:has(.bilhuse-kort-icon-preview-item:nth-child(5)) {
    grid-template-columns: repeat(3, 1fr);
}

.bilhuse-kort-icon-preview-item {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.bilhuse-kort-icon-preview-item img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.bilhuse-kort-icon-preview-item.has-custom-icon img {
    filter: none;
}

.bilhuse-kort-location-items {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bilhuse-kort-location:hover .bilhuse-kort-icons-preview {
    opacity: 0;
}

.bilhuse-kort-location:hover .bilhuse-kort-location-items {
    opacity: 1;
}

.bilhuse-kort-location-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.bilhuse-kort-location-item {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: inherit;
    transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    min-height: 40px;
}

.bilhuse-kort-location:hover .bilhuse-kort-location-banner {
    width: auto;
    min-width: 150px;
}

.bilhuse-kort-location:hover .bilhuse-kort-location-item {
    gap: 10px;
}

.bilhuse-kort-location-icon {
    width: 40px;
    height: 40px;
    background: #ff6600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: 0px;
}

.bilhuse-kort-location-icon::after {
    display: none;
}

.bilhuse-kort-location-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.bilhuse-kort-location-icon.has-custom-icon img {
    filter: none;
}

.bilhuse-kort-location-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: block;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, width 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.bilhuse-kort-location:hover .bilhuse-kort-location-name {
    opacity: 1;
    width: auto;
    padding: 0 8px 0 0;
}

.bilhuse-kort-sublocation-item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    height: 0;
    min-height: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.bilhuse-kort-sublocation-item:first-of-type {
    border-top: none;
}

.bilhuse-kort-sublocation-item .bilhuse-kort-location-name {
    opacity: 0;
    width: 0;
    padding: 0;
}

.bilhuse-kort-sublocation-item .bilhuse-kort-location-icon {
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.bilhuse-kort-location:hover .bilhuse-kort-sublocation-item {
    height: auto;
    max-height: 100px;
    min-height: 40px;
    opacity: 1;
}

.bilhuse-kort-location:hover .bilhuse-kort-sublocation-item .bilhuse-kort-location-icon {
    height: 40px;
    min-height: 40px;
    margin: 0px;
    padding: 0;
}

.bilhuse-kort-location:hover .bilhuse-kort-sublocation-item .bilhuse-kort-location-name {
    opacity: 1;
    width: auto;
    padding: 0 8px 0 0;
}