/* ============================================================
   CRB — Styles
   corfuboatrentals.com

   Visual design is handled entirely by Breakdance native
   design properties (embedded in _breakdance_data tree).

   The operator signup form is now a Breakdance FormBuilder
   element — form styling is controlled via Breakdance's own
   theme settings. No custom CSS needed here.
   ============================================================ */

/* Day 2 — boat category rows, cards, booking modal, detail page.
   Lives here, not crb-theme/style.css, because Humayun has Breakdance's
   Theme Disabler on — the active theme's stylesheet never gets enqueued
   while that's set. See DEVLOG.md. */
.crb-boats-section { margin-bottom: 48px; }
.crb-row-title { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 16px; padding-left: 4px; }
.crb-row-empty { padding: 24px; color: #6b7280; font-size: 14px; }
.crb-boats-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #0ea5e9 #f0f0f0; -webkit-overflow-scrolling: touch; }
.boat-card { flex: 0 0 280px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.boat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.boat-card__badge { position: absolute; top: 12px; left: 12px; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; z-index: 1; }
.boat-card__photo { height: 180px; overflow: hidden; background: #e5e7eb; }
.boat-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boat-card__body { padding: 14px 16px 16px; }
.boat-card__type { font-size: 11px; font-weight: 600; color: #0ea5e9; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.boat-card__name { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; line-height: 1.3; }
.boat-card__operator { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.boat-card__footer { display: flex; justify-content: space-between; align-items: center; }
.boat-card__price { font-size: 18px; font-weight: 700; color: #1a1a2e; }
.boat-card__price span { font-size: 12px; font-weight: 400; color: #6b7280; }
.boat-card__btn { background: #0ea5e9; color: #fff; border: none; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.boat-card__btn:hover { background: #0284c7; }
.crb-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.crb-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(3px); }
.crb-modal-content { position: relative; width: 90%; max-width: 480px; height: 85vh; max-height: 750px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.4); z-index: 1; }
.crb-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0,0,0,0.5); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.crb-modal-content iframe { width: 100%; height: 100%; border: none; display: block; }
.crb-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; margin-bottom: 40px; }
.crb-detail-photos .crb-carousel img, .crb-detail-photos .crb-no-photo img { width: 100%; border-radius: 12px; display: block; }
.crb-detail-type { font-size: 12px; font-weight: 600; color: #0ea5e9; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.crb-detail-name { font-size: 32px; font-weight: 800; color: #1a1a2e; margin: 0 0 8px; }
.crb-detail-operator { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
.crb-detail-specs { display: flex; gap: 20px; margin-bottom: 20px; }
.crb-spec { font-size: 14px; color: #374151; }
.crb-spec span { display: block; font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.crb-detail-price { margin-bottom: 24px; }
.crb-price-amount { font-size: 36px; font-weight: 800; color: #1a1a2e; }
.crb-price-label { font-size: 14px; color: #6b7280; margin-left: 4px; }
.crb-book-btn { width: 100%; background: #0ea5e9; color: #fff; border: none; border-radius: 10px; padding: 16px; font-size: 17px; font-weight: 700; cursor: pointer; transition: background 0.15s; margin-bottom: 12px; }
.crb-book-btn:hover { background: #0284c7; }
.crb-book-note { font-size: 12px; color: #9ca3af; text-align: center; line-height: 1.5; }
.crb-detail-description { max-width: 680px; border-top: 1px solid #e5e7eb; padding-top: 32px; }
.crb-detail-description h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.crb-detail-description p { font-size: 15px; color: #374151; line-height: 1.7; }
@media (max-width: 768px) {
  .crb-detail-grid { grid-template-columns: 1fr; }
  .crb-modal-content { width: 100%; height: 100%; max-width: 100%; max-height: 100%; border-radius: 0; }
  .boat-card { flex: 0 0 240px; }
  .crb-detail-name { font-size: 24px; }
}

/* ── Browse Page ────────────────────────────────────── */
.crb-browse {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.crb-filter-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.crb-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.crb-filter-search {
  flex: 1;
  min-width: 200px;
}

.crb-filter-input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #1a1a2e;
}

.crb-filter-input:focus,
.crb-filter-select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

.crb-filter-select {
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #1a1a2e;
  cursor: pointer;
}

.crb-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crb-filter-price {
  gap: 6px;
}

.crb-filter-sep {
  color: #9ca3af;
  font-size: 13px;
}

.crb-filter-input-sm {
  width: 90px;
}

.crb-filter-btn {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.crb-filter-btn:hover {
  background: #0284c7;
}

.crb-filter-clear {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
}

.crb-filter-clear:hover {
  color: #e53e3e;
}

.crb-browse-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

.crb-boats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.crb-boats-grid .boat-card {
  flex: none;
  width: 100%;
}

.crb-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
}

@media (max-width: 900px) {
  .crb-boats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .crb-boats-grid {
    grid-template-columns: 1fr;
  }
  .crb-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .crb-filter-group {
    width: 100%;
  }
  .crb-filter-select,
  .crb-filter-btn {
    width: 100%;
  }
  .crb-filter-input-sm {
    width: 100%;
    flex: 1;
  }
}

/* ── Booking Confirmation ───────────────────────────── */
.crb-confirmation {
  text-align: center;
  padding: 80px 20px;
  max-width: 560px;
  margin: 0 auto;
}

.crb-confirmation-icon {
  width: 72px;
  height: 72px;
  background: #22c55e;
  color: #fff;
  font-size: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.crb-confirmation-title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.crb-confirmation-text {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 32px;
}

.crb-confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.crb-btn-primary {
  background: #0ea5e9;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}

.crb-btn-primary:hover {
  background: #0284c7;
}
