/* =============================================================================
   Friends2Go — Friends CSS
   ============================================================================= */

/* ------------------------------------------------------------------
 * Grid
 * ------------------------------------------------------------------ */
.f2g-friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 18px 0;
}

/* ------------------------------------------------------------------
 * Friend Card
 * ------------------------------------------------------------------ */
.f2g-friend-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}

.f2g-friend-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.14);
    transform: translateY(-2px);
}

.f2g-friend-card a {
    text-decoration: none;
    color: inherit;
}

/* Image wrapper — needed for the price overlay */
.f2g-friend-card__image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
}

.f2g-friend-card__image-link {
    display: block;
    line-height: 0;
}

.f2g-friend-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    object-position: top center;
    display: block;
    transition: transform .3s;
}

.f2g-friend-card:hover img {
    transform: scale(1.03);
}

.f2g-friend-card__no-photo {
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

/* Price overlay — bottom-left on the card image */
.f2g-friend-card__price-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 5px 12px;
    line-height: 1.3;
    pointer-events: none;
}

.f2g-friend-card__price-overlay span {
    font-size: .78rem;
    font-weight: 400;
    opacity: .85;
    margin-left: 2px;
}

.f2g-friend-card__body {
    padding: 12px 14px 14px;
}


.f2g-friend-card__body h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* Meta pills row */
.f2g-friend-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

/* Individual pill/badge tags */
.f2g-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    background: #f1f3f5;
    color: #555;
}

.f2g-card-tag--city {
    background: #e8f4fd;
    color: #2980b9;
}

.f2g-card-tag--age {
    background: #fef9e7;
    color: #d68910;
}

.f2g-card-tag--gender {
    background: #f0f9f4;
    color: #1e8449;
}

.f2g-card-tag .homey-icon {
    font-size: .78rem;
}

/* Bio text */
.f2g-friend-card__bio {
    font-size: 1rem;
    color: #555;
    margin: 0 0 4px;
    line-height: 1.7;
    font-style: italic;
}

.f2g-friend-card__rate {
    display: block;
    font-size: 1rem;
    color: #1a1a1a;
}

/* ------------------------------------------------------------------
 * Badges
 * ------------------------------------------------------------------ */
.f2g-verified-badge,
.f2g-no-touch-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 2px 10px;
    margin: 0 4px 6px 0;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.f2g-verified-badge {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.f2g-no-touch-badge {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

/* ------------------------------------------------------------------
 * Disclaimer Banner (shown on search page & friend profile)
 * ------------------------------------------------------------------ */
.f2g-no-touch-disclaimer {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.7;
}

.f2g-no-touch-disclaimer strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #e65100;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ------------------------------------------------------------------
 * Shared sidebar styles — match Homey theme visual style
 * ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
 * Booking Widget — sticky wrapper only; visual styling via Homey classes
 * ------------------------------------------------------------------ */
.f2g-booking-widget {
    position: sticky;
    top: 20px;
}

/* Field labels inside the booking form */
.f2g-booking-widget .f2g-field > label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

/* ------------------------------------------------------------------
 * Package selector
 * ------------------------------------------------------------------ */
.f2g-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 6px;
}

.f2g-package-option {
    border: 2px solid #e8eaf0;
    border-radius: 12px;
    padding: 14px 10px 12px;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    text-align: center;
    background: #fafbff;
    position: relative;
}

.f2g-package-option:hover {
    border-color: #90aee8;
    background: #f0f4ff;
    box-shadow: 0 2px 10px rgba(25,118,210,.1);
}

.f2g-package-option.is-selected {
    border-color: #1976d2;
    background: #e8f0fd;
    box-shadow: 0 2px 12px rgba(25,118,210,.18);
}

.f2g-package-option__name {
    font-weight: 700;
    font-size: .95rem;
    display: block;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.f2g-package-option__hours {
    font-size: .78rem;
    color: #999;
    display: block;
    letter-spacing: .02em;
    margin-bottom: 6px;
}

.f2g-package-option__price {
    font-weight: 700;
    font-size: 1.25rem;
    display: block;
    color: #1976d2;
    line-height: 1.1;
}

.f2g-package-option__savings {
    font-size: .72rem;
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    padding: 2px 8px;
    display: inline-block;
    margin-top: 5px;
    font-weight: 600;
}

.f2g-package-option__badge {
    display: inline-block;
    margin-top: 5px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #e65100;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 20px;
    padding: 2px 8px;
}

/* "— or book by the hour —" divider */
.f2g-or-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 14px;
    font-size: .8rem;
    color: #aaa;
    font-style: italic;
    white-space: nowrap;
}
.f2g-or-separator::before,
.f2g-or-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* ------------------------------------------------------------------
 * Price breakdown
 * ------------------------------------------------------------------ */
.f2g-price-breakdown {
    border-top: 1px solid #eee;
    margin-top: 14px;
    padding-top: 14px;
    font-size: .9rem;
}

.f2g-price-breakdown__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #555;
}

.f2g-price-breakdown__row.is-total {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 4px;
}

/* ------------------------------------------------------------------
 * No Touch Policy checkbox (booking form)
 * ------------------------------------------------------------------ */
.f2g-policy-accept {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: .88rem;
    line-height: 1.5;
}

.f2g-policy-accept input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
 * CTA Button — uses Homey btn-primary; only disabled state needed
 * ------------------------------------------------------------------ */
.f2g-book-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------
 * Activity selection (on friend profile)
 * ------------------------------------------------------------------ */
.f2g-activities-section {
    margin-top: 32px;
}

.f2g-activities-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.f2g-activities-table th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid #e0e0e0;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
}

.f2g-activities-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.f2g-activities-table tr:last-child td {
    border-bottom: none;
}

.f2g-activity-offered          { color: #2e7d32; font-weight: 700; font-size: 1rem; }
.f2g-activity-not-offered-icon { color: #c62828; font-size: 1rem; }
.f2g-activities-table tr.f2g-activity-not-offered td { color: #bbb; }
.f2g-activities-table tr.f2g-activity-not-offered td:first-child { text-decoration: line-through; }
.f2g-activity-addon     { color: #e65100; }
.f2g-activity-note      { color: #888; font-size: .82rem; }

.f2g-activity-select-cb {
    cursor: pointer;
}

/* ------------------------------------------------------------------
 * Search form
 * ------------------------------------------------------------------ */
.f2g-search-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
    padding: 24px;
    margin-bottom: 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.f2g-search-form *,
.f2g-search-form input,
.f2g-search-form select,
.f2g-search-form button,
.f2g-search-form label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.f2g-search-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    align-items: end;
}

/* Two-column row inside the sidebar filter */
.f2g-sf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

.f2g-sf-mb {
    margin-bottom: 12px;
}

.f2g-search-form__field label {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: #333;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 7px;
}

.f2g-search-form__field input,
.f2g-search-form__field select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    background: #fff;
    color: #222;
}

.f2g-search-btn {
    padding: 13px 24px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    letter-spacing: .01em;
}

.f2g-search-btn:hover {
    background: #1565c0;
}

/* ------------------------------------------------------------------
 * No results
 * ------------------------------------------------------------------ */
.f2g-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1rem;
}

/* ------------------------------------------------------------------
 * "From" price label in booking sidebar header
 * ------------------------------------------------------------------ */
.f2g-from-label {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

/* ------------------------------------------------------------------
 * Availability section
 * ------------------------------------------------------------------ */
.f2g-available-days {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.f2g-day-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
}

.f2g-day-badge.is-available {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.f2g-day-badge.is-unavailable {
    background: #f5f5f5;
    color: #bbb;
    border: 1px solid #e0e0e0;
}

/* ------------------------------------------------------------------
 * Activity add-ons in booking form
 * ------------------------------------------------------------------ */
.f2g-activity-addons {
    background: #f8f9fc;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.f2g-activity-addons > label {
    font-size: .88rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #777;
    display: block;
    margin-bottom: 10px;
}

.f2g-addon-item {
    margin-bottom: 4px;
}

.f2g-addon-item:last-child {
    margin-bottom: 0;
}

.f2g-addon-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: #333;
    cursor: pointer;
    font-weight: 400 !important;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background .15s;
}

.f2g-addon-label:hover {
    background: #edf1fb;
}

.f2g-addon-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #1976d2;
    cursor: pointer;
}

.f2g-addon-label span:not(.f2g-addon-fee):not(.f2g-activity-note) {
    flex: 1;
    font-weight: 500;
}

.f2g-addon-fee {
    margin-left: auto;
    color: #1976d2;
    font-weight: 700;
    font-size: .88rem;
    background: #e8f0fd;
    border-radius: 20px;
    padding: 1px 8px;
    white-space: nowrap;
}

.f2g-activity-note {
    display: block;
    color: #aaa;
    font-size: .75rem;
    font-style: italic;
    padding-left: 26px;
    margin-top: -2px;
    margin-bottom: 4px;
}

/* Cancellation policy content */
.f2g-cancel-policy-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.f2g-cancel-policy-block > div + div {
    margin-top: 6px;
    color: #444;
    line-height: 1.7;
}

/* ------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .f2g-friends-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .f2g-packages {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .f2g-search-form__row {
        grid-template-columns: 1fr;
    }

    .f2g-friends-grid {
        grid-template-columns: 1fr;
    }
}
