/*
 * The community pages: tours & services, members' portfolios and tourist
 * boards. Built on the site's own palette (--fl-*) so they sit beside the
 * stays and blog without a second look.
 */

/* Search and filter bar */
.fc-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; align-items: stretch; }
.fc-filters .btn-theme { height: 48px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
.fc-filter-field { position: relative; flex: 1 1 280px; }
.fc-filter-field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fl-text); font-size: 18px; }
.fc-filter-field input { width: 100%; height: 48px; padding: 0 14px 0 40px; border: 1px solid var(--fl-border); border-radius: 10px; background: #fff; }
.fc-filters select { height: 48px; padding: 0 14px; border: 1px solid var(--fl-border); border-radius: 10px; background: #fff; min-width: 180px; }

/* Card grid */
.fc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.fc-card { display: flex; flex-direction: column; border: 1px solid var(--fl-border); border-radius: 14px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; height: 100%; }
.fc-card:hover, .fc-card:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16, 24, 40, 0.10); color: inherit; }
.fc-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #eef1f5; }
.fc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-card-tag { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, 0.94); color: var(--fl-heading); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.fc-card-tag.is-featured { background: var(--fl-primary); color: #fff; }
.fc-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1 1 auto; }
.fc-card-body strong { color: var(--fl-heading); font-size: 17px; line-height: 1.35; }
.fc-card-meta { font-size: 14px; color: var(--fl-text); }
.fc-card-price { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--fl-primary); }

.fc-empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--fl-border); border-radius: 14px; color: var(--fl-text); }
.fc-empty p { color: #4f5866; font-size: 16px; margin: 0; }
.fc-empty i { font-size: 42px; color: var(--fl-primary); display: block; margin-bottom: 8px; }

.fc-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 24px 28px; border-radius: 16px; background: #f4f7fb; }
.fc-band h2 { font-size: 22px; margin: 0 0 4px; }
.fc-band p { margin: 0; }

.fc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
.fc-ticks { list-style: none; margin: 0; padding: 0; }
.fc-ticks li { display: flex; gap: 8px; margin-bottom: 6px; }
.fc-ticks i { color: #1c8a4c; margin-top: 4px; }
.fc-ticks.is-off i { color: #b2352d; }

/* Portfolio header */
.fc-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0 0 26px; }
.fc-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: #e8edf4; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: var(--fl-primary); flex: 0 0 auto; }
.fc-profile h1 { margin: 0 0 4px; font-size: clamp(26px, 3.6vw, 36px); }
.fc-profile p { margin: 0; color: var(--fl-text); }
.fc-socials { display: flex; gap: 12px; margin-top: 6px; }

/* A post */
.fc-post-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 24px; }
.fc-post-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.fc-post-gallery figure { margin: 0; }
.fc-post-gallery figcaption { font-size: 13px; color: var(--fl-text); margin-top: 4px; }
.fc-links { display: grid; gap: 10px; margin: 24px 0; }
.fc-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--fl-border); border-radius: 12px; color: inherit; text-decoration: none; background: #fff; }
.fc-link:hover { border-color: var(--fl-primary); color: inherit; }
.fc-link i { font-size: 22px; color: var(--fl-primary); }
.fc-link span { display: flex; flex-direction: column; }
.fc-link small { color: var(--fl-text); }

/* Tourist boards */
.fc-official { display: inline-flex; align-items: center; gap: 6px; background: #e6f4ec; color: #146c3a; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.fc-board-cover { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 20px; background: #e8edf4; }
.fc-board-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--fl-border); padding: 6px; }
.fc-board-posts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fc-kind { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fl-primary); }

/* The member area */
.fc-member-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.fc-member-nav a { padding: 8px 14px; border: 1px solid var(--fl-border); border-radius: 999px; color: var(--fl-heading); text-decoration: none; font-size: 14px; }
.fc-member-nav a.is-active, .fc-member-nav a:hover { border-color: var(--fl-primary); color: var(--fl-primary); }
.fc-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.fc-thumbs figure { margin: 0; position: relative; }
.fc-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.fc-thumbs form { position: absolute; top: 6px; right: 6px; }
.fc-thumbs button { border: 0; background: rgba(255, 255, 255, 0.92); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; color: #b2352d; }
.fc-upload { position: relative; border: 2px dashed var(--fl-border); border-radius: 12px; padding: 18px; text-align: center; color: var(--fl-text); }
.fc-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fc-upload.is-over { border-color: var(--fl-primary); }
.fc-progress { margin-top: 10px; text-align: left; }
.fc-progress-bar { height: 6px; background: var(--fl-border); border-radius: 3px; overflow: hidden; }
.fc-progress-bar span { display: block; height: 100%; width: 0; background: var(--fl-primary); }
.fc-progress p { margin: 6px 0 0; font-size: 13px; }
.fc-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #eef1f5; color: var(--fl-heading); }
.fc-status.is-good { background: #e6f4ec; color: #146c3a; }
.fc-status.is-wait { background: #fdf3e6; color: #a8580f; }
.fc-status.is-bad { background: #fdecec; color: #a12a24; }

/* The booking widget (an iframe on a tourist board's own site) */
.fc-widget { font-family: inherit; padding: 16px; border: 1px solid var(--fl-border); border-radius: 14px; background: #fff; }
.fc-widget h2 { font-size: 18px; margin: 0 0 10px; }
.fc-widget-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.fc-widget-tabs label { cursor: pointer; padding: 6px 12px; border: 1px solid var(--fl-border); border-radius: 999px; font-size: 14px; }
.fc-widget-tabs input { position: absolute; opacity: 0; }
.fc-widget-tabs input:checked + span { color: var(--fl-primary); font-weight: 600; }
.fc-widget form { display: grid; gap: 8px; }
.fc-widget input[type="text"], .fc-widget input[type="date"] { height: 42px; border: 1px solid var(--fl-border); border-radius: 8px; padding: 0 10px; }
.fc-widget small { color: var(--fl-text); }

/* ------------------------------------------------------------------ *
 * Agents directory
 * ------------------------------------------------------------------ */
.fl-ag-filters select { flex: 0 1 200px; min-width: 0; }
.fl-ag-map { height: 380px; border-radius: 14px; border: 1px solid var(--fl-border); margin: 0 0 18px; z-index: 0; }
.fl-ag-count { color: #4f5866; margin: 0 0 14px; }
.fl-ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.fl-ag-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--fl-border); border-radius: 14px; padding: 20px; background: #fff; scroll-margin-top: 120px; }
.fl-ag-card:target { border-color: var(--fl-primary); box-shadow: 0 0 0 3px rgba(96, 166, 69, 0.18); }
.fl-ag-card-head { display: flex; align-items: center; gap: 14px; }
.fl-ag-card-head h2 { font-size: 20px; margin: 0 0 2px; }
.fl-ag-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #e8edf4; color: var(--fl-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; flex: 0 0 auto; }
.fl-ag-place { margin: 0; font-size: 14px; color: #4f5866; }
.fl-ag-headline { margin: 0; font-weight: 600; color: var(--fl-heading); }
.fl-ag-bio { margin: 0; font-size: 15px; line-height: 1.6; color: #4f5866; }
.fl-ag-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fl-ag-tags li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #f2f5f9; color: var(--fl-heading); }
.fl-ag-covers { margin: 0; font-size: 13px; color: #4f5866; }
.fl-ag-ask { margin-top: auto; align-self: flex-start; }
.fl-ag-hello { text-align: center; padding: 56px 20px; border: 1px dashed var(--fl-border); border-radius: 18px; background: linear-gradient(180deg, #f7faf5, #fff); }
.fl-ag-hello-wave { font-size: 52px; display: inline-block; animation: fl-ag-wave 2.4s ease-in-out 1; transform-origin: 70% 70%; }
.fl-ag-hello h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 8px 0 8px; }
.fl-ag-hello p { max-width: 560px; margin: 0 auto 20px; color: #4f5866; font-size: 17px; line-height: 1.7; }
.fl-ag-hello-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.fl-ag-hello-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@keyframes fl-ag-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .fl-ag-hello-wave { animation: none; } }
@media (max-width: 575px) {
  .fl-ag-map { height: 280px; }
  .fl-ag-filters select, .fl-ag-filters .btn-theme { flex: 1 1 100%; }
}
