/**
 * The property widget style
 */

 .property-widget {
    display: flex;
    flex-direction: column;
}

/* Gallery Container */
.property-gallery .apartment-gallery {
    max-width: 1500px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

/* Header Styling */
.property-gallery .apartment-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.property-gallery .apartment-address {
    font-size: 16px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.property-gallery .apartment-rating {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.property-gallery .star-icon {
    color: #000;
    margin-right: 5px;
}

/* Gallery Grid */
.property-gallery .gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 25px;
    margin-top: 15px;
}

.property-gallery .gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    width: 100%;
}

.property-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Main Featured Image */
.property-gallery .gallery-item-main {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Container for main image and buttons to maintain correct positioning */
.property-gallery .gallery-item-main-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.property-gallery .gallery-item-main-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Action Buttons */
.property-gallery .gallery-actions {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 100%;
    display: flex;
    gap: 10px;
}

.property-gallery .gallery-button {
    background-color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



/** PROPERTY LINKS SECTION */

/* Navigation Container */
.property-links-container {
    max-width: 1200px;
    margin: 50px auto;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

/* Navigation Links */
.property-links-container .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.property-links-container .nav-link {
    padding: 10px 35px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    text-decoration: none;
    line-height: normal;
}

.property-links-container .nav-link.active {
    background-color: #6D2341;
    color: white;
    border: 1px solid #333;
}

.property-links-container .nav-link:not(.active) {
    background-color: transparent;
    color: #333;
    border: 1px solid #ccc;
}

.property-links-container .nav-link:not(.active):hover {
    background-color: #f5f5f5;
    border-color: #999;
}



/** ROOMS SECTION */

.property-widget .room-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}

.property-widget .room-card {
    background: white;
    border-radius: 20px;
    box-shadow: 2px 2px 21px 0px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    width: 100%;
    max-width: 340px;
}

.property-widget .tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #0F4C81;
    color: #E4DFD7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 0;
    text-transform: uppercase;
    z-index: 99;
}

.property-widget .room-info {
    padding: 16px;
    position: relative;
    height: 440px;
}

.property-widget .room-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 25px;
    margin-top: 34px;
    line-height: normal;
}

.property-widget .room-details {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    line-height: normal;
}

.property-widget .more-info {
    color: #ff7423;
    text-decoration: none;
    font-size: 14px;
}

.property-widget .more-info:hover {
    text-decoration: underline;
}

.property-widget .view-options {
    display: flex;
    margin: 12px 0;
    gap: 16px;
}

.property-widget .view-option {
    color: #ff7423;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.property-widget .view-option:hover {
    text-decoration: underline;
}

.property-widget .view-option::after {
    content: '›';
    margin-left: 4px;
}

.property-widget .price-options {
    border-top: 1px solid #C6BDB0;
    padding-top: 16px;
}

.property-widget .price-option {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    
}

.property-widget .price-option-wrapper {
    display: flex;
    flex: 2;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

.property-widget .price-option:first-child {
    padding-bottom: 16px;
    border-bottom: 1px solid #C6BDB0;
}

.property-widget .price-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    accent-color: black;
}

.property-widget .price {
    display: flex;
    align-items: baseline;
    flex-direction: column;
}

.property-widget .price .price-wrapper {
    display: flex;
    align-items: center;
}

.property-widget .price-info .stay-wrapper {
    display: flex;
    align-items: center;
}

.property-widget .original-price {
    text-decoration: line-through;
    color: #A87746;
    margin-right: 6px;
    font-size: 14px;
    font-weight: 700;
}


.property-widget .current-price {
    font-weight: 700;
    font-size: 14px;
    line-height: normal;
}

.property-widget .price-label {
    font-size: 14px;
    color: black;
    line-height: normal;
    display: flex;
}

.property-widget .price-info {
    display: flex;
    flex-direction: column;
}

.property-widget .refund-info {
    font-size: 14px;
    color: black;
    line-height: normal;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.property-widget .info-icon {
    width: 16px;
    height: 16px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: white;
    margin-left: 6px;
}

.property-widget .select-button {
    display: block;
    position: absolute;
    width: 300px;
    bottom: 20px;
    left: 20px;
    padding: 12px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 100px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: black;
}

.property-widget .select-button.hide {
    display: none;
}

.property-widget .select-button:hover {
    background-color: #f5f5f5;
}

.property-widget .select-button.selected {
    background-color: #333;
    color: white;
}

.property-widget .select-counter {
    display: none;
    width: 200px;
}

.property-widget .select-counter.show {
    display: flex;
    justify-content: center;
    justify-self: center;
    width: 100%;
}

.property-widget .counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-widget .counter-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid black;
    background: white;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    font-weight: 400;
    margin: 0 10px;
}

.property-widget .counter-center {
    display: flex;
    flex-direction: row;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.property-widget .counter-value {
    padding-right: 5px;
    margin: 0;
}

.property-widget .unavailable-message {
    color: #555;
    text-align: left;
    position: absolute;
    bottom: 0;
}

.property-widget .unavailable-message p {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 20px;
}

.property-widget .alternative-date {
    color: #ff7423;
    text-decoration: none;
}

.property-widget .alternative-date:hover {
    text-decoration: underline;
}

.property-widget .layout_image {
    cursor: pointer;
}

/** CART */

.booking-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    /* display: flex; */
    justify-content: flex-end;
    
    box-sizing: border-box;
    display: none;
}

.booking-summary-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.price-section {
    display: none;
    text-align: right;
    margin-right: 40px;
}

.price-section.show {
    display: inline-block;
}

.price-per-night {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.per-night {
    font-size: 14px;
    color: #666;
    margin-left: 2px;
}

.total-section {
    display: flex;
    align-items: baseline;
    margin-top: 5px;
    justify-content: flex-end;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 16px;
    line-height: normal;
}

.actual-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.booking-details {
    font-size: 14px;
    color: #666;
    margin-left: 6px;
}

.pencil-icon {
    color: #c9a063;
    margin-left: 8px;
    font-size: 14px;
}

.book-now-btn {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 300px;
    height: 60px;
}

.book-now-btn:hover {
    background-color: #555;
}

.book-now-btn.disabled {
    background-color: #999;
}

.empty-cart-message {
    color: #999;
    font-size: 16px;
    text-align: right;
    padding: 10px 20px;
}

.empty-cart-message.hide {
    display: none;
}


/* Pricing tooltip styles */
.pricing-tooltip {
    position: absolute;
    z-index: 10000;
    pointer-events: none;
    color: black;
    padding: 50px 40px;
    border-radius: 4px;
    font-size: 16px;
    max-width: 300px;
    line-height: normal;
    border-radius: 20px;
    background: #FFF;
    box-shadow: 2px 2px 21px 0px rgba(36, 34, 34, 0.10);
}

/* Style for the info icon */
.price-label .info-icon,
.refund-info .info-icon {
    display: inline-block;
    width: 22px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    font-size: 12px;
    margin-left: 4px;
    font-style: normal;
    font-weight: bold;
    cursor: help;
    border: 1px solid #ccc;
    transition: background-color 0.2s;
}

.price-label .info-icon:hover,
.refund-info .info-icon:hover {
    background-color: #e0e0e0;
}


.no-pp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.no-pp-popup-content {
    background-color: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 50px 40px;
    position: relative;
}

.no-pp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.no-pp-popup-header h3 {
    margin: 0;
    color: #242222;
    font-family: 'inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
}

.no-pp-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    position: absolute;
    top: 20px;
    right: 20px;
}

.no-pp-popup-body h2 {
    color: #242222;
    font-family: Inter;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 20px;
}

.no-pp-popup-body p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

#no-pp-location {
    text-transform: capitalize;
}

.no-pp-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-pp-new-date-btn {
    width: 100%;
    border-radius: 30px;
    background-color: #242222;
    border: none;
    cursor: pointer;
    text-align: center;
    color: #E4DFD7;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    height: 50px;
}

.no-pp-location-selector {
    width: 100%;
}

#no-pp-locations {
    width: 100%;
    height: 50px;
    padding-left: 25px;
    border: 1px solid #ccc;
    border-radius: 40px;
    appearance: none;
    position: relative;
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    background-size: 12px;
    padding-right: 35px;
    cursor: pointer;
    color: #242222;
    font-family: 'Inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
    background-color: white;
}

.sticky-clone {
    background-color: #fff; /* Match your design */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: adds a shadow */
    z-index: 1000;
    margin-top: 0;
    left: 0;
    max-width: unset;
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
}

/* Preserve any specific styling from your original navigation */
.sticky-clone .property-link {
/* Match your original navigation link styles */
}


/* Basic styles for the sticky functionality only */
.property-links-container {
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}
  
  /* Styles applied when the container becomes sticky */
  .sticky-property-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100vw;
    max-width: unset;
    background-color: white;
    padding-bottom: 20px;
    z-index: 100;
  }
  
  /* Add padding to body when nav becomes sticky to prevent content jump */
  body.has-sticky-nav {
    padding-top: 56px; /* Adjust this to match the height of your navigation */
  }

  .price-option-wrapper input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    width: 20px;
    height: 20px;
    border: 1px solid black;
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
  }
  
  /* When radio button is checked, change background color */
  .price-option-wrapper input[type="radio"]:checked {
    background-color: #A87746; /* The brown color you specified */
    border-color: #A87746;
  }
  
  /* Optional: Add an inner circle/dot when selected */
  .price-option-wrapper input[type="radio"]:checked::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white; /* White dot in the center */
    transform: scale(1);
  }

  #lage , #zimmer, #ausstattung, #faq {
    /* scroll-margin-top: 140px;
    scroll-snap-type: y mandatory;
    scroll-margin-bottom: 140px; */
  }

   #bewertung {
    scroll-margin-top: 300px;
   }




/* Responsive adjustments */
@media (max-width: 768px) {

    .mobile-cart-behavior {
        display: none;
    }

    .sticky-property-nav {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .property-links-container .nav-links {
        gap: 8px;
    }


    .gallery-item:not(:first-child) {
        display: none;
        grid-template-rows: none;

    }

    .property-gallery .gallery-actions {
        top: 15px;
        right: 15px;
        bottom: unset;
        left: unset;
        width: unset;
    }

    .property-gallery .gallery-grid {
        grid-template-columns: 0;
    }
    
    .property-gallery .gallery-item-main {
        grid-column: 1 / span 2;
        grid-row: 1;
        aspect-ratio: 1/1;
        height: auto;
    }
    
    .property-gallery .gallery-item {
        aspect-ratio: 1/1;
    }

    .property-links-container {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        display: flex;
        flex-direction: row;
        overflow-x: hidden;
    }

    .property-links-container .nav-links {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
        justify-content: unset;
        padding: 25px 0;
    }

    .property-links-container.sticky-clone .nav-link {
        margin-left: 20px;
        width: 100%;
    }

    .property-links-container .nav-links .nav-link {
        padding: 11px 20px;
        font-size: 16px;
        width: min-content;
        min-width: 150px;
    }

    .property-widget .room-section-title {
        /* margin-top: 40px; */
        padding-top: 40px;
    }

    .property-widget .room-card {
        max-width: unset;
    }

    .property-widget .room-card .room-info {
        height: 400px;
    }

    .property-widget .room-card.unavailable .room-info {
        height: 280px;
    }

    .property-widget .room-title {
        font-size: 20px;
    }

    .property-widget .room-details {
        font-size: 14px;
    }

    .property-widget .select-button {
        width: 90%;
    }

    .booking-summary {
        padding: 20px 30px;
    }

    .booking-summary-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .price-section-wrapper {
        display: flex;
    }

    .price-per-night {
        font-size: 22px;
    }

    .actual-price, .original-price {
        font-size: 16px;
    }

    .book-now-btn {
        margin-top: 25px;
        width: 100%;
    }

    
}

