/* ========================================
   HOBEGE Apartments Liste - Styles
   ======================================== */

/* Hero Section Override */
.apartments-liste-hero {
    position: relative;
    height: auto;
    min-height: 711px;
    padding-bottom: 120px;
}

/* Hero Image Positioning */
.apartments-liste-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.apartments-liste-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay ohne schrägen Balken */
.apartments-liste-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.apartments-liste-hero .hero-content {
    position: relative;
    z-index: 2;
    padding-top: 160px;
    padding-left: 0;
    max-width: none;
}

.apartments-liste-hero .hero-content h1 {
    font-size: 60px;
    line-height: 70px;
    max-width: 745px;
}

.apartments-liste-hero .hero-subtitle {
    font-size: 25px;
    line-height: 35px;
    max-width: 585px;
    margin-top: 16px;
}

/* Search Bar Wrapper */
.search-bar-wrapper {
    position: absolute;
    bottom: -43px;
    left: 0;
    right: 0;
    z-index: 10;
}

.search-bar-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 280px;
}

.listing-search-bar {
    display: flex;
    align-items: center;
    background-color: var(--color-dark);
    border: 1px solid var(--color-primary);
    border-radius: 35px;
    overflow: visible;
    max-width: 1360px;
}

.listing-search-bar .search-field {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 0;
}

.listing-search-bar .search-field:hover {
    background-color: rgba(71, 186, 178, 0.1);
}

.listing-search-bar .search-label {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.listing-search-bar .search-divider {
    width: 1px;
    height: 60px;
    background-color: var(--color-primary);
    opacity: 0.5;
    flex-shrink: 0;
}

.listing-search-bar .search-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 600;
    padding: 20px 40px;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.listing-search-bar .search-button:hover {
    background-color: #3aa39b;
}

/* Booking Form in Liste */
.search-bar-container .booking-form {
    width: 100%;
}

.listing-search-bar .booking-input {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    padding: 4px 0;
    width: 100%;
    cursor: pointer;
    outline: none;
}

.listing-search-bar .booking-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.listing-search-bar select.booking-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L9 9L17 1' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 30px;
}

.listing-search-bar select.booking-input option {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* Standort Dropdown in Liste */
.listing-search-bar .standort-field {
    position: relative;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.listing-search-bar .standort-dropdown {
    width: 100%;
    position: relative;
}

.listing-search-bar .standort-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.listing-search-bar .standort-selected span {
    font-size: 15px;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.listing-search-bar .standort-options {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-dark);
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    padding: 15px;
    min-width: 280px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.listing-search-bar .standort-options.open {
    display: block;
}

.listing-search-bar .standort-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.listing-search-bar .standort-option:hover {
    background-color: rgba(71, 186, 178, 0.15);
}

.listing-search-bar .standort-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.listing-search-bar .standort-option span {
    font-size: 16px;
    color: var(--color-white);
}

/* ========================================
   Apartments Listings Section
   ======================================== */
.apartments-listings {
    background-color: var(--color-dark);
    padding: 100px 0 120px;
}

.apartments-listings .container {
    max-width: 1920px;
    padding: 0 280px;
}

/* Location Group */
.location-group {
    margin-bottom: 80px;
}

.location-group:last-child {
    margin-bottom: 0;
}

.location-title {
    font-size: 45px;
    font-weight: 600;
    line-height: 60px;
    color: var(--color-white);
    text-shadow: var(--shadow);
    margin-bottom: 40px;
}

/* Apartments Grid */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Apartment Card */
.apartment-card {
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    mix-blend-mode: lighten;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(71, 186, 178, 0.2);
}

.apartment-image {
    height: 221px;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    position: relative;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apartment-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    z-index: 1;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.08);
}

.apartment-content {
    padding: 30px 40px 40px;
}

.apartment-content h3 {
    font-size: 30px;
    font-weight: 600;
    line-height: 80px;
    color: var(--color-white);
    text-shadow: var(--shadow);
}

.apartment-details {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.apartment-details li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    line-height: 40px;
    color: var(--color-white);
}

.apartment-details svg {
    flex-shrink: 0;
    width: 20px;
}

/* Button Full Width */
.btn-full {
    width: 100%;
    text-align: center;
    display: block;
    border-radius: var(--border-radius);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1600px) {
    .search-bar-container,
    .apartments-listings .container {
        padding: 0 100px;
    }
}

@media (max-width: 1200px) {
    .search-bar-container,
    .apartments-listings .container {
        padding: 0 40px;
    }
    
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .listing-search-bar {
        flex-wrap: wrap;
        border-radius: 20px;
    }
    
    .listing-search-bar .search-field {
        flex: 1 1 45%;
        padding: 20px;
    }
    
    .listing-search-bar .search-divider {
        display: none;
    }
    
    .listing-search-bar .search-button {
        flex: 1 1 100%;
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 768px) {
    .search-bar-container,
    .apartments-listings .container {
        padding: 0 20px;
    }
    
    .apartments-liste-hero .hero-content h1 {
        font-size: 36px;
        line-height: 46px;
    }
    
    .apartments-liste-hero .hero-subtitle {
        font-size: 18px;
        line-height: 28px;
    }
    
    .listing-search-bar .search-field {
        flex: 1 1 100%;
    }
    
    .listing-search-bar .search-label {
        font-size: 18px;
    }
    
    .listing-search-bar .search-button {
        font-size: 18px;
        padding: 20px;
    }
    
    .apartments-grid {
        grid-template-columns: 1fr;
    }
    
    .location-title {
        font-size: 32px;
        line-height: 42px;
    }
    
    .apartment-content h3 {
        font-size: 24px;
        line-height: 60px;
    }
    
    .apartment-details li {
        font-size: 18px;
        line-height: 36px;
    }
}




