/* Main Properties Styles */
.hostaway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    padding: 2px;
    font-family: "Inter", sans-serif;
}

.hostaway-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.hostaway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hostaway-slider-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.hostaway-card-img-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    scrollbar-width: none;
}

.hostaway-card-img-slider::-webkit-scrollbar {
    display: none;
}

.hostaway-card-img-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.hostaway-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.hostaway-slider-wrapper:hover .hostaway-nav-btn {
    opacity: 1;
}

.hostaway-prev {
    left: 10px;
}

.hostaway-next {
    right: 10px;
}

.hostaway-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hostaway-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hostaway-badge.dark {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.hostaway-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hostaway-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
    line-height: 1.4;
    min-height: 50px;
}

.hostaway-specs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.hostaway-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hostaway-spec-icon {
    width: 16px;
    height: 16px;
    fill: #555;
}

.hostaway-specs span {
    color: #aaa;
    font-size: 10px;
}

.hostaway-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.hostaway-pill {
    background-color: var(--pill-bg);
    color: var(--pill-text);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #d0e0df;
    line-height: 1;
}

.hostaway-card-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.hostaway-price {
    font-size: 18px;
    color: #222;
}

.hostaway-price-period {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.hostaway-actions {
    display: flex;
    gap: 8px;
}

.hostaway-btn {
    padding: 10px 18px;
    background: #2d5a49;
    color: #fff;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.hostaway-btn:hover {
    background: #1e4033;
}

.hostaway-btn-outline {
    padding: 10px 18px;
    background: transparent;
    color: #2d5a49;
    border: 1px solid #2d5a49;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.hostaway-btn-outline:hover {
    background: #f0f7f5;
}

/* Modal */
.hostaway-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    visibility: hidden;
    opacity: 0;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hostaway-modal.active {
    visibility: visible;
    opacity: 1;
}

.hostaway-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.hostaway-modal.active .hostaway-modal-box {
    transform: translateY(0);
    opacity: 1;
}

.hostaway-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ddd;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    z-index: 10;
}

#hostaway-calendar-container {
    margin-top: 20px;
    min-height: 500px;
    width: 100%;
}

/* Search Bar Styles */
.hostaway-search-wrapper {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    font-family: "Inter", sans-serif;
}

.hostaway-search-bar {
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 900px;
}

.hs-item {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    flex: 1;
}

.hs-icon-circle {
    width: 40px;
    height: 40px;
    background: #f7f7f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #555;
    flex-shrink: 0;
}

.hs-input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hs-input-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.hs-input-group input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #666;
    width: 100%;
    outline: none;
    padding: 0;
    margin: 0;
}

.hs-input-group input:focus {
    color: #000;
}

.hs-divider {
    width: 1px;
    height: 30px;
    background: #e0e0e0;
}

.hostaway-search-btn {
    background: #2d5a49;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    margin-left: 10px;
}

.hostaway-search-btn:hover {
    background: #1e4033;
}

@media (max-width: 768px) {
    .hostaway-search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        gap: 15px;
    }

    .hs-item {
        width: 100%;
        padding: 5px 0;
    }

    .hs-divider {
        display: none;
    }

    .hostaway-search-btn {
        width: 100%;
        margin-left: 0;
    }

    .hostaway-grid {
        grid-template-columns: 1fr;
    }

    .hd-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 250px;
    }

    .hd-gallery-item:not(.hd-main-img) {
        display: none;
    }

    .hd-main-img {
        grid-column: 1;
        grid-row: 1;
    }

    .hd-content-wrapper {
        flex-direction: column;
    }
}

/* Detail Page Styles */
.hostaway-detail-page {
    font-family: "Inter", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #2d5a49;
}

.hd-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.hd-gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.hd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-main-img {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.hd-more-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hd-content-wrapper {
    display: flex;
    gap: 50px;
    position: relative;
}

.hd-main-content {
    flex: 2;
}

.hd-sidebar {
    flex: 1;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.hd-title {
    font-family: "Georgia", serif;
    font-size: 32px;
    margin-bottom: 10px;
    color: #2d5a49;
}

.hd-subtitle {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.hd-rating {
    color: #ffb400;
    font-weight: bold;
    margin-bottom: 25px;
}

.hd-description {
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 30px;
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.hd-description.expanded {
    max-height: none;
}

.hd-show-more-btn {
    background: white;
    border: 1px solid #2d5a49;
    color: #2d5a49;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 40px;
}

.hd-booking-widget {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background: white;
}

.hd-widget-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.hd-input-box {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 30px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hd-primary-btn {
    background: #005a5a;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: center;
    display: block;
    text-decoration: none;
}

.hd-primary-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.hd-secondary-btn {
    background: white;
    color: #005a5a;
    width: 100%;
    padding: 12px;
    border: 1px solid #005a5a;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    display: block;
    text-decoration: none;
}

.hostaway-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.hostaway-error {
    color: darkred;
    padding: 20px;
    text-align: center;
}

/* Hostaway Calendar Styles */
.hostaway-calendar-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
}

.hc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hc-nav-btn {
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-months-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.hc-month {
    text-align: center;
}

.hc-month-name {
    font-weight: 600;
    margin-bottom: 15px;
}

.hc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
    font-size: 12px;
    color: #888;
}

.hc-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.hc-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    cursor: default;
    position: relative;
}

.hc-day.available {
    background: #e8f0ef;
    color: #2d5a49;
    cursor: pointer;
    font-weight: 500;
}

.hc-day.available:hover {
    background: #2d5a49;
    color: white;
}

.hc-day.unavailable {
    color: #ccc;
    text-decoration: line-through;
}

.hc-day.empty {
    background: transparent;
    cursor: default;
}

@media (max-width: 600px) {
    .hc-months-grid {
        grid-template-columns: 1fr;
    }
}

/* Calendar Date Selection Styles */
.hc-day.selected.start-date,
.hc-day.selected.end-date {
    background: #2d5a49 !important;
    color: white !important;
}

.hc-day.in-range {
    background: #e8f0ef !important;
    color: #2d5a49;
    border-radius: 0;
}

.hc-day.selected.start-date {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.hc-day.selected.end-date {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Disabled Button Style */
.hostaway-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    background: #ccc;
}

/* Lightbox Styles */
.hostaway-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.hostaway-lightbox.active {
    display: flex;
}

.lightbox-content-wrapper {
    position: relative;
    text-align: center;
    width: 90%;
    max-width: 1000px;
}

.lightbox-content {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-nav {
    background: transparent;
    color: white;
    font-size: 30px;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
    z-index: 10001;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    color: #ccc;
    font-size: 14px;
    margin-top: 10px;
    font-family: sans-serif;
}

/* Detail Page - Full Width Content */
.hd-content-wrapper {
    display: block !important;
}

.hd-main-content {
    flex: none !important;
    width: 100% !important;
    margin: 0 auto;
}