/* -------------------- GLOBAL STYLES -------------------- */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'helvetica', Arial, sans-serif;
  background: linear-gradient(120deg, #43197c 0%, #6a0dad 70%, #2d0036 100%);
  min-height: 100vh;
}

body {
  margin: 0;
  padding: 0;
}




/* -------------------- CONTAINER -------------------- */
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 0;
  gap: 32px;
}

/* -------------------- CARD -------------------- */
.card {
  background: rgba(30, 12, 54, 0.94);
  border-radius: 20px;
  box-shadow: 0 4px 24px #2c123c42;
  width: 470px;
  padding: 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 900px;
}
.card {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* -------------------- HEADER & TITLES -------------------- */
.header {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  gap: 10px;
  margin-bottom: 22px;
}

.section-title {
  font-weight: bold;
  margin: 26px 0 12px 0;
  font-size: 1.08em;
  color: #ffffff; /* or any color you want */
}

/* -------------------- CITY SECTION -------------------- */
.city-section {
  background: rgba(60, 20, 80, 0.95);
  border-radius: 12px;
  padding: 16px 14px 18px 14px;
  margin-bottom: 16px;
}

.city-phrase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 1.05em;
  margin-bottom: 8px;
}

.city-phrase input,
.custom-select {
  background: #29194f;
  border: 1px solid #552883;
  color: #fff;
  border-radius: 7px;
  padding: 8px 10px;
  margin: 0 8px 0 4px;
  font-size: 1em;
  min-width: 95px;
  outline: none;
}

.city-phrase input[type=date] {
  min-width: 116px;
}

/* -------------------- FOOD CHECKBOX -------------------- */
.food-checkbox-row {
  margin: 8px 0 2px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 0.97em;
}

.food-checkbox-row label {
  background: #442769aa;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 7px;
  margin-bottom: 6px;
  padding: 3px 11px;
  cursor: pointer;
}

.food-checkbox-row input[type=checkbox] {
  accent-color: #83ffbe;
  width: 16px;
  height: 16px;
  margin-right: 3px;
  cursor: pointer;
}

/* -------------------- EXTRA INFO ROWS -------------------- */
.extra-phrase-row,
.money-row,
.attractions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.04em;
  flex-wrap: wrap;
  margin-top: 5px;
  margin-bottom: 2px;
}

.custom-select {
  min-width: 110px;
  margin-right: 8px !important;
  margin-left: 8px !important;
}

/* -------------------- BUTTONS -------------------- */
.add-city-btn {
  width: 100%;
  padding: 12px 0;
  margin: 7px 0 2px 0;
  border: 2px dashed #753eda;
  background: none;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.05em;
  cursor: pointer;
  transition: border 0.2s;
}

.add-city-btn:hover {
  border-color: #ed70ff;
  color: #ed70ff;
}

.remove-btn {
  background: #f76654;
  color: #fff;
  border: none;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.95em;
  margin-left: 12px;
  cursor: pointer;
}

/* -------------------- CITY TOTALS -------------------- */
.city-total {
  font-weight: bold;
  background: #42119068;
  padding: 7px 14px;
  border-radius: 7px;
  margin-top: 10px;
}

.city-days {
  font-size: 1.03em;
  color: #95e9cc;
  opacity: 0.93;
  margin: 3px 0 1px 0;
}

.percity-day {
  font-size: 0.96em;
  color: #c5ffac;
  opacity: 0.96;
  margin: 4px 0 2px 0;
}

/* -------------------- SUMMARY ROWS -------------------- */
.summary-row {
  display: flex;
  align-items: center;
  margin: 8px 0 2px 0;
  font-size: 1.07em;
  opacity: 0.93;
}

.summary-row:not(:last-child) {
  border-bottom: 1px solid #381d4960;
  padding-bottom: 2px;
}

.dest-icon {
  font-size: 1.1em;
  margin-right: 8px;
}

.summary-title {
  font-weight: bold;
  font-size: 1.21em;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

/* -------------------- BUDGET BOX -------------------- */
.budget-box {
  /* make gradient translucent instead of fully solid */
  background: linear-gradient(
    90deg,
    rgba(148, 74, 171, 0.35) 0%,
    rgba(237, 141, 137, 0.35) 50%,
    rgba(120, 228, 142, 0.35) 100%
  );
  border-radius: 18px;
  color: #fff;
  font-size: 1.7em;
  font-weight: bold;
  text-shadow: 0 1px 4px #2223;
  text-align: left;
  padding: 14px 18px 18px 28px;
  margin: 21px 0 1px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  /* glass effect */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4.3px);
  -webkit-backdrop-filter: blur(4.3px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.budget-box .budget-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  opacity: 0.28;
  font-size: 2.2em;
}

.perday {
  color: #ffea;
  font-size: 0.65em;
  font-weight: 400;
  margin-top: 4px;
}

/* -------------------- BREAKDOWN SECTION -------------------- */
.breakdown-section {
  margin: 20px 0 0 0;
  background: #382367c8;
  border-radius: 13px;
  padding: 22px;
  font-size: 1.05em;
  color: #ffe5fe;
  width: 96%;
}

.bar-row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.bar-label {
  min-width: 166px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.bar {
  background: #24134a;
  border-radius: 7px;
  height: 15px;
  flex: 1;
  margin: 0 14px 0 8px;
  position: relative;
  overflow: hidden;
}

.fill-transport { background: linear-gradient(90deg, #ffae7f, #fa8004); }
.fill-accomod { background: linear-gradient(90deg, #af6cd6, #ffb7be); }
.fill-food { background: linear-gradient(90deg, #43e97b, #38f3e7); }
.fill-extras { background: linear-gradient(90deg, #db87f5, #ff93e1); }

.bar-value {
  min-width: 62px;
  font-weight: 700;
  color: #fefeff;
  text-align: right;
  font-size: 1em;
}

.bar-fill { height: 100%; border-radius: 7px; }

.percent {
  color: #fff7;
  font-size: 0.93em;
  padding-left: 4px;
}

/* -------------------- BUFFER TIP -------------------- */
.buffer-tip {
  background: #11744898;
  color: #d9fff0;
  font-size: 1.13em;
  border-radius: 14px;
  padding: 22px 16px 15px 16px;
  margin: 24px 0 0 0;
  font-weight: 500;
}

.buffer-tip .b { color: #20fba1; font-weight: bold; }
.buffer-tip .pct { color: #5aebdb; font-weight: bold; }
.buffer-tip .ic { font-size: 1.13em; padding-right: 7px; vertical-align: -2px; }

.bar-label .ic { font-size: 1.18em; margin-right: 8px; }

.summary-panel { position: relative; }

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 96vw;
    min-width: 0;
  }
}

/* -------------------- STICKY SUMMARY PANEL -------------------- */
.summary-panel {
  position: sticky;
  top: 40px;
  align-self: flex-start;
}

/* -------------------- SHARE BUTTONS -------------------- */
/* Share Buttons */
.share-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  padding: 12px 20px;
  fontSize: 14px;
  border-radius: 12px;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn-email {
  background: #EA4335;
}

.share-btn-whatsapp {
  background: #25D366;
}

.share-btn-twitter {
  background: #1DA1F2;
}

.share-btn-facebook {
  background: #4267B2;
}



@media only screen and (max-width: 600px) {
  .city-section {
    padding: 10px;
  }

  .city-phrase,
  .extra-phrase-row,
  .money-row,
  .attractions-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .city-phrase input,
  .city-phrase select,
  .extra-phrase-row select,
  .money-row select,
  .attractions-row select {
    width: 100%;
  }

  .summary-panel {
    margin-top: 16px;
  }

  .btn,
  .add-city-btn {
    width: 100%;
    text-align: center;
  }
}


/* General: keep inputs inside the card */
.city-section input,
.city-section select {
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile: stack fields and avoid overflow */
@media only screen and (max-width: 600px) {
  .city-section {
    padding: 10px;
  }

  .city-phrase {
    display: flex;
    flex-wrap: wrap;      /* allow wrapping */
    gap: 6px;
  }

  .city-phrase input,
  .city-phrase select {
    flex: 1 1 100%;       /* each field can take full row */
    min-width: 0;         /* prevents overflow */
  }
}


/* Desktop / general */
.city-phrase {
  display: flex;
  flex-wrap: wrap;        /* allow wrapping */
  gap: 6px;
  align-items: center;
}

.city-phrase input,
.city-phrase select {
  flex: 1 1 auto;
  min-width: 0;           /* prevents overflow */
  box-sizing: border-box;
}

.remove-btn {
  white-space: nowrap;    /* keep label on one line */
}

/* Mobile */
@media only screen and (max-width: 600px) {
  .city-phrase {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .city-phrase input,
  .city-phrase select {
    flex: 1 1 100%;       /* each field can take a full row */
  }

  .remove-btn {
    flex: 0 0 auto;
    align-self: flex-start;  /* button stays visible, no overflow */
  }
}



/* -------------------- SHARE SUMMARY PANEL -------------------- */

/* SHARE BLOCK */

.card .share-row {
  display: flex;
  flex-direction: column;
  align-items: center;    /* centers children horizontally */
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  text-align: center;
}

.card .share-row .share-label {
  font-weight: 600;
  font-size: 14px;
  text-align: center;     /* ensure text itself is centered */
}

.card .share-row .share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers buttons */
  gap: 10px;
}

/* Rounded “chip” buttons */
.card .share-row .share-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;   /* fully pill‑shaped */
  border: none !important;
  cursor: pointer;
  font-size: 13px;
  background: #f4f4ff;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card .share-row .share-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.card .share-row .share-icon {
  font-size: 16px;
}

.card .share-row .share-text {
  white-space: nowrap;
}

/* Optional brand tints */
.card .share-row .share-email { background: #f5f5f5; }
.card .share-row .share-whatsapp { background: #25d366; color: #fff; }
.card .share-row .share-twitter { background: #1da1f2; color: #fff; }
.card .share-row .share-facebook { background: #1877f2; color: #fff; }


/* Mobile fix for share block */
@media (max-width: 600px) {
  .card .share-row {
    width: 100%;
    align-items: center;      /* keep content centered */
    text-align: center;
  }

  .card .share-row .share-label {
    width: 100%;
    text-align: center;       /* center “Share it:” */
    display: block;
  }

  .card .share-row .share-buttons {
    width: 100%;
    justify-content: center;  /* center buttons horizontally */
  }

  .card .share-row .share-chip {
    border-radius: 999px;     /* keep fully rounded on mobile */
    min-width: auto;
  }
}




/* -------------------- LANGUAGE SELECTOR  -------------------- */
.language-selector {
  margin-bottom: 24px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-direction: column;
}

.language-selector .label {
  font-size: 14px;
  color: white;
  margin-bottom: 8px;
}

.language-selector .buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.language-chip {
  padding: 12px 20px;
  border-radius: 16px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #f8f9fa;
  color: #333;
  transition: all 0.3s ease;
}

.language-chip.active-en {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.language-chip.active-pt {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(67, 233, 123, 0.4);
}


/* -------------------- LANGUAGE SELECTOR MOVING BUTTON  -------------------- */

.language-chip {
  padding: 12px 20px;
  border-radius: 16px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #f8f9fa;
  color: #333;
  transition: all 0.3s ease, transform 0.2s ease;
}

.language-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.language-chip:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-chip.active-en {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.language-chip.active-en:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}

.language-chip.active-en:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.language-chip.active-pt {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(67, 233, 123, 0.4);
}

.language-chip.active-pt:hover {
  box-shadow: 0 6px 20px rgba(67, 233, 123, 0.6);
  transform: translateY(-2px);
}

.language-chip.active-pt:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(67, 233, 123, 0.4);
}

/* Layout for both selectors */
.selectors-container {
  padding: 8px 0;
  background: transparent !important;
}

.language-selector .buttons,
.currency-selector .buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.currency-selector {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .selectors-container {
    padding: 6px 0;
  }
  .currency-selector {
    margin-top: 6px !important;
  }
  .language-chip {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Or for both selectors */
.language-selector .label,
.currency-selector .label {
  color: #ffffff !important; 
  font-size: 15px !important;
}



/* -------------------- BUDGET BUBBLE -------------------- */
.budget-bubble {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.3) 0%, 
    rgba(118, 75, 162, 0.3) 100%) !important;
  border-radius: 20px !important;

  /* Outer soft shadow */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    /* Inner top highlight (makes border look lit) */
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    /* Inner bottom shade for depth */
    inset 0 -1px 0 rgba(0, 0, 0, 0.25) !important;

  backdrop-filter: blur(10px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(180%) !important;

  /* Thin bright border */
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

@media (max-width: 768px) {
  .budget-bubble {
    background: linear-gradient(90deg, 
      rgba(148, 74, 171, 0.3) 0%, 
      rgba(237, 141, 137, 0.3) 50%, 
      rgba(120, 228, 142, 0.3) 100%) !important;
    border-radius: 20px !important;

    box-shadow:
      0 10px 30px rgba(148, 74, 171, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3) !important;

    backdrop-filter: blur(6px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(6px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
  }
}



success-toast {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
color: #fff;
padding: 12px 22px;
border-radius: 999px;
box-shadow: 0 8px 25px rgba(0,0,0,0.25);
font-size: 0.9rem;
font-weight: 600;
z-index: 10001;
text-align: center;
}
