/* ================= DASHBOARD PAGE VARIABLES ================= */
:root {
  --hero-overlay-top: rgba(5, 20, 40, 0.85);
  --hero-overlay-bottom: rgba(5, 20, 40, 0.93);

  --panel-bg-top: rgba(255,255,255,0.11);
  --panel-bg-bottom: rgba(255,255,255,0.05);
  --panel-border: rgba(198,167,94,0.28);
  --panel-border-strong: rgba(198,167,94,0.48);

  --panel-shadow:
    0 18px 45px rgba(0,0,0,0.50),
    0 0 20px rgba(198,167,94,0.08);

  --panel-shadow-hover:
    0 28px 65px rgba(0,0,0,0.62),
    0 0 26px rgba(198,167,94,0.16);
}

/* ================= PAGE BACKGROUND ================= */
body {
  background-color: #0B1F3A;
  background:
    linear-gradient(
      var(--hero-overlay-top),
      var(--hero-overlay-bottom)
    ),
    url('images/hero.regatta.png') center center / cover no-repeat;
  background-attachment: fixed;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.page-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Prevent language flicker before translations/auth finish */
body:not(.app-ready) .page-wrapper,
body:not(.app-ready) .site-footer,
body:not(.app-ready) #dashboardAiAssistant {
  visibility: hidden;
}

body.app-ready .page-wrapper,
body.app-ready .site-footer,
body.app-ready #dashboardAiAssistant {
  visibility: visible;
}

/* ================= TYPOGRAPHY ================= */
h1,
h2 {
  font-family: 'Merriweather', serif;
}

h1 {
  text-align: center;
  font-family: 'Merriweather', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 8px;
  margin-bottom: 10px;
  color: var(--luxury-gold);
  text-shadow: 0 0 10px rgba(198,167,94,0.25);
}

h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--luxury-gold);
  margin-bottom: 30px;
}

.section-category {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: rgba(198,167,94,0.9);

  margin: 40px auto 16px;
  width: 100%;
  max-width: 600px;

  border-bottom: 1px solid rgba(198,167,94,0.25);
  padding-bottom: 10px;
}

@keyframes goldGlow {
  from { text-shadow: 0 0 5px rgba(198,167,94,0.18); }
  to { text-shadow: 0 0 18px rgba(198,167,94,0.38); }
}

.section-category i {
  color: var(--luxury-gold);
  margin-right: 10px;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  vertical-align: middle;
}

.welcome-small,
.welcome-name,
.stat-card p {
  font-family: 'Montserrat', sans-serif;
}

.dashboard-return-row {
  width: 100%;
  padding: 14px 16px 0 24px;
  position: relative;
  z-index: 5;

  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-return-row .mobile-return-actions {
  display: none;
  align-items: center;
  gap: 10px;
}
.dashboard-return-row .filter-btn {
  width: auto;
  min-width: 0;
  padding: 8px 14px;
  font-size: 13px;
}

#backButton {
  margin: 0;
}

/* ================= SHARED PANEL SYSTEM ================= */
.card,
.landing-card,
.stat-card,
.vessel-section,
.fuel-card,
.modal-content,
.review-modal-content,
#welcomePanel {
  position: relative;
  background: linear-gradient(
    145deg,
    var(--panel-bg-top),
    var(--panel-bg-bottom)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.card::before,
.landing-card::before,
.stat-card::before,
.vessel-section::before,
.fuel-card::before,
.modal-content::before,
.review-modal-content::before,
#welcomePanel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.03) 35%,
    transparent 60%
  );
  opacity: 0.45;
}

.card,
.landing-card,
.stat-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover,
.landing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--panel-shadow-hover);
  border-color: var(--panel-border-strong);
}


/* ================= VESSEL SECTION ================= */
.vessel-section {
  max-width: 620px;
  margin: 40px auto;
  padding: 35px 40px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  animation: panelFade 0.6s ease forwards;
}

.vessel-section h3 {
  font-size: 24px;
  color: var(--luxury-gold);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

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

.vessel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  color: #C6A75E;
}

.vessel-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 25px;
}

/* ================= FORM MODE ================= */
.vessel-form-fields {
  display: flex;
  flex-direction: column;
}

.vessel-section label {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.vessel-section input,
.vessel-section select {
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(198,167,94,0.4);
  background: rgba(10, 25, 50, 0.85);
  color: white;
  font-size: 18px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.vessel-section input::placeholder {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
}

.vessel-section input:focus,
.vessel-section select:focus {
  outline: none;
  border: 1px solid #c9a64d;
  box-shadow: 0 0 0 2px rgba(201,166,77,0.2);
}

/* ================= VIEW MODE ================= */
.hidden {
   display: none !important;
}

.vessel-display {
  display: none;
  margin-top: 12px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.03)
  );
  border: 1px solid rgba(198,167,94,0.25);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.25),
    0 0 14px rgba(198,167,94,0.08);
  overflow: hidden;
}

.vessel-display-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(198,167,94,0.16);
  background: rgba(255,255,255,0.03);
}

.vessel-display-header h4 {
  margin: 0;
  color: var(--luxury-gold);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.vessel-info-grid {
  display: flex;
  flex-direction: column;
}

.vessel-info-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.vessel-info-row:last-child {
  border-bottom: none;
}

.vessel-info-label {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.vessel-info-value {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.vessel-section.view-mode .vessel-form-fields {
  display: none;
}

.vessel-section.view-mode .vessel-display {
  display: block;
}
.vessel-insurance-warning {
  margin: 18px 0 24px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.vessel-insurance-warning.warning {
  background: #fff4d6;
  color: #7a4b00;
  border: 1px solid #f1c75b;
}

.vessel-insurance-warning.danger {
  background: #ffe1e1;
  color: #8a1f1f;
  border: 1px solid #e57373;
}


/* ================= BUTTONS ================= */
.vessel-buttons {
  margin-top: 35px;
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.vessel-btn {
  padding: 14px 32px;
  border-radius: 40px;
  border: 2px solid rgba(198,167,94,0.6);
  background: linear-gradient(145deg, #C6A75E, #A88A3C);
  color: #051428;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
  box-shadow:
    0 6px 20px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.05) inset;
}

.vessel-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 35px rgba(198,167,94,0.45),
    0 0 18px rgba(198,167,94,0.3);
}

.delete-btn {
  background: linear-gradient(145deg, #b83b3b, #922828);
  border: 2px solid rgba(255,255,255,0.15);
  color: white;
}

.delete-btn:hover {
  box-shadow:
    0 14px 35px rgba(200,60,60,0.5),
    0 0 15px rgba(200,60,60,0.4);
}

/* ================= TOAST ================= */
.luxury-toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: linear-gradient(145deg, #0b1d2a, #132c3f);
  color: #d4af37;
  padding: 16px 28px;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border: 1px solid rgba(212,175,55,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  pointer-events: none;
}

.luxury-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= LUXURY MODAL ================= */
.luxury-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.luxury-modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.luxury-modal.show .modal-content {
  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    0 0 25px rgba(212,175,55,0.25);
}

.modal-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-btn {
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-btn.cancel {
  background: #444;
  color: white;
}

.modal-btn.delete {
  background: linear-gradient(145deg, #b83b3b, #922828);
  color: white;
}

.modal-btn:hover {
  transform: translateY(-2px);
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ================= STAR RATING ================= */
.star-rating {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 18px;
  font-size: 28px;
}

.star-rating span {
  opacity: 0.35;
  transition: transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
  cursor: pointer;
}

.star-rating span:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 10px rgba(198,167,94,0.45));
}

.star-rating span.active {
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(198,167,94,0.35));
}

/* ================= REVIEW RATING ROW ================= */
.rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.rating-text {
  font-weight: 600;
  font-size: 16px;
  color: var(--luxury-gold);
  margin-bottom: 12px;
  margin-top: 8px;
}

.luxury-toggle-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #d4af37;
  background: transparent;
  color: #d4af37;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.luxury-toggle-btn:hover {
  background: #d4af37;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212,175,55,0.4);
}

.leave-review {
  margin-top: 15px;
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.leave-review h4 {
  margin-bottom: 10px;
  color: #d4af37;
}

.review-comment,
.review-text {
  margin-top: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-sizing: border-box;
  word-break: break-word;
}

.submit-review-btn {
  margin-top: 5px;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(198,167,94,0.6);
  background: #C6A75E;
  color: #051428;
  cursor: pointer;
  transition: all .25s ease;
}

.submit-review-btn:hover {
  background: #e2c271;
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0,0,0,.4),
    0 0 15px rgba(198,167,94,.4);
}

.review-anonymous-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.remove-favorite-btn {
  margin-top: 15px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: #e6e6e6;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.remove-favorite-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.45);
}

.empty-fav {
  text-align: center;
  width: 100%;
  margin: 40px auto;
  font-size: 20px;
  opacity: 0.85;
}

.favorite-removing {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.favorite-heart {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(5, 20, 40, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(198, 167, 94, 0.55);
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 4px 14px rgba(0,0,0,0.22);
  transition: all 0.25s ease;
}

.favorite-heart:hover {
  transform: scale(1.15);
  background: rgba(198, 167, 94, 0.18);
  border-color: rgba(198, 167, 94, 0.8);
  color: #ffffff;
  box-shadow:
    0 0 10px rgba(198,167,94,0.45),
    0 0 20px rgba(198,167,94,0.22);
}

.favorite-heart.saved {
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.4);
  box-shadow:
    0 0 12px rgba(255, 77, 77, 0.4),
    0 0 20px rgba(255, 77, 77, 0.2);
}

.favorite-heart.animate {
  animation: heartPop 0.35s ease;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.favorite-top {
  position: absolute;
  top: 12px;
  right: 12px;
}

.card.removing {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.review-btn-row {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

#favoritesContainer .review-btn-row > button:first-child {
  background: transparent;
  color: #C6A75E;
  border: 1px solid rgba(198,167,94,0.6);
  font-size: 11px;
  padding: 8px 12px;
  opacity: 0.85;
}


/* ================= REVIEW CARDS ================= */
.review-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.review-list.open {
  max-height: 800px;
  overflow-y: auto;
}

.single-review {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(198,167,94,0.25);
  transition: all .25s ease;
}

.single-review:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 25px rgba(0,0,0,.4),
    0 0 12px rgba(198,167,94,.25);
  border: 1px solid rgba(198,167,94,0.45);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--luxury-gold);
  letter-spacing: .5px;
}

.review-stars {
  color: #f1c40f;
  font-size: 15px;
  letter-spacing: 2px;
}

.review-date {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.rating-stars {
  color: #f1c40f;
}

.rating-count {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

/* ================= INFO ROWS ================= */
.info-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 10px 18px;
  align-items: start;
  margin-bottom: 8px;
}

.label {
  font-weight: 600;
  color: #ffffff;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
}

.value {
  color: rgba(255,255,255,0.9);
  min-width: 0;
  word-break: break-word;
  line-height: 1.45;
}

.map-link {
  color: var(--luxury-gold);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.map-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(198,167,94,0.8);
}

.map-link:visited {
  color: var(--luxury-gold);
}

/* ===== HOURS LAYOUT ===== */
.info-row.hours-row {
  align-items: start;
}

.info-row.hours-row .value {
  margin-top: 0;
  word-break: normal;
  overflow-wrap: normal;
}

.hours-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hours-block + .hours-block {
  margin-top: 14px;
}

.hours-title {
  color: var(--luxury-gold);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px 0;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.hours-lines {
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: normal;
}

.today-highlight {
  color: var(--luxury-gold);
  font-weight: 700;
}

.today-highlight::before {
  content: "• ";
  color: var(--luxury-gold);
}
/* ================= SERVICE NOTES ================= */
.service-notes-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-note-block {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.service-note-heading {
  margin-bottom: 6px;
  color: var(--luxury-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.service-note-text {
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

/* ================= DESCRIPTION ================= */
.description {
  text-align: center;
  max-width: 900px;
  margin: 25px auto;
  font-size: 20px;
  line-height: 1.7;
  color: var(--luxury-gold);
}

#landingMessage {
  font-size: 18px;
}

/* ================= WELCOME PANEL ================= */
#welcomePanel {
  margin: 0 30px 24px;
  border-radius: 20px;
  padding: 20px 30px;
  width: fit-content;
  max-width: calc(100% - 60px);
}

.welcome-small {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.welcome-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--luxury-gold);
  margin-top: 5px;
}

html.capacitor-app #welcomePanel,
html.capacitor-app h1,
html.capacitor-app .app-hide-on-app {
  display: none !important;
}

/* ================= DASHBOARD FUEL INTELLIGENCE ONLY ================= */
#fuelIntelligenceSection {
  min-height: 85vh;
  padding-top: 40px;
}

#fuelIntelligenceSection .fuel-card {
  max-width: 1000px;
  margin: 60px auto 0 auto;
  border-radius: 20px;
  padding: 30px;
  font-size: 0.95rem;
}

#fuelIntelligenceSection .fuel-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#fuelIntelligenceSection .fuel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d4af37;
}

#fuelIntelligenceSection .fuel-icon {
  width: 22px;
  height: 22px;
}

#fuelIntelligenceSection .fuel-description {
  margin-bottom: 25px;
}

#fuelIntelligenceSection .fuel-header,
#fuelIntelligenceSection .fuel-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 12px 0;
}

#fuelIntelligenceSection .fuel-header {
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

#fuelIntelligenceSection .fuel-updated {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(212,175,55,0.15);
  color: #d4af37;
}

#fuelIntelligenceSection #fuelSearchInput {
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  padding: 10px 14px;
  margin: 0 0 18px 0;
  border-radius: 8px;
  border: 1px solid rgba(198,167,94,0.25);
  background: rgba(10, 25, 50, 0.6);
  color: #ffffff;
  font-size: 14px;
}

#fuelIntelligenceSection #fuelSearchInput::placeholder {
  color: rgba(255,255,255,0.5);
}

#fuelIntelligenceSection #fuelSearchInput:focus {
  outline: none;
  border-color: #C6A75E;
  box-shadow: 0 0 6px rgba(198,167,94,0.25);
}

@media screen and (max-width: 768px) {

  .page-wrapper {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

  .filters select {
    font-size: 16px;
  }

  .dashboard-return-row .filter-btn,
  .dashboard-return-row .near-me-btn {
    padding: 8px 13px;
    font-size: 12px;
  }

  #fuelIntelligenceSection {
    padding-bottom: 90px;
  }

  #fuelIntelligenceSection .fuel-card {
    width: calc(100% - 32px);
    max-width: 460px;
    margin: 24px auto 0;
    padding: 24px 20px;
    box-sizing: border-box;
  }

  #fuelIntelligenceSection .fuel-header-top {
    display: block;
  }

  #fuelIntelligenceSection .fuel-updated {
    display: inline-block;
    margin: 12px 0 18px;
  }

  #fuelIntelligenceSection #fuelSearchInput {
    max-width: 100%;
    width: 100%;
  }

  #fuelIntelligenceSection .fuel-header {
    display: none !important;
  }

  #fuelIntelligenceSection .fuel-row {
    display: block !important;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  #fuelIntelligenceSection .fuel-row div:first-child {
    display: block;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #E8C873;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
  }

  #fuelIntelligenceSection .fuel-row div:not(:first-child) {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    color: rgba(255,255,255,0.92);
    font-weight: 700;
  }

  #fuelIntelligenceSection .fuel-row div:nth-child(2)::before {
    content: "Eurosuper 95";
    color: #E8C873;
  }

  #fuelIntelligenceSection .fuel-row div:nth-child(3)::before {
    content: "Eurodiesel";
    color: #E8C873;
  }

  #fuelIntelligenceSection .fuel-row div:nth-child(4)::before {
    content: "Premium Diesel";
    color: #E8C873;
  }

  #fuelIntelligenceSection .fuel-row div:nth-child(5) {
    display: none !important;
  }

  #fuelIntelligenceSection .fuel-row.mobile-hidden {
    display: none !important;
  }

  #fuelIntelligenceSection .show-more-fuel-btn {
    display: block;
    width: 100%;
    margin: 18px 0 0;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(198,167,94,0.45);
    background: rgba(198,167,94,0.16);
    color: #E8C873;
    font-weight: 800;
    font-family: inherit;
  }
}

.landing-row-break {
  flex-basis: 100%;
  width: 100%;
  height: 0;
}

.pets-card {
  justify-self: center;
  max-width: 300px;
  margin-top: 0;
}

.pets-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 14px;
  color: #d4af37 !important;
}

.pets-title span {
  color: #d4af37 !important;
  font-size: 1.25rem;
  font-weight: 700;
}

.pets-icon {
  width: 18px;
  height: 18px;
  color: #d4af37 !important;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.pets-card:hover .pets-icon {
  opacity: 1;
  transform: scale(1.05);
}

/* ================= DASHBOARD EVENTS ================= */

#eventsSection {
  max-width: 1320px;
  margin: 30px auto 70px;
  padding: 34px 32px 44px;
}

/* ===== HERO ===== */

#eventsSection .events-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 32px;
  align-items: start;
  margin-bottom: 30px;
}

#eventsSection .events-copy {
  max-width: 700px;
  text-align: left;
}

#eventsSection .events-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 14px;
  border-radius: 999px;

  background: rgba(70,140,60,0.22);
  color: #9fe870;

  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#eventsSection .events-copy h2 {
  margin: 14px 0 12px;
  text-align: left !important;
  font-family: 'Merriweather', serif;
  font-size: clamp(1.9rem, 2.2vw, 3rem);
  line-height: 0.9;
  letter-spacing: -1px;
  max-width: 320px;
  color: #E8C873;
}

#eventsSection .events-copy p {
  max-width: 720px;

  margin: 0;

  text-align: left !important;

  color: rgba(255,255,255,0.84);

  font-size: 1rem;
  line-height: 1.7;
}

#eventsSection .section-divider-left {
  width: 90px;
  height: 2px;

  margin: 22px 0 24px;

  background: #C6A75E;
}

@media screen and (max-width: 768px) {
  #eventsSection {
    margin-top: -50px;
  }

  #eventsSection .events-hero {
    margin-top: 0;
    margin-bottom: 10px;
    gap: 10px;
  }

  #eventsSection .events-copy {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  #eventsSection .section-divider-left {
    margin: 16px auto 4px;
  }

  #eventsSection .events-hero-map {
    margin-top: 0;
  }

  #fuelIntelligenceSection {
    padding-top: 0;
  }
}

/* ===== CATEGORY PILLS ===== */

#eventsSection .events-categories {
  margin-top: 24px;
  max-width: 720px;
}

@media screen and (max-width: 768px) {
  #eventsSection .events-categories {
    display: none;
  }
}

#eventsSection .events-categories h3,
#eventsSection .events-group-title {
  margin: 0 0 16px;

  text-align: left !important;

  color: #E8C873;

  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

#eventsSection .category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;

  gap: 12px;
}

#eventsSection .category-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  padding: 10px 16px;

  border-radius: 999px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(198,167,94,0.18);

  color: rgba(255,255,255,0.88);

  font-size: 0.78rem;
}

#eventsSection .category-item i {
  color: #E8C873;
}
/* ===== MAP ===== */

#eventsSection .events-hero-map {
  width: 100%;
  max-width: 500px;
}

#dashboardEventsMap {
  width: 100%;
  height: 260px;

  border-radius: 20px;
  overflow: hidden;

  border: 1px solid rgba(198,167,94,0.22);
}

/* ===== GROUPS ===== */

#eventsSection .events-group {
  margin-bottom: 30px;
}

/* ===== GRID ===== */

#eventsSection .events-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* ===== CARD ===== */

#eventsSection .event-card {
  position: relative;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  min-height: 250px;

  border-radius: 18px;

  background: rgba(5,20,40,0.92);
  border: 1px solid rgba(198,167,94,0.22);

  box-shadow: 0 18px 42px rgba(0,0,0,0.32);
}

/* ===== BADGE ===== */

#eventsSection .event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;

  padding: 5px 10px;

  border-radius: 999px;

  background: rgba(55,120,55,0.92);
  color: white;

  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* ===== BODY ===== */

#eventsSection .event-body {
  flex: 1;

  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;

  padding: 78px 14px 16px;
}

/* ===== DATE ===== */

#eventsSection .event-date {
  width: 54px;
  height: 68px;

  border-radius: 11px;
  border: 1px solid rgba(198,167,94,0.35);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#eventsSection .event-date strong {
  color: #E8C873;

  font-size: 1.55rem;
  line-height: 1;
}

#eventsSection .event-date span {
  margin-top: 4px;

  color: rgba(255,255,255,0.78);

  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== TEXT ===== */

#eventsSection .event-card h3 {
  margin: 0 0 6px;

  color: white;

  font-size: 0.86rem;
  line-height: 1.24;
}

#eventsSection .event-location {
  margin: 0 0 8px;

  color: rgba(232,200,115,0.88);

  font-size: 0.64rem;
  line-height: 1.35;
}

#eventsSection .event-text {
  margin: 0;

  color: rgba(255,255,255,0.74);

  font-size: 0.7rem;
  line-height: 1.45;
}

/* ===== COUNTDOWN ===== */

#eventsSection .event-countdown {
  margin: auto 18px 18px;
  padding-top: 16px;

  border-top: 1px solid rgba(198,167,94,0.16);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #E8C873;

  font-size: 0.76rem;
  font-weight: 700;
}

#eventsSection .event-countdown::before {
  content: "⏳";
  font-size: 0.82rem;
}

#eventsSection .event-countdown.event-passed {
  color: rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,0.12);
}

/* ===== MAP MARKER ===== */

.gold-event-marker {
  background: transparent;
}

.gold-marker-inner {
  width: 18px;
  height: 18px;

  border-radius: 50%;

  background:
    radial-gradient(circle at 30% 30%,
    #f7e7b4,
    #c6a75e 60%,
    #8c6b2e);

  border: 2px solid rgba(255,255,255,0.55);

  box-shadow:
    0 0 0 6px rgba(198,167,94,0.12),
    0 0 20px rgba(198,167,94,0.55),
    0 0 40px rgba(198,167,94,0.35);
}

/* ================= STATS SECTION ================= */
#dashboardStats {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px auto;
}

.stats-heading {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  width: 100%;
}

.stat-card {
  border-radius: 18px;
  padding: 14px;
  width: 185px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  opacity: 0.95;
}

.stat-card canvas {
  width: 100% !important;
  height: 75px !important;
  margin-top: 15px;
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.stat-card h3 {
  font-size: 28px;
  color: rgba(198,167,94,0.92);
}

.stat-card p {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

/* ================= LANDING BUTTONS ================= */
.landing-buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  row-gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.landing-card {
  position: relative;
  border-radius: 22px;
  padding: 16px 14px;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  height: 190px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.landing-card h3 {
  color: var(--luxury-gold);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  line-height: 1.15;

  width: 100%;
  max-width: 82%;
  margin: 50px auto 6px auto;

  min-height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  overflow-wrap: break-word;
  hyphens: auto;

  position: relative;
  z-index: 1;
}

.landing-card p {
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  line-height: 1.3;
  margin: 0;

  width: 100%;
  max-width: 82%;
  margin-left: auto;
  margin-right: auto;

  text-align: center;
  overflow-wrap: break-word;
  hyphens: auto;

  position: relative;
  z-index: 1;
}

.landing-card::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--luxury-gold);
  margin: 10px auto 0;
  border-radius: 3px;
  position: relative;
  z-index: 1;
}

.landing-card i {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--luxury-gold);
  margin: 0;
  display: block;
  transition: all 0.3s ease;
}

.landing-card:hover i {
  transform: translateX(-50%) scale(1.12);
  color: #f1d27a;
}

/* ================= FILTERS ================= */

.filters {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  flex-wrap: wrap;
  align-items: center;
}

#filtersContainer {
  position: relative;
  z-index: 50;
  margin-top: 18px;
}

.filters select {
  background-color: rgba(5, 20, 40, 0.95);
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(198,167,94,0.4);
  min-width: 220px;
}

#filtersContainer select option {
  background-color: var(--deep-navy);
  font-size: 20px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.filter-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
}

.filter-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 14px;
}

.filter-btn .btn-text {
  display: inline-block;
  line-height: 1;
}

.near-me-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(198,167,94,0.35);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.near-me-btn:hover {
  background: rgba(198,167,94,0.15);
  border-color: #C6A75E;
  color: #C6A75E;
}

/* ================= DASHBOARD MAP ================= */
.dashboard-map-wrap {
  width: 100%;
  max-width: 980px;
  margin: 20px auto 8px;
  padding: 0 10px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.dashboard-map-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-map-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.04)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(198,167,94,0.28);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.50),
    0 0 20px rgba(198,167,94,0.08);
  border-radius: 22px;
  overflow: hidden;
  padding: 18px;
}

.dashboard-map-header {
  text-align: center;
  margin-bottom: 14px;
}

.dashboard-map-header h3 {
  margin: 0 0 6px;
  color: var(--luxury-gold);
  font-size: 18px;
  letter-spacing: 1px;
}

.dashboard-map-header p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.5;
}

#dashboardMap {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(198,167,94,0.18);
  background: rgba(5, 20, 40, 0.45);
}
.weather-map-area {
  position: relative;
  width: 100%;
  height: 390px;
  margin-bottom: 12px;
}

#dashboardMap,
#dashboardWeatherEmbed {
  width: 100%;
  height: 100%;
}

#dashboardWeatherEmbed iframe {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(198,167,94,0.18);
}

/* Smooth map layer transition */
.map-layer {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.map-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Loading shimmer */
#mapLoadingShimmer {
  position: absolute;
  inset: 0;
  z-index: 50;
  border-radius: 16px;

  background:
    linear-gradient(
      110deg,
      rgba(5,20,40,0.35) 0%,
      rgba(198,167,94,0.55) 45%,
      rgba(255,255,255,0.25) 50%,
      rgba(198,167,94,0.55) 55%,
      rgba(5,20,40,0.35) 100%
    );

  background-size: 300% 100%;
  animation: shimmerMove 1.4s ease-in-out infinite;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#mapLoadingShimmer.show {
  opacity: 1;
}

@keyframes shimmerMove {
  to {
    background-position-x: -200%;
  }
}

.weather-layer-buttons {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  margin-bottom: 0;
  flex-wrap: nowrap;
}

.weather-layer-buttons button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(198,167,94,0.45);
  background: rgba(5,20,40,0.75);
  color: #C6A75E;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.map-layer-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s ease;
}

/* 🔥 ACTIVE STATE */
.map-layer-btn.active {
  background: linear-gradient(
    135deg,
    rgba(198,167,94,0.9),
    rgba(255,255,255,0.25)
  );
  color: #041428;
  border: 1px solid rgba(198,167,94,0.9);
  box-shadow: 0 0 12px rgba(198,167,94,0.4);
}

.scroll-to-cards-hint {
  margin-top: 6px;
  margin-bottom: 10px;
  text-align: center;
  color: #d6b45f;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 10px rgba(214, 180, 95, 0.35),
    0 0 18px rgba(214, 180, 95, 0.18);
  animation: bounceHint 1.25s infinite;
}

@keyframes bounceHint {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.75;
  }

  25% {
    transform: translateY(4px);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 1;
  }

  75% {
    transform: translateY(4px);
    opacity: 1;
  }
}

/* ================= MAP POPUP BRANDING ================= */
.dashboard-map-popup {
  position: relative;
  min-width: 190px;
  max-width: 240px;
  padding-right: 34px;
  color: #f5f1e8;
  line-height: 1.4;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
}

/* ---------- CUSTOM CLOSE BUTTON ---------- */
.dashboard-map-popup-close {
  position: absolute;
  top: 0;
  right: -2px;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.58);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: none;
}

.dashboard-map-popup-close:hover {
  color: #C6A75E;
  background: transparent;
  transform: scale(1.06);
}

/* ---------- TEXT ---------- */
.dashboard-map-popup-title {
  margin-bottom: 3px;
  color: #C6A75E;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  padding-right: 8px;
}

.dashboard-map-popup-type {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.70);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dashboard-map-popup-location {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  line-height: 1.45;
}

/* ---------- LINKS ---------- */
.dashboard-map-popup-link {
  display: block;
  width: fit-content;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.22s ease;
}

.dashboard-map-popup a {
  color: #ffffff !important;
}

.dashboard-map-popup a:hover {
  color: #C6A75E !important;
}

/* ---------- PHONE ---------- */
.dashboard-map-popup-phone {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 0;
}

.dashboard-map-popup-phone:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(198,167,94,0.22);
}

.dashboard-map-popup-phone-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

/* ---------- DIRECTIONS BUTTON ---------- */
.dashboard-map-popup-directions {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dashboard-map-popup-directions:hover {
  color: #C6A75E;
  text-decoration: underline;
}

/* ---------- LEAFLET POPUP SHELL ---------- */
.leaflet-popup-content-wrapper {
  background: linear-gradient(
    145deg,
    rgba(10, 25, 45, 0.97),
    rgba(18, 42, 70, 0.97)
  );
  color: #ffffff;
  border: 1px solid rgba(198,167,94,0.26);
  border-radius: 18px;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.30),
    0 0 10px rgba(198,167,94,0.08);
}

.leaflet-popup-content {
  margin: 14px 14px 13px;
}

.leaflet-popup-tip {
  background: rgba(10, 25, 45, 0.97);
}

/* ---------- REMOVE DEFAULT LEAFLET X ---------- */
.leaflet-popup-close-button {
  display: none !important;
}




/* ================= CARDS ================= */

.results-summary {
  max-width: 900px;
  margin: 10px auto 8px;
  padding: 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: #d4af37;
  text-align: center;
  opacity: 0.9;
}

.pagination-container {
  max-width: 900px;
  margin: 0 auto 12px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
#paginationContainerBottom {
  margin: 8px auto 24px;
}

.pagination-btn {
  padding: 10px 16px;
  border: 1px solid #d4af37;
  background: transparent;
  color: #d4af37;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-info {
  color: #fff;
  font-weight: 500;
}
#cardsContainer {
  width: 100%;
  max-width: 760px;
  margin: 18px auto 40px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

#cardsContainer > .card {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  border-radius: 20px;
  padding: 26px 28px;
  margin: 0 0 22px 0;
  font-size: 16px;
  line-height: 1.55;
  align-self: stretch;
}

#cardsContainer.loading {
  opacity: 0.5;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card-name {
  font-size: 24px;
  color: var(--luxury-gold);
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card-subcode {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 215, 140, 0.45); /* dimmer */
  margin-bottom: 6px;
}

.card-header {
  margin-bottom: 14px;
  padding-right: 56px;
}
.card-divider {
  width: 100%;
  height: 1px;
  background: rgba(198,167,94,0.14);
  margin: 0 0 14px 0;
}

.card-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(198,167,94,0.14);
}

.card-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.card-section-title {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(198,167,94,0.78);
}

.card-section .info-row:last-child {
  margin-bottom: 0;
}

.card-section-toggle {
  display: none;
}
.card-section.is-collapsible .card-section-content {
  max-height: none;
  opacity: 1;
  overflow: visible;
}

.phone-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 10px 0;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  color: var(--luxury-gold);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: 0.25s ease;
}

.phone-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(198,167,94,0.35);
}

.phone-action-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #d4af37;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.phone-action-btn:hover {
  background: rgba(212, 175, 55, 0.12);
}

.copy-phone-btn {
  font-family: inherit;
}

#favoritesContainer {
  overflow-anchor: none;
}

#favoritesContainer .card {
  max-width: 600px;
  margin: 15px auto;
  padding: 15px 20px;
}

#favoritesContainer .card h3 {
  font-size: 24px;
}

#favoritesContainer .card p {
  margin: 4px 0;
  font-size: 20px;
}

#favoritesContainer .phone-links {
  margin-top: 2px;
  margin-bottom: 10px;
}

#favoritesContainer .phone-row {
  gap: 10px;
}

#favoritesContainer .phone-link {
  font-size: 13px;
}

#favoritesContainer .phone-action-btn {
  padding: 5px 9px;
  font-size: 12px;
}
.favorite-details {
  display: none;
  margin-top: 14px;
}

.favorite-details.open {
  display: block;
}

.browse-btn {
  margin-top: 10px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #0a2a4a;
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.browse-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.rating {
  margin-top: 8px;
  font-weight: bold;
  color: gold;
  font-size: 20px;
}

/* ================= PROFILE DROPDOWN LINKS ================= */

.profile-dropdown .app-profile-link {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: 0;
  color: #C6A75E;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* Admin button hidden by default */
#adminButton {
  display: none !important;
}

/* Only shown when JS confirms admin */
#adminButton.is-admin-visible {
  display: block !important;
}

/* Greeting hidden on desktop */
.profile-dropdown-user {
  display: none;
  padding: 2px 4px 8px;
  margin-bottom: 6px;
}

/* Greeting shown only in app */
html.capacitor-app .profile-dropdown-user {
  display: block;
}

.profile-dropdown-greeting {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: rgba(255, 230, 160, 0.95); /* brighter gold */
  font-weight: 600;

  opacity: 0.95;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.8),
    0 0 8px rgba(0,0,0,0.6);

  margin-bottom: 4px;
}

.profile-dropdown-name {
  font-size: 18px;
  font-weight: 600;

  color: rgba(255, 215, 140, 0.9); /* softer gold */

  text-shadow:
    0 1px 2px rgba(0,0,0,0.7);
}

.app-support-links {
  display: none;
}

html.capacitor-app .app-support-links {
  display: block !important;
}

html.capacitor-app .app-home-link {
  display: none !important;
}

.profile-dropdown a:hover,
.profile-dropdown a:active {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
}

.profile-dropdown hr,
.profile-dropdown-divider {
  border: none;
  height: 1px;
  background: rgba(198,167,94,0.3);
  margin: 12px 0;
}

/* ================= BACK BUTTON ================= */
#backButton {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  padding: 0;

  background: transparent;
  color: #C6A75E;
  border: 1px solid rgba(198,167,94,0.35);
  border-radius: 14%;

  cursor: pointer;
  transition: all 0.25s ease;
}

#backButton:hover {
  background: rgba(198,167,94,0.12);
  border-color: rgba(198,167,94,0.55);
}

#backButton .back-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

#backButton .back-text {
  display: none;
}

#backButton .back-icon i {
  font-size: 18px;
  transform: translateX(-2px);
}

/* ================= REVIEW BUTTONS ================= */
.review-lux-btn,
.review-add-btn,
.favorite-btn {
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .25s ease;
}

.review-lux-btn {
  border: 1px solid rgba(198,167,94,0.6);
  background: rgba(10,25,45,0.65);
  color: #C6A75E;
  backdrop-filter: blur(8px);
}

.review-lux-btn:hover {
  background: #C6A75E;
  color: #051428;
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0,0,0,.4),
    0 0 12px rgba(198,167,94,.35);
}

.review-add-btn {
  border: 1px solid rgba(198,167,94,0.6);
  background: linear-gradient(135deg,#d4af37,#f1d27a);
  color: #051428;
}

.review-add-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0,0,0,.4),
    0 0 12px rgba(198,167,94,.35);
}

.review-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,20,40,0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.review-modal-content {
  padding: 30px 28px;
  border-radius: 22px;
  width: 460px;
  max-width: 92%;
  color: white;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.04)
  );
  border: 1px solid rgba(198,167,94,0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    0 0 24px rgba(198,167,94,0.10);
}

#reviewModalTitle {
  margin: 0 0 18px;
  color: var(--luxury-gold);
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

#reviewComment {
  width: 100%;
  min-height: 130px;
  margin-top: 8px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(198,167,94,0.22);
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.07),
    rgba(255,255,255,0.03)
  );
  color: white;
  resize: vertical;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 20px rgba(0,0,0,0.18);
}

#reviewComment::placeholder {
  color: rgba(255,255,255,0.5);
}

#reviewComment:focus {
  outline: none;
  border-color: rgba(198,167,94,0.55);
  box-shadow:
    0 0 0 3px rgba(198,167,94,0.12),
    0 12px 24px rgba(0,0,0,0.22);
}

.review-modal-buttons {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

#submitReviewBtn {
  flex: 1;
  background: linear-gradient(135deg,#d4af37,#f1d27a);
  color: #051428;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}

#submitReviewBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,.4);
}

.review-modal-buttons button:last-child {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

/* ================= FAVORITES BUTTON ================= */
.favorite-row {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.favorite-btn {
  padding: 10px 18px;
  font-size: 14px;
  border: 1px solid rgba(198,167,94,0.6);
  background: rgba(10,25,45,0.65);
  color: #C6A75E;
  backdrop-filter: blur(8px);
}

.favorite-btn:hover {
  background: #C6A75E;
  color: #0b1b2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
}

.favorite-btn.saved {
  background: #C6A75E;
  color: #0b1b2b;
}

.favorite-memo-section {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(198,167,94,0.22);
}

.favorite-memo-title {
  color: var(--luxury-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.favorite-memo-helper {
  margin: 0 0 10px;
  font-size: 13px !important;
  color: rgba(255,255,255,0.65);
}

.favorite-memo-textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(198,167,94,0.25);
  background: rgba(5,20,40,0.65);
  color: white;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.favorite-memo-textarea:focus {
  outline: none;
  border-color: rgba(198,167,94,0.6);
  box-shadow: 0 0 0 3px rgba(198,167,94,0.12);
}

.favorite-memo-save-btn {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(198,167,94,0.6);
  background: linear-gradient(135deg,#d4af37,#f1d27a);
  color: #051428;
  font-weight: 700;
  cursor: pointer;
}

.favorite-memo-section {
  margin-top: 14px;
}

.favorite-memo-toggle {
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(198,167,94,0.55);
  background: rgba(5,20,40,0.55);
  color: #C6A75E;
  font-weight: 700;
  cursor: pointer;
}

.favorite-memo-toggle.has-memo {
  background: rgba(198,167,94,0.18);
  color: #f1d27a;
}

.favorite-memo-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(198,167,94,0.22);
}

.favorite-memo-read {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(5,20,40,0.55);
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  white-space: normal;
}

.favorite-memo-edit.hidden,
.favorite-memo-read.hidden,
.favorite-memo-edit-btn.hidden {
  display: none;
}

.favorite-memo-counter {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: right;
}

.favorite-memo-edit-btn {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(198,167,94,0.55);
  background: rgba(5,20,40,0.55);
  color: #C6A75E;
  font-weight: 700;
  cursor: pointer;
}

.saved {
  background: linear-gradient(135deg,#d4af37,#f1d77a);
  color: #0b2341;
  font-weight: 600;
}
#dashboardAiAssistant {
  position: fixed;
  right: 40px;
  bottom: 86px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  overflow: visible;
}

#dashboardAiToggle {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(198,167,94,0.45);
  border-radius: 50%;
  background: linear-gradient(135deg, #C6A75E, #A88A3C);
  color: #051428;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.35),
    0 0 16px rgba(198,167,94,0.18);
}

#dashboardAiChatBox {
  width: 340px;
  height: 460px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(10, 32, 58, 0.98),
    rgba(5, 20, 40, 0.99)
  );
  border: 1px solid rgba(198,167,94,0.26);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.42),
    0 0 18px rgba(198,167,94,0.10);
}

#dashboardAiMessages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: white;
}

#dashboardAiInput {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(198,167,94,0.22);
  background: rgba(255,255,255,0.07);
  color: white;
  font-size: 0.92rem;
  outline: none;
}

#dashboardAiInput::placeholder {
  color: rgba(255,255,255,0.55);
}

.ai-header {
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #C6A75E;
  border-bottom: 1px solid rgba(198,167,94,0.18);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.ai-close-btn {
  background: transparent;
  border: none;
  color: #C6A75E;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.ai-message {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.92rem;
  word-break: break-word;
}

.ai-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #C6A75E, #A88A3C);
  color: #051428;
  border-bottom-right-radius: 6px;
}

.ai-message.assistant {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 6px;
  line-height: 1.35;
}

.ai-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(198,167,94,0.14);
  background: rgba(255,255,255,0.03);
}

.ai-send-btn {
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #C6A75E, #A88A3C);
  color: #051428;
  font-weight: 700;
  cursor: pointer;
}

.ai-starters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(198,167,94,0.14);
}

.ai-starter-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.ai-starter-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(198,167,94,0.24);
}

.ai-message.assistant br + br {
  display: none;
}

.ai-message.assistant strong {
  display: block;
  margin: 0 0 2px 0;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
}

.ai-message.assistant br {
  line-height: 1.2;
}

.dashboard-ai-link {
  color: #C6A75E;
  text-decoration: underline;
  font-weight: 500;
}

.dashboard-ai-phone-link {
  color: #C6A75E;
  font-weight: 600;
}

.ai-company-line a {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.dashboard-ai-link,
.dashboard-ai-phone-link {
  color: #d4af37;
  text-decoration: none;
  transition: all 0.22s ease;
}

.dashboard-ai-link:hover,
.dashboard-ai-phone-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(198,167,94,0.35);
}

.ai-company-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  border: 1px solid rgba(198,167,94,0.16);
  border-radius: 18px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.ai-company-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(198,167,94,0.12);
}
.ai-company-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-company-line {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
  line-height: 1.35;
}

.ai-company-line.is-plain-text {
  grid-template-columns: 1fr;
}

.ai-company-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 1px;
}

.ai-inline-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.ai-company-content {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ai-phone-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.dashboard-ai-phone-link,
.dashboard-ai-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ai-company-line.is-phone-group .dashboard-ai-phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
}
  
/* ================= LOADER ================= */
#loader {
  position: fixed;
  inset: 0;
  background: #0B1F3A;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--luxury-gold);
  letter-spacing: 2px;
  z-index: 10000;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(198,167,94,0.3);
  border-top: 4px solid var(--luxury-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ===== HOURS SIDE-BY-SIDE FIX ===== */
.hours-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 24px;
  align-items: start;
}

.hours-block strong {
  display: block;
  margin-bottom: 6px;
  color: var(--luxury-gold);

}
/* ================= DESKTOP (1024+) ================= */
@media (min-width: 1024px) {
  h1 {
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
  }

  h2,
  .stats-heading,
  #sectionHeading {
    font-size: 1.15rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
  }

#welcomePanel {
  position: absolute;
  top: 120px;
  left: 40px;
  margin: 0;
  padding: 10px 18px;
  z-index: 20;
}

  .welcome-small {
    font-size: 10px;
    letter-spacing: 1.8px;
  }

  .welcome-name {
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 3px;
  }

  .description,
  #landingMessage,
  #sectionDesc {
    font-size: 15px;
    line-height: 1.45;
  }

  #exploreMessage {
    font-size: 13px;
    line-height: 1.4;
    margin: 10px auto 12px;
    max-width: 780px;
  }

 #dashboardStats {
  margin: 8px auto 10px;
}

  .stats-grid {
    gap: 14px;
  }

  .stat-card {
    width: 135px;
    padding: 10px 10px;
    border-radius: 16px;
  }

  .stat-card h3 {
    font-size: 20px;
    margin: 0;
  }

  .stat-card p {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.2;
  }

    #eventsSection .events-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .filters select {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    min-width: 180px;
  }

  .filters select option {
    font-size: 14px;
  }

.page-wrapper {
  min-height: calc(100vh - 1px);
}

.page-wrapper > h1 {
  margin-top: 24px;
  margin-bottom: 8px;
}

#exploreMessage {
  margin: 8px auto 18px;
}

#landingButtons {
  margin-top: 0;
}

  body.dashboard-results-active .page-wrapper {
    min-height: 100vh;
  }

  #cardsContainer {
    max-width: 660px;
    margin: 14px auto 28px;
  }

  #cardsContainer > .card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    display: block;
    align-self: stretch;
    box-sizing: border-box;
    padding: 18px 20px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px 0;
    box-shadow:
      0 12px 28px rgba(0,0,0,0.35),
      0 0 12px rgba(198,167,94,0.06);
  }

  .card-header {
    margin-bottom: 14px;
  }

  .card-subcode {
    font-size: 10px;
    letter-spacing: 1.1px;
    margin-bottom: 6px;
  }

  .card-name {
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 0;
    padding-right: 52px;
  }

  .card-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(198,167,94,0.14);
  }

  .card-section:first-of-type {
    margin-top: 0;
  }

  .card-section-title {
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(198,167,94,0.82);
  }

  .info-row {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 8px 14px;
    margin-bottom: 7px;
  }

  .label {
    font-size: 12px;
    line-height: 1.35;
  }

  .value {
    font-size: 14px;
    line-height: 1.38;
  }

  .value br {
    line-height: 1.3;
  }

  .map-link {
    font-size: 13px;
  }

  .review-btn-row {
    margin-top: 12px;
    gap: 10px;
  }

  .review-lux-btn,
  .review-add-btn {
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 999px;
  }

  .rating-text,
  .rating {
    font-size: 13px;
  }

  .favorite-heart {
    width: 38px;
    height: 38px;
    font-size: 16px;
    top: 14px;
    right: 14px;
  }

  #subscriptionSection,
  #profileSection,
  #favoritesSection {
    padding: 24px 16px !important;
  }

  #subscriptionSection h2,
  #profileSection h2,
  #favoritesSection h2 {
    font-size: 1.45rem;
    margin-bottom: 16px !important;
  }

  #subscriptionSection .vessel-section,
  #profileSection .vessel-section {
    max-width: 500px;
    margin: 20px auto;
    padding: 18px 20px;
    border-radius: 16px;
  }

  #subscriptionSection .vessel-section h3,
  #profileSection .vessel-section h3 {
    font-size: 17px;
    margin-bottom: 6px;
  }

  #subscriptionSection .vessel-description,
  #profileSection .vessel-description {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  #subscriptionSection .vessel-section label,
  #profileSection .vessel-section label {
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 0.2px;
  }

  #subscriptionSection .vessel-section input,
  #subscriptionSection .vessel-section select,
  #profileSection .vessel-section input,
  #profileSection .vessel-section select {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    min-height: 38px;
  }

  #subscriptionSection .vessel-display,
  #profileSection .vessel-display {
    margin-top: 10px;
    border-radius: 14px;
  }

  #subscriptionSection .vessel-display-header,
  #profileSection .vessel-display-header {
    padding: 10px 12px;
  }

  #subscriptionSection .vessel-display-header h4,
  #profileSection .vessel-display-header h4 {
    font-size: 10px;
    letter-spacing: 0.7px;
  }

  #subscriptionSection .vessel-info-row,
  #profileSection .vessel-info-row {
    grid-template-columns: 145px 1fr;
    gap: 10px;
    padding: 9px 12px;
  }

  #subscriptionSection .vessel-info-label,
  #profileSection .vessel-info-label {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  #subscriptionSection .vessel-info-value,
  #profileSection .vessel-info-value {
    font-size: 13px;
    line-height: 1.35;
  }

  #profileSection .vessel-buttons {
    margin-top: 12px;
    gap: 8px;
  }

  #profileSection .vessel-btn {
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 20px;
  }

  #favoritesSection {
    overflow-x: hidden;
  }

  #favoritesContainer {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  #favoritesContainer .card {
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;
    margin: 10px auto;
    padding: 16px 16px 14px;
    border-radius: 16px;
  }

  #favoritesContainer .card h3,
  #favoritesContainer .card .card-name {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 8px;
    padding-right: 46px;
  }

  #favoritesContainer .card p {
    font-size: 13px;
    line-height: 1.4;
    margin: 3px 0;
  }

  #favoritesContainer .info-row {
    grid-template-columns: 170px 1fr;
    gap: 6px 14px;
    margin-bottom: 6px;
  }

  #favoritesContainer .label {
    font-size: 12px;
    line-height: 1.35;
  }

  #favoritesContainer .value {
    font-size: 13px;
    line-height: 1.35;
  }

  #favoritesContainer .rating,
  #favoritesContainer .rating-text,
  #favoritesContainer .rating-count {
    font-size: 12px;
  }

  #favoritesContainer .review-btn-row {
    margin-top: 10px;
    gap: 8px;
  }

  #favoritesContainer .review-lux-btn,
  #favoritesContainer .review-add-btn,
  #favoritesContainer .favorite-btn,
  #favoritesContainer .remove-favorite-btn {
    font-size: 11px;
    padding: 7px 10px;
    border-radius: 999px;
  }

  #favoritesContainer .favorite-heart {
    width: 34px;
    height: 34px;
    font-size: 15px;
    top: 10px;
    right: 10px;
  }

  #favoritesContainer .favorite-top {
    top: 10px;
    right: 10px;
  }

  #favoritesContainer .review-list {
    margin-top: 8px;
  }

  #favoritesContainer .review-list.open {
    max-height: 360px;
  }

  #favoritesContainer .single-review {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  #favoritesContainer .review-name {
    font-size: 13px;
  }

  #favoritesContainer .review-stars {
    font-size: 12px;
    letter-spacing: 1px;
  }

  #favoritesContainer .review-date {
    font-size: 10px;
  }

  #favoritesContainer .review-comment,
  #favoritesContainer .review-text {
    font-size: 12px;
    line-height: 1.4;
    padding: 10px 12px;
  }

  #favoritesContainer .empty-fav,
  .empty-fav {
    font-size: 14px;
    margin: 18px auto;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  body {
    background: #051428 !important;
    background-image: none !important;
    background-attachment: scroll !important;
  }

  #welcomePanel,
  .page-wrapper > h1 {
    display: none !important;
  }

  .page-wrapper {
  padding-bottom: 90px;
}

  h1 {
    display: none !important;
  }

  h2,
  .stats-heading,
  #sectionHeading {
    font-size: 1.15rem;
    line-height: 1.3;
    padding: 0 14px;
    margin-bottom: 12px;
    text-align: center;
  }

  .description,
  #landingMessage,
  #sectionDesc {
    font-size: 13px;
    line-height: 1.4;
    padding: 0 14px;
    margin: 8px auto;
    text-align: center;
  }

  #dashboardStats {
  order: 1;
  margin: 18px auto 8px;
  width: 100%;
}

  .stats-heading {
    max-width: 260px;
    margin: 0 auto 7px;
    padding: 0 10px;
    font-size: 0.72rem;
    line-height: 1.15;
    letter-spacing: 0.45px;
    opacity: 0.75;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .stat-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 7px 4px;
    border-radius: 12px;
    opacity: 0.82;
    box-sizing: border-box;
  }

  .stat-card h3 {
    font-size: 14px;
    margin: 0;
    text-align: center;
  }

  .stat-card p {
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: 0.35px;
    line-height: 1.15;
    word-break: break-word;
    text-align: center;
  }

  #exploreMessage {
    order: 2;
    margin: 4px auto 10px;
    padding: 0 22px;
    font-size: 12.5px;
    line-height: 1.3;
    max-width: 350px;
    text-align: center;
  }

  #landingButtons {
    order: 3;
  }

  #landingMessage,
  #filtersContainer,
  #dashboardMapWrap,
  #sectionHeading,
  #sectionDesc,
  #resultsSummary,
  #paginationContainer,
  #cardsContainer,
  #paginationContainerBottom,
  #fuelIntelligenceSection,
  #favoritesSection,
  #profileSection,
  #subscriptionSection {
    order: 4;
  }

    #filtersContainer {
    position: sticky;
    top: 58px;
    z-index: 900;
    margin-top: 6px;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(5, 20, 40, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(198,167,94,0.12);
    border-bottom: 1px solid rgba(198,167,94,0.18);
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .filters {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

.filters select {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  box-sizing: border-box;
}

.filter-actions {
  display: none;
}

.filter-actions .filter-btn {
  width: fit-content;
  max-width: fit-content;
  min-width: 0;
  flex: 0 0 auto;
}

  .filters select {
    text-align: left;
    min-height: 44px;
  }

  #nearMeBtn,
  #clearFiltersBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    min-height: 40px;
  }

  .btn-icon {
    flex-shrink: 0;
    line-height: 1;
  }

  .btn-text {
    display: inline-block;
    line-height: 1;
  }

  .results-summary {
    max-width: 100%;
    margin: 10px auto 6px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
  }

  .pagination-container {
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 0 12px;
    gap: 8px;
  }

  .pagination-btn {
    font-size: 11px;
    padding: 7px 10px;
  }

  .pagination-info {
    font-size: 12px;
  }

  #paginationContainer {
    display: none !important;
  }

  #paginationContainerBottom {
    margin: 14px auto 24px;
  }

  #cardsContainer {
    width: 100%;
    max-width: 100%;
    margin: 16px auto 24px;
    padding: 0 10px;
    box-sizing: border-box;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  #cardsContainer > .card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    display: block;
    align-self: stretch;
    box-sizing: border-box;
    padding: 16px 14px;
    margin: 0 0 14px 0;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.45;
  }

  .card-header {
    margin-bottom: 14px;
    padding-right: 44px;
  }

  .card-name {
    font-size: 17px;
    line-height: 1.25;
    padding-right: 42px;
    margin-bottom: 8px;
  }

  .card-subcode {
    font-size: 10px;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
  }

  .card-section {
    margin-top: 14px;
    padding-top: 12px;
  }

  .card-section-title {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .info-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 6px 12px;
    align-items: start;
    margin-bottom: 10px;
  }

  .label {
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
  }

  .value {
    font-size: 13px;
    line-height: 1.35;
    min-width: 0;
    word-break: break-word;
  }

  .phone-row {
    gap: 6px;
  }

  .phone-action-btn {
    padding: 3px 7px;
    font-size: 12px;
  }

  .favorite-heart {
    width: 34px;
    height: 34px;
    top: 12px;
    right: 12px;
    font-size: 15px;
  }

  .card-section.is-collapsible .card-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
  }

  .card-section.is-collapsible .card-section-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(198,167,94,0.35);
    background: rgba(255,255,255,0.04);
    color: var(--luxury-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
  }

  .card-section.is-collapsible .card-section-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease;
  }

  .card-section.is-collapsible.is-open .card-section-content {
    max-height: 1200px;
    opacity: 1;
  }

  .review-btn-row {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .review-lux-btn,
  .review-add-btn {
    min-width: 120px;
    text-align: center;
    font-size: 11px;
    padding: 8px 12px;
  }

  .rating-text {
    font-size: 13px;
    line-height: 1.3;
    opacity: 0.85;
    margin-top: 14px;
  }

  .review-section {
    text-align: center;
  }

  #reviewModal .review-modal-content {
    width: calc(100% - 28px);
    max-width: 420px;
    padding: 20px 16px;
    border-radius: 18px;
    box-sizing: border-box;
  }

  #reviewModalTitle {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 14px;
    word-break: break-word;
    text-align: center;
  }

  #reviewComment {
    width: 100%;
    min-height: 120px;
    font-size: 13px;
    line-height: 1.55;
    padding: 12px 14px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .review-modal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
  }

  .review-modal-buttons button {
    flex: 1 1 100%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 999px;
  }

  .dashboard-map-wrap {
    margin: 16px auto 14px;
    padding: 0 10px;
  }

  .dashboard-map-card {
    padding: 12px;
    border-radius: 18px;
  }

  .dashboard-map-header {
    text-align: center;
  }

  .dashboard-map-header h3 {
    font-size: 15px;
  }

  .dashboard-map-header p {
    font-size: 12px;
  }

  .weather-map-area {
    height: 390px;
  }

  #dashboardMap {
    height: 100%;
    border-radius: 14px;
  }

  .dashboard-map-popup {
    min-width: 160px;
    font-size: 12px;
  }

  .dashboard-map-popup-title {
    font-size: 14px;
  }

  .dashboard-map-popup-location {
    font-size: 12px;
  }

  .leaflet-control-layers {
    max-width: 180px;
    font-size: 11px;
  }
  .dashboard-map-header p {
    display: none !important;
  }

  .hours-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #backButton {
    padding: 7px 9px;
    gap: 4px;
  }

  #backButton .back-icon {
    font-size: 14px;
  }

  #backButton .back-text {
    font-size: 9px;
    letter-spacing: 0.6px;
  }

  #favoritesSection,
  #profileSection {
    padding: 24px 14px !important;
  }

  .vessel-section {
    margin: 16px auto;
    padding: 18px 14px;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
  }

  .vessel-title {
    gap: 8px;
    align-items: center;
  }

  .section-icon {
    width: 20px;
    height: 20px;
  }

  .vessel-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .vessel-description {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .vessel-section label {
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 0.2px;
  }

  .vessel-section input,
  .vessel-section select {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    min-height: 40px;
  }

  .vessel-display {
    margin-top: 14px;
    border-radius: 16px;
  }

  .vessel-display-header {
    padding: 12px 14px;
  }

  .vessel-display-header h4 {
    font-size: 11px;
    letter-spacing: 0.8px;
  }

  .vessel-info-row {
    padding: 10px 14px;
    gap: 4px;
  }

  .vessel-info-label {
    font-size: 10px;
    letter-spacing: 0.6px;
  }

  .vessel-info-value {
    font-size: 13px;
    line-height: 1.35;
  }

  .vessel-buttons {
    margin-top: 12px;
    gap: 8px;
  }

  .vessel-btn {
    padding: 9px 14px;
    font-size: 11px;
    border-radius: 24px;
  }

  #favoritesSection {
    padding: 20px 16px !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  #favoritesContainer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #favoritesSection h2 {
    font-size: 1.6rem;
    margin-bottom: 18px !important;
    text-align: center;
  }

  #favoritesContainer h2 {
    font-size: 1.05rem;
    letter-spacing: 1px;
    margin: 18px 0 10px;
    text-align: center;
  }

  #favoritesContainer .card {
    width: 100%;
    max-width: 100%;
    margin: 12px auto;
    box-sizing: border-box;
  }

  .section-category {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #favoritesContainer .card h3 {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 90px 14px 0;
    padding-right: 0;
  }

  #favoritesContainer .card p {
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.45;
  }

  #favoritesContainer .favorite-top {
    top: 16px;
    right: 16px;
  }

  .favorite-btn.saved.favorite-top {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 999px;
    min-width: auto;
  }

  #favoritesContainer .rating-text {
    text-align: left;
    opacity: 0.75;
    font-size: 13px;
    margin: 8px 0 12px;
  }

  #favoritesContainer .review-btn-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  #favoritesContainer .review-btn-row button {
    width: 100%;
  }

  #favoritesContainer .favorite-details {
    margin-top: 14px;
  }

  #favoritesContainer .favorite-review-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  #favoritesContainer .favorite-review-actions button,
  #favoritesContainer .review-lux-btn,
  #favoritesContainer .review-add-btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 999px;
    text-align: center;
  }

  #favoritesContainer .review-btn-row > button:first-child {
    background: transparent;
    color: #C6A75E;
    border: 1px solid rgba(198,167,94,0.6);
  }

  #favoritesContainer .review-list {
    margin-top: 10px;
  }

  #favoritesContainer .review-list.open {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 2px;
  }

  #favoritesContainer .single-review {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 14px;
  }

  #favoritesContainer .review-name {
    font-size: 14px;
  }

  #favoritesContainer .review-stars {
    font-size: 13px;
  }

  #favoritesContainer .review-date {
    font-size: 12px;
  }

  #favoritesContainer .review-comment {
    font-size: 13px;
    line-height: 1.5;
  }

  .empty-fav {
    font-size: 15px;
    margin: 24px auto;
    text-align: center;
  }

  .fuel-card {
    margin: 24px 14px 0 14px;
    padding: 20px 16px;
  }

  .fuel-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .fuel-header,
  .fuel-row {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    font-size: 13px;
    gap: 8px;
  }

#dashboardAiToggle {
  width: 58px;
  height: 58px;
  font-size: 14px;
}

  #luxuryToast {
    bottom: 80px;
  }

  #eventsSection {
  padding: 28px 18px 40px;
}

#eventsSection .events-hero {
  grid-template-columns: 1fr;
}

#eventsSection .events-copy {
  text-align: center;
  margin: 0 auto;
}

#eventsSection .section-divider-left {
  margin: 16px auto 22px;
}

#eventsSection .category-grid {
  justify-content: center;
}

#eventsSection .events-hero-map {
  max-width: 100%;
}

#dashboardEventsMap {
  height: 240px;
}

#eventsSection .events-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#eventsSection .event-card {
  min-height: 260px;
  padding: 72px 16px 18px;
}

#eventsSection .event-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}

#eventsSection .event-date {
  margin-bottom: 4px;
}

#eventsSection .event-card h3 {
  font-size: 0.95rem;
}

#eventsSection .event-location {
  font-size: 0.7rem;
}

#eventsSection .event-text {
  font-size: 0.74rem;
  line-height: 1.45;
}

#eventsSection .event-countdown {
  margin-top: auto;
}

#landingButtons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: calc(100% - 24px);
  max-width: 430px;
  gap: 10px;
  margin: 18px auto 0;
  padding: 0 0 90px;
  box-sizing: border-box;
}

#landingButtons .landing-card {
  position: relative;
  width: 100%;
  min-width: 0 !important;
  max-width: none !important;
  height: 166px;
  min-height: 166px;
  padding: 8px 6px 12px;
  box-sizing: border-box;
  justify-content: flex-start;
}

#landingButtons .landing-card i {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  margin: 0;
}
#landingButtons .landing-card h3 {
  font-size: 12px;
  line-height: 1.08;
  margin: 48px 0 4px;
  min-height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;
}

#landingButtons .landing-card p {
  font-size: 8.6px;
  line-height: 1.12;
  margin: 0;
}

#landingButtons .landing-card::after {
  width: 34px;
  height: 2px;
  margin-top: 6px;
}

#landingButtons .landing-row-break {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(203, 169, 91, 0.65),
    transparent
  );
}

#landingButtons .pets-card {
  justify-self: stretch;
  max-width: none;
  margin-top: 0;
}
}
/* ================= SAFE REAL PHONE APP FIX ================= */

/* Plain blue app background */
html.capacitor-app,
html.capacitor-app body,
html.capacitor-app .page-wrapper {
  background: #0B1F3A !important;
  background-image: none !important;
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Keep dashboard compact on app only */
html.capacitor-app .page-wrapper {
  padding-top: 84px !important;
  padding-bottom: 78px !important;
}

html.capacitor-app #dashboardStats {
  margin: 16px auto 10px !important;
}

html.capacitor-app .stats-heading {
  font-size: 0.9rem !important;
  line-height: 1.18 !important;
  margin-bottom: 10px !important;
}

html.capacitor-app .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}

html.capacitor-app .stat-card {
  width: auto !important;
  min-width: 0 !important;
  padding: 9px 4px !important;
  min-height: 74px !important;
}

html.capacitor-app .stat-card h3 {
  font-size: 18px !important;
  margin: 0 !important;
}

html.capacitor-app .stat-card p {
  font-size: 7.2px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.7px !important;
}

html.capacitor-app #exploreMessage {
  margin: 10px auto 12px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  line-height: 1.28 !important;
}

/* Prevent page moving behind profile menu */
body.profile-menu-open {
  overflow: hidden !important;
}


/* ================= APP AI ASSISTANT PANEL FIX ================= */

html.capacitor-app #dashboardAiAssistant {
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  max-width: calc(100vw - 24px) !important;
  box-sizing: border-box !important;
  transform: none !important;
}

html.capacitor-app #dashboardAiAssistant.open,
html.capacitor-app #dashboardAiAssistant.show {
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  max-width: calc(100vw - 24px) !important;
}

html.capacitor-app .dashboard-ai-panel,
html.capacitor-app .ai-assistant-panel,
html.capacitor-app .assistant-panel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ================= APP FILTER SIZE FIX ================= */

html.capacitor-app .filters {
  gap: 12px !important;
  margin-top: 8px !important;
  padding: 0 12px !important;
  justify-content: center !important;
  align-items: center !important;
}

html.capacitor-app .filters select,
html.capacitor-app #filtersContainer select {
  min-width: 0 !important;
  width: 100% !important;
  font-size: 16px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
}

html.capacitor-app .filter-btn {
  width: fit-content !important;
  max-width: fit-content !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
}

html.capacitor-app #nearMeBtn {
  width: fit-content !important;
  max-width: fit-content !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
}

html.capacitor-app .weather-layer-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  overflow-x: hidden !important;
}

html.capacitor-app .weather-layer-buttons button {
  flex: 0 0 auto !important;
  min-width: fit-content !important;
  max-width: none !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
/* ================= APP AI BUTTON NO-OVERLAP FIX ================= */

html.capacitor-app #dashboardAiAssistant {
  position: fixed !important;
  right: 14px !important;
  bottom: calc(env(safe-area-inset-bottom) + 18px) !important;
  width: auto !important;
  height: auto !important;
  z-index: 60 !important;
  pointer-events: none !important;
}

html.capacitor-app #dashboardAiToggle {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  font-size: 15px !important;
  pointer-events: auto !important;
}

html.capacitor-app #dashboardAiChatBox {
  pointer-events: auto !important;
}

/* ================= GLOBAL RETURN BUTTON ALIGNMENT FIX ================= */

.return-btn,
.back-button,
#backButton {
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  text-align: center !important;

  padding-left: 18px !important;
  padding-right: 18px !important;
}

.return-btn span,
.back-button span,
#backButton span {
  display: inline-flex !important;
  align-items: center !important;
}

/* ================= APP EVENTS GERMAN OVERFLOW FIX ================= */

html.capacitor-app #eventsSection,
html.capacitor-app .events-section,
html.capacitor-app .events-inner,
html.capacitor-app .events-hero,
html.capacitor-app .events-copy,
html.capacitor-app .events-grid,
html.capacitor-app .event-card {
  max-width: 100vw !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

html.capacitor-app .events-hero {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  padding: 0 14px !important;
}

html.capacitor-app .events-hero-map {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html.capacitor-app .events-copy h2,
html.capacitor-app .events-copy p,
html.capacitor-app .events-group-title,
html.capacitor-app .event-card h3,
html.capacitor-app .event-text,
html.capacitor-app .event-location span,
html.capacitor-app .category-item span {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
}

/* =========================
   APP EVENTS COMPACT 2-COLUMN FIX
========================= */

html.capacitor-app .events-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  padding: 0 10px !important;
}

html.capacitor-app .event-card {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 24px 10px 10px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

html.capacitor-app .event-badge {
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  left: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  font-size: 7.5px !important;
  line-height: 1 !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  text-align: center !important;
  z-index: 3 !important;
}

/* FORCE DATE INTO ONE LINE */
html.capacitor-app .event-date {
  width: fit-content !important;
  min-width: 96px !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 4px !important;
  padding: 5px 7px !important;
  margin: 0 0 7px !important;

  border-radius: 14px !important;
  white-space: nowrap !important;
}

html.capacitor-app .event-date strong {
  display: inline !important;
  font-size: 18px !important;
  line-height: 1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

html.capacitor-app .event-date span {
  display: inline !important;
  font-size: 8.5px !important;
  line-height: 1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

html.capacitor-app .event-card h3 {
  font-size: 13px !important;
  line-height: 1.15 !important;
  margin: 0 0 5px !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}

html.capacitor-app .event-location {
  font-size: 9px !important;
  line-height: 1.18 !important;
  margin-bottom: 5px !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}

html.capacitor-app .event-text {
  font-size: 9px !important;
  line-height: 1.22 !important;
  margin-bottom: 6px !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}

html.capacitor-app .event-countdown {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 9px !important;
  line-height: 1 !important;
  margin-top: 6px !important;
  white-space: nowrap !important;
}

html.capacitor-app .event-countdown span,
html.capacitor-app .event-countdown strong {
  white-space: nowrap !important;
}

/* =========================
   APP EVENTS CATEGORY PILLS FIX
========================= */

html.capacitor-app #eventsSection .category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
}

html.capacitor-app #eventsSection .category-item {
  width: 100% !important;
  height: 54px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 10px !important;

  font-size: 11px !important;
  line-height: 1.1 !important;
  gap: 6px !important;

  box-sizing: border-box !important;
  text-align: center !important;

  border-radius: 999px !important;
}

html.capacitor-app #eventsSection .category-item i {
  font-size: 13px !important;
}

html.capacitor-app #eventsSection .events-categories {
  width: 100% !important;
  max-width: 100% !important;
}

/* =========================
   APP EVENTS HERO COMPACT FIX
========================= */

html.capacitor-app #eventsSection {
  margin-top: 0 !important;
  padding-top: 10px !important;
}

html.capacitor-app #eventsSection .events-hero {
  gap: 14px !important;
  margin-bottom: 18px !important;
}

html.capacitor-app #eventsSection .events-copy {
  padding-top: 0 !important;
}

html.capacitor-app #eventsSection .events-live {
  margin-bottom: 8px !important;
  font-size: 10px !important;
  padding: 5px 12px !important;
}

html.capacitor-app #eventsSection .events-copy h2 {
  font-size: 36px !important;
  line-height: 0.88 !important;
  margin: 8px 0 12px !important;
  max-width: 260px !important;
}

html.capacitor-app #eventsSection .events-copy p {
  font-size: 16px !important;
  line-height: 1.45 !important;
  margin-bottom: 12px !important;
}

html.capacitor-app #eventsSection .section-divider-left {
  margin: 12px 0 16px !important;
}

html.capacitor-app #eventsSection .events-categories {
  margin-top: 12px !important;
}

html.capacitor-app #eventsSection .events-categories h3 {
  margin-bottom: 10px !important;
}

/* =========================
   APP EVENTS FINAL COMPACT HERO
========================= */

html.capacitor-app #eventsSection .events-copy h2 {
  font-size: 18px !important;
  line-height: 1.05 !important;
  max-width: 320px !important;
  margin: 4px 0 8px !important;
  letter-spacing: 0.5px !important;
}

html.capacitor-app #eventsSection .events-copy p {
  font-size: 13.5px !important;
  line-height: 1.35 !important;
  margin-bottom: 8px !important;
}

html.capacitor-app #eventsSection .events-live {
  font-size: 8.5px !important;
  padding: 4px 10px !important;
  margin-bottom: 6px !important;
}

html.capacitor-app #eventsSection .events-categories h3 {
  font-size: 11px !important;
  letter-spacing: 2px !important;
  margin-bottom: 8px !important;
}

html.capacitor-app #eventsSection .category-grid {
  gap: 7px !important;
}

html.capacitor-app #eventsSection .category-item {
  height: 40px !important;
  padding: 0 8px !important;
  font-size: 9.5px !important;
  gap: 5px !important;
}

html.capacitor-app #eventsSection .category-item i {
  font-size: 11px !important;
}

html.capacitor-app #eventsSection .section-divider-left {
  width: 70px !important;
  margin: 10px 0 12px !important;
}

html.capacitor-app #adminButton,
#adminButton {
  display: none !important;
}

html.capacitor-app #adminButton.is-admin-visible,
#adminButton.is-admin-visible {
  display: block !important;
}

html.capacitor-app .dashboard-map-header p {
  display: none !important;
}

/* ================= SUBSCRIPTION / VESSEL RESPONSIVE ================= */

.vessel-section,
.subscription-section {
  width: min(100% - 28px, 620px);
  max-width: 620px;
  box-sizing: border-box;
}

.vessel-display,
.subscription-display {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.vessel-info-row,
.subscription-info-row {
  display: grid;
  grid-template-columns: minmax(110px, 35%) minmax(0, 65%);
  gap: 10px;
}

.vessel-info-label,
.vessel-info-value,
.subscription-info-label,
.subscription-info-value {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.vessel-info-value,
.subscription-info-value {
  font-size: clamp(0.88rem, 2.8vw, 1rem);
  line-height: 1.35;
}

/* ================= MY SUBSCRIPTION ONLY ================= */

#subscriptionSection {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

#subscriptionSection .vessel-section {
  width: min(100% - 8px, 720px);
  max-width: 720px;
}

#subscriptionSection .vessel-info-row {
  grid-template-columns: minmax(125px, 42%) minmax(0, 58%);
  gap: 10px;
}

#subscriptionSection .vessel-info-label {
  font-size: 0.82rem;
  line-height: 1.2;
}

#subscriptionSection .vessel-info-value {
  font-size: clamp(0.82rem, 2.7vw, 0.95rem);
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

@media screen and (max-width: 768px) {
  .fuel-card {
  width: calc(100% - 32px);
  max-width: 460px;
  margin: 24px auto 0;
  padding: 24px 20px;
  box-sizing: border-box;
}

  .fuel-header-top {
    display: block;
  }

  .fuel-updated {
    display: inline-block;
    margin: 12px 0 18px;
  }

  #fuelSearchInput {
    max-width: 100%;
    width: 100%;
  }

  .fuel-header {
    display: none !important;
  }

  .fuel-row {
    display: block !important;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .fuel-row div:first-child {
    display: block;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #E8C873;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
  }

  .fuel-row div:not(:first-child) {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 9px 0;
    color: rgba(255,255,255,0.92);
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
  }

  .fuel-row div:not(:first-child)::before {
    flex: 1;
    min-width: 0;
    max-width: 65%;
    color: #E8C873;
    font-weight: 800;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .fuel-row div:nth-child(2)::before {
    content: "Eurosuper 95";
  }

  .fuel-row div:nth-child(3)::before {
    content: "Eurodiesel";
  }

  .fuel-row div:nth-child(4)::before {
    content: "Premium Diesel";
  }

  .fuel-row div:nth-child(5) {
  display: none !important;
}

.fuel-row.mobile-hidden {
    display: none !important;
  }

  .show-more-fuel-btn {
    display: block;
    width: 100%;
    margin: 18px 0 0;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(198,167,94,0.45);
    background: rgba(198,167,94,0.16);
    color: #E8C873;
    font-weight: 800;
    font-family: inherit;
  }
 }

/* Hide dashboard instruction text on mobile */
@media screen and (max-width: 768px) {
  #landingMessage {
    display: none !important;
  }
}

/* Hide dashboard instruction text in app */
html.capacitor-app #landingMessage {
  display: none !important;
}

@media (max-width: 768px) {

  .landing-card h3,
  .landing-card p {
    max-width: 78%;
  }

}

