/* Hostaway Card - Moonstar Style */

.hostaway-listings {
    display: grid;
    gap: 30px;
    margin: 40px 0;
    grid-template-columns: 1fr; /* Mobile default (1 column) */
}

/* Tablet: 2 Columns */
@media (min-width: 768px) {
    .hostaway-listings {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 Columns */
@media (min-width: 1024px) {
    .hostaway-listings {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hostaway-listing-card.modern-card {
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hostaway-listing-card.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Image */
.hostaway-listing-card.modern-card .listing-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 4/3;
    background: #eee;
    position: relative;
    width: 100%;
}

.hostaway-listing-card.modern-card .listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.hostaway-listing-card.modern-card:hover .listing-image img {
    transform: scale(1.05);
}

/* Header: Title + Price Pill */
.hostaway-listing-card.modern-card .listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.hostaway-listing-card.modern-card .listing-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #1a1a1a;
    flex: 1;
}

.hostaway-listing-card.modern-card .listing-title a {
    text-decoration: none;
    color: inherit;
    box-shadow: none;
}

.hostaway-listing-card.modern-card .listing-price-pill {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 3px;
}

.hostaway-listing-card.modern-card .price-period {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

/* Rating */
.hostaway-listing-card.modern-card .listing-rating {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hostaway-listing-card.modern-card .listing-rating .stars {
    color: #ffd700; /* Gold */
    letter-spacing: 1px;
    font-size: 14px;
}

/* Excerpt */
.hostaway-listing-card.modern-card .listing-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #717171;
    margin-bottom: 16px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 66px; /* Approx 3 lines */
}

/* Location */
.hostaway-listing-card.modern-card .listing-location {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hostaway-listing-card.modern-card .listing-location i {
    color: #aaa;
}

/* Amenities Tags */
.hostaway-listing-card.modern-card .listing-amenities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hostaway-listing-card.modern-card .amenity-tag {
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #484848;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.hostaway-listing-card.modern-card .amenity-tag i {
    color: #717171;
    font-size: 11px;
}

/* Reserve Button */
.hostaway-listing-card.modern-card .listing-reserve-btn {
    display: block;
    background: #000;
    color: #fff !important;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-top: auto;
    font-size: 15px;
}

.hostaway-listing-card.modern-card .listing-reserve-btn:hover {
    opacity: 0.85;
    background: #111;
}

.hostaway-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--hostaway-text-light);
    font-size: 18px;
    background: var(--hostaway-secondary);
    border-radius: var(--hostaway-radius);
}

.w-100{
    width: 100%!important;
}
/* ==========================================================================
   Search Form - Enhanced
   ========================================================================== */

.hostaway-search-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: var(--hostaway-radius);
    box-shadow: var(--hostaway-shadow);
    margin: 40px 0;
    border: 1px solid var(--hostaway-border);
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: end;
}

.search-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--hostaway-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--hostaway-border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--hostaway-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-2px);
}

.search-submit .button {
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
}

/* ==========================================================================
   Booking Form - Enhanced
   ========================================================================== */

.hostaway-booking-form-wrapper {
    background: #fff;
    padding: 0;
    border-radius: var(--hostaway-radius);
    box-shadow: none;
    max-width: 100%;
    margin: 0;
}

.hostaway-booking-form .booking-field {
    margin-bottom: 24px;
}

.hostaway-booking-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--hostaway-text);
}

.hostaway-booking-form input,
.hostaway-booking-form select,
.hostaway-booking-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--hostaway-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.hostaway-booking-form input:focus,
.hostaway-booking-form select:focus,
.hostaway-booking-form textarea:focus {
    outline: none;
    border-color: var(--hostaway-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.booking-price-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 10px;
    margin: 24px 0;
    border: 2px solid var(--hostaway-border);
}

.booking-price-summary h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--hostaway-text);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--hostaway-text);
}

.price-row.total {
    border-top: 2px solid var(--hostaway-border);
    padding-top: 16px;
    margin-top: 16px;
    font-weight: 700;
    font-size: 20px;
    color: var(--hostaway-primary);
}

.booking-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.booking-actions .button {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
}

.booking-message {
    margin-top: 24px;
}

.booking-message.notice {
    padding: 16px 20px;
    border-left: 4px solid;
    border-radius: 8px;
    font-weight: 500;
}

.booking-message.notice-success {
    background: #d4edda;
    border-color: var(--hostaway-success);
    color: #155724;
}

.booking-message.notice-error {
    background: #f8d7da;
    border-color: var(--hostaway-danger);
    color: #721c24;
}

.booking-message.notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* ==========================================================================
   Availability Calendar - Enhanced
   ========================================================================== */

.hostaway-availability-calendar {
    background: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

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

.calendar-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--hostaway-text);
}

.calendar-prev,
.calendar-next {
    background: var(--hostaway-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-prev:hover,
.calendar-next:hover {
    background: var(--hostaway-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.calendar-month {
    border: 2px solid var(--hostaway-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--hostaway-shadow);
}

.calendar-month h4 {
    margin: 0;
    padding: 18px;
    background: linear-gradient(135deg, var(--hostaway-primary) 0%, var(--hostaway-primary-hover) 100%);
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.calendar-grid {
    width: 100%;
    border-collapse: collapse;
}

.calendar-grid th {
    padding: 12px 8px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--hostaway-border);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    color: var(--hostaway-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid td {
    padding: 10px;
    text-align: center;
    border: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-grid td.empty {
    background: #fafafa;
    cursor: default;
}

.calendar-day {
    position: relative;
    border-radius: 6px;
}

/* .calendar-day.available {
    background: #d4edda;
    color: #155724;
} */

.calendar-day.available:hover {
    background: #c3e6cb;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.calendar-day.booked {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

.calendar-day.unavailable {
    background: #e2e3e5;
    color: #6c757d;
    cursor: not-allowed;
}

.day-number {
    display: block;
    padding: 8px;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
    padding: 20px;
    background: var(--hostaway-secondary);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hostaway-text);
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--hostaway-border);
}

.legend-color.available {
    background: #d4edda;
}

.legend-color.booked {
    background: #f8d7da;
}

.legend-color.unavailable {
    background: #e2e3e5;
}

.calendar-loading {
    text-align: center;
    padding: 60px;
    color: var(--hostaway-text-light);
    font-size: 16px;
}

/* ==========================================================================
   Responsive Design - Enhanced
   ========================================================================== */

@media (max-width: 992px) {
    .hostaway-layout-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hostaway-layout-list .hostaway-listing-card {
        grid-template-columns: 1fr;
    }

    .hostaway-layout-list .listing-image img {
        height: 250px;
        min-height: auto;
    }

    .search-fields {
        grid-template-columns: 1fr;
    }

    .booking-actions {
        flex-direction: column;
    }

    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }

    .calendar-body {
        grid-template-columns: 1fr;
    }

    .hostaway-search-form {
        padding: 30px 20px;
    }

    .listing-title {
        font-size: 20px;
    }

    .price-amount {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .listing-content {
        padding: 20px;
    }

    .listing-amenities {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .listing-amenities .amenity {
        width: 100%;
    }

    .price-amount {
        font-size: 22px;
    }

    .hostaway-booking-form-wrapper {
        padding: 0;
    }

    .calendar-grid th,
    .calendar-grid td {
        padding: 6px 3px;
        font-size: 12px;
    }

    .day-number {
        padding: 6px;
    }
}

/* ==========================================================================
   Button Styles - Enhanced
   ========================================================================== */

.button-primary {
    background: linear-gradient(135deg, var(--hostaway-primary) 0%, var(--hostaway-primary-hover) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.button-primary:hover,
.button-primary:focus {
    background: linear-gradient(135deg, var(--hostaway-primary-hover) 0%, #003d5c 100%);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: #fff;
    border: 2px solid var(--hostaway-border);
    color: var(--hostaway-text);
}

.button-secondary:hover,
.button-secondary:focus {
    background-color: var(--hostaway-secondary);
    border-color: var(--hostaway-text);
    transform: translateY(-2px);
}

.button {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.hostaway-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.hostaway-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--hostaway-border);
    border-top-color: var(--hostaway-primary);
    border-radius: 50%;
    animation: hostaway-spin 0.8s linear infinite;
}

@keyframes hostaway-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--hostaway-primary);
    outline-offset: 2px;
}

.calendar-day:focus-visible {
    outline: 2px solid var(--hostaway-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.hostaway-search-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.search-submit .button {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
}

/* ==========================================================================
   Booking Form
   ========================================================================== */

.hostaway-booking-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 30px auto;
}

.hostaway-booking-form .booking-field {
    margin-bottom: 20px;
}

.hostaway-booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.hostaway-booking-form input,
.hostaway-booking-form select,
.hostaway-booking-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.hostaway-booking-form input:focus,
.hostaway-booking-form select:focus,
.hostaway-booking-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.booking-price-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.booking-price-summary h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.price-row.total {
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 16px;
    color: #0073aa;
}

.booking-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.booking-actions .button {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    text-align: center;
}

.booking-message {
    margin-top: 20px;
}

.booking-message.notice {
    padding: 15px;
    border-left: 4px solid;
    border-radius: 4px;
}

.booking-message.notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.booking-message.notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.booking-message.notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* ==========================================================================
   Availability Calendar
   ========================================================================== */

.hostaway-availability-calendar {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

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

.calendar-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.calendar-prev,
.calendar-next {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.calendar-prev:hover,
.calendar-next:hover {
    background: #005177;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.calendar-month {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.calendar-month h4 {
    margin: 0;
    padding: 15px;
    background: #f5f5f5;
    text-align: center;
    font-size: 16px;
    color: #333;
}

.calendar-grid {
    width: 100%;
    border-collapse: collapse;
}

.calendar-grid th {
    padding: 10px 5px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #666;
}

.calendar-grid td {
    padding: 8px;
    text-align: center;
    border: 1px solid #f0f0f0;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.calendar-grid td.empty {
    background: #fafafa;
    cursor: default;
}

.calendar-day {
    position: relative;
}

/* .calendar-day.available {
    background: #d4edda;
} */

.calendar-day.available:hover {
    background: #cbd2cd;
}

.calendar-day.booked {
    background: #f8d7da;
    cursor: not-allowed;
}

.calendar-day.unavailable {
    background: #e2e3e5;
    cursor: not-allowed;
}

.day-number {
    display: block;
    padding: 5px;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.legend-color.available {
    background: #d4edda;
}

.legend-color.booked {
    background: #f8d7da;
}

.legend-color.unavailable {
    background: #e2e3e5;
}

.calendar-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hostaway-layout-list .hostaway-listing-card {
        grid-template-columns: 1fr;
    }

    .hostaway-layout-list .listing-image img {
        height: 250px;
        min-height: auto;
    }

    .search-fields {
        grid-template-columns: 1fr;
    }

    .booking-actions {
        flex-direction: column;
    }

    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }

    .calendar-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .listing-amenities {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-amount {
        font-size: 20px;
    }

    .hostaway-booking-form-wrapper {
        padding: 20px;
    }

    .calendar-grid th,
    .calendar-grid td {
        padding: 5px 2px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.button-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.button-primary:hover,
.button-primary:focus {
    background-color: #005177;
    border-color: #005177;
}

.button-secondary {
    background-color: #fff;
    border-color: #ddd;
    color: #333;
}

.button-secondary:hover,
.button-secondary:focus {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Global Search Form
   ========================================================================== */

.hostaway-global-search-wrapper {
    width: 100%;
}

.hostaway-global-search-container {
    background: #e6e7e9;
    border: 1px solid #DDDDDD;
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    max-width: 100%;
    margin: 0 auto;
}

.hostaway-global-search-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hostaway-search-field {
    flex: 1;
    padding: 10px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 0;
}

.hostaway-search-field label {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 1,
}

.hostaway-search-input {
    height: auto!important;
    border: none!important;
    outline: none!important;
    background: transparent!important;
    font-size: 14px!important;
    color: #717171!important;
    padding: 0!important;
    width: 100%!important;
    font-weight: 400!important;
    box-shadow: none!important;
}

.hostaway-search-input:focus {
    color: #222!important;
}

.hostaway-search-input::placeholder {
    color: #717171!important;
}

.hostaway-search-input option {
    color: #222!important;
}

.hostaway-search-divider {
    border-left: 1px solid #DDDDDD!important;
}

.hostaway-search-button-wrapper {
    padding: 0 8px;
    display: flex;
    align-items: center;
}

.hostaway-search-button {
    border: none;
    border-radius: 50%!important;
    width: 75px;
    height: 75px;
    position: relative;
    left: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s;
    color: white;
    flex-shrink: 0;
}

.hostaway-search-button:hover {
    transform: scale(1.04);
}

.hostaway-search-button:active {
    transform: scale(0.96);
}

.hostaway-search-button svg {
    fill: white;
    stroke: white;
}

/* Guests Selector with Dropdown */
.hostaway-guests-selector {
    position: relative;
    width: 100%;
    height: 50%;
}

.hostaway-guests-display {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #717171;
}

.hostaway-guests-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 280px;
}

.hostaway-guests-dropdown-menu.show {
    display: block;
}

.guests-counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.guests-label {
    font-size: 16px;
    font-weight: 400;
    color: #222;
}

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

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

.guests-btn:hover:not(:disabled) {
    border-color: #222;
    color: #222!important;
    background: white;
}

.guests-btn:disabled {
    border-color: #EBEBEB;
    color: #EBEBEB;
    cursor: not-allowed;
}

.guests-btn svg {
    display: block;
}

.guests-value {
    font-size: 16px;
    font-weight: 400;
    color: #222;
    min-width: 30px;
    text-align: center;
}

/* Location Selector with Dropdown */
.hostaway-location-selector {
    position: relative;
    width: 100%;
    height: 50%;
}

.hostaway-location-display {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #717171;
}

.hostaway-location-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 300px;
    max-width: 400px;
}

.hostaway-location-dropdown-menu.show {
    display: block;
}

.location-search-box {
    padding: 16px;
    border-bottom: 1px solid #EBEBEB;
}

.location-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    outline: none;
    transition: border-color 0.2s;
}

.location-search-input:focus {
    border-color: #222;
}

.location-options-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.location-option {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #222;
    transition: background-color 0.2s;
}

.location-option:hover {
    background-color: #F7F7F7;
}

.location-option:first-child {
    font-weight: 600;
}

/* Scrollbar styling for location dropdown */
.location-options-list::-webkit-scrollbar {
    width: 6px;
}

.location-options-list::-webkit-scrollbar-track {
    background: #F7F7F7;
    border-radius: 3px;
}

.location-options-list::-webkit-scrollbar-thumb {
    background: #DDDDDD;
    border-radius: 3px;
}

.location-options-list::-webkit-scrollbar-thumb:hover {
    background: #B0B0B0;
}

/* Mobile Responsive */
@media (max-width: 880px) {
    .hostaway-global-search-container {
        flex-wrap: wrap;
        border-radius: 32px;
        padding: 8px;
    }

    .hostaway-search-field {
        flex: 1 1 45%;
        min-width: 45%;
    }

    .hostaway-search-field:first-child,
    .hostaway-search-field:nth-child(2) {
        border-bottom: 1px solid #DDDDDD;
    }

    .hostaway-search-divider {
        border-left: none;
    }

    .hostaway-search-field:nth-child(odd) {
        border-right: 1px solid #DDDDDD;
    }

    .hostaway-search-button-wrapper {
        flex: 1 1 100%;
        width: 100%;
        padding: 8px;
    }

    .hostaway-search-button {
        width: 100%;
        border-radius: 32px!important;
        height: 48px;
    }
}

@media (max-width: 640px) {
    .hostaway-global-search-container {
        flex-direction: column;
        border-radius: 16px;
        padding: 4px;
        gap: 4px;
    }

    .hostaway-search-field {
        width: 100%;
        flex: 1 1 auto;
        border-radius: 12px;
        border: none !important;
    }

    .hostaway-search-divider {
        border-left: none;
        border-top: none;
    }

    .hostaway-search-button-wrapper {
        width: 100%;
        padding: 8px;
    }

    .hostaway-search-button {
        width: 100%;
        border-radius: 12px;
        height: 48px;
    }

    .hostaway-guests-dropdown-menu {
        right: auto;
        left: 0;
    }

    .hostaway-location-dropdown-menu {
        left: 0;
        right: auto;
        min-width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
}

/* ==========================================================================
   Search Results Page - Modern Loader & States
   ========================================================================== */

/* Search Summary Header */
.hostaway-search-wrapper-modern {
    animation: fadeInUp 0.4s ease-in;
}

.hostaway-search-summary {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #EBEBEB;
}

.search-summary-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-results-title {
    font-size: 32px;
    font-weight: 600;
    color: #222;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.search-results-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-results-subtitle {
    font-size: 16px;
    color: #717171;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-results-subtitle::before {
    content: "📅";
    font-size: 18px;
}

.search-results-count {
    font-size: 14px;
    color: #222;
    font-weight: 500;
    padding: 6px 16px;
    background: #F7F7F7;
    border-radius: 20px;
}

/* Modern Loading Animation */
.hostaway-loader-modern {
    text-align: center;
    padding: 120px 20px;
    animation: fadeInUp 0.3s ease-in;
}

.loader-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
}

.loader-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loader-circle {
    fill: none;
    stroke: #9BD58E;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: loadingCircle 2s ease-in-out infinite;
}

.loader-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px;
    z-index: 1;
}

.loader-dots .dot {
    width: 12px;
    height: 12px;
    background: #9BD58E;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loader-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loader-title {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
}

.loader-subtitle {
    font-size: 16px;
    color: #717171;
    margin: 0;
}

@keyframes loadingCircle {
    0% {
        stroke-dashoffset: 283;
    }
    50% {
        stroke-dashoffset: 70;
    }
    100% {
        stroke-dashoffset: 283;
    }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

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

/* Modern No Results State */
.hostaway-no-results-modern {
    text-align: center;
    padding: 100px 20px;
    animation: fadeInUp 0.4s ease-in;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    padding: 20px;
    background: #F7F7F7;
    border-radius: 50%;
    color: #717171;
}

.no-results-icon svg {
    width: 100%;
    height: 100%;
}

.hostaway-no-results-modern h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #222;
}

.hostaway-no-results-modern p {
    font-size: 16px;
    color: #717171;
    margin: 0 0 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.btn-back-to-search {
    display: inline-block;
    background: #9BD58E;
    color: #222;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back-to-search:hover {
    background: #7AB86D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 213, 142, 0.3);
}

/* Button Size Modifier - Small */
.btn-secondary.sm,
.btn-primary.sm {
    padding: 8px 16px!important;
    font-size: 14px!important;
    border-radius: 4px!important;
    width: auto!important;
}

/* =================================
   Base Button Styles (Structural Only - Colors from Dynamic CSS)
   ================================= */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 20px 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Full-width button variants */
.booking-card .btn-primary,
.booking-card .btn-secondary,
.inquiry-form-section .btn-primary,
.checkout-form-card .btn-primary,
#inquiry-submit-btn,
#finalize-booking-btn {
    width: 100%;
    margin-bottom: 6px;
}


.checkout-form-card .btn-primary {
    margin-bottom: 16px;
}

/* =================================
   Utility Classes - Layout & Spacing
   ================================= */

/* Flexbox Layouts */
.flex {
    display: flex;
}

.flex-align-center {
    align-items: center;
}

.flex-justify-between {
    justify-content: space-between;
}

.flex-gap-8 {
    display: flex;
    gap: 8px;
}

.flex-baseline {
    align-items: baseline;
}

.flex-1 {
    flex: 1;
}

/* Grid Layouts */
.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-cols-2-gap25 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Spacing Utilities */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.pt-16 { padding-top: 16px; }
.pt-20 { padding-top: 20px; }

/* Border Utilities */
.border-top {
    border-top: 1px solid #ddd;
}

.border-top-ebebeb {
    border-top: 1px solid #ebebeb;
}

.border-bottom {
    border-bottom: 1px solid #eee;
}

.hr-divider {
    border: none;
    border-top: 1px solid #ebebeb;
    margin: 20px 0;
}

.border-radius-8 {
    border-radius: 8px;
}

.border-radius-12 {
    border-radius: 12px;
}

/* Display Utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-14 {
    font-size: 14px;
}

.text-16 {
    font-size: 16px;
}

.font-600 {
    font-weight: 600;
}

.text-color-secondary {
    color: #717171;
}

.text-color-primary {
    color: #222;
}

.text-color-discount {
    color: #008009;
}

.text-underline {
    text-decoration: underline;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.line-height-26 {
    line-height: 26px;
}

/* Width Utilities */
.width-100 {
    width: 100%;
}

/* Background Utilities */
.bg-f7f7f7 {
    background: #f7f7f7;
}

.bg-f7-padding {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 12px;
}

.bg-black {
    background: #000;
}

/* Form Input Utilities */
.booking-input,
.input-default {
    border: 1px solid #b0b0b0;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.input-default:focus,
.booking-input:focus {
    outline: none;
    border-color: #222;
}

.input-flex-1 {
    flex: 1;
    border: 1px solid #b0b0b0;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.textarea-default {
    border: 1px solid #b0b0b0;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    height: 80px;
    margin-bottom: 12px;
}


.coupon-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.coupon-message {
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.coupon-input-wrapper {
    display: flex;
    gap: 8px;
}

/* Price Summary */
.summary-row {
    display: flex;
    justify-content: space-between;
}

.summary-label {
    font-size: 16px;
}

.summary-value {
    font-size: 16px;
}

.summary-total .summary-row .summary-label {
    font-weight: 700;
    font-size: 20px;
}
.summary-total .summary-row .summary-value {
    font-weight: 700;
    font-size: 20px;
}

/* Other Fees Row (not included in total) */
.other-fee-row {
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    margin-top: 10px;
    color: #666;
}

/* Section Titles */
.section-title,
.hostaway-title,
.section-heading {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.section-heading-h2 {
    margin-bottom: 24px;
}

/* Contact Fields */
.contact-fields-section {
    display: none;
    margin-top: 16px;
    border-top: 1px solid #ddd;
    padding-top: 16px;
}

/* Map Container */
.map-container {
    height: 250px;
    background: #eee;
    border-radius: 12px;
    margin-top: 24px;
    position: relative;
}

.map-iframe {
    border: 0;
    border-radius: 12px;
}

/* Description Styles */
.description-content {
    font-size: 16px;
    line-height: 26px;
}

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

/* Amenity Items */
.amenity-item-padding {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.amenity-item-mb {
    margin-bottom: 8px;
}

/* Rating Display */
.rating-display {
    margin-top: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Misc */
.relative {
    position: relative;
}

.ml-4 {
    margin-left: 4px;
}

.ml-12 {
    margin-left: 12px;
}

/* Contact Fields Section */
.contact-fields-section {
    display: none;
    margin-top: 16px;
    border-top: 1px solid #ddd;
    padding-top: 16px;
}

.section-title {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.section-heading-h2 {
    margin-bottom: 24px;
}

/* Description */
.description-truncated {
    margin-top: 16px;
}

.description-content {
    font-size: 16px;
    line-height: 26px;
}

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

/* Gallery Grid */
.gallery-grid-relative {
    position: relative;
}

.gallery-item-video-bg {
    background: #000;
}

.gallery-item-placeholder {
    background: #f7f7f7;
}

.video-full-size {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rating Section */
.rating-section {
    margin-top: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.review-link-underline {
    text-decoration: underline;
    margin-left: 4px;
}

/* Amenities List */
.amenity-item-spacing {
    margin-bottom: 8px;
}

.amenity-item-border {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

/* Booking Widget Loading */
.loading-placeholder {
    padding: 20px;
    background: #f7f7f7;
    width: 100%;
    text-align: center;
    border-radius: 12px;
}

.date-instruction {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-instruction-text {
    font-size: 14px;
    color: #717171;
}

/* Grid Layouts */
.grid-cols-2-gap24 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Map Container */
.map-container-large {
    height: 250px;
    background: #eee;
    border-radius: 12px;
    margin-top: 24px;
    position: relative;
}

.map-iframe-rounded {
    border: 0;
    border-radius: 12px;
}

/* Calendar Widget */
.calendar-wrapper-visible {
    display: block;
    overflow-x: visible;
}

/* Map Placeholders */
.map-placeholder {
    height: 400px;
    background: #f0f0f0;
    border-radius: 8px;
}

.map-placeholder-text {
    text-align: center;
    padding-top: 180px;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-results-title {
        font-size: 24px;
    }

    .search-results-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .loader-animation {
        width: 100px;
        height: 100px;
    }

    .loader-title {
        font-size: 20px;
    }

    .hostaway-no-results-modern {
        padding: 60px 20px;
    }

    .hostaway-no-results-modern h3 {
        font-size: 22px;
    }
}

/* ========================================
   Toast Notification System
   ======================================== */

.hostaway-toast-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: 400px;
    max-width: calc(100vw - 48px);
}

/* Position variants */
.hostaway-toast-container.htc-top-right    { top: 24px;    right: 24px; }
.hostaway-toast-container.htc-top-left     { top: 24px;    left: 24px; }
.hostaway-toast-container.htc-top-center   { top: 24px;    left: 50%; transform: translateX(-50%); }
.hostaway-toast-container.htc-bottom-right { bottom: 24px; right: 24px; flex-direction: column-reverse; }
.hostaway-toast-container.htc-bottom-left  { bottom: 24px; left: 24px;  flex-direction: column-reverse; }
.hostaway-toast-container.htc-bottom-center{ bottom: 24px; left: 50%; transform: translateX(-50%); flex-direction: column-reverse; }

/* Default (fallback) */
.hostaway-toast-container:not([class*="htc-"]) { top: 24px; right: 24px; }

.hostaway-toast {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    pointer-events: all;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.21, 1.02, 0.73, 1), opacity 0.35s ease;
    min-height: 76px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Slide directions per container position */
.hostaway-toast-container.htc-top-right    .hostaway-toast,
.hostaway-toast-container.htc-bottom-right .hostaway-toast,
.hostaway-toast-container:not([class*="htc-"]) .hostaway-toast {
    transform: translateX(120%);
}
.hostaway-toast-container.htc-top-left    .hostaway-toast,
.hostaway-toast-container.htc-bottom-left .hostaway-toast {
    transform: translateX(-120%);
}
.hostaway-toast-container.htc-top-center    .hostaway-toast {
    transform: translateY(-24px);
}
.hostaway-toast-container.htc-bottom-center .hostaway-toast {
    transform: translateY(24px);
}

.hostaway-toast.is-visible {
    transform: translate(0, 0) !important;
    opacity: 1;
}

.hostaway-toast.is-hiding {
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
/* Restore slide-out direction on hide */
.hostaway-toast-container.htc-top-right    .hostaway-toast.is-hiding,
.hostaway-toast-container.htc-bottom-right .hostaway-toast.is-hiding,
.hostaway-toast-container:not([class*="htc-"]) .hostaway-toast.is-hiding {
    transform: translateX(120%);
}
.hostaway-toast-container.htc-top-left    .hostaway-toast.is-hiding,
.hostaway-toast-container.htc-bottom-left .hostaway-toast.is-hiding {
    transform: translateX(-120%);
}
.hostaway-toast-container.htc-top-center    .hostaway-toast.is-hiding {
    transform: translateY(-24px);
}
.hostaway-toast-container.htc-bottom-center .hostaway-toast.is-hiding {
    transform: translateY(24px);
}

/* Colored left border */
.hostaway-toast__border {
    width: 5px;
    align-self: stretch;
    flex-shrink: 0;
    border-radius: 0;
}

.hostaway-toast--success .hostaway-toast__border { background: #2ecc71; }
.hostaway-toast--error   .hostaway-toast__border { background: #f05252; }
.hostaway-toast--warning .hostaway-toast__border { background: #f59e0b; }
.hostaway-toast--info    .hostaway-toast__border { background: #3b82f6; }

/* Icon circle */
.hostaway-toast__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 14px;
    border: 2px solid;
}

.hostaway-toast--success .hostaway-toast__icon { color: #2ecc71; border-color: #2ecc71; }
.hostaway-toast--error   .hostaway-toast__icon { color: #f05252; border-color: #f05252; }
.hostaway-toast--warning .hostaway-toast__icon { color: #f59e0b; border-color: #f59e0b; }
.hostaway-toast--info    .hostaway-toast__icon { color: #3b82f6; border-color: #3b82f6; }

.hostaway-toast__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Text content */
.hostaway-toast__content {
    flex: 1;
    padding: 16px 8px 16px 0;
    min-width: 0;
}

.hostaway-toast__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.hostaway-toast__message {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
}

/* Close button */
.hostaway-toast__close {
    background: none !important;
    border: none !important;
    border-left: 1px solid #f3f4f6 !important;
    color: #9ca3af !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    cursor: pointer !important;
    padding: 0 18px !important;
    align-self: stretch !important;
    display: flex !important;
    align-items: center !important;
    transition: color 0.2s !important;
    flex-shrink: 0 !important;
    text-transform: uppercase !important;
    font-family: inherit !important;
    line-height: 1 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.hostaway-toast__close:hover {
    color: #374151 !important;
    background: none !important;
}

@media (max-width: 480px) {
    .hostaway-toast-container {
        top: 16px !important;
        bottom: auto !important;
        right: 16px !important;
        left: 16px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        flex-direction: column !important;
    }
    .hostaway-toast-container.htc-bottom-right,
    .hostaway-toast-container.htc-bottom-left,
    .hostaway-toast-container.htc-bottom-center {
        top: 16px !important;
        bottom: auto !important;
    }
}


/* ========================================
   Pending Payment Notification Alert
   ======================================== */
.hostaway-payment-alert {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #f3f3f3 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    max-width: 420px;
    min-width: 420px;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    opacity: 0;
    overflow: hidden;
    padding: 10px 10px;
}

/* Hide notification when explicitly hidden */
.hostaway-payment-alert[style*="display: none"],
.hostaway-payment-alert[style*="display:none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide notification inside modals and iframes */
.payment-modal .hostaway-payment-alert,
.payment-modal-content .hostaway-payment-alert,
iframe .hostaway-payment-alert {
    display: none !important;
    visibility: hidden !important;
}

.hostaway-payment-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.hostaway-payment-alert.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.hostaway-payment-alert__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%!important;
    border: none;
    background: transparent!important;
    color: #222222!important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0!important;
    z-index: 10;
}

.hostaway-payment-alert__close svg {
    width: 18px;
    height: 18px;
}

.hostaway-payment-alert__close:hover {
    color: #fff;
    transform: scale(1.1);
}

.hostaway-payment-alert__close:active {
    transform: scale(0.9);
}

.hostaway-payment-alert__content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    margin-bottom: 16px;
}

.hostaway-payment-alert__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #E31A34!important;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hostaway-payment-alert__icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.hostaway-payment-alert__text {
    flex: 1;
    min-width: 0;
    padding-right: 30px;
}

.hostaway-payment-alert__title {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.hostaway-payment-alert__subtitle {
    font-size: 13px;
    color: #222222;
    line-height: 1.4;
}

.hostaway-payment-alert__actions {
    display: flex;
    justify-content: flex-end;
}

.hostaway-payment-alert__btn {
    font-size: 14px!important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hostaway-payment-alert__btn svg {
    width: 18px;
    height: 18px;
}

.hostaway-payment-alert__btn--primary {
    background: #fff;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hostaway-payment-alert__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hostaway-payment-alert__btn--primary:active {
    transform: translateY(0);
}

/* Payment Modal (Global Notification Version) */
.hostaway-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hostaway-payment-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
}

.hostaway-payment-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hostaway-payment-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #ebebeb;
}

.hostaway-payment-modal__header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.hostaway-payment-modal__close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #717171;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.hostaway-payment-modal__close:hover {
    color: #222;
}

.hostaway-payment-modal__body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

#hostaway-payment-iframe-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

#hostaway-payment-iframe-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.hostaway-payment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.hostaway-payment-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top-color: #E61E4D;
    border-radius: 50%;
    animation: hostaway-payment-spin 1s linear infinite;
}

@keyframes hostaway-payment-spin {
    to { transform: rotate(360deg); }
}

.hostaway-payment-loading p {
    margin-top: 20px;
    font-size: 16px;
    color: #717171;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hostaway-payment-alert {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        border-radius: 14px;
        padding: 18px 20px;
    }

    .hostaway-payment-alert__close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
    }

    .hostaway-payment-alert__close svg {
        width: 16px;
        height: 16px;
    }

    .hostaway-payment-alert__content {
        gap: 14px;
        margin-bottom: 14px;
    }

    .hostaway-payment-alert__icon {
        width: 44px;
        height: 44px;
    }

    .hostaway-payment-alert__icon svg {
        width: 24px;
        height: 24px;
    }

    .hostaway-payment-alert__title {
        font-size: 15px;
    }

    .hostaway-payment-alert__subtitle {
        font-size: 12px;
    }

    .hostaway-payment-alert__actions {
        justify-content: stretch;
    }

    .hostaway-payment-alert__btn {
        padding: 11px 20px;
        font-size: 13px;
        flex: 1;
        justify-content: center;
    }

    .hostaway-payment-alert__btn svg {
        width: 16px;
        height: 16px;
    }

    .hostaway-payment-modal__content {
        width: 95%;
        max-height: 95vh;
    }

    #hostaway-payment-iframe-container iframe {
        height: 500px;
    }
}