/* Amenities Container Styles */
.amenities-container {
    margin-top: 50px;
    background-color: #6D2341;
}

/* Badges wrapper */
.amenities-badges-wrapper {
    margin-bottom: 10px;
    padding-top: 70px;
    padding-bottom: 90px;
    
}

.amenities-badges-wrapper h3 {
    color: #FF7423;
}

/* New badges container */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Amenity Badge Styles */
.amenity-badge {
    display: inline-block;
    padding: 20px 40px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 40px;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
}

/* Hidden badges */
.amenity-badge.hidden {
    display: none;
}

/* Mehr Anzeigen Button */
.mehr-anzeigen, .weniger-anzeigen {
    padding: 20px 40px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.mehr-anzeigen:hover, .weniger-anzeigen:hover {
    background-color: #555;
}

.weniger-anzeigen.hidden {
    display: none;
}

/* Existing Popup Styles */
.amenities-popup, .amenities-full-popup {
    display: none;
    position: relative;
    z-index: 9000;
}
  
/* The overlay is inside the container */
.amenities-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 300;
}
  
.amenities-popup-container {
    max-width: 800px;
    width: 90%;
    max-height: 75vh;
    overflow-y: auto;
    position: relative;
    border-radius: 20px;
    background: #FFF;
    box-shadow: 2px 2px 21px 0px rgba(36, 34, 34, 0.10);
    padding: 40px;
}
  
.amenities-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
  
.amenities-popup-title {
    color: #242222;
    font-family: 'Inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
}
  
.amenities-popup-close {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
  
.amenities-popup-close:hover {
    color: #333;
}
  
.amenities-room-title {
    color: #242222;
    font-family: Inter;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

/* New two-column layout */
.amenities-popup-columns-container {
    display: flex;
    gap: 30px;
    width: 100%;
    margin-bottom: 20px;
}

.amenities-popup-column-wrapper {
    flex: 1; /* Each column takes equal width */
    min-width: 0; /* Allows columns to shrink if needed */
}

/* Left column can be wider if needed */
.amenities-popup-column-wrapper:first-child {
    flex: 1; /* Takes 2/3 of the space */
}

/* Right column can be smaller */
.amenities-popup-column-wrapper:last-child {
    flex: 1; /* Takes 1/3 of the space */
}

/* Keep original styles for backwards compatibility */
.amenities-popup-columns {
    display: grid;
    grid-template-columns: 2fr 50%; /* As you requested */
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
    align-items: start; /* This will align items to the top */
    grid-auto-rows: min-content; /* This makes rows only as tall as needed */
}

.amenities-popup-columns .amenities-popup-column:nth-child(2) {
    min-width: 0; /* Allow column to be smaller than content */
    max-width: 100%; /* Allow it to fill the allocated space */
    height: auto; /* Only as tall as content requires */
}
  
.amenities-popup-column {
    min-width: 0;
    overflow: hidden;
    height: auto; /* Only as tall as content requires */
    align-self: start; /* Align to the top of the grid cell */
    margin-bottom: 25px; /* Add spacing between categories */
}

.amenities-popup-column:last-child {
    margin-bottom: 0; /* Remove margin from last category */
}
  
.amenities-popup-column h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
  
.feature-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.amenities-notpossible.feature-list {
    text-decoration: line-through;
}
  
.feature-list li {
    color: #000;
    font-family: 'Inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px; /* 175% */
    word-break: break-word; 
    hyphens: auto;
}
  
.feature-list li:last-child {
    border-bottom: none;
}
  
.amenities-popup-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}
  
.amenities-popup-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
  
/* Hide empty columns */
.amenities-popup-columns:empty,
.amenities-popup-column-wrapper:empty {
    display: none;
}

/* The tooltip is appended directly to body, outside popup's stacking context */
.amenity-tooltip {
    position: absolute !important; /* Override any other positioning */
    z-index: 100000 !important; /* Force very high z-index */
    pointer-events: none !important; /* Ensure it doesn't interfere with clicks */
    
    /* Visual styling to make it stand out */
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 10px 15px !important;
    border-radius: 20px !important;
    border: none;
    
    /* Fixed size to ensure it's visible */
    min-width: 100px !important;
    max-width: 300px !important;
    

}
  
/* Make tooltip icons more prominent */
.has-tooltip .info-icon {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    text-align: center !important;
    border-radius: 50% !important;
    background-color: white; /* Bright orange for visibility */
    color: black;
    margin-left: 5px !important;
    font-style: normal !important;
    font-weight: bold !important;
    cursor: help !important;
    border: 1px solid black;
}
  
/* Responsive styles */
@media (max-width: 768px) {
    /* Update for both old and new layouts */
    .amenities-popup-columns {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .amenities-popup-columns-container {
        flex-direction: column;
    }
    
    .amenities-popup-column-wrapper {
        width: 100%;
    }
    
    .amenities-popup-column {
        width: 100%;
        padding-right: 0;
    }
    
    .amenities-popup-container {
        width: 95%;
        max-height: 80vh;
    }
    
    .amenities-room-title {
        font-size: 20px;
    }

    .amenities-container {
        width: 100vw;
        margin-left: -20px;
        margin-right: -20px;
        padding: 40px 0;
    }

    .badges-container .amenity-badge, .mehr-anzeigen {
        font-size: 16px;
        padding: 12px 15px;
    }

    .amenities-popup-container {
        max-height: 70vh;
    }

    

    
}