/**
 * Guesty Public Styles — Mobile First
 *
 * Structural CSS only. Visual customization is done via Elementor.
 * BEM naming convention for easy override.
 *
 * @package Guesty_Booking_Engine
 * @since 1.0.0
 */

/* ==========================================================
   VARIABLES
   ========================================================== */
:root {
    --guesty-primary: #2A9D8F;
    --guesty-primary-hover: #238A7E;
    --guesty-text: #333;
    --guesty-text-light: #777;
    --guesty-border: #e0e0e0;
    --guesty-bg: #fff;
    --guesty-bg-light: #f7f7f7;
    --guesty-radius: 8px;
    --guesty-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --guesty-font: inherit;
    --guesty-transition: 0.2s ease;
}

/* ==========================================================
   SEARCH BAR — [guesty_search_bar]
   Mobile: stacked / Desktop: inline row
   ========================================================== */
.guesty-search-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--guesty-bg);
    border-radius: var(--guesty-radius);
    box-shadow: var(--guesty-shadow);
    font-family: var(--guesty-font);
    max-width: 1200px;
    margin: 0 auto;
}

.guesty-search-bar__field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--guesty-border);
    border-radius: 6px;
    background: var(--guesty-bg);
    min-height: 48px;
    position: relative;
}

.guesty-search-bar__icon {
    flex-shrink: 0;
    color: var(--guesty-text-light);
}

.guesty-search-bar__field select,
.guesty-search-bar__field input {
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--guesty-text);
    width: 100%;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.guesty-search-bar__field select {
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.guesty-search-bar__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--guesty-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--guesty-transition);
    font-family: inherit;
    min-height: 48px;
    white-space: nowrap;
}

.guesty-search-bar__button:hover {
    background: var(--guesty-primary-hover);
}

.guesty-search-bar__button svg {
    flex-shrink: 0;
}

/* ── Mode Selector ── */
.guesty-search-bar__mode {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--guesty-border);
    border-radius: 6px;
    background: var(--guesty-bg);
    min-height: 48px;
    flex-shrink: 0;
}

.guesty-search-bar__mode-select {
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--guesty-text);
    outline: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    min-width: 70px;
}

/* ── Field Groups ── */
.guesty-search-bar__fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Transparent variant (for hero sections) */
.guesty-search-bar--transparent {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.guesty-search-bar--dark {
    background: #1a1a1a;
    --guesty-border: #444;
    --guesty-text: #fff;
    --guesty-text-light: #aaa;
}

.guesty-search-bar--dark .guesty-search-bar__field {
    background: #2a2a2a;
}

.guesty-search-bar--dark .guesty-search-bar__mode {
    background: #2a2a2a;
}

.guesty-search-bar--dark .guesty-search-bar__mode-select {
    color: var(--guesty-text);
}

/* ── Tablet: 2-column ── */
@media (min-width: 600px) {
    .guesty-search-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    .guesty-search-bar__mode {
        flex: 0 0 auto;
    }
    .guesty-search-bar__fields {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .guesty-search-bar__field {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }
    .guesty-search-bar__button {
        flex: 0 0 auto;
    }
}

/* ── Desktop: single row ── */
@media (min-width: 960px) {
    .guesty-search-bar {
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        padding: 6px;
        border-radius: 50px;
        border: 1px solid var(--guesty-border);
    }

    /* All inner elements: no individual borders */
    .guesty-search-bar__mode,
    .guesty-search-bar__field {
        border: none;
        border-radius: 0;
        border-right: 1px solid var(--guesty-border);
    }

    .guesty-search-bar__mode {
        padding: 10px 14px;
        min-width: 100px;
    }
    .guesty-search-bar__mode-select {
        font-size: 15px;
    }

    .guesty-search-bar__fields {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
    }
    .guesty-search-bar__field {
        flex: 1 1 0;
        min-width: 0;
    }

    /* Last field before button: keep right border as separator */
    .guesty-search-bar__field:last-child {
        border-right: 1px solid var(--guesty-border);
    }

    .guesty-search-bar__button {
        border: none;
        border-radius: 0 50px 50px 0;
        padding: 14px 32px;
    }
}

/* ==========================================================
   ADVANCED SEARCH — [guesty_search]
   ========================================================== */
.guesty-search {
    font-family: var(--guesty-font);
}

.guesty-search form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.guesty-search__field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--guesty-text);
}

.guesty-search__field select,
.guesty-search__field input {
    padding: 10px 12px;
    border: 1px solid var(--guesty-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--guesty-text);
    background: var(--guesty-bg);
}

.guesty-search__range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guesty-search__range-inputs input {
    flex: 1;
    min-width: 0;
}

.guesty-search__range-separator {
    color: var(--guesty-text-light);
}

.guesty-search__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 4px;
}

.guesty-search__button {
    padding: 10px 24px;
    background: var(--guesty-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--guesty-transition);
    font-family: inherit;
}

.guesty-search__button:hover {
    background: var(--guesty-primary-hover);
}

.guesty-search__clear {
    font-size: 13px;
    color: var(--guesty-text-light);
    text-decoration: none;
}

.guesty-search__clear:hover {
    color: var(--guesty-text);
}

/* Horizontal layout */
.guesty-search--horizontal form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
}

.guesty-search--horizontal .guesty-search__field {
    flex: 1 1 150px;
}

/* ==========================================================
   LISTINGS GRID — [guesty_listings]
   ========================================================== */
.guesty-listings {
    font-family: var(--guesty-font);
}

.guesty-listings__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.guesty-listings__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--guesty-text-light);
}

/* Card */
.guesty-card {
    border-radius: var(--guesty-radius);
    overflow: hidden;
    box-shadow: var(--guesty-shadow);
    background: var(--guesty-bg);
    transition: box-shadow var(--guesty-transition), transform var(--guesty-transition);
}

.guesty-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.guesty-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.guesty-card__image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: var(--guesty-bg-light);
}

.guesty-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guesty-card__no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--guesty-text-light);
    font-size: 14px;
}

.guesty-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.guesty-card__content {
    padding: 14px 16px 16px;
}

.guesty-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--guesty-text);
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guesty-card__location {
    font-size: 13px;
    color: var(--guesty-text-light);
    margin: 0 0 8px;
}

.guesty-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--guesty-text-light);
    margin-bottom: 10px;
}

.guesty-card__meta-sep {
    color: var(--guesty-border);
}

.guesty-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guesty-card__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--guesty-text);
}

.guesty-card__price small {
    font-weight: 400;
    font-size: 13px;
    color: var(--guesty-text-light);
}

.guesty-card__rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 600;
    color: var(--guesty-text);
}

.guesty-card__rating svg {
    color: #F5A623;
}

.guesty-card__rating small {
    font-weight: 400;
    font-size: 12px;
    color: var(--guesty-text-light);
}

/* Responsive grid columns */
@media (min-width: 600px) {
    .guesty-listings--cols-2 .guesty-listings__grid,
    .guesty-listings--cols-3 .guesty-listings__grid,
    .guesty-listings--cols-4 .guesty-listings__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .guesty-listings--cols-3 .guesty-listings__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .guesty-listings--cols-4 .guesty-listings__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Pagination */
.guesty-listings__pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 0 0;
}

.guesty-pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--guesty-text);
    text-decoration: none;
    border: 1px solid var(--guesty-border);
    transition: all var(--guesty-transition);
}

.guesty-pagination__item:hover {
    border-color: var(--guesty-primary);
    color: var(--guesty-primary);
}

.guesty-pagination__item--active {
    background: var(--guesty-primary);
    color: #fff;
    border-color: var(--guesty-primary);
}

/* ==========================================================
   CALENDAR — [guesty_calendar]
   ========================================================== */
.guesty-calendar {
    font-family: var(--guesty-font);
}

.guesty-calendar__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    color: var(--guesty-text-light);
    font-size: 14px;
}

.guesty-calendar__months {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .guesty-calendar__months {
        grid-template-columns: repeat(2, 1fr);
    }
}

.guesty-calendar__month {
    border: 1px solid var(--guesty-border);
    border-radius: var(--guesty-radius);
    overflow: hidden;
}

.guesty-calendar__month-header {
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 15px;
    background: var(--guesty-bg-light);
    color: var(--guesty-text);
}

.guesty-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 8px 4px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--guesty-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guesty-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 4px 8px;
    gap: 2px;
}

.guesty-calendar__day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 13px;
    border-radius: 4px;
    min-width: 0;
    touch-action: manipulation;
}

.guesty-calendar__day--available {
    color: var(--guesty-text);
    cursor: default;
}

.guesty-calendar__day--unavailable {
    color: #ccc;
    text-decoration: line-through;
    cursor: default;
}

.guesty-calendar__day--today {
    font-weight: 700;
    background: var(--guesty-bg-light);
}

.guesty-calendar__day--past {
    color: #ddd;
}

.guesty-calendar__day--empty {
    /* spacer cells */
}

.guesty-calendar__legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 16px 0 0;
    font-size: 13px;
}

.guesty-calendar__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guesty-calendar__legend-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.guesty-calendar__legend-item--available::before {
    background: var(--guesty-bg);
    border: 1px solid var(--guesty-border);
}

.guesty-calendar__legend-item--unavailable::before {
    background: #f0f0f0;
    border: 1px solid #ddd;
}

/* ==========================================================
   REVIEWS — [guesty_reviews]
   ========================================================== */
.guesty-reviews {
    font-family: var(--guesty-font);
}

.guesty-reviews__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--guesty-border);
}

.guesty-reviews__avg {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--guesty-text);
}

.guesty-reviews__avg svg {
    color: #F5A623;
}

.guesty-reviews__count {
    font-size: 14px;
    color: var(--guesty-text-light);
}

.guesty-reviews__empty {
    color: var(--guesty-text-light);
    font-style: italic;
}

.guesty-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guesty-review {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--guesty-border);
}

.guesty-review:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.guesty-review__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.guesty-review__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.guesty-review__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--guesty-primary);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.guesty-review__info {
    flex: 1;
    min-width: 0;
}

.guesty-review__name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--guesty-text);
}

.guesty-review__date {
    display: block;
    font-size: 12px;
    color: var(--guesty-text-light);
}

.guesty-review__channel {
    text-transform: capitalize;
}

.guesty-review__rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 600;
    color: var(--guesty-text);
    margin-left: auto;
}

.guesty-review__rating svg {
    color: #F5A623;
}

.guesty-review__comment {
    font-size: 14px;
    line-height: 1.6;
    color: var(--guesty-text);
    margin: 0;
}

.guesty-review__reply {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--guesty-bg-light);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--guesty-text);
}

.guesty-review__reply strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--guesty-text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.guesty-review__reply p {
    margin: 0;
}

/* ==========================================================
   SHARED UTILITIES
   ========================================================== */
.guesty-error {
    color: #d63638;
    font-size: 14px;
    padding: 12px;
    background: #fef0f0;
    border-radius: 6px;
}

.guesty-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--guesty-border);
    border-top-color: var(--guesty-primary);
    border-radius: 50%;
    animation: guesty-spin 0.6s linear infinite;
}

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

/* Flatpickr overrides */
.flatpickr-calendar {
    font-family: var(--guesty-font) !important;
}

/* ==========================================================
   QUOTE FORM — [guesty_quote_form]
   ========================================================== */
.guesty-quote {
    font-family: var(--guesty-font);
    border: 1px solid var(--guesty-border);
    border-radius: var(--guesty-radius);
    padding: 20px;
    background: var(--guesty-bg);
}

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

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

.guesty-quote__field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--guesty-text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.guesty-quote__field input,
.guesty-quote__field select {
    padding: 10px 12px;
    border: 1px solid var(--guesty-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.guesty-quote__calculate-btn,
.guesty-quote__reserve-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--guesty-transition);
}

.guesty-quote__calculate-btn {
    background: var(--guesty-primary);
    color: #fff;
}

.guesty-quote__calculate-btn:hover {
    background: var(--guesty-primary-hover);
}

.guesty-quote__reserve-btn {
    background: #222;
    color: #fff;
    display: none;
    margin-top: 12px;
}

.guesty-quote__reserve-btn:hover {
    background: #000;
}

.guesty-quote__result {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--guesty-border);
}

.guesty-quote__loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--guesty-text-light);
    font-size: 14px;
}

.guesty-quote__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guesty-quote__item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--guesty-text);
}

.guesty-quote__item--discount {
    color: #00a32a;
}

.guesty-quote__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--guesty-text);
    font-size: 16px;
}

.guesty-quote__total strong {
    font-size: 20px;
}

.guesty-quote__coupon {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.guesty-quote__coupon input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--guesty-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    text-transform: uppercase;
}

.guesty-quote__coupon-btn {
    padding: 8px 16px;
    background: var(--guesty-bg-light);
    border: 1px solid var(--guesty-border);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.guesty-quote__coupon-btn:hover {
    background: var(--guesty-border);
}

.guesty-quote__base-price {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--guesty-text-light);
}

.guesty-quote__base-price strong {
    color: var(--guesty-text);
    font-size: 15px;
}

.guesty-quote__error {
    background: #fef0f0;
    color: #d63638;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 12px;
}

/* ==========================================================
   CHECKOUT — [guesty_checkout]
   ========================================================== */
.guesty-checkout {
    font-family: var(--guesty-font);
    max-width: 640px;
    margin: 0 auto;
}

.guesty-checkout h3 {
    font-size: 18px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--guesty-border);
    color: var(--guesty-text);
}

.guesty-checkout__summary,
.guesty-checkout__guest,
.guesty-checkout__payment,
.guesty-checkout__policies {
    margin-bottom: 28px;
}

.guesty-checkout__summary-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--guesty-text-light);
    padding: 12px 0;
}

.guesty-checkout__fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 480px) {
    .guesty-checkout__fields {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .guesty-checkout__field--half {
        flex: 1 1 calc(50% - 7px);
    }
    .guesty-checkout__field {
        flex: 1 1 100%;
    }
}

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

.guesty-checkout__field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--guesty-text);
}

.guesty-checkout__field input {
    padding: 11px 14px;
    border: 1px solid var(--guesty-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--guesty-transition);
}

.guesty-checkout__field input:focus {
    outline: none;
    border-color: var(--guesty-primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

/* Stripe Element container */
.guesty-checkout__stripe-element {
    padding: 14px;
    border: 1px solid var(--guesty-border);
    border-radius: 6px;
    background: var(--guesty-bg);
    transition: border-color var(--guesty-transition);
    min-height: 44px;
}

.guesty-checkout__stripe-element.StripeElement--focus {
    border-color: var(--guesty-primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.guesty-checkout__stripe-element.StripeElement--invalid {
    border-color: #d63638;
}

.guesty-checkout__stripe-errors {
    color: #d63638;
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
}

.guesty-checkout__payment-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--guesty-text-light);
    margin: 0 0 14px;
}

.guesty-checkout__payment-info svg {
    flex-shrink: 0;
    color: #00a32a;
}

/* Policies / Checkboxes */
.guesty-checkout__policies {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guesty-checkout__checkbox,
.guesty-checkout__radio {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
}

.guesty-checkout__checkbox input,
.guesty-checkout__radio input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--guesty-primary);
}

.guesty-checkout__checkbox a {
    color: var(--guesty-primary);
    text-decoration: underline;
}

/* Booking type selector */
.guesty-checkout__booking-type {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px;
    background: var(--guesty-bg-light);
    border-radius: 6px;
}

/* Submit */
.guesty-checkout__actions {
    margin-top: 24px;
}

.guesty-checkout__submit {
    width: 100%;
    padding: 16px;
    background: var(--guesty-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--guesty-transition), opacity var(--guesty-transition);
}

.guesty-checkout__submit:hover:not(:disabled) {
    background: var(--guesty-primary-hover);
}

.guesty-checkout__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guesty-checkout__processing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: var(--guesty-text-light);
    font-size: 15px;
}

.guesty-checkout__error {
    background: #fef0f0;
    color: #d63638;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 16px;
}

/* ==========================================================
   CONFIRMATION — [guesty_booking_confirmation]
   ========================================================== */
.guesty-confirmation {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: var(--guesty-font);
}

.guesty-confirmation__icon {
    color: #00a32a;
    margin-bottom: 16px;
}

.guesty-confirmation__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--guesty-text);
    margin: 0 0 20px;
}

.guesty-confirmation__code {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: var(--guesty-bg-light);
    border: 2px dashed var(--guesty-border);
    border-radius: var(--guesty-radius);
    padding: 16px 32px;
    margin-bottom: 24px;
}

.guesty-confirmation__code-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--guesty-text-light);
}

.guesty-confirmation__code-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--guesty-text);
    letter-spacing: 2px;
}

.guesty-confirmation__details {
    text-align: left;
    margin: 20px auto;
    max-width: 300px;
}

.guesty-confirmation__detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--guesty-border);
    font-size: 14px;
}

.guesty-confirmation__detail-label {
    color: var(--guesty-text-light);
}

.guesty-confirmation__status--confirmed {
    color: #00a32a;
    font-weight: 600;
}

.guesty-confirmation__status--reserved {
    color: #dba617;
    font-weight: 600;
}

.guesty-confirmation__message {
    color: var(--guesty-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}

/* ==========================================================
   GUEST PORTAL — [guesty_guest_portal]
   ========================================================== */
.guesty-portal {
    font-family: var(--guesty-font);
    max-width: 800px;
    margin: 0 auto;
}

.guesty-portal__header {
    margin-bottom: 24px;
}

.guesty-portal__header h2 {
    font-size: 22px;
    margin: 0 0 4px;
    color: var(--guesty-text);
}

.guesty-portal__subtitle {
    color: var(--guesty-text-light);
    font-size: 14px;
    margin: 0;
}

/* Login prompt */
.guesty-portal--login .guesty-portal__login-prompt {
    text-align: center;
    padding: 48px 24px;
    background: var(--guesty-bg-light);
    border-radius: var(--guesty-radius);
}

.guesty-portal__login-prompt svg {
    color: var(--guesty-text-light);
    margin-bottom: 12px;
}

.guesty-portal__login-prompt h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--guesty-text);
}

.guesty-portal__login-prompt p {
    margin: 0 0 20px;
    color: var(--guesty-text-light);
    font-size: 14px;
}

.guesty-portal__login-btn,
.guesty-portal__browse-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--guesty-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: background var(--guesty-transition);
}

.guesty-portal__login-btn:hover,
.guesty-portal__browse-btn:hover {
    background: var(--guesty-primary-hover);
    color: #fff;
}

/* Empty state */
.guesty-portal__empty {
    text-align: center;
    padding: 40px 24px;
    background: var(--guesty-bg-light);
    border-radius: var(--guesty-radius);
}

.guesty-portal__empty svg {
    color: var(--guesty-text-light);
    margin-bottom: 12px;
}

.guesty-portal__empty p {
    margin: 0 0 20px;
    color: var(--guesty-text-light);
}

/* Reservation list */
.guesty-portal__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guesty-portal__reservation {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--guesty-border);
    border-radius: var(--guesty-radius);
    background: var(--guesty-bg);
    transition: box-shadow var(--guesty-transition);
}

.guesty-portal__reservation:hover {
    box-shadow: var(--guesty-shadow);
}

.guesty-portal__reservation-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
}

.guesty-portal__reservation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guesty-portal__reservation-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guesty-portal__reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.guesty-portal__reservation-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--guesty-text);
    text-decoration: none;
    line-height: 1.3;
}

.guesty-portal__reservation-title:hover {
    color: var(--guesty-primary);
}

.guesty-portal__status {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.guesty-portal__status--confirmed {
    background: #edfaef;
    color: #00a32a;
}

.guesty-portal__status--reserved {
    background: #fef8e7;
    color: #b36d00;
}

.guesty-portal__status--inquiry {
    background: #f0f6fc;
    color: #2271b1;
}

.guesty-portal__status--canceled {
    background: #fef0f0;
    color: #d63638;
}

.guesty-portal__reservation-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--guesty-text-light);
}

.guesty-portal__detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.guesty-portal__detail svg {
    flex-shrink: 0;
}

.guesty-portal__confirmation-code {
    font-size: 12px;
    color: var(--guesty-text-light);
    margin-top: 2px;
}

.guesty-portal__confirmation-code strong {
    color: var(--guesty-text);
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* Responsive: stack on mobile */
@media (max-width: 599px) {
    .guesty-portal__reservation {
        flex-direction: column;
    }

    .guesty-portal__reservation-image {
        width: 100%;
        height: 160px;
    }

    .guesty-portal__reservation-header {
        flex-direction: column;
    }
}

/* ==========================================================
   GALLERY — [guesty_gallery]
   ========================================================== */
.guesty-gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.guesty-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
}

.guesty-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guesty-gallery__item:hover .guesty-gallery__img {
    transform: scale(1.03);
}

.guesty-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    pointer-events: none;
}

@media (min-width: 480px) {
    .guesty-gallery--cols-2 .guesty-gallery__grid,
    .guesty-gallery--cols-3 .guesty-gallery__grid,
    .guesty-gallery--cols-4 .guesty-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .guesty-gallery--cols-3 .guesty-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .guesty-gallery--cols-4 .guesty-gallery__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Lightbox */
.guesty-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guesty-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.guesty-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.guesty-lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.guesty-lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 4px 12px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 2;
}

.guesty-lightbox__close:hover {
    opacity: 1;
}

.guesty-lightbox__prev,
.guesty-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.2s;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guesty-lightbox__prev { left: -60px; }
.guesty-lightbox__next { right: -60px; }

.guesty-lightbox__prev:hover,
.guesty-lightbox__next:hover {
    background: rgba(255,255,255,0.3);
}

.guesty-lightbox__caption {
    color: #ccc;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.guesty-lightbox__counter {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* Lightbox mobile: arrows inside viewport */
@media (max-width: 768px) {
    .guesty-lightbox__prev { left: 8px; }
    .guesty-lightbox__next { right: 8px; }
    .guesty-lightbox__close { top: 8px; right: 8px; }
}
