/* GuestLucky Booking Widgets - v1.0.0 */

.gl-widget { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
.gl-loading { text-align: center; padding: 2rem; color: #6b7280; }

/* === CALENDAR WIDGET === */
.gl-calendar-widget {
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
    padding: 1.25rem;
}
.gl-cal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0; margin-bottom: 0.75rem;
}
.gl-cal-title { font-weight: 600; font-size: 1.0625rem; color: #1a1a2e; }
.gl-cal-nav {
    background: none; border: 1.5px solid #e8ecf0; border-radius: 6px;
    width: 32px; height: 32px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: 1.125rem;
    color: #1a1a2e; transition: background 0.15s;
}
.gl-cal-nav:hover { background: #f5f6f8; }
.gl-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.gl-cal-dow {
    padding: 0.5rem 0; text-align: center; font-size: 0.7rem;
    font-weight: 600; color: #6b7280; text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gl-cal-day {
    aspect-ratio: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; border-radius: 8px;
    font-size: 0.875rem; cursor: default; transition: all 0.1s ease;
}
.gl-cal-day-avail { cursor: pointer; }
.gl-cal-day-avail:hover { background: rgba(46,98,170,0.08); }
.gl-cal-day-unavail { color: #ccc; text-decoration: line-through; }
.gl-cal-day-past { color: #d1d5db; }
.gl-cal-day-today { font-weight: 700; box-shadow: inset 0 0 0 1.5px #2E62AA; border-radius: 8px; }
.gl-cal-price { font-size: 0.6rem; color: #6b7280; margin-top: 1px; }
.gl-cal-day-unavail .gl-cal-price { display: none; }

/* === SEARCH WIDGET === */
.gl-search-widget { max-width: 900px; }
.gl-search-bar {
    display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: end;
    background: #fff; border-radius: 12px; padding: 1.25rem;
    border: 1px solid #e8ecf0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}
.gl-search-field { flex: 1; min-width: 140px; }
.gl-search-guests-field { max-width: 100px; }
.gl-search-field label {
    display: block; font-size: 0.75rem; font-weight: 600;
    color: #6b7280; margin-bottom: 0.375rem; text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gl-search-field input {
    width: 100%; padding: 0.625rem 0.75rem; border: 1.5px solid #e8ecf0;
    border-radius: 8px; font-size: 0.875rem; color: #1a1a2e;
    font-family: inherit; transition: border-color 0.15s;
}
.gl-search-field input:focus { outline: none; border-color: #2E62AA; }
.gl-search-btn {
    padding: 0.625rem 1.5rem; background: #2E62AA; color: #fff;
    border: none; border-radius: 8px; font-weight: 600; font-size: 0.9375rem;
    cursor: pointer; font-family: inherit; transition: opacity 0.15s;
    white-space: nowrap;
}
.gl-search-btn:hover { opacity: 0.9; }

/* Search results */
.gl-search-results { display: grid; gap: 1rem; }
.gl-search-results.gl-layout-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gl-search-results.gl-layout-list { grid-template-columns: 1fr; }

.gl-result-card {
    background: #fff; border-radius: 12px; border: 1px solid #e8ecf0;
    overflow: hidden; text-decoration: none; color: inherit; display: block;
    transition: box-shadow 0.2s, transform 0.2s;
}
.gl-result-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.gl-result-img {
    width: 100%; aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(46,98,170,0.08), rgba(230,126,34,0.06));
    display: flex; align-items: center; justify-content: center;
    color: #2E62AA; font-size: 2rem;
}
.gl-result-body { padding: 1rem 1.25rem; }
.gl-result-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.gl-result-address { font-size: 0.8125rem; color: #6b7280; margin-bottom: 0.5rem; }
.gl-result-price { font-size: 1.125rem; font-weight: 700; color: #2E62AA; }
.gl-result-price small { font-size: 0.8125rem; font-weight: 400; color: #6b7280; }
.gl-result-unavail { color: #dc2626; font-weight: 600; font-size: 0.8125rem; }
.gl-result-avail { color: #059669; font-weight: 600; font-size: 0.8125rem; }
.gl-no-results { text-align: center; padding: 2rem; color: #6b7280; }

@media (max-width: 600px) {
    .gl-search-bar { flex-direction: column; }
    .gl-search-field { min-width: 100%; }
    .gl-search-guests-field { max-width: 100%; }
}
