/**
 * Hostaway Search & Single Property Styles
 * Version: 2.2 - Clean & Optimized
 * Requires: propertieshot.css
 */

/* ========================================
   SEARCH BAR
======================================== */

.hostaway-search-wrapper {
    position: relative;
    margin: 30px 0;
}

.hostaway-search-bar-form {
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    padding: 8px;
}

.search-bar-container {
    display: flex;
    align-items: stretch;
    gap: 1px;
}

.search-field {
    position: relative;
    flex: 1;
}

.search-field-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-right: 1px solid #EBEBEB;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    min-height: 70px;
}

.search-field:last-of-type .search-field-trigger {
    border-right: none;
}

.search-field-trigger:hover {
    background: #F7F7F7;
    border-radius: 50px;
}

.search-field-icon {
    color: #717171;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-field-icon svg {
    width: 24px;
    height: 24px;
}

.search-field-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.search-field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 4px;
}

.search-field-value,
.flatpickr-input {
    display: block;
    font-size: 14px;
    color: #717171;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    background: transparent;
    padding: 0;
    outline: none;
    cursor: pointer;
    width: 100%;
}

.flatpickr-input::placeholder {
    color: #B0B0B0;
}

.search-field.active .search-field-value,
.search-field.active .flatpickr-input {
    color: #222222;
}

.search-submit-btn {
    background: linear-gradient(to right, #E61E4D 0%, #E31C5F 50%, #D70466 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 120px;
}

.search-submit-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(227, 28, 95, 0.3);
}

/* ========================================
   FLATPICKR CALENDAR CUSTOMIZATION
======================================== */

.flatpickr-calendar {
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border: none;
    font-family: inherit;
}

.flatpickr-months {
    padding: 16px 16px 0;
}

.flatpickr-month {
    color: #222222;
}

.flatpickr-current-month {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    width: 32px;
    height: 32px;
    padding: 0;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: #222222;
}

.flatpickr-weekdays {
    margin-top: 16px;
}

.flatpickr-weekday {
    color: #717171;
    font-weight: 600;
    font-size: 12px;
}

.flatpickr-days {
    padding: 0 8px 8px;
}

.flatpickr-day {
    border-radius: 50%;
    color: #222222;
    border: none;
    font-weight: 400;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: #F7F7F7;
    border-color: #F7F7F7;
}

.flatpickr-day.today {
    border-color: #222222;
    color: #222222;
}

.flatpickr-day.today:hover {
    background: #F7F7F7;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #222222;
    border-color: #222222;
    color: white;
}

.flatpickr-day.inRange {
    background: #F7F7F7;
    border-color: #F7F7F7;
    box-shadow: -5px 0 0 #F7F7F7, 5px 0 0 #F7F7F7;
}

.flatpickr-day.disabled {
    color: #DDDDDD;
}

/* ========================================
   FILTER MODAL
======================================== */

.hostaway-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.hostaway-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.hostaway-filter-modal.active {
    display: block;
}

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.filter-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.filter-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.filter-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-modal-body {
    padding: 20px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222222;
}

.price-range-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #B0B0B0;
    border-radius: 8px;
    font-size: 14px;
}

.price-range-group span {
    color: #717171;
}

.counter-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.counter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #222222;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #B0B0B0;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
    color: #717171;
}

.counter-btn:hover:not(:disabled) {
    border-color: #222222;
    color: #222222;
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.counter-controls input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 16px;
    color: #222222;
}

.amenities-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.amenity-checkbox input {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.filter-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #eee;
    gap: 10px;
}

/* ========================================
   SINGLE PROPERTY TEMPLATE
======================================== */

.hostaway-single-property {
    max-width: 100%;
    margin: 0 auto;
}

/* ========================================
   IMAGE GALLERY
======================================== */

.property-gallery {
    margin-bottom: 40px;
}

.headline-image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    max-height: 500px;
    cursor: pointer;
}

.headline-image-grid .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.headline-image-grid .grid-item.main-image {
    grid-row: span 2;
}

.headline-image-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.headline-image-grid .grid-item:hover img {
    transform: scale(1.05);
}

.headline-image-grid .grid-item .overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.headline-image-grid .grid-item .overlay:hover {
    background: white;
}

/* Gallery Popup */
.gallery-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-popup-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow-y: auto;
    padding: 60px 20px 20px;
}

.gallery-popup-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.gallery-popup-content {
    max-width: 1400px;
    margin: 0 auto;
}

.cabin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
}

.cabin-image-grid .grid-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.cabin-image-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cabin-image-grid .grid-item:hover img {
    transform: scale(1.1);
}

/* ========================================
   PROPERTY LAYOUT
======================================== */

.property-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.property-main-content {
    min-width: 0;
}

/* ========================================
   PROPERTY HEADER
======================================== */

.property-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.property-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #222;
}

.property-meta-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #222;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.meta-item.rating {
    font-weight: 600;
}

.meta-item.rating svg {
    fill: #FF385C;
    stroke: none;
}

/* ========================================
   PROPERTY SECTIONS
======================================== */

.property-section {
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #eee;
}

.property-section:last-child {
    border-bottom: none;
}

.property-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #222;
}

.property-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222;
}

.property-description {
    font-size: 16px;
    line-height: 1.7;
    color: #484848;
}

.property-description p {
    margin-bottom: 16px;
}

/* Sleeping Arrangements */
.sleepingArrangements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sleepingArrangements li {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sleepingArrangements .level {
    font-size: 12px;
    color: #717171;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sleepingArrangements .label {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.sleepingArrangements .size {
    font-size: 14px;
    color: #484848;
}

.sleepingArrangements .cabin {
    font-size: 12px;
    color: #717171;
}

.sleepingArrangements .count {
    margin-top: auto;
    display: flex;
    align-items: center;
}

.sleepingArrangements .count img,
.sleepingArrangements .count svg {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

/* Amenities List */
.amentiesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.amentiesList__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #222;
}

.amentiesList__item .material-symbols-outlined {
    font-size: 24px;
    color: #717171;
}

/* House Rules */
.houseRules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.houseRulesBox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f7f7f7;
    border-radius: 8px;
}

.houseRulesBox .icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.houseRulesBox .icon img {
    width: 24px;
    height: 24px;
}

.houseRulesBox .text {
    font-size: 14px;
    color: #222;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 500px;
    border: none;
}

/* ========================================
   BOOKING WIDGET SIDEBAR
======================================== */

.property-sidebar {
    position: relative;
}

.booking-widget-sticky {
    position: sticky;
    top: 100px;
}

.booking-widget {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    background: white;
}

.booking-price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.booking-price .price {
    color: #222;
}

.booking-price .period {
    font-size: 16px;
    font-weight: 400;
    color: #717171;
}

.booking-widget__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222;
}

.bookingWidget__box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Date Fields */
.date-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    overflow: hidden;
}

.date-box {
    padding: 12px;
    cursor: pointer;
    background: white;
    border-right: 1px solid #b0b0b0;
    transition: background 0.2s ease;
}

.date-box:last-child {
    border-right: none;
}

.date-box:hover {
    background: #f7f7f7;
}

.datebox__label {
    font-size: 10px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.datebox__content {
    font-size: 14px;
    color: #717171;
}

/* Guest Holder */
.guestHolder {
    position: relative;
}

.guestHolder__button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    transition: background 0.2s ease;
}

.guestHolder__button:hover {
    background: #f7f7f7;
}

.guestHolder__buttonRight svg {
    width: 16px;
    height: 16px;
}

.guestHolder__modal {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 24px;
    z-index: 100;
}

.guestHolder.active .guestHolder__modal {
    display: block;
}

.filterBox__col {
    margin-bottom: 20px;
}

.filterBox__colHeading {
    margin-bottom: 12px;
}

.filterBox__colHeading div {
    font-weight: 600;
    font-size: 16px;
    color: #222;
}

.filterBox__colHeading span {
    font-size: 14px;
    color: #717171;
}

.customInciriment {
    display: flex;
    align-items: center;
    gap: 16px;
}

.changeValBtnsingle {
    width: 32px;
    height: 32px;
    border: 1px solid #b0b0b0;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.changeValBtnsingle:hover:not(:disabled) {
    border-color: #222;
    background: #f7f7f7;
}

.changeValBtnsingle:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.changeValBtnsingle svg {
    width: 16px;
    height: 16px;
}

.customInciriment__inputarea input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

.guestHolder__modalFooter {
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.buttonText {
    background: none;
    border: none;
    color: #222;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px 16px;
}

.buttonText:hover {
    color: #000;
}

/* Price Breakdown */
.price-breakdown {
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid #eee;
}

.price-breakdown .loader {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.price-breakdown .loader span {
    width: 8px;
    height: 8px;
    background: #FF385C;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.price-breakdown .loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.price-breakdown .loader span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    color: #222;
}

.price-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

/* Booking Buttons */
.btn-book-now {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #E61E4D 0%, #E31C5F 50%, #D70466 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book-now:hover {
    background: linear-gradient(to right, #D01346 0%, #CC1356 50%, #C5005E 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 30, 77, 0.3);
}

.btn-book-now:active {
    transform: translateY(0);
}

.booking-note {
    text-align: center;
    margin-top: 16px;
    color: #717171;
    font-size: 14px;
}

/* ========================================
   CALENDAR POPUP
======================================== */

.calendar__shadow {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.calendar__shadow.active {
    display: block;
}

.calendar-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.28);
    z-index: 1000;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.calendar-popup.hidden {
    display: none;
}

.calendarWrapper {
    width: 100%;
    max-width: 900px;
}

.popup-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.popupHeader__close {
    margin-right: auto;
    padding: 8px;
    cursor: pointer;
}

.icon-close {
    font-size: 20px;
}

.popupHeader__left h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.popupHeader__left p {
    font-size: 14px;
    color: #717171;
    margin: 0;
}

.popupHeader__right {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    padding: 10px 32px 10px 12px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    width: 140px;
    font-size: 14px;
}

.clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #717171;
    display: none;
}

.input-wrapper.filled .clear-icon {
    display: block;
}

.calendarWrapper__body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border: 1px solid #b0b0b0;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.calendar-nav button:hover:not(:disabled) {
    background: #f7f7f7;
    border-color: #222;
}

.calendar-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#calendar-months {
    display: flex;
    gap: 40px;
    font-weight: 600;
    font-size: 16px;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.month {
    min-width: 320px;
}

.weekday-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    padding: 8px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.dayBox {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.2s ease;
}

.day.selected .dayBox {
    background: #222;
    color: white;
}

.day.in-range {
    background: #f7f7f7;
}

.day.disabled {
    color: #dddddd;
    cursor: not-allowed;
}

.day.disabled .dayBox {
    text-decoration: line-through;
}

.day.checkin-unavailable::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #FF385C;
    border-radius: 50%;
}

.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.calendarFooter__button {
    display: flex;
    gap: 12px;
}

.primaryButton {
    padding: 10px 20px;
    border: 1px solid #222;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.primaryButton:hover {
    background: #f7f7f7;
}

.primaryButton.filled {
    background: #222;
    color: white;
    border: none;
}

.primaryButton.filled:hover {
    background: #000;
}

.prevent-scroll {
    overflow: hidden;
}

/* ========================================
   MOBILE BOOKING BAR
======================================== */

.mobileReserve {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    padding: 16px 20px;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobileReserve__left {
    flex: 1;
}

.mobileReserve__priceLabel {
    font-size: 14px;
    color: #717171;
}

.mobileReserve__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobileReserve__priceWrapper {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.mobileReserve__days {
    font-size: 12px;
    color: #717171;
    display: flex;
    flex-direction: column;
}

.mobileReserve__button {
    padding: 12px 24px;
    background: linear-gradient(to right, #E61E4D 0%, #E31C5F 50%, #D70466 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* ========================================
   MAP STYLES
======================================== */

#property-map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.leaflet-container {
    font-family: inherit;
}


.description-content {
    position: relative;
}

.description-content.collapsed {
    max-height: 200px;
    overflow: hidden;
}

.description-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.read-more-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 0;
    margin-top: 10px;
    text-decoration: underline;
    font-size: 16px;
}

.read-more-btn:hover {
    color: #0056b3;
}

/* *** REVIEW WIDGET STYLES - ENHANCED *** */
.review-widget-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    min-height: 200px;
}

.review-widget-container iframe {
    max-width: 100%;
    border: 0;
    display: block;
    margin: 0 auto;
}

.review-widget-container > div {
    width: 100%;
}

/* TripAdvisor Widget Styles */
.review-widget-container #TA_cdsratingsonlynarrow {
    width: 100% !important;
}

.review-widget-container .widTA {
    width: 100% !important;
}

/* Google Reviews Styles */
.review-widget-container .elfsight-app {
    width: 100% !important;
}

/* Trustpilot Styles */
.review-widget-container .trustpilot-widget {
    width: 100% !important;
}

/* Generic Widget Container */
.review-widget-embed,
.review-widget-shortcode,
.review-widget-text {
    width: 100%;
    overflow: hidden;
}

.review-widget-embed iframe,
.review-widget-shortcode iframe {
    width: 100%;
    min-height: 400px;
}

/* Amenities List Styles - UPDATED: Show 6, rest in popup */
.amentiesList {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.amentiesList__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.amentiesList__item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.amenity-icon {
    font-size: 24px;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-icon i {
    font-size: 24px;
    color: #333;
}

.amenity-icon img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.amentiesList__text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Show All Amenities Button */
.show-all-amenities-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.show-all-amenities-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Amenities Popup Modal */
.amenities-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}

.amenities-popup-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.amenities-popup-container {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    padding: 40px;
    position: relative;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amenities-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.amenities-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.amenities-popup-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: #1d2327;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.amenities-popup-content .amentiesList {
    max-height: calc(80vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
}

.amenities-popup-content .amentiesList::-webkit-scrollbar {
    width: 8px;
}

.amenities-popup-content .amentiesList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.amenities-popup-content .amentiesList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.amenities-popup-content .amentiesList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* House Rules Styles - UPDATED */
.houseRules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.houseRulesBox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.houseRulesBox:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.houseRulesBox .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.houseRulesBox .icon i {
    font-size: 20px;
    color: #333;
}

.houseRulesBox .icon img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.houseRulesBox .icon svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.houseRulesBox .text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

/* Video Container Styles - UPDATED */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    margin: 20px 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container video {
    object-fit: contain;
}

/* Availability Calendar Section Styles */
#availability-calendar {
    margin-bottom: 40px;
}

.availability-calendar-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.calendar-only-display {
    max-width: 100%;
    margin: 0 auto;
}

#availability-calendar-display {
    display: block;
}

/* Calendar Navigation Buttons */
.calendar-nav-btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.calendar-nav-btn:hover {
    background: #0056b3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.calendar-nav-btn:active {
    transform: translateY(0);
}

/* Calendar table hover effects */
#availability-calendar-display .calendar td.available:hover {
    background: #c8e6c9 !important;
    transform: scale(1.1);
    font-weight: bold;
}

/* PhotoSwipe Custom Overrides */
.pswp {
    z-index: 999999 !important;
}

.pswp__button {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.pswp__button:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    #availability-calendar-display > div:first-child {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .calendar-nav-btn {
        width: 100%;
    }
    
    .amentiesList {
        grid-template-columns: 1fr;
    }
    
    .houseRules {
        grid-template-columns: 1fr;
    }
    
    .amenities-popup-container {
        padding: 30px 20px;
    }
    
    .amenities-popup-content h2 {
        font-size: 24px;
    }
    
    .review-widget-container {
        padding: 20px 15px;
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .property-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .property-sidebar {
        display: none;
    }
    
    .mobileReserve {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* Search Bar */
    .search-bar-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-field {
        width: 100%;
    }
    
    .search-field-trigger {
        border-right: none;
        border-bottom: 1px solid #EBEBEB;
        min-height: 60px;
    }
    
    .search-submit-btn {
        width: 100%;
        margin-top: 8px;
    }
    
    /* Amenities */
    .amenities-checkboxes {
        grid-template-columns: 1fr;
    }
    
    /* Filter Modal */
    .filter-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    /* Single Property */
    .headline-image-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .headline-image-grid .grid-item.main-image {
        grid-row: span 1;
    }
    
    .property-title {
        font-size: 24px;
    }
    
    .property-container {
        padding: 20px 16px;
    }
    
    .calendar-body {
        grid-template-columns: 1fr;
    }
    
    .popupHeader__right {
        display: none;
    }
    
    .calendar-popup {
        max-width: 95%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .cabin-image-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .sleepingArrangements,
    .amentiesList,
    .houseRules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hostaway-search-bar-form {
        padding: 4px;
        border-radius: 16px;
    }
    
    .search-field-trigger {
        padding: 12px 16px;
    }
    
    .filter-modal-footer {
        flex-direction: column;
    }
    
    .filter-modal-footer .hostaway-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .property-meta-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .date-fields {
        grid-template-columns: 1fr;
    }
    
    .date-box {
        border-right: none;
        border-bottom: 1px solid #b0b0b0;
    }
    
    .date-box:last-child {
        border-bottom: none;
    }
}