/* Gnist Booking Frontend Styles - Strawberry Style */

/* Import Google Sans */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

/* Main wrapper with Google Sans font */
.gnist-booking-wrapper {
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Messages */
.gnist-booking-messages {
    margin-bottom: 15px;
}

.gnist-message {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.gnist-message.success {
    background-color: #d4edda;
    color: #155724;
}

.gnist-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Compact booking card */
.gnist-booking-compact {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Price display */
.gnist-compact-header {
    margin-bottom: 20px;
}

.gnist-price-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.gnist-price-amount {
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

.gnist-price-label {
    font-size: 16px;
    color: #717171;
}

/* Compact grid */
.gnist-compact-grid {
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.gnist-compact-cell {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #b0b0b0;
    background: #fff;
}

.gnist-compact-cell:last-child {
    border-bottom: none;
}

.gnist-compact-cell:hover {
    background-color: #f7f7f7;
}

.gnist-compact-cell label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 4px;
}

.gnist-compact-value {
    font-size: 14px;
    color: #222;
}

.gnist-compact-value.empty {
    color: #717171;
}

/* Reserve button */
.gnist-book-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22314E 0%, #2F4266 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gnist-book-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2F4266 0%, #3D5380 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 49, 78, 0.3);
}

.gnist-book-button:disabled {
    background: #22314E;
    opacity: 1;
    cursor: not-allowed;
    transform: none;
}

/* Total summary */
.gnist-total-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.gnist-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #222;
}

.gnist-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 8px;
    border-top: 1px solid #ddd;
    margin-top: 8px;
    font-size: 16px;
}

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

/* Popup overlay */
.gnist-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s;
}

.gnist-popup-content {
    background: #fff;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    animation: slideUp 0.3s;
}

.gnist-popup-small {
    max-width: 450px;
}

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

.gnist-popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.gnist-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #22314E;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
}

.gnist-popup-close:hover {
    background: #E8EBF1;
    color: #22314E;
}

.gnist-popup-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 16px 16px;
    background: #fff;
}

/* Date inputs - completely hidden */
.gnist-date-inputs-inline {
    display: none !important;
}

/* Calendar - Ultra Compact */
/* Calendar info header */
.gnist-calendar-info h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

.gnist-calendar-info p {
    margin: 0;
    font-size: 14px;
    color: #717171;
    font-weight: 400;
}

.gnist-calendar-container {
    padding: 16px 20px 20px;
    overflow-x: hidden;
}

#gnist-calendar {
    width: 100%;
    display: flex;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.gnist-calendar {
    flex: 1;
    min-width: 0;
}

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

.gnist-calendar-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.gnist-calendar-nav {
    display: flex;
    gap: 4px;
}

.gnist-calendar-nav button {
    background: #fff;
    border: 2px solid #22314E;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #22314E;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gnist-calendar-nav button:hover:not(:disabled) {
    background: #22314E;
    color: #fff;
    border-color: #22314E;
}

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

.gnist-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.gnist-calendar-day-header {
    text-align: center;
    padding: 8px 2px;
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    text-transform: capitalize;
}

.gnist-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    position: relative;
    border: 1px solid transparent;
    padding: 4px 2px;
    min-height: 48px;
}

.gnist-calendar-day:hover:not(.booked):not(.disabled) {
    background: #f7f7f7;
    border-color: #22314E;
    border-radius: 50%;
}

.gnist-calendar-day.disabled {
    color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
}

.gnist-calendar-day.booked {
    color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
}

.gnist-calendar-day.selected {
    background: #22314E;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
}

.gnist-calendar-day.in-range {
    background: #E8EBF1;
    border-radius: 0;
}

.gnist-calendar-day.range-start {
    border-radius: 50%;
    background: #22314E;
    color: #fff;
    font-weight: 600;
    position: relative;
}

.gnist-calendar-day.range-start::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    background: #E8EBF1;
    z-index: -1;
}

.gnist-calendar-day.range-end {
    border-radius: 0 50% 50% 0;
    background: #22314E;
    color: #fff;
    font-weight: 600;
    position: relative;
}

.gnist-calendar-day.range-end::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    background: #E8EBF1;
    z-index: -1;
}

.gnist-calendar-day-price {
    font-size: 9px;
    color: #717171;
    margin-top: 1px;
    font-weight: 600;
}

.gnist-calendar-day.selected .gnist-calendar-day-price,
.gnist-calendar-day.range-start .gnist-calendar-day-price,
.gnist-calendar-day.range-end .gnist-calendar-day-price {
    color: #fff;
}

.gnist-calendar-day.disabled .gnist-calendar-day-price,
.gnist-calendar-day.booked .gnist-calendar-day-price {
    display: none;
}

/* Guest controls */
.gnist-guest-controls {
    padding: 20px;
}

.gnist-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.gnist-guest-row:last-child {
    border-bottom: none;
}

.gnist-guest-label {
    flex: 1;
}

.gnist-guest-label strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.gnist-guest-label span {
    font-size: 13px;
    color: #717171;
}

.gnist-guest-counter {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gnist-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #22314E;
    background: #fff;
    color: #22314E;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gnist-counter-btn:hover:not(:disabled) {
    background: #22314E;
    color: #fff;
    border-color: #22314E;
}

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

.gnist-guest-counter span {
    min-width: 24px;
    text-align: center;
    font-size: 15px;
}

/* Extras - Compact */
.gnist-extras-list-popup {
    padding: 16px 20px;
}

.gnist-extra-item-popup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    gap: 12px;
}

.gnist-extra-item-popup:last-child {
    border-bottom: none;
}

.gnist-extra-info {
    flex: 1;
    min-width: 0;
}

.gnist-extra-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.gnist-extra-info p {
    font-size: 13px;
    color: #717171;
    margin: 2px 0;
}

.gnist-extra-price-popup {
    font-size: 13px;
    color: #717171;
    white-space: nowrap;
    margin-right: 8px;
}

/* Extras quantity selector */
.gnist-extra-quantity {
    flex-shrink: 0;
}

.gnist-extra-qty-select {
    padding: 8px 30px 8px 12px;
    border: 2px solid #b0b0b0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%23222" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 5px center;
    background-size: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 60px;
}

.gnist-extra-qty-select:focus {
    outline: none;
    border-color: #22314E;
}

/* Extras checkbox for per_stay items */
.gnist-extra-checkbox {
    flex-shrink: 0;
}

.gnist-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.gnist-extra-checkbox-input {
    display: none;
}

.gnist-checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #b0b0b0;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
    background: #fff;
}

.gnist-extra-checkbox-input:checked + .gnist-checkmark {
    background: #22314E;
    border-color: #22314E;
}

.gnist-extra-checkbox-input:checked + .gnist-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

/* Remove old checkbox styling */
.gnist-checkbox {
    display: none;
}


/* Buttons */
.gnist-btn-primary {
    padding: 10px 20px;
    background: #22314E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gnist-btn-primary:hover {
    background: #2F4266;
}

.gnist-btn-secondary {
    padding: 10px 20px;
    background: #fff;
    color: #222;
    border: 1px solid #22314E;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gnist-btn-secondary:hover {
    background: #f7f7f7;
}

/* Loader */
.gnist-booking-loader {
    text-align: center;
    padding: 40px;
}

.gnist-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #222;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .gnist-popup-content {
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
    
    #gnist-calendar {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Hide second month on mobile */
    #gnist-calendar .gnist-calendar:nth-child(2) {
        display: none;
    }
    
    .gnist-calendar-day {
        font-size: 12px;
    }
    
    .gnist-calendar-day-price {
        font-size: 8px;
    }
}


/* Messages */
.gnist-booking-messages {
    margin-bottom: 15px;
}

.gnist-message {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.gnist-message.success {
    background-color: #d4edda;
    color: #155724;
}

.gnist-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Compact booking card */
.gnist-booking-compact {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Price display */
.gnist-compact-header {
    margin-bottom: 20px;
}

.gnist-price-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.gnist-price-amount {
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

.gnist-price-label {
    font-size: 16px;
    color: #717171;
}

/* Compact grid */
.gnist-compact-grid {
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.gnist-compact-cell {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #b0b0b0;
    background: #fff;
}

.gnist-compact-cell:last-child {
    border-bottom: none;
}

.gnist-compact-cell:hover {
    background-color: #f7f7f7;
}

.gnist-compact-cell label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 4px;
}

.gnist-compact-value {
    font-size: 14px;
    color: #222;
}

.gnist-compact-value.empty {
    color: #717171;
}

/* Reserve button */
.gnist-book-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22314E 0%, #2F4266 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gnist-book-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2F4266 0%, #3D5380 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 49, 78, 0.3);
}

.gnist-book-button:disabled {
    background: #22314E;
    opacity: 1;
    cursor: not-allowed;
    transform: none;
}

/* Total summary */
.gnist-total-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.gnist-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #222;
}

.gnist-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 8px;
    border-top: 1px solid #ddd;
    margin-top: 8px;
    font-size: 16px;
}

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

/* Popup overlay */
.gnist-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s;
}

.gnist-popup-content {
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    animation: slideUp 0.3s;
}

.gnist-popup-small {
    max-width: 450px;
}

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

.gnist-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gnist-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #22314E;
    font-weight: 300;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gnist-popup-close:hover {
    background: #E8EBF1;
    color: #22314E;
}

.gnist-popup-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Calendar */
.gnist-date-inputs-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 24px;
    background: #f7f7f7;
}

.gnist-date-input-inline label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.gnist-date-input-inline input {
    width: 100%;
    padding: 10px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.gnist-calendar-container {
    padding: 24px;
}

#gnist-calendar {
    width: 100%;
}

.gnist-calendar {
    margin-bottom: 16px;
}

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

.gnist-calendar-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.gnist-calendar-nav {
    display: flex;
    gap: 8px;
}

.gnist-calendar-nav button {
    background: #fff;
    color: #22314E;
    font-weight: bold;
    border: 2px solid #22314E;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gnist-calendar-nav button:hover:not(:disabled) {
    background: #22314E;
    color: #fff;
    border-color: #22314E;
}

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

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

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

.gnist-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    position: relative;
}

.gnist-calendar-day:hover:not(.booked):not(.disabled) {
    background: #f7f7f7;
    border: 1px solid #22314E;
}

.gnist-calendar-day.disabled {
    color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
}

.gnist-calendar-day.booked {
    color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
}

.gnist-calendar-day.selected {
    background: #22314E;
    color: #fff;
}

.gnist-calendar-day.in-range {
    background: #E8EBF1;
    border-radius: 0;
}

.gnist-calendar-day.range-start {
    border-radius: 50% 0 0 50%;
    background: #22314E;
    color: #fff;
}

.gnist-calendar-day.range-end {
    border-radius: 0 50% 50% 0;
    background: #22314E;
    color: #fff;
}

.gnist-calendar-day-price {
    font-size: 10px;
    color: #717171;
    margin-top: 2px;
}

.gnist-calendar-day.selected .gnist-calendar-day-price,
.gnist-calendar-day.range-start .gnist-calendar-day-price,
.gnist-calendar-day.range-end .gnist-calendar-day-price {
    color: #fff;
}

/* Guest controls */
.gnist-guest-controls {
    padding: 24px;
}

.gnist-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.gnist-guest-row:last-child {
    border-bottom: none;
}

.gnist-guest-label {
    flex: 1;
}

.gnist-guest-label strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.gnist-guest-label span {
    font-size: 14px;
    color: #717171;
}

.gnist-guest-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gnist-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #22314E;
    background: #fff;
    color: #22314E;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gnist-counter-btn:hover:not(:disabled) {
    background: #22314E;
    color: #fff;
    border-color: #22314E;
}

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

.gnist-guest-counter span {
    min-width: 24px;
    text-align: center;
    font-size: 16px;
}

/* Extras */
.gnist-extras-list-popup {
    padding: 24px;
}

.gnist-extra-item-popup {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.gnist-extra-item-popup:last-child {
    border-bottom: none;
}

.gnist-extra-info {
    flex: 1;
    padding-right: 16px;
}

.gnist-extra-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.gnist-extra-info p {
    font-size: 14px;
    color: #717171;
    margin: 4px 0;
}

.gnist-extra-price-popup {
    font-size: 14px;
    color: #717171;
}

.gnist-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.gnist-checkbox input[type="checkbox"] {
    display: none;
}

.gnist-checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #b0b0b0;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.gnist-checkbox input[type="checkbox"]:checked + .gnist-checkmark {
    background: #22314E;
    border-color: #22314E;
}

.gnist-checkbox input[type="checkbox"]:checked + .gnist-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
}

/* Buttons */
.gnist-btn-primary {
    padding: 10px 24px;
    background: #22314E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gnist-btn-primary:hover {
    background: #2F4266;
}

.gnist-btn-secondary {
    padding: 10px 24px;
    background: #fff;
    color: #222;
    border: 1px solid #22314E;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gnist-btn-secondary:hover {
    background: #f7f7f7;
}

/* Loader */
.gnist-booking-loader {
    text-align: center;
    padding: 40px;
}

.gnist-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #222;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .gnist-popup-content {
        margin: 0;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .gnist-popup-header {
        flex-shrink: 0;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
        border-bottom: 1px solid #eee;
        padding: 16px;
    }
    
    .gnist-calendar-info h3 {
        font-size: 20px;
        margin: 0;
    }
    
    .gnist-calendar-info p {
        font-size: 14px;
        margin: 4px 0 0 0;
    }
    
    .gnist-popup-footer {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: #fff;
        z-index: 10;
        border-top: 1px solid #eee;
        padding: 12px 16px;
    }
    
    /* Single column calendar on mobile */
    #gnist-calendar {
        flex-direction: column;
        gap: 20px;
    }
    
    .gnist-calendar-container {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        width: 100%;
    }
    
    .gnist-calendar {
        padding: 0 12px;
    }
    
    .gnist-calendar-grid {
        gap: 0;
        width: 100%;
    }
    
    .gnist-calendar-day {
        font-size: 13px;
        padding: 6px 1px;
        min-height: 44px;
    }
    
    .gnist-calendar-day-price {
        font-size: 10px;
        margin-top: 2px;
    }
    
    .gnist-calendar-day-header {
        padding: 8px 1px;
        font-size: 11px;
    }
    
    .gnist-calendar-header h4 {
        font-size: 16px;
    }
    
    .gnist-extras-list-popup {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 12px 12px;
    }
        padding: 8px 2px;
    }
    
    .gnist-calendar-day-price {
        font-size: 9px;
    }
    
    .gnist-date-inputs-inline {
        grid-template-columns: 1fr;
    }
    
    /* Make check-in and check-out inline on mobile */
    .gnist-compact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .gnist-compact-checkin {
        grid-column: 1;
        grid-row: 1;
        border-right: 1px solid #b0b0b0;
        border-bottom: 1px solid #b0b0b0;
    }
    
    .gnist-compact-checkout {
        grid-column: 2;
        grid-row: 1;
        border-bottom: 1px solid #b0b0b0;
    }
    
    .gnist-compact-guests {
        grid-column: 1;
        grid-row: 2;
        border-right: 1px solid #b0b0b0;
        border-bottom: none;
    }
    
    .gnist-compact-extras {
        grid-column: 2;
        grid-row: 2;
        border-bottom: none;
    }
    
    /* Extras on mobile */
    .gnist-extra-item-popup {
        padding: 12px 0;
    }
    
    .gnist-extra-info strong {
        font-size: 13px;
    }
    
    .gnist-extra-info p {
        font-size: 12px;
    }
    
    .gnist-extra-price-popup {
        font-size: 12px;
    }
}

/* Payment Type Selection */
.gnist-payment-type-selection {
    margin: 20px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    background: #f9f9f9;
}

.gnist-payment-option-item {
    margin-bottom: 12px;
}

.gnist-payment-option-item:last-child {
    margin-bottom: 0;
}

.gnist-payment-option-item label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.gnist-payment-option-item label:hover {
    border-color: #22314E;
    background: #E8EBF1;
}

.gnist-payment-option-item input[type="radio"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #22314E;
    flex-shrink: 0;
}

.gnist-payment-option-item input[type="radio"]:checked + .gnist-payment-label {
    font-weight: 600;
}

.gnist-payment-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gnist-payment-label strong {
    font-size: 15px;
    color: #222;
    font-weight: 400;
}

.gnist-payment-amount {
    font-size: 16px;
    font-weight: 400;
    color: #22314E;
}

.gnist-payment-note {
    font-size: 13px;
    color: #717171;
    font-style: normal;
    font-weight: 400;
}

/* Mobile */
@media (max-width: 768px) {
    .gnist-payment-type-selection {
        margin: 16px 0;
        padding: 12px;
    }
    
    .gnist-payment-option-item label {
        padding: 12px;
    }
}
