/* =============================================================
   I-BOOIKNG — Account / Offer / My-list pages
   ============================================================= */

/* Account / auth / form pages don't need the big expanded destination search
   bar (the compact search pill in the top row remains). Hiding it keeps the
   header a single 80px row so the full-height calc below is correct. */
#main-header { min-height: 81px; }
#main-header .header-row2 { display: none; }

.acct-page { min-height: calc(100dvh - 81px); }

/* ===== Auth (login / signup) split layout ===== */
.auth-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100dvh - 81px);
  max-width: 1240px;
  margin: 0 auto;
}

/* Left brand panel */
.auth-aside {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  margin: 24px;
  background: linear-gradient(150deg, #0041cc 0%, #0057ff 45%, #ff385c 115%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  min-height: 540px;
}
.auth-aside::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(440px 280px at 80% 10%, rgba(255,255,255,0.16), transparent 70%),
    radial-gradient(420px 320px at 8% 95%, rgba(255,56,92,0.34), transparent 70%);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.auth-aside-brand i { font-size: 22px; }
.auth-aside-head { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.18; letter-spacing: -0.6px; margin-bottom: 14px; }
.auth-aside-sub { font-size: 15px; line-height: 1.65; opacity: 0.92; max-width: 400px; }
.auth-aside-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.auth-aside-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; }
.auth-aside-list i {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.auth-aside-foot { display: flex; align-items: center; gap: 14px; font-size: 13px; opacity: 0.9; }
.auth-aside-avatars { display: flex; }
.auth-aside-avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -10px; }
.auth-aside-avatars img:first-child { margin-left: 0; }

/* Right form column */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.auth-card .auth-lead { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.auth-card .auth-lead a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-card .auth-lead a:hover { text-decoration: underline; }

/* Form fields */
.fld { margin-bottom: 16px; }
.fld-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 7px; }
.fld-input-wrap { position: relative; }
.fld-input-wrap > i.fld-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 17px; color: var(--text-light); pointer-events: none;
}
.fld-input {
  width: 100%;
  font-family: inherit; font-size: 15px; color: var(--text-dark);
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.fld-input::placeholder { color: var(--text-light); }
.fld-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,56,92,0.12); }
.fld-input.no-ic { padding-left: 14px; }
.fld-input.err { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217,48,37,0.1); }
.fld-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-secondary);
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.fld-toggle:hover { background: var(--bg-light); }
.fld-err { font-size: 12.5px; color: #d93025; margin-top: 5px; display: none; }
.fld-err.show { display: block; }
textarea.fld-input { padding-left: 14px; resize: vertical; min-height: 110px; line-height: 1.55; }
select.fld-input { padding-left: 14px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23717171' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; flex-wrap: wrap; gap: 8px; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-mid); cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.auth-link { font-size: 13.5px; color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.btn-block {
  width: 100%; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #e31c5f, #ff385c);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-block:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,56,92,0.34); }
.btn-block.alt { background: #fff; color: var(--text-dark); border: 1.5px solid var(--border); }
.btn-block.alt:hover { background: var(--bg-light); box-shadow: none; border-color: var(--border-dark); }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-light); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-socials { display: flex; flex-direction: column; gap: 12px; }
.auth-foot-note { text-align: center; font-size: 13.5px; color: var(--text-secondary); margin-top: 24px; }
.auth-foot-note a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-foot-note a:hover { text-decoration: underline; }

/* ===== Shared content page header ===== */
.page-head { max-width: 1120px; margin: 0 auto; padding: 40px 24px 8px; }
.page-head .crumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.page-head .crumb a { color: var(--text-secondary); text-decoration: none; }
.page-head .crumb a:hover { color: var(--primary); }
.page-head h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.5px; }
.page-head p { font-size: 15px; color: var(--text-secondary); margin-top: 8px; max-width: 620px; }

/* ===== Offer-a-service form ===== */
.offer-wrap { max-width: 1120px; margin: 0 auto; padding: 18px 24px 80px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.offer-form { background: #fff; }
.offer-section { border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin-bottom: 20px; }
.offer-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 9px; }
.offer-section h2 i { color: var(--primary); font-size: 19px; }
.offer-section .sec-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer-grid .fld.full { grid-column: 1 / -1; }

/* Category chips */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border: 1.5px solid var(--border); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--text-mid); cursor: pointer; background: #fff;
  transition: all var(--t-fast);
}
.cat-chip i { font-size: 15px; }
.cat-chip:hover { border-color: var(--text-dark); }
.cat-chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* Sticky tips aside */
.offer-aside { position: sticky; top: 100px; }
.offer-tips { border: 1px solid var(--border); border-radius: 18px; padding: 22px; background: var(--bg-light); }
.offer-tips h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.offer-tips h3 i { color: var(--primary); }
.offer-tips ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.offer-tips li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-mid); line-height: 1.5; }
.offer-tips li i { color: #1a7a47; flex-shrink: 0; margin-top: 2px; }
.offer-actions { display: flex; gap: 12px; margin-top: 4px; }
.offer-actions .btn-block { flex: 1; }

/* ===== My listings ===== */
.mylist-wrap { max-width: 1120px; margin: 0 auto; padding: 18px 24px 80px; }
.mylist-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.mylist-tab {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 600; color: var(--text-secondary);
  padding: 12px 4px; margin-right: 22px; border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.mylist-tab:hover { color: var(--text-dark); }
.mylist-tab.active { color: var(--text-dark); border-bottom-color: var(--text-dark); }
.mylist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.svc-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow var(--t), transform var(--t); display: flex; flex-direction: column; }
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-card-img { aspect-ratio: 16/10; background: var(--bg-light); position: relative; overflow: hidden; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card-cat { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.95); color: var(--text-dark); font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; display: flex; align-items: center; gap: 5px; }
.svc-card-cat i { color: var(--primary); }
.svc-card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.svc-card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.svc-card-meta { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.svc-card-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.svc-card-price strong { font-size: 17px; font-weight: 800; }
.svc-card-price span { font-size: 12px; color: var(--text-secondary); }
.svc-card-actions { display: flex; gap: 8px; }
.svc-icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text-mid); transition: all var(--t-fast); }
.svc-icon-btn:hover { border-color: var(--text-dark); color: var(--text-dark); }
.svc-icon-btn.del:hover { border-color: #d93025; color: #d93025; background: #fdecea; }

/* Empty state (shared) */
.empty-state { text-align: center; padding: 60px 24px; max-width: 460px; margin: 0 auto; }
.empty-state .es-ic { width: 88px; height: 88px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-size: 38px; color: var(--primary); }
.empty-state h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.empty-state p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
.btn-pill { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; background: linear-gradient(135deg, #e31c5f, #ff385c); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.btn-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,56,92,0.34); color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; max-width: 520px; }
  .auth-aside { display: none; }
  .auth-main { padding: 28px 20px 48px; }
  .offer-wrap { grid-template-columns: 1fr; gap: 24px; }
  .offer-aside { position: static; }
}
@media (max-width: 560px) {
  .page-head { padding: 28px 16px 4px; }
  .offer-wrap { padding: 16px 16px 72px; }
  .mylist-wrap { padding: 16px 16px 72px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-section { padding: 18px 16px; }
  .auth-card h1 { font-size: 24px; }
  .mylist-grid { grid-template-columns: 1fr; }
  .offer-actions { flex-direction: column-reverse; }
}
