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

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

:root {
    --primary-color: #5e8f7a;
    --secondary-color: #dfe5df;
    --title-color: #1F3F3C;
    --black-color: #000;
    --white-color: #fff;
    --mainFont: 'Playfair Display',serif;
}

p{
    color: #4f6b63;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6{
    font-family: var(--mainFont);
    font-weight: 500;
}

.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;
    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: var(--title-color);
    margin-bottom: 4px;
}

.search-field-value,
.flatpickr-input {
    display: block;
    font-size: 14px;
    color: #4f6b63;
    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: var(--title-color);
}

.search-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 120px;
}

.search-submit-btn:hover {
    transform: scale(1.04);
    box-shadow: unset;
}

/* ========================================
   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: var(--title-color);
}

.flatpickr-current-month {
    font-size: 16px;
    font-weight: 700;
    color: var(--title-color);
}

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

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: var(--title-color);
}

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

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

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

.flatpickr-day {
    border-radius: 50%;
    color: var(--title-color);
    border: none;
    font-weight: 400;
}

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

.flatpickr-day.today {
    border-color: var(--title-color);
    color: var(--title-color);
}

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

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--title-color);
    border-color: var(--title-color);
    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: 500;
}

.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: 500;
    margin-bottom: 15px;
    color: var(--title-color);
}

.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: #4f6b63;
}

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

.counter-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--title-color);
}

.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: #4f6b63;
}

.counter-btn:hover:not(:disabled) {
    border-color: var(--title-color);
    color: var(--title-color);
}

.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: var(--title-color);
}

.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 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 20px 0;
}

.property-gallery .overlay svg {
    stroke: #000;
}

.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: 12px;
}

.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;
}

.gallery-popup-content h2 {
    color: #fff;
}

.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: 500;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--title-color);
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--title-color);
}

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

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

.meta-item.rating svg {
    fill: #f9a825;
    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: 28px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--title-color);
}

.property-section h3 {
    font-size: 18px;
    font-weight: 500 !important;
    margin-bottom: 16px;
    color: var(--title-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.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: #4f6b63;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sleepingArrangements .label {
    font-size: 16px;
    font-weight: 600;
    color: var(--title-color);
}

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

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

.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: var(--title-color);
}

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

/* 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: var(--title-color);
}

/* 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: var(--title-color);
}

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

.booking-widget__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--title-color);
}

.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: var(--title-color);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 130%;
}

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

/* 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;
    margin-top: 5px;
}

.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: var(--title-color);
}

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

.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: var(--title-color);
    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: var(--title-color);
    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: var(--primary-color);
    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: var(--title-color);
}

.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: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px !important;
}

.btn-book-now:hover {
    background: #4e7b67;
    transform: translateY(-1px);
    box-shadow: unset;
}

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

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

.coupon-row input {
    flex: 1;
    border: 1px solid var(--primary-color);
    padding: 10px;
    border-radius: 5px;
    color: var(--title-color);
}

/* ========================================
   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: #4f6b63;
    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: #4f6b63;
    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;
    color: var(--primary-color);
    position: relative;
    font-size: 0;
}

.calendar-nav button:before {
    position: absolute;
    content: "";
    background: url('/wp-content/plugins/wp-hostaway-connector-pro/public/img/calen_icon.svg') no-repeat;
    height: 16px;
    width: 15px;
    right: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.calendar-nav button#prevMonth:before {
    transform: translate(-50%, -50%) rotate(180deg);
}

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

.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: #4f6b63;
    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: var(--primary-color);
    color: white;
}

.day.in-range {
    background: #5e8f7a17;
}

.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: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 20px;
}

.primaryButton.filled:hover {
    background: #16312e;
}

.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: #4f6b63;
}

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

.mobileReserve__priceWrapper {
    font-size: 18px;
    font-weight: 600;
    color: var(--title-color);
}

.mobileReserve__days {
    font-size: 12px;
    color: #4f6b63;
    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), rgb(245 245 245));
}

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

.read-more-btn:hover {
    color: var(--primary-color);
}

/* *** REVIEW WIDGET STYLES - ENHANCED *** */
.review-widget-container {
    background: #e3e8e2 !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
}

.review-widget-container p {
    color: var(--title-color) !important;
}

.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;
    border-radius: 8px;
    border: 1px solid #8d9692;
    transition: all 0.3s ease;
}

.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: 22px;
    color: #4f6b63;
}

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

.amentiesList__text {
    font-size: 15px;
    color: #4f6b63;
    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: 1px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #4f6b63;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.show-all-amenities-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

/* 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: 500;
    margin: 0 0 30px 0;
    color: var(--title-color);
    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: #4f6b63;
}

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

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

.houseRulesBox .text {
    font-size: 15px;
    color: #4f6b63;
    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;
}

#availability-calendar-display>div {
    justify-content: space-between !important;
}

.calendar-legend .legend-item .legend-color.booked {
    background: #fff !important;
}

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

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

.calendar-header{
  border-bottom: 1px;
}

/* Calendar table hover effects */
#availability-calendar-display .calendar td.available:hover {
    background: #c8e6c9 !important;
}

/* 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;
}

/* Availability Calender */
.calendar-header {
    border-width: 1px !important;
}

.availability-calendar-wrapper .calendar-nav-btn {
    font-size: 14px !important;
    background: transparent !important;
    color: var(--title-color) !important;
    border: 1px solid #9a9a9a !important;
    padding: 2px 14px !important;
    border-radius: 20px !important;
}

.availability-calendar-wrapper tr td.booked {
    text-decoration: line-through;
    background: #fff !important;
}

.availability-calendar-wrapper tr td {
    border-color: #f6f6f6 !important;
}

.availability-calendar-wrapper table thead tr th {
    border: 0 !important;
    background: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.calendar-popup .popupHeader__close {
    border: 1px solid #000;
    border-radius: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.calendar-popup .popupHeader__close .icon.icon-close {
    font-size: 15px;
}

.related-properties .hostaway-properties-carousel ul.hostaway-slider-container {
    align-items: flex-start;
}

.related-properties button.slider-nav.related-nav {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    justify-content: center;
}

.related-properties button.slider-nav.related-nav::after {
    width: 25px;
    height: 25px;
}

.related-properties .hostaway-slider-container li.carousel-item button.slider-nav.hostaway-slider-nav:first-of-type:not(.slider-nav-next) {
    left: 12px;
}

.related-properties .hostaway-slider-container li.carousel-item button.slider-nav.hostaway-slider-nav.slider-nav-next {
    right: 12px;
}

.related-properties li.carousel-item .slider-nav:before{
    border: 0;
}

.related-properties .hostaway-slider-container li.carousel-item .hostaway-property-card:hover{
    transform: unset;
    box-shadow: unset;
}

.slider-nav::after {
    filter: invert();
}

.property-carousel .slider-nav::after {
    width: 2rem !important;
    height: 1rem !important;
}

.property-badges li:nth-child(2) {
    width: max-content;
}

/* Checkout Css */
.checkout-col-left h2 {
    font-size: 35px;
    margin-bottom: 22px;
    color: var(--title-color);
}

.checkout-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding: 30px 30px;
}

.checkout-form .form-section .form-group {
    margin: 0;
}

.payment-method-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--title-color);
    border-radius: 8px;
    background: var(--secondary-color);
}

.checkout-form .form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--title-color);
}

.form-group label {
    font-size: 15px;
    display: block;
    margin-bottom: 3px;
    font-weight: 400;
    color: var(--title-color);
}

.pricing-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #4f6b63;
    font-size: 18px;
    font-weight: 500;
}

.summary-property-info h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--title-color);
}

.summary-row,
.pricing-row {
    color: var(--title-color);
}

.checkout-form .form-section {
    padding: 25px 15px;
} 

.archive-calendar-popup .popup-footer button.btn-primary{
    background: var(--primary-color);
}

.archive-calendar-popup .popup-footer button {
    padding: 6px 20px;
}

.archive-calendar-popup .popup-header button.popup-close-btn {
    margin-right: 0;
}

.archive-calendar-popup .popup-header button.popup-clear-btn.popupHeader__clear {
    padding: 0;
    margin-top: 5px;
    text-decoration: underline;
}

.archive-calendar-popup .days-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.archive-calendar-popup .day.selected .dayBox {
    background: var(--primary-color);
}

.archive-calendar-popup .day.in-range {
    background: rgb(94 143 122 / 12%);
}

.checkbox-label input[type="checkbox"]{
    accent-color: var(--primary-color);
}

.checkout-col-left form .hostaway-btn span.btn-loader {
    font-size: 0;
}

.checkout-col-left form #submit-booking .btn-loader {
    border: 0;
    border-radius: 50%;
    animation: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    flex-direction: row-reverse;
    gap: 12px;
}

.checkout-col-left form input[type=text] {
    height: 50px;
}

.post-type-archive-property .archive-search-section .hostaway-search-bar-wrapper {
    border-radius: 60px;
}

.post-type-archive-property .archive-search-section .hostaway-search-bar-wrapper .search-field-trigger,
.post-type-archive-property .archive-search-section .search-btn {
    border-radius: 50px;
}

#authorize-net-payment-fields h3 {
    font-weight: 500 !important;
}

#authorize-net-payment-fields label,
#authorize-net-payment-fields h3{
   color: var(--title-color) !important;
}

.hostaway-checkout-page .pricing-row.pricing-total strong#summary-total-amount {
    font-weight: 700;
}

.hostaway-checkout-page .hostaway-error-container {
    padding: 80px 0;
}

.hostaway-checkout-page .hostaway-error-container p.hostaway-error {
    text-align: center;
}

.search-field-trigger .field-value{
    color: var(--title-color) !important;
}

/* Thankyou page */

.checkmark {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    stroke-width: 3;
    stroke: #5e8f7a;
    margin-bottom: 15px;
}

.checkmark-circle-path {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke: #5e8f7a;
    stroke-width: 3;
    animation: drawCircle 0.6s ease-out 0.3s forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #5e8f7a;
    stroke-width: 3;
    animation: drawCheck 0.4s ease-out 0.9s forwards;
}

.success-title {
    color: var(--title-color);
    font-size: 48px;
    font-weight: 500;
    margin: 0 0 20px 0;
}

.success-subtitle {
    color: #4f6b63;
    font-size: 18px;
}

.confirmation-badge {
    background: linear-gradient(135deg, #1e3f3a, #244c45);
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.confirmation-badge .badge-icon {
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.confirmation-badge .badge-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-number {
    color: var(--white-color);
    font-size: 18px;
    font-weight: 700;
}

.summary-card .card-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: none;
}

.summary-card.highlight {
    background: linear-gradient(135deg, #1e3f3a, #244c45);
}

.summary-card.highlight * {
    color: #fff !important;
}

.card-label {
    color: #3f6b60;
    font-size: 13px;
    text-transform: uppercase;
    display: block;
}

.card-value {
    color: var(--title-color);
    font-size: 20px;
    font-weight: 600;
    display: block;
    margin: 5px 0;
}

.card-value.price {
    font-size: 28px;
    color: #4f6b63;
}

.card-time {
    color: #4f6b63;
    font-size: 12px;
    display: block;
}

.booking-widget .price-breakdown {
    padding-bottom: 0;
    margin-bottom: 5px;
}

.checkout-col-left div#authorize-net-payment-fields {
    background: #f9f9f9;
    border-color: #f9f9f9;
}

/* 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;
    }

    .checkout-col-left h2 {
        font-size: 28px;
    }

    .archive-header h1 {
        font-size: 35px;
    }

    .post-type-archive-property .hostaway-archive-container {
        padding: 20px 20px 60px;
    }

    .property-card-title {
        font-size: 22px;
    }
}

@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 {
        position: relative !important;
        grid-template-columns: 1fr !important;
        max-height: 300px !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    .headline-image-grid .grid-item.main-image {
        grid-row: span 1 !important;
        display: block !important;
    }

    /* Hide images 2, 3, 4 completely */
    .headline-image-grid .grid-item:nth-child(2),
    .headline-image-grid .grid-item:nth-child(3),
    .headline-image-grid .grid-item:nth-child(4) {
        display: none !important;
    }

    /* Make the 5th grid-item act as an absolute layer for the overlay button */
    .headline-image-grid .grid-item:nth-child(5) {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        pointer-events: none !important;
        background: transparent !important;
        display: block !important;
    }

    .headline-image-grid .grid-item:nth-child(5) img {
        display: none !important;
    }

    .headline-image-grid .grid-item:nth-child(5) .overlay {
        pointer-events: auto !important;
        position: absolute !important;
        bottom: 16px !important;
        right: 16px !important;
    }
    
    .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;
    }

    .active-filters {
        margin-top: 16px;
    }

    .post-type-archive-property .archive-search-section .hostaway-search-bar-wrapper {
        border-radius: 30px;
    }
}

@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%;
    }

    .checkout-row {
        padding: 30px 20px;
    }

    .post-type-archive-property .hostaway-archive-container {
        padding: 20px 20px 60px;
    }
}

@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;
    }
}