/* ==========================================================================
   PORTAL, MEDICINE PAGE, INTERACTIVE MAPS & COMPLETE ADMIN CMS STYLES
   ========================================================================== */

.portal-hero, .medicine-hero, .maps-hero {
  min-height: 210px;
  padding: 48px 0 34px;
  background: linear-gradient(120deg, #001d16, #074f3b);
  color: #fff;
}
.portal-hero .wrap, .medicine-hero .wrap, .maps-hero .wrap {
  max-width: 1200px;
}
.portal-hero h1, .medicine-hero h1, .maps-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  margin: 12px 0;
}
.portal-hero h1 em, .medicine-hero h1 em, .maps-hero h1 em {
  color: #ffc400;
  font-style: italic;
}
.portal-hero p, .medicine-hero p, .maps-hero p {
  max-width: 720px;
  line-height: 1.6;
  color: #d7ebe3;
}

/* Account & Login Form */
.portal-account {
  display: flex;
  justify-content: center;
  padding: 42px 20px 72px;
}
.portal-form {
  width: min(100%, 560px);
  padding: 32px;
  background: #fffdf8;
  border: 1px solid #e7dfcf;
  border-radius: 22px;
  box-shadow: 0 16px 45px #001d1614;
}
.portal-form h2 {
  margin-top: 0;
  color: #002d22;
}
.portal-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  background: #f0ece1;
  border-radius: 14px;
}
.portal-auth-tabs button {
  flex: 1;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #355249;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  transition: .18s;
}
.portal-auth-tabs button.active {
  background: #007d58;
  color: #fff;
  box-shadow: 0 4px 12px #001d1624;
}
.portal-form label,
.admin-ad label,
.admin-settings-grid label,
.cms-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  margin: 6px 0;
  color: #173a31;
  font-size: .86rem;
}
.portal-form input,
.portal-form select,
.portal-form textarea,
.admin-ad input,
.admin-ad select,
.admin-ad textarea,
.admin-settings-grid input,
.cms-field input,
.cms-field select,
.cms-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d5cebe;
  border-radius: 11px;
  background: #fff;
  padding: 9px 12px;
  font: inherit;
  font-size: .92rem;
  font-weight: 500;
  color: #12231e;
  box-sizing: border-box;
}
.cms-field textarea {
  min-height: 72px;
  resize: vertical;
}
.cms-field input[type="color"] {
  padding: 4px;
  height: 42px;
  cursor: pointer;
}
.cms-field input[type="checkbox"],
.cms-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: #007d58;
  cursor: pointer;
}
.cms-checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 8px 0;
  font-weight: 700;
  color: #173a31;
  font-size: .9rem;
}
.portal-form input:focus,
.cms-field input:focus,
.cms-field select:focus,
.cms-field textarea:focus {
  outline: 2px solid #00a67d;
  outline-offset: 1px;
  border-color: #007d58;
}
.portal-switch {
  margin-top: 18px;
  font-size: .92rem;
}
.portal-switch a, .medicine-official {
  color: #007655;
  font-weight: 750;
}
.portal-admin-hint, .portal-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3cd;
  color: #5c4400;
  font-size: .88rem;
  line-height: 1.45;
  margin: 12px 0;
}
.portal-error {
  background: #ffe7e1;
  color: #8a2414;
}
.portal-success {
  padding: 12px 14px;
  border-radius: 12px;
  background: #dff5ea;
  color: #005a3c;
  font-weight: 700;
  font-size: .9rem;
  margin: 12px 0;
}

/* Custom Brand Logo & Dynamic Backgrounds */
.brand-custom-logo {
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  border-radius: 8px;
}
.home-slide.has-custom-bg {
  background-size: cover !important;
  background-position: center !important;
}
.story-visual.has-custom-img {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
}
.story-visual.has-custom-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,23,15,.15), rgba(0,23,15,.72));
  z-index: 0;
}
.story-visual.has-custom-img > * {
  position: relative;
  z-index: 1;
}
.home-listing-photo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}
.club-coupon-art.has-custom-photo {
  background-size: cover !important;
  background-position: center !important;
}
.club-coupon-art.has-custom-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,23,15,.35), rgba(0,23,15,.82));
  z-index: 0;
}
.club-coupon-art.has-custom-photo > * {
  position: relative;
  z-index: 1;
}
.bank-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5dece;
  padding: 3px;
  flex: none;
}
.cambista-card-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* ==========================================================================
   COMPLETE ADMIN CMS DASHBOARD (STATIC SIDEBAR — DOES NOT FOLLOW SCROLL)
   ========================================================================== */
.cms-shell {
  min-height: 100vh;
  background: #f4efe4;
  padding-bottom: 80px;
}
.cms-topbar {
  position: static;
  background: linear-gradient(115deg, #001d16, #064b38);
  color: #fff;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.cms-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cms-topbar-title small {
  display: block;
  color: #ffc400;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cms-topbar-title h1 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  color: #fff;
}
.cms-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cms-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 26px;
}
/* Static sidebar: stays in its left column and never follows or covers the screen */
.cms-sidebar {
  position: static !important;
  top: auto !important;
  background: #fffdf8;
  border: 1px solid #e2dac8;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 28px #001d160d;
  display: grid;
  gap: 6px;
}
.cms-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #1c362e;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: .16s;
}
.cms-tab-btn:hover {
  background: #edf6f1;
  border-color: #cde3d8;
  color: #006448;
}
.cms-tab-btn.active {
  background: #007d58;
  color: #fff;
  box-shadow: 0 6px 16px #00583f2e;
}
.cms-tab-btn small {
  background: rgba(0, 29, 22, .12);
  color: inherit;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}
.cms-tab-btn.active small {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.cms-main {
  min-width: 0;
  display: grid;
  gap: 22px;
}
.cms-panel-header {
  background: #fffdf8;
  border: 1px solid #e2dac8;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px #001d160a;
}
.cms-panel-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #002b20;
}
.cms-panel-header p {
  margin: 0;
  color: #54665e;
  font-size: .92rem;
  max-width: 720px;
  line-height: 1.45;
}

.cms-card {
  background: #fffdf8;
  border: 1px solid #e2dac8;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px #001d160c;
}
.cms-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ebe4d6;
}
.cms-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #002b20;
}
.cms-card-head p {
  margin: 0;
  color: #5b6d65;
  font-size: .88rem;
}

.cms-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cms-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cms-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cms-item {
  background: #f8f5ec;
  border: 1px solid #e2dac8;
  border-radius: 16px;
  padding: 18px;
  margin: 14px 0;
}
.cms-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d8d0be;
}
.cms-item-head h4 {
  margin: 0;
  font-size: 1rem;
  color: #003326;
}
.cms-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cms-add-btn {
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid #007d58;
  background: #007d58;
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .15s;
}
.cms-add-btn:hover {
  background: #006245;
}

.cms-mini-btn {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid #d0c8b8;
  background: #fff;
  color: #1d352d;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cms-mini-btn:hover {
  background: #edf5f0;
  border-color: #007d58;
}
.cms-mini-btn.primary {
  background: #007d58;
  color: #fff;
  border-color: #007d58;
}
.cms-mini-btn.gold {
  background: #ffc400;
  color: #00170f;
  border-color: #e0ac00;
}
.cms-mini-btn.danger {
  background: #fff0ed;
  color: #9d271e;
  border-color: #f1b8b2;
}
.cms-mini-btn.danger:hover {
  background: #9d271e;
  color: #fff;
}

/* Upload Box in Admin CMS */
.cms-upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fff;
  border: 1px dashed #c7bfb0;
  border-radius: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cms-upload-preview {
  width: 92px;
  height: 68px;
  border-radius: 10px;
  background: #eae5d9 center/cover no-repeat;
  border: 1px solid #d8d1c3;
  display: grid;
  place-items: center;
  color: #6e7a74;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  flex: none;
}
.cms-upload-preview.logo-mode img {
  object-fit: contain;
  padding: 4px;
  background: #fff;
}
.cms-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cms-upload-actions {
  flex: 1;
  min-width: 210px;
  display: grid;
  gap: 8px;
}
.cms-upload-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cms-upload-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  background: #007d58;
  color: #fff !important;
  font-size: .8rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  margin: 0 !important;
}
.cms-upload-btn input[type="file"] {
  display: none;
}
.cms-clear-img {
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid #f1b8b2;
  background: #fff0ed;
  color: #9d271e;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.cms-upload-actions input[type="text"] {
  width: 100%;
  min-height: 36px;
  border: 1px solid #d5cebe;
  border-radius: 9px;
  padding: 6px 10px;
  font: inherit;
  font-size: .84rem;
}

/* Admin Classifieds Ad Quicklist */
.cms-ad-Quicklist {
  display: grid;
  gap: 14px;
}
.cms-ad-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #f8f5ec;
  border: 1px solid #e2dac8;
  border-radius: 16px;
  padding: 16px;
}
.cms-ad-row.is-featured {
  border-color: #e0ac00;
  background: #fffdf2;
}
.cms-ad-thumb {
  width: 110px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8d0be;
  background: #eae5d9;
}
.cms-ad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cms-ad-actions {
  display: grid;
  gap: 6px;
  min-width: 132px;
}
.cms-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.cms-badge.gold {
  background: #ffc400;
  color: #00170f;
}
.cms-badge.green {
  background: #daf2e6;
  color: #006448;
}

/* Floating Bar on Public Pages only */
.admin-floating-bar {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 999;
  background: #002219f2;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border: 1px solid #19b383;
  font-size: .82rem;
  font-weight: 800;
}
.admin-floating-bar a, .admin-floating-bar button {
  padding: 7px 12px;
  border-radius: 999px;
  border: 0;
  background: #ffc400;
  color: #00170f;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}
.admin-floating-bar a.secondary, .admin-floating-bar button.secondary {
  background: #0b4b38;
  color: #fff;
}

/* Toast Notification */
.cms-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: #007d58;
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: .92rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  transition: opacity .25s, transform .25s;
}

/* ==========================================================================
   INTERACTIVE MAPS PAGE (#/mapas) & MAP PINS FOR ALL REGISTERED ADS
   ========================================================================== */
.maps-page-section {
  padding: 28px 0 72px;
}
.maps-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 12px;
  align-items: end;
  background: #fffdf8;
  border: 1px solid #e2dac8;
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 26px #001d160a;
}
.maps-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .95fr);
  gap: 20px;
  align-items: start;
}
.maps-canvas-card {
  background: #fffdf8;
  border: 1px solid #e2dac8;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 32px #001d1610;
}
#portal-leaflet-map {
  width: 100%;
  height: 540px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e0d3;
  border: 1px solid #d8d0be;
  z-index: 1;
}
.maps-google-iframe {
  width: 100%;
  height: 540px;
  border: 0;
  border-radius: 14px;
  display: block;
}
.maps-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 6px 4px;
  font-size: .84rem;
  color: #495d54;
}
.maps-sidebar-list {
  display: grid;
  gap: 12px;
  max-height: 590px;
  overflow-y: auto;
  padding-right: 4px;
}
.maps-ad-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  background: #fffdf8;
  border: 1px solid #e2dac8;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 18px #001d160a;
  transition: .16s;
}
.maps-ad-card:hover, .maps-ad-card.active-pin {
  border-color: #007d58;
  box-shadow: 0 10px 24px #007d581f;
}
.maps-ad-card img {
  width: 88px;
  height: 88px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  background: #eae5d9;
}
.maps-ad-card h3 {
  margin: 2px 0 4px;
  font-size: .98rem;
  color: #002b20;
}
.maps-ad-card p {
  margin: 0 0 8px;
  font-size: .82rem;
  color: #566860;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.maps-ad-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Custom Leaflet Marker Pin */
.medbol-map-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #007d58;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  white-space: nowrap;
}
.medbol-map-pin.is-featured {
  background: #ffc400;
  color: #00170f;
}
.medbol-map-pin.is-zone {
  background: #00261c;
  color: #ffc400;
  border-color: #ffc400;
}

/* Medicine Grid & Admin Ad List */
.portal-admin { padding: 34px 0 70px; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 14px; }
.admin-section-head h2 { margin: 5px 0; }
.admin-ad-list { display: grid; gap: 16px; }
.admin-ad { background: #fffdf8; border: 1px solid #e5dece; border-radius: 18px; padding: 20px; box-shadow: 0 8px 26px #001d160c; }
.portal-empty { padding: 32px; text-align: center; background: #fff; border: 1px dashed #cfc7b5; border-radius: 14px; }
.medicine-hero { background: linear-gradient(100deg, #001d16 0%, #00543d 68%, #073d31); }
.medicine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-top: 30px; }
.medicine-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; border-radius: 18px; background: #fffdf8; border: 1px solid #e5dece; box-shadow: 0 12px 30px #00291d12; }
.medicine-card > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.medicine-card > div { padding: 22px; }
.medicine-university { display: inline-block; background: #e5f4ed; color: #006448; padding: 5px 10px; border-radius: 999px; font-size: .76rem; font-weight: 850; }
.medicine-card h2 { font-size: 1.3rem; line-height: 1.2; }
.medicine-card p, .medicine-card dd { color: #56645f; line-height: 1.45; }
.medicine-card dl { display: grid; grid-template-columns: 1fr; gap: 2px; }
.medicine-card dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: #758079; margin-top: 8px; }
.medicine-card dd { margin: 0; }
.medicine-actions { display: grid; gap: 8px; margin-top: 16px; }
.medicine-actions .btn { width: 100%; text-align: center; justify-content: center; }
.curriculum-pending { padding: 10px 12px; background: #f4efdf; border-radius: 10px; color: #765f27; font-size: .86rem; }
.medicine-note { max-width: 1100px; margin: 24px auto 60px; padding: 0 20px; }
.weather-sun { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; font-size: 2rem; }

/* Classifieds 4-column controls & quick admin actions */
.classified-controls-4 { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: 12px; align-items: end; margin: 18px 0; padding: 16px; background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; }
.classified-admin-strip { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #dcd4c4; flex-wrap: wrap; }
.club-plans-showcase { margin-top: 34px; padding: 28px; border-radius: 22px; background: #fffdf8; border: 1px solid var(--line); box-shadow: 0 10px 28px #00170f0f; }
.club-plans-showcase-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.club-plans-showcase-head small { color: var(--green); font-weight: 900; font-size: 10px; letter-spacing: .8px; }
.club-plans-showcase-head h2 { margin: 6px 0 0; font-size: 26px; }

@media (max-width: 1020px) {
  .cms-workspace { grid-template-columns: 1fr; }
  .cms-sidebar { display: flex; flex-wrap: wrap; gap: 6px; }
  .cms-tab-btn { width: auto; flex: 1 1 200px; }
  .classified-controls-4, .maps-toolbar, .maps-main-grid { grid-template-columns: 1fr 1fr; }
  .maps-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 950px) {
  .medicine-grid { grid-template-columns: 1fr; }
  .medicine-card { grid-template-columns: 190px 1fr; }
  .cms-grid-3, .cms-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cms-ad-row { grid-template-columns: 90px minmax(0, 1fr); }
  .cms-ad-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .cms-grid-2, .cms-grid-3, .cms-grid-4, .classified-controls-4, .maps-toolbar { grid-template-columns: 1fr; }
  .medicine-card { grid-template-columns: 1fr; }
  .medicine-card > img { height: 210px; min-height: 0; }
  .cms-ad-row { grid-template-columns: 1fr; }
  .portal-form, .cms-card { padding: 18px; }
  .admin-floating-bar { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; border-radius: 16px; flex-wrap: wrap; }
}

/* ==========================================================================
   HIERARCHICAL DROPDOWN MENU, INFINITE MARQUEE, CENTERED LAYOUT & NEW PAGES
   ========================================================================== */

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

/* Hide loose white pill buttons under the home cover as requested */
.home-linkbar {
  display: none !important;
}

/* Top Ticker Bar with Live Exchange + Weather */
.ticker {
  min-height: 28px;
  height: auto;
  padding: 4px max(calc((100vw - 1240px)/2 + 24px), 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  position: relative;
  background: #00130c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ticker .ticker-weather-pill {
  color: #8bf0c9;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Seamless Infinite Yellow Marquee Banner (No pause, no flash, continuous loop) */
.tickerline {
  height: 46px !important;
  background: var(--yellow) !important;
  color: var(--ink) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  padding: 0 !important;
  gap: 0 !important;
  position: relative;
  user-select: none;
}
.ticker-track {
  display: flex !important;
  align-items: center !important;
  width: max-content !important;
  min-width: max-content !important;
  gap: 0 !important;
  animation: medbolInfiniteMarquee 32s linear infinite !important;
  will-change: transform;
}
.ticker-track:hover {
  animation-play-state: running !important;
}
.ticker-segment {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
}
@keyframes medbolInfiniteMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Header & Hierarchical Dropdown Navigation */
header.top {
  height: 66px;
  padding: 0 max(calc((100vw - 1240px)/2 + 24px), 18px);
  background: #fbf8f0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header.top nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 750;
  color: #1c2d25;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #1c2d25;
  font: inherit;
  font-size: 12.5px !important;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .16s, color .16s;
  white-space: nowrap;
}
.nav-dropdown-btn .nav-cat-label {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: inherit !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.nav-dropdown-btn .nav-caret {
  font-size: 10px;
  opacity: .75;
  transition: transform .18s;
}
.nav-dropdown:hover > .nav-dropdown-btn,
.nav-dropdown.open > .nav-dropdown-btn,
.nav-dropdown-btn.active {
  background: var(--ink);
  color: #fff;
}
.nav-dropdown:hover > .nav-dropdown-btn .nav-caret,
.nav-dropdown.open > .nav-dropdown-btn .nav-caret {
  transform: rotate(180deg);
  color: var(--yellow);
}
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: #061c14;
  color: #fff;
  border: 1px solid #1c4a38;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 15, 10, 0.42);
  z-index: 1500;
}
.nav-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-panel::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #061c14;
  border-left: 1px solid #1c4a38;
  border-top: 1px solid #1c4a38;
}
.nav-dropdown:hover > .nav-dropdown-panel,
.nav-dropdown.open > .nav-dropdown-panel {
  display: grid;
  gap: 4px;
}
.nav-dropdown-header {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 4px 10px 6px;
  border-bottom: 1px solid #ffffff14;
  margin-bottom: 4px;
}
.nav-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 9px 11px !important;
  border-radius: 12px !important;
  color: #e9f3ee !important;
  background: transparent !important;
  font-size: 12.5px;
  font-weight: 700;
  transition: background .15s, color .15s, transform .15s;
  text-align: left;
}
.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: #0f3829 !important;
  color: var(--yellow) !important;
  transform: translateX(2px);
}
.nav-dropdown-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ffffff12;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.nav-dropdown-text {
  display: grid;
  gap: 1px;
  line-height: 1.25;
}
.nav-dropdown-text strong {
  font-size: 12.5px;
  font-weight: 800;
  color: inherit;
}
.nav-dropdown-text small {
  font-size: 10.5px;
  color: #9bb5aa;
  font-weight: 500;
}
header.top nav > a.nav-assessment {
  background: var(--yellow) !important;
  color: var(--ink) !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  box-shadow: 0 4px 14px rgba(255, 196, 0, 0.35);
}
header.top nav > a.nav-login-pill {
  background: #e9e3d5;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 850;
  font-size: 12px;
  white-space: nowrap;
}
header.top nav > a.nav-login-pill:hover,
header.top nav > a.nav-login-pill.active {
  background: var(--ink);
  color: #fff;
}

/* Calculator Cambista Partner Ad Banner */
.calc-cambista-banner {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b3527 0%, #052218 100%);
  border: 1.5px solid var(--yellow);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.calc-cambista-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .8px;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.calc-cambista-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.calc-cambista-head img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #ffffff30;
  background: #fff;
}
.calc-cambista-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff17;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.calc-cambista-banner h4 {
  margin: 0;
  font-size: 15px;
  color: #fff;
}
.calc-cambista-banner p {
  margin: 4px 0 12px;
  font-size: 11.5px;
  color: #cfe0d8;
  line-height: 1.45;
}
.calc-cambista-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink) !important;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

/* Classifieds Favorites Heart & 5-Star Rating Bar */
.ad-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #7c8a82;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: transform .15s, color .15s, background .15s;
}
.ad-fav-btn:hover {
  transform: scale(1.08);
}
.ad-fav-btn.is-fav {
  color: #ef3e4a;
  background: #fff;
}
.ad-stars-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 6px 0;
}
.ad-star-btn {
  border: 0;
  background: transparent;
  padding: 0 1px;
  font-size: 14px;
  line-height: 1;
  color: #d4cebe;
  cursor: pointer;
  transition: transform .12s, color .12s;
}
.ad-star-btn.filled,
.ad-star-btn:hover {
  color: #f5b000;
  transform: scale(1.12);
}
.ad-stars-meta {
  font-size: 11px;
  font-weight: 800;
  color: #5c6e65;
  margin-left: 5px;
}

/* Geolocation Pin Button in Ad Form */
.geo-locate-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eaf6ef;
  border: 1px solid #bce0cb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.geo-locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.geo-locate-btn:hover {
  background: #005f43;
}
.geo-coords-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

/* Universal Guide / Rich Portal Pages */
.guide-page-hero {
  background: linear-gradient(108deg, #001810 0%, #004733 65%, #0a6b4e 100%);
  color: #fff;
  padding: 46px 0 50px;
  position: relative;
  overflow: hidden;
}
.guide-page-hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin: 14px 0 12px;
}
.guide-page-hero h1 em {
  color: var(--yellow);
  font-style: normal;
}
.guide-page-hero p {
  max-width: 680px;
  color: #d7e8df;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.guide-page-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.guide-page-points span {
  background: #ffffff17;
  border: 1px solid #ffffff2b;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.guide-section {
  padding: 36px 0 64px;
}
.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.guide-card {
  background: #fffdf8;
  border: 1px solid #e4ddcf;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 23, 15, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.guide-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e3f5ec;
  color: #006c4c;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.guide-card-badge {
  background: #00261c;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
}
.guide-card h3 {
  margin: 4px 0 2px;
  font-size: 18px;
  color: #002419;
}
.guide-card p {
  margin: 0;
  font-size: 13px;
  color: #53665d;
  line-height: 1.55;
  flex: 1;
}
.guide-card-meta {
  font-size: 11.5px;
  font-weight: 800;
  color: #006c4c;
  padding-top: 10px;
  border-top: 1px solid #ece6d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Academic Calendar Tabs & Timeline */
.calendar-uni-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 14px;
  background: #fffdf8;
  border: 1px solid #e4ddcf;
  border-radius: 16px;
}
.calendar-uni-tab {
  border: 1px solid #dcd4c2;
  background: #fff;
  color: #172a22;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: .15s;
}
.calendar-uni-tab.active,
.calendar-uni-tab:hover {
  background: #00261c;
  color: var(--yellow);
  border-color: #00261c;
}

/* Floating WhatsApp Button (Bottom Right) */
.floating-whatsapp-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #128c4b;
  color: #fff !important;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(18, 140, 75, 0.42);
  border: 2px solid #fff;
  transition: transform .18s, box-shadow .18s;
}
.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(18, 140, 75, 0.55);
}
.floating-whatsapp-btn .wa-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  font-size: 15px;
}

@media (max-width: 1020px) {
  .guide-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  header.top {
    padding: 0 16px;
  }
  .menu {
    display: inline-grid !important;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ede7d8;
    border: 0;
    font-size: 20px;
    cursor: pointer;
  }
  header.top nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #fbf8f0;
    padding: 16px;
    border-bottom: 2px solid var(--line);
    box-shadow: 0 18px 36px rgba(0, 23, 15, 0.22);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  header.top nav.open {
    display: flex;
  }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e4ddcf;
    border-radius: 12px;
    padding: 12px 14px;
  }
  .nav-dropdown-panel {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }
  .nav-dropdown-panel::before,
  .nav-dropdown-panel::after {
    display: none;
  }
  header.top nav > a.nav-assessment,
  header.top nav > a.nav-login-pill {
    text-align: center;
    justify-content: center;
    padding: 12px !important;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .guide-cards-grid,
  .geo-coords-inputs {
    grid-template-columns: 1fr;
  }
  .ticker {
    justify-content: center;
    gap: 8px 14px;
    padding: 6px 12px;
    font-size: 10px;
  }
  .ticker a {
    position: static;
  }
  .floating-whatsapp-btn span.wa-label-txt {
    display: none;
  }
  .floating-whatsapp-btn {
    padding: 12px;
    right: 14px;
    bottom: 74px;
  }
}


/* ==========================================================================
   ACADEMIC CALENDAR VISUAL GRID
   ========================================================================== */
.cal-visual-shell {
  background: #fff;
  border: 1px solid #dcd4c3;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0, 25, 18, 0.06);
  margin-top: 20px;
  overflow: hidden;
}

.cal-grid-header {
  background: linear-gradient(135deg, #002217, #003827);
  color: #fff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cal-month-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-nav-btn {
  background: #0d4633;
  color: #ffc400;
  border: 1px solid rgba(255, 196, 0, 0.3);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-nav-btn:hover {
  background: #185e46;
  border-color: #ffc400;
  transform: scale(1.06);
}

.cal-month-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.cal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-today-btn {
  background: #ffc400;
  color: #00241b;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 196, 0, 0.3);
  transition: all 0.15s;
}

.cal-today-btn:hover {
  background: #ffd333;
  transform: translateY(-1px);
}

.cal-active-uni-badge {
  background: #004d36;
  color: #ffc400;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 0, 0.25);
}

.cal-visual-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
}

@media (max-width: 860px) {
  .cal-visual-layout {
    grid-template-columns: 1fr;
  }
}

.cal-calendar-pane {
  padding: 20px;
}

.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 900;
  font-size: 0.76rem;
  color: #63776d;
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebe4d5;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding-top: 12px;
}

.cal-day-cell {
  min-height: 72px;
  background: #fff;
  border: 1px solid #e3dccb;
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.cal-day-cell:hover {
  border-color: #008261;
  background: #f4fbf7;
  transform: translateY(-1px);
}

.cal-day-cell.is-selected {
  border: 2px solid #008261;
  background: #e9f7ef;
  box-shadow: 0 4px 12px rgba(0, 130, 97, 0.22);
}

.cal-day-cell.is-selected .cal-day-number {
  color: #006647;
  font-weight: 900;
}

.cal-day-cell.is-empty {
  background: transparent;
  border: none;
  cursor: default;
}

.cal-day-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: #172c23;
}

.cal-day-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 8px;
}

.cal-day-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-aula { background: #10b981; }
.dot-prova { background: #f59e0b; }
.dot-feriado { background: #ef4444; }
.dot-matricula { background: #8b5cf6; }

.cal-legend-pane {
  padding: 20px;
  border-left: 1px solid #eee7d8;
  background: #fcfbf7;
}

.cal-legend-card h4 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: #00271c;
  font-weight: 800;
}

.cal-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cal-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-legend-row b {
  display: block;
  font-size: 0.9rem;
  color: #152921;
}

.cal-legend-row small {
  display: block;
  font-size: 0.76rem;
  color: #61736b;
}

.cal-legend-tip {
  margin-top: 16px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e3dbc9;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #43554d;
}

/* CALENDAR EVENTS LIST */
.cal-events-section {
  margin-top: 36px;
}

.cal-events-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.cal-events-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.cal-event-card {
  background: #fff;
  border: 1px solid #e2dac9;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 25, 18, 0.04);
  border-left-width: 5px;
}

.cal-event-card.border-aula { border-left-color: #10b981; }
.cal-event-card.border-prova { border-left-color: #f59e0b; }
.cal-event-card.border-feriado { border-left-color: #ef4444; }
.cal-event-card.border-matricula { border-left-color: #8b5cf6; }

.cal-event-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cal-event-uni-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cal-event-card h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: #00271c;
  font-weight: 800;
}

.cal-event-card p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #4a5c53;
  line-height: 1.5;
}

.cal-map-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #008261;
  text-decoration: none;
}

.cal-map-link:hover {
  text-decoration: underline;
}

.cal-events-empty {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #dcd4c3;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  color: #55685f;
}

/* ==========================================================================
   PROMO ENTRANCE POPUP MODAL (HOME)
   ========================================================================== */
.promo-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 18, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: promoFadeIn 0.22s ease-out;
}

.promo-popup-backdrop.closing {
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

@keyframes promoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.promo-popup-card {
  position: relative;
  background: #001f16;
  color: #fff;
  border: 1px solid rgba(255, 196, 0, 0.4);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  padding: 34px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  animation: promoScaleIn 0.25s ease-out;
}

.promo-popup-badge {
  position: absolute;
  top: 16px;
  left: 24px;
  background: #ffc400;
  color: #001f16;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.promo-popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.promo-popup-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.promo-popup-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-popup-brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.promo-popup-header-brand h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #ffc400;
  font-weight: 900;
}

.promo-popup-header-brand small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.promo-popup-body-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

@media (max-width: 520px) {
  .promo-popup-body-grid {
    grid-template-columns: 1fr;
  }
}

.promo-popup-title {
  font-family: 'Fraunces', serif;
  font-size: 1.85rem;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #fff;
}

.promo-popup-title em {
  font-style: normal;
  color: #ffc400;
  text-decoration: underline;
  text-decoration-color: rgba(255, 196, 0, 0.4);
}

.promo-popup-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
}

.promo-popup-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.promo-popup-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #e4eee9;
  margin-bottom: 6px;
}

.bullet-check {
  color: #ffc400;
  font-weight: 900;
}

.promo-popup-person-img {
  width: 140px;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255, 196, 0, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.promo-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffc400;
  color: #001f16;
  font-weight: 900;
  font-size: 0.96rem;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 196, 0, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.promo-popup-cta:hover {
  background: #ffd333;
  transform: translateY(-2px);
}

.promo-popup-full-banner {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 16px;
  margin: 18px 0;
}

.promo-popup-footer {
  text-align: center;
  margin-top: 14px;
}

/* ==========================================================================
   GLOBAL SITE SEARCH MODAL
   ========================================================================== */
.nav-search-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffc400;
}

.site-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 20, 14, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  padding: 48px 16px 24px;
  animation: promoFadeIn 0.2s ease-out;
}

.site-search-modal {
  background: #fff;
  width: 100%;
  max-width: 660px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  overflow: hidden;
  border: 1px solid #d4ccb8;
  animation: promoScaleIn 0.22s ease-out;
}

.site-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #ebe4d5;
  background: #fbf9f4;
}

.site-search-icon {
  font-size: 1.3rem;
  color: #718278;
}

.site-search-header input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  font-family: inherit;
  color: #002218;
  outline: none;
}

.site-search-close {
  background: #ede7d8;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b4d44;
}

.site-search-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.site-search-quick-tags small {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #718278;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.site-search-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-search-pills button {
  background: #f0ece1;
  border: 1px solid #dfd8c7;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #002b20;
  cursor: pointer;
  transition: all 0.15s;
}

.site-search-pills button:hover {
  background: #008261;
  color: #fff;
  border-color: #008261;
}

.site-search-group-header {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #008261;
  margin: 16px 0 8px;
  text-transform: uppercase;
}

.site-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #142921;
  transition: background 0.12s;
}

.site-search-item:hover {
  background: #f0f7f3;
}

.site-search-item strong {
  display: block;
  font-size: 0.96rem;
  color: #00241b;
}

.site-search-item small {
  display: block;
  font-size: 0.82rem;
  color: #5a6e64;
}

.site-search-item-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.site-search-item-badge.uni { background: #e0f2fe; color: #0284c7; }
.site-search-item-badge.zone { background: #fef3c7; color: #b45309; }
.site-search-item-badge.guide { background: #dcfce7; color: #15803d; }
.site-search-item-badge.ad { background: #f3e8ff; color: #7e22ce; }

.site-search-item-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: #a4b3ab;
}

.site-search-empty {
  text-align: center;
  padding: 32px 16px;
  color: #55685f;
}

/* ==========================================================================
   ZONE SEALS & BADGES (TODOS OS ANÚNCIOS)
   ========================================================================== */
.zone-seal {
  background: #00271c;
  color: #ffc400;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 196, 0, 0.4);
}

.zone-seal-badge {
  background: #f0f8f4;
  color: #006647;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #b7e3d1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.zone-seal-featured {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zone-seal-card {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.7rem;
  padding: 2px 8px;
}

.zone-seal-inline {
  color: #006647;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.home-listing-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  width: 100%;
}
