/* ═══════════════════════════════════════════
   TRIP PLANNER — Airbnb-Inspired Design System
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────── */
:root {
  --primary:         #FF385C;
  --primary-dark:    #E61E4D;
  --primary-darker:  #C13584;
  --primary-light:   #FF5A5F;
  --primary-bg:      #FFF0F2;

  --text:            #222222;
  --text-secondary:  #717171;
  --text-light:      #BBBBBB;

  --bg:              #F7F7F7;
  --bg-white:        #FFFFFF;
  --border:          #EBEBEB;
  --border-dark:     #DDDDDD;

  --success:         #008A74;
  --success-bg:      #E6F4F1;
  --warning:         #C57400;
  --warning-bg:      #FFF4E0;
  --error:           #C13515;
  --error-bg:        #FFEDE8;
  --info:            #0077CC;
  --info-bg:         #E8F4FF;

  --radius-xs:       4px;
  --radius-sm:       8px;
  --radius:          12px;
  --radius-lg:       16px;
  --radius-xl:       24px;
  --radius-pill:     9999px;

  --shadow-xs:       0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:       0 2px 8px rgba(0,0,0,.08);
  --shadow:          0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:       0 8px 32px rgba(0,0,0,.14);
  --shadow-hover:    0 12px 40px rgba(0,0,0,.15);

  --transition:      all 0.2s ease;
  --transition-slow: all 0.35s cubic-bezier(.4,0,.2,1);

  /* ── Legacy aliases so old PHP templates still work ── */
  --airbnb-primary:       var(--primary);
  --airbnb-primary-dark:  var(--primary-dark);
  --airbnb-primary-darker:var(--primary-darker);
  --airbnb-primary-light: var(--primary-light);
  --airbnb-text:          var(--text);
  --airbnb-gray-text:     var(--text-secondary);
  --airbnb-gray:          var(--text-secondary);   /* FIX: was undefined */
  --airbnb-light-gray:    var(--bg);
  --airbnb-border:        var(--border);
  --airbnb-success:       var(--success);
  --airbnb-success-bg:    var(--success-bg);
  --airbnb-warning:       var(--warning);
  --airbnb-warning-bg:    var(--warning-bg);
  --airbnb-error:         var(--error);
  --airbnb-error-bg:      var(--error-bg);
  --airbnb-radius:        var(--radius);
  --airbnb-radius-sm:     var(--radius-sm);
  --airbnb-shadow:        var(--shadow-sm);
  --airbnb-shadow-hover:  var(--shadow-hover);
  --airbnb-transition:    var(--transition);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ───────────────────────────────── */
.container { max-width: 1128px; margin: 0 auto; padding: 0 24px; }
.minimal-container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.navbar {
  background: var(--bg-white) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.7rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary) !important;
  letter-spacing: -0.4px;
  text-decoration: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--text) !important; }

.navbar-toggler {
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,56,92,.15); }

.login-btn {
  background: var(--primary) !important;
  border: none !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: var(--radius-pill) !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: var(--transition) !important;
}
.login-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,56,92,.3) !important;
}

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */
.card,
.airbnb-card,
.trip-card-minimal,
.member-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  
  overflow: hidden;
  transition: var(--transition-slow);
}

.card:hover,
.trip-card-minimal:hover,
.member-card:hover {
  box-shadow: var(--shadow-xs);
  transform: translateY(-3px);
  border-color: transparent;
  border: 1px solid ;
}

.card-body { padding: 1.5rem; }

.card-header,
.card-footer {
  padding: 0.9rem 1.25rem;
  background: var(--bg);
  border-color: var(--border);
}
.card-header { border-bottom: 1px solid var(--border); }
.card-footer { border-top: 1px solid var(--border); display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  transition: var(--transition);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}

/* FIX: .btn-pill was referenced but never defined */
.btn-pill { border-radius: var(--radius-pill) !important; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,56,92,.3);
}

.btn-default,
.btn-outline-secondary {
  background: var(--bg-white);
  border-color: var(--border-dark);
  color: var(--text);
}
.btn-default:hover,
.btn-outline-secondary:hover { background: var(--bg); border-color: var(--text-secondary); color: var(--text); }

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: white; }

.btn-light { background: var(--bg); border-color: var(--border); color: var(--text); }
.btn-light:hover { background: #EBEBEB; color: var(--text); }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 0.8rem 1.8rem; font-size: 1rem; }

.airbnb-btn {
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  text-decoration: none;
}
.airbnb-btn-primary { background: var(--primary); color: white; }
.airbnb-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,56,92,.35);
  color: white;
}
.airbnb-btn-outline { background: var(--bg-white); border: 1.5px solid var(--border-dark); color: var(--text); }
.airbnb-btn-outline:hover { border-color: var(--text); background: var(--bg); }

.approve-btn {
  background: var(--success); color: white;
  border: none; border-radius: var(--radius-sm);
  padding: 7px 13px; cursor: pointer;
  font-weight: 600; font-size: .83rem;
  transition: var(--transition);
}
.approve-btn:hover { filter: brightness(1.1); }

.remove-btn {
  background: var(--error-bg); color: var(--error);
  border: 1px solid rgba(193,53,21,.15);
  border-radius: var(--radius-sm);
  padding: 7px 13px; cursor: pointer;
  font-weight: 600; font-size: .83rem;
  transition: var(--transition);
}
.remove-btn:hover { background: var(--error); color: white; border-color: var(--error); }

.action-btn {
  padding: 7px 12px; border: none; border-radius: var(--radius-sm);
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: .82rem; transition: var(--transition);
}

.btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); color: var(--primary);
  border: 1px solid var(--border); transition: var(--transition);
  text-decoration: none;
}
.btn-action:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ══════════════════════════════════════
   FORMS
   ══════════════════════════════════════ */
.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,56,92,.12);
  outline: none;
}
.form-control::placeholder { color: var(--text-light); }

.input-group-text {
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════
   TABLES
   ══════════════════════════════════════ */
.table-container {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;               /* FIX: mobile scroll */
  -webkit-overflow-scrolling: touch;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 440px;
}

.table th {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.table th:hover { color: var(--text); }

.table td {
  padding: 13px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: var(--bg); }

/* ══════════════════════════════════════
   TABS
   ══════════════════════════════════════ */
.nav-tabs {
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
  border: none !important;
  border-bottom: 2.5px solid transparent !important;
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.85rem 1rem !important;
  border-radius: 0 !important;
  background: none !important;
  transition: var(--transition);
  margin-bottom: -1.5px;
}
.nav-tabs .nav-link.active {
  color: var(--text) !important;
  border-bottom-color: var(--primary) !important;
}
.nav-tabs .nav-link:hover:not(.active) {
  color: var(--text) !important;
  border-bottom-color: var(--border-dark) !important;
}

/* ══════════════════════════════════════
   BADGES
   ══════════════════════════════════════ */
.badge,
.status-badge,
.status-badge-container,
.kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: .03em;
  white-space: nowrap;
}

.status-active, .kyc-badge { background: var(--success-bg); color: var(--success); }
.status-pending             { background: var(--warning-bg); color: var(--warning); }
.status-inactive            { background: var(--error-bg);   color: var(--error);   }
.status-open                { background: var(--info-bg);    color: var(--info);    }
.status-full                { background: var(--error-bg);   color: var(--error);   }
.status-0                   { background: var(--warning-bg); color: var(--warning); }
.status-1                   { background: var(--success-bg); color: var(--success); }

.verified-badge { color: var(--primary); font-size: 0.85em; }

/* ══════════════════════════════════════
   AVATARS
   ══════════════════════════════════════ */
.avatar,
.user-avatar,
.member-avatar,
.organizer-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* sizes */
.avatar-xs                  { width: 24px;  height: 24px;  }
.avatar-sm, .member-avatar  { width: 32px;  height: 32px;  }
.avatar-md, .user-avatar    { width: 48px;  height: 48px;  }
.organizer-avatar           { width: 44px;  height: 44px;  }
.avatar-lg                  { width: 96px;  height: 96px;  }


/* FIX: .avatar in trip-card-footer had no size → layout broke */
.trip-card-footer .avatar {
  width: 28px; height: 28px;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  margin-right: 6px;
}

.profile-header .avatar-xl {
  border: 4px solid white;
  box-shadow: var(--shadow);
  width: 100%;
  

  
}

/* ══════════════════════════════════════
   TRIP CARDS (index.php)
   ══════════════════════════════════════ */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* FIX: was 600px */
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.trip-card-minimal {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.1rem 1.1rem 0.6rem;
  gap: 0.5rem;
}

.trip-card-title {
  font-size: 1rem; font-weight: 700;
  margin: 0; color: var(--text); flex: 1; line-height: 1.3;
}

.trip-card-desc {
  padding: 0 1.1rem 0.75rem; margin: 0;
  color: var(--text-secondary); font-size: 0.84rem; line-height: 1.5;
}

.trip-info-row {
  display: flex; justify-content: space-between;
  padding: 0 1.1rem 0.75rem; gap: 0.25rem;
}

.info-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.82rem; color: var(--text-secondary); font-weight: 500;
}

.trip-progress {
  height: 3px; background: var(--border);
  margin: 0 1.1rem 0.75rem; border-radius: 2px; overflow: hidden;
}

.progress-bar {
  height: 100%; background: var(--primary); transition: width .4s ease;
}
.progress-bar.bg-danger  { background: var(--error)   !important; }
.progress-bar.bg-primary { background: var(--primary) !important; }

.trip-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.1rem 1.1rem; margin-top: auto;
}

.trip-creator {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 500; color: var(--text-secondary);
}

/* ══════════════════════════════════════
   MEMBER CARDS (tripinfo.php)
   ══════════════════════════════════════ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.members-grid-container { width: 100%; }

/* FIX: card-header flex layout was missing */
.member-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.user-info { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }

.username {
  display: block; font-weight: 700; font-size: 0.95rem; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.contact-info { display: block; font-size: .82rem; color: var(--text-secondary); }

.payment-details, .proof-details { margin-bottom: 0.75rem; }
.payment-details:last-child, .proof-details:last-child { margin-bottom: 0; }

.payment-type-label, .proof-label {
  font-size: .72rem; color: var(--text-light); text-transform: uppercase;
  letter-spacing: .07em; font-weight: 700; margin-bottom: 0.2rem;
}
.payment-type-value { font-weight: 600; font-size: .92rem; color: var(--text); }

.view-proof-btn {
  background: var(--info-bg); color: var(--info);
  border: 1px solid rgba(0,119,204,.15);
  padding: 6px 12px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: .82rem; font-weight: 600;
  transition: var(--transition);
}
.view-proof-btn:hover { background: var(--info); color: white; }

.no-proof { font-style: italic; color: var(--text-light); font-size: .85rem; }

/* ══════════════════════════════════════
   PROFILE
   ══════════════════════════════════════ */
.profile-header {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, #FFF0F2 0%, white 65%);
}

.profile-username {
  font-size: 1.3rem; font-weight: 800;
  margin-top: 0.75rem; margin-bottom: 0.25rem; letter-spacing: -.3px;
}
.profile-email { color: var(--text-secondary); font-size: .88rem; margin-bottom: 1rem; }

.profile-actions {
  display: flex; justify-content: center; gap: .75rem;
  margin-top: 1rem; flex-wrap: wrap;
}

.profile-info { padding: 1.25rem 0 0.5rem; }

.list-group-item {
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0.85rem 0;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.list-group-item:last-child { border-bottom: none !important; }
.list-group-item strong { color: var(--text-secondary); font-weight: 500; min-width: 95px; flex-shrink: 0; }

/* ══════════════════════════════════════
   TRIP VIEW
   ══════════════════════════════════════ */
.trip-header {
  background: linear-gradient(135deg, var(--primary) 0%, #C13584 100%);
  color: white;
  padding: 2rem 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.trip-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.trip-title {
  font-size: 1.75rem; font-weight: 800;
  margin-bottom: .4rem; letter-spacing: -.4px; position: relative;
}
.trip-subtitle { font-size: .95rem; opacity: .9; margin: 0; position: relative; }

.meta-info { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .25rem; }

.info-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  padding: .4rem .85rem; border-radius: var(--radius-pill);
  font-size: .84rem; font-weight: 500; color: var(--text);
}
.info-pill i { color: var(--text-secondary); font-size: .8rem; }

.section-title {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: .2rem; color: var(--text); letter-spacing: -.15px;
}

/* FIX: .section-sub was used but only .section-subtitle was defined */
.section-subtitle, .section-sub {
  font-size: .87rem; color: var(--text-secondary); margin-bottom: 1rem;
}

.member-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  padding: .35rem .75rem; border-radius: var(--radius-pill);
  margin: 0 .3rem .3rem 0; font-size: .82rem; font-weight: 500;
}

.organizer-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; background: var(--bg);
  border-radius: var(--radius); margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.price-tag { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -.4px; }
.price-label { font-size: .8rem; color: var(--text-secondary); }

.availability-bar {
  height: 6px; background: var(--bg);
  border-radius: 3px; overflow: hidden; margin-bottom: .4rem;
}
.availability-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 3px; transition: width .5s ease;
}

.sticky-sidebar { position: sticky; top: 76px; }

/* ══════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════ */
.comment-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-author { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.comment-time   { font-size: .78rem; color: var(--text-secondary); margin-bottom: .4rem; }
.comment-text   { font-size: .9rem; line-height: 1.6; color: var(--text); }

.comment-form {
  background: var(--bg); padding: 1.25rem;
  border-radius: var(--radius); margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.comment-textarea {
  width: 100%; padding: .75rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: .9rem; resize: vertical; min-height: 90px;
  font-family: inherit; color: var(--text); background: white;
  transition: border-color .2s, box-shadow .2s;
}
.comment-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,56,92,.1);
}

/* ══════════════════════════════════════
   DROPZONE
   ══════════════════════════════════════ */
.dropzone {
  border: 2px dashed var(--border-dark); border-radius: var(--radius);
  padding: 2rem; text-align: center; background: var(--bg);
  cursor: pointer; transition: var(--transition); min-height: 80px;
}
.dropzone:hover, .dropzone.dz-drag-hover {
  border-color: var(--primary); background: var(--primary-bg);
}
.dz-message { margin: 0; color: var(--text-secondary); font-size: .9rem; }

.border-dashed { border: 2px dashed var(--border-dark); cursor: pointer; transition: border-color .25s; }
.border-dashed:hover { border-color: var(--primary); }

/* ══════════════════════════════════════
   PAGE HEADERS
   ══════════════════════════════════════ */
.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0;
  margin-bottom: 1.75rem;
}

.page-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

/* ══════════════════════════════════════
   MODALS (Bootstrap)
   ══════════════════════════════════════ */
.modal-content {
  border: none; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
}
.modal-header .modal-title { font-weight: 700; font-size: 1rem; }
.modal-body   { padding: 1.5rem; }
.modal-footer { border-top: 1px solid var(--border); padding: 1rem 1.5rem; gap: .5rem; }
.btn-close:focus { box-shadow: none; }

/* Custom modal (tripinfo.php) */
#proofModal {
  display: none; position: fixed;
  inset: 0; z-index: 1000000;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}
#proofModal .modal-content {
  background: var(--bg-white); margin: 8% auto; padding: 0;
  width: 90%; max-width: 600px;
  animation: modalSlide .3s cubic-bezier(.4,0,.2,1);
}
#proofModal .modal-header {
  display: flex; justify-content: space-between; align-items: center;
}
#proofModal .modal-header h3 {
  font-size: 1rem; font-weight: 700; margin: 0;
}
.close {
  color: var(--text-secondary); font-size: 1.4rem; cursor: pointer;
  background: none; border: none; padding: 0; transition: var(--transition); line-height: 1;
}
.close:hover { color: var(--text); }

#proofImage { max-width: 100%; max-height: 380px; border-radius: var(--radius-sm); border: 1px solid var(--border); }

.modal-approve-btn {
  background: var(--success); color: white; border: none;
  padding: 8px 16px; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: .85rem; transition: var(--transition);
}
.modal-approve-btn:hover { filter: brightness(1.1); }
.modal-approve-btn:disabled { opacity: .6; cursor: not-allowed; }

.modal-cancel-btn {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-dark);
  padding: 8px 16px; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: .85rem; transition: var(--transition);
}
.modal-cancel-btn:hover { background: #EBEBEB; }

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 99999; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast-msg {
  background: var(--text); color: white;
  padding: 11px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); font-size: .86rem; font-weight: 600;
  pointer-events: auto; animation: slideUp .3s ease; max-width: 320px;
}
.toast-msg.error   { background: var(--error); }
.toast-msg.success { background: var(--success); }

.notification {
  display: none; position: fixed; bottom: 24px; right: 24px;
  background: var(--text); color: white;
  padding: 12px 20px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); z-index: 9999;
  font-size: .88rem; font-weight: 600;
  animation: slideUp .3s ease; max-width: 320px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 3rem 1.5rem; color: var(--text-secondary);
}
.empty-state i { font-size: 2.5rem; margin-bottom: .75rem; color: var(--border-dark); display: block; }
.empty-state h6 { font-weight: 700; margin-bottom: .35rem; color: var(--text); }
.empty-state p  { font-size: .88rem; margin: 0; }

/* ══════════════════════════════════════
   ALERTS & ERROR MESSAGES
   ══════════════════════════════════════ */
.error-message {
  background: var(--error-bg); color: var(--error);
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(193,53,21,.15);
  font-size: .9rem; margin-bottom: 1.25rem;
}

.alert-success {
  background: var(--success-bg); color: var(--success);
  border-color: rgba(0,138,116,.2); border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════
   MISC
   ══════════════════════════════════════ */
h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -.15px; }
a  { color: var(--primary); }
a:hover { color: var(--primary-dark); }
hr { border-color: var(--border); }

.text-primary { color: var(--primary) !important; }
.text-muted   { color: var(--text-secondary) !important; }

/* ══════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 992px)
   ══════════════════════════════════════ */
@media (max-width: 992px) {
  .trip-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .sticky-sidebar { position: static; margin-top: 1.5rem; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .container, .minimal-container { padding: 0 1rem; }

  .page-header { padding: 1.1rem 0; margin-bottom: 1.25rem; }
  .page-header-inner {
    flex-direction: column; align-items: flex-start; gap: .75rem;
  }
  .page-header-inner .btn { align-self: stretch; justify-content: center; }

  .trip-grid    { grid-template-columns: 1fr; gap: 1rem; }
  .members-grid { grid-template-columns: 1fr; }

  .trip-title   { font-size: 1.4rem; }
  .section-title { font-size: 1rem; }

  .meta-info { gap: .4rem; }
  .info-pill { font-size: .78rem; padding: .32rem .65rem; }

  .trip-info-row { flex-wrap: wrap; gap: .3rem; }

  #proofModal .modal-content { width: 95%; margin: 5% auto; }

  .profile-actions { flex-direction: column; }
  .profile-actions .btn { justify-content: center; }

  .modal-content { border-radius: var(--radius-lg); }

  .comment-form { padding: 1rem; }
  .organizer-card { flex-wrap: wrap; }

  .modal-dialog { margin: 0.75rem; }

  h1 { font-size: 1.5rem; }
}

/* ══════════════════════════════════════
   RESPONSIVE — SMALL  (≤ 480px)
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  .trip-creator span { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .member-card .card-header { flex-direction: column; align-items: flex-start; }
  .navbar-brand { font-size: 1.1rem; }
}


.ql-container {
    border: 1px solid #ccc !important;
    border-radius: 6px; /* optional */
}

.ql-editor {
    min-height: 120px;
    font-size: 14px;
}

