/*************************************************************
 *  BASE STYLES – DARK THEME
 *************************************************************/
 body {
  margin: 0;
  padding: 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

h1, h2, h3 {
  color: #ffffff;
}

/*************************************************************
 *  UTILITIES
 *************************************************************/
.hidden {
  display: none;
}

/*************************************************************
 * header bar and loogout 
 *************************************************************/
 .header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*background-color: #1e1e1e;*/

}

.logout-btn {
  background-color: #ff4757; /* Matches the red tag gradient start color */
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px; /* Smaller padding */
  font-size: 10px; /* Smaller font */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: #ff6b81; /* Matches the gradient end color */
}




/*************************************************************
 *  MAIN SECTION
 *************************************************************/
#mainSection {
  margin-top: 1px;
}


/*************************************************************
 *  DAYS NAVIGATION  - top bar add day overview and cost
 *************************************************************/
 #topBarRow {
  margin-bottom: 25px;
}


 .top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.days-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Small green buttons (Overview / Costs) */
.btn-small {
  display: flex;                 /* Make it a flex container */
  align-items: center;           /* Center text vertically */
  justify-content: center;       /* Center text horizontally */
  height: 20px;                  /* Fixed height */
  padding: 0 10px;               /* Horizontal padding */
  font-size: 12px;
  border-radius: 4px;
  line-height: 1;                /* Tighten line height */
}



.btn-overview-cost {
  background-color: #272727;
  color: #e0e0e0;
  border: none;
  padding: 4px 8px; /* or match your small button style */
  font-size: 12px;
  border-radius: 4px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-overview-cost:hover {
  background-color: #444444;
  color: #e0e0e0; /* match the text color on hover */
}

.btn-overview-cost.active-mode {
  background-color: #444444;
  color: #e0e0e0;
}

/****************************************
ZA IMPORT
*/

/* Import JSON related styles */

/* Modal styles */
.modal {
  display: block;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover {
  color: #000;
}

.modal pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 15px 0;
  font-family: monospace;
  font-size: 14px;
}

.json-help-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  cursor: pointer;
}

.json-help-btn:hover {
  background-color: #e0e0e0;
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/*************************************************************
 *  DAYS NAVIGATION
 *************************************************************/
.days-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.day-button {
  padding: 8px 16px;
  background-color: #272727;
  color: #e0e0e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.day-button.active,
.day-button:hover {
  background-color: #444444;
}

/*************************************************************
 *  DAY DETAILS CONTAINER
 *************************************************************/
.day-details {
  background-color: #1e1e1e;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

/*************************************************************
 *  DAY HEADER ACTIONS
 *************************************************************/
.day-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.day-header h2 {
  font-size: 1rem;   /* Smaller font size */
  margin: 0;           /* Remove any default spacing */
  padding: 0;          /* No extra padding */
  line-height: 1.2;    /* Tighter line height */
}


.header-actions {
  display: flex;
  gap: 10px;
}

/*************************************************************
 *  ATTRACTION CARD


 *************************************************************/
.place-card {
  display: flex;
  flex-direction: row;
  background-color: #242424;
  border-radius: 7px;
  overflow: hidden;
  margin: 2em auto;
  max-width: 900px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-items: stretch;
  position: relative; /* For icon button positioning */
}

/*************************************************************
 *  CARD IMAGE
 *************************************************************/
.card-image-container {
  flex: 0 0 300px;
  position: relative;
  overflow: hidden;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.place-card:hover .card-image-container img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  display: flex;               /* Added */
  align-items: center;         /* Vertical centering */
  justify-content: center;     /* Horizontal centering */
  height: 50px;                /* Set a fixed height for consistent layout */
  font-weight: 600;
  font-size: 1.2em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/*************************************************************
 *  CARD CONTENT
 *************************************************************/
.card-content {
  flex: 1;
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #b8b8b8;
  margin-bottom: 1.5em;
}

.card-details {
  background-color: #1a1a1a;
  padding: 1em;
  border-radius: 7px;
}

/* Attraction Card Links */
.card-details a {
  color: #eef1f1; /* your neon blue */
  text-decoration: none;
  font-weight: normal; /* ✅ Removes the bold */
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.card-details a:hover {
  color: #33f5ff; /* optional hover color */
  text-decoration: underline;
}

/*************************************************************
 *  DETAIL ITEMS WITH ICONS
 *************************************************************/
 .detail-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.5em;
  font-size: 0.95em;
}







/*************************************************************
 * ICON BUTTON ACTIONS POSITIONING

 for edit and delete icons on cards
 *************************************************************/
 .card-icon-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

/*************************************************************
 * ICON BUTTON BASE STYLE
 * Minimalist, no background, no padding
 *************************************************************/
.icon-btn {
  background: transparent;     /* No background color */
  border: none;                /* No border */
  padding: 0;                  /* No padding */
  cursor: pointer;             /* Pointer cursor on hover */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease; /* Smooth scaling effect on hover */
}

/* Hover effect: slight scale on hover */
.icon-btn:hover {
  transform: scale(1.1);
}

/*************************************************************
 * ICON on cards change size
 *************************************************************/
.icon-img {
  width: 16px; /* Change size as needed */
  height: 16px;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/*************************************************************
 * DELETE BUTTON COLOR EFFECTS
 * (You can tint your image with filters, or use colored SVG files)
 *************************************************************/
.icon-btn.danger:hover .icon-img {
  filter: brightness(0.8); /* Slightly darker on hover */
}




/*************************************************************
 * DAY HEADER ACTION ICONS add edit delete
 +
 +
 *************************************************************/
 .header-actions {
  display: flex;
  gap: 12px; /* Space between buttons */
}

.icon-btn.day-action {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

/* Hover scale effect */
.icon-btn.day-action:hover {
  transform: scale(1.1);
}

/* Icon image styling specific to day actions */
.day-action-icon {
  width: 20px; /* Larger than attraction icons */
  height: 20px;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Danger delete icon hover effect */
.icon-btn.danger.day-action:hover .day-action-icon {
  filter: brightness(0.8);
}





/*************************************************************
 *  BUTTONS GENERAL STYLE
 *************************************************************/
.btn {
  padding: 8px 14px;
  background-color: #3a3a3a;
  color: #e0e0e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #555;
}

.btn-success {
  background-color: #2e7d32;
}

.btn-success:hover {
  background-color: #388e3c;
}

.btn-danger {
  background-color: #b71c1c;
}

.btn-danger:hover {
  background-color: #d32f2f;
}

.btn.active-mode {
  border: 2px solid #2e7d32;
  background-color: #2e7d32;
  color: #ffffff;
}

/*************************************************************
 *  FORM STYLES
 *************************************************************/
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #ccc;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #2c2c2c;
  color: #e0e0e0;
  box-sizing: border-box;
}

.form-group textarea {
  height: 100px;
}

/*************************************************************
 *  MAP STYLES
 *************************************************************/
.day-map {
  width: 50%;
  height: auto;
  aspect-ratio: 4/3;
  margin: 1em auto;
  border: 1px solid #444;
}

#overview-map {
  width: 100%;
  max-width: 1200px;
  height: 600px;
  margin: 1em 0;
}

/*************************************************************
 *  INPUT FORM for add and edit attraction Modal
 *************************************************************/
 .compact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 10px;
  color: #eee;
}

.compact-form h2 {
  text-align: left;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 5px;
}

.form-row input,
.form-row textarea {
  padding: 8px 12px;
  border: 1px solid #444;
  background: #2a2a2a;
  border-radius: 5px;
  color: #eee;
  font-size: 0.9rem;
}

.form-row textarea {
  min-height: 80px;
}

.form-row.two-col {
  display: flex;
  gap: 10px;
}

.form-row.two-col > div {
  flex: 1;
}

.file-upload {
  display: flex;
  gap: 8px;
}

.file-upload input[type="file"] {
  flex: 1;
}

.btn-upload {
  background-color: #4caf50;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-save {
  background-color: #4caf50;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-cancel {
  background-color: #f44336;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-save:hover,
.btn-cancel:hover,
.btn-upload:hover {
  opacity: 0.9;
}


/*image upload*/
/* File upload container - keep your existing styles */
.file-upload {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Choose Image button - White */
.btn-choose {
  background-color: #ffffff;
  color: #121212; /* Dark text for contrast */
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-choose:hover {
  background-color: #f0f0f0; /* Slightly darker white on hover */
  transform: scale(1.05);
}

.file-upload input[type="file"] {
  flex: none; /* don't stretch */
  padding: 8px 12px; /* add padding to match the button */
  border: none;
  border-radius: 5px;
  background-color: #3a3a3a; /* same dark gray background */
  color: #e0e0e0; /* light text */
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.file-upload input[type="file"]::file-selector-button {
  background-color: #3a3a3a; /* matches the button color */
  color: #e0e0e0;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.file-upload input[type="file"]::file-selector-button:hover {
  background-color: #555; /* darker hover */
}

/* Upload button - Neon Blue */
.btn-upload {
  background-color: #00f0ff; /* Neon Blue */
  color: #121212; /* Dark text for contrast */
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-upload:hover {
  background-color: #33f5ff; /* Lighter Neon Blue on hover */
  transform: scale(1.05);
}



/*************************************************************
 *  for prices selection and display
 *************************************************************/
/* Price Entry Styling */
.price-entry {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.price-category {
  flex: 1;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.price-value {
  flex: 1;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
}

.remove-price {
  color: #ff5252;
}

/* Price Tags on Card */
.price-categories {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 0.85em;
  background-color: #1a1a1a;
  border-radius: 4px;
  white-space: nowrap;
}

.price-category-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* Icons for each category */
.tickets-icon {
  background-image: url('icons/ticket.svg');
}

.fuel-icon {
  background-image: url('icons/fuel.svg');
}

.toll-icon {
  background-image: url('icons/toll.svg');
}

.eating-icon {
  background-image: url('icons/food.svg');
}

.sleeping-icon {
  background-image: url('icons/bed.svg');
}

.grocery-icon {
  background-image: url('icons/grocery.svg');
}

.misc-icon {
  background-image: url('icons/misc.svg');
}


.clipboard-btn {
  margin-left: auto; /* or some spacing */
}

.clipboard-btn .icon-img {
  width: 16px;
  height: 16px;
}


/*************************************************************
 *  STATUS MESSAGES
 *************************************************************/
.status-message {
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

.status-success {
  background-color: #388e3c;
  color: #e0e0e0;
}

.status-error {
  background-color: #b71c1c;
  color: #e0e0e0;
}

/*************************************************************
 *  TOAST NOTIFICATIONS
 *************************************************************/
#toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.toast {
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
  animation: fadeout 2s forwards;
}

@keyframes fadeout {
  0% { opacity: 0.9; }
  80% { opacity: 0.9; }
  100% { opacity: 0; }
}

/*************************************************************
 *  AUTHENTICATION MODAL
 *************************************************************/
#authSection {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1e1e1e;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 999;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

#authSection h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #ffffff;
}

#loginForm input {
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #444;
  background-color: #2c2c2c;
  color: #ffffff;
  font-size: 18px;
  box-sizing: border-box;
}

#loginForm input::placeholder {
  color: #aaaaaa;
}

#loginForm button {
  width: 100%;
  padding: 15px 20px;
  font-size: 18px;
  border-radius: 5px;
}

/*************************************************************
 *  RESPONSIVE ADJUSTMENTS
 *************************************************************/
@media (max-width: 768px) {
  body {
    padding: 10px 5px;
  }

  .container {
    padding: 10px 5px;
  }

  .form-group input,
  .form-group textarea {
    padding: 15px;
    font-size: 16px;
    margin-bottom: 15px;
  }

  .btn,

  .nav-bar button {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
  }

  .days-row {
    flex-wrap: wrap;
    gap: 5px; /* less gap to fit more buttons */
    justify-content: flex-start; /* align left */
  }

  .day-button {
    padding: 4px 8px; /* smaller padding */
    font-size: 12px; /* smaller text */
    flex: 0 1 auto; /* button size based on content */
    white-space: nowrap; /* don't wrap button text */
    min-width: auto; /* remove any fixed width if set */
  }
  .day-map {
    aspect-ratio: 1/1;
  }

  #loginForm input {
    font-size: 16px;
  }

  h1 {
    font-size: 24px;
    text-align: center;
  }

  h2 {
    font-size: 20px;
  }

/****************************/
/*    for fliping the attraction card  */
.place-card {
  flex-direction: column; /* Flip to vertical */
  background-color: #2e2e2e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  border: 1px solid #ebedee;
}

.card-image-container {
  flex: none;           /* Stop it from fixing its width */
  width: 100%;          /* Full width on mobile */
  height: 200px;        /* Optional: define a height */
}

.card-image-container img {
  object-fit: cover;    /* Maintain cover fit */
  width: 100%;
  height: 100%;
}

.card-icon-actions {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 20px;
  top: 8px;  /* move it a little away from the edges if needed */
  right: 8px;
}

.card-content {
  padding: 1em;         /* Reduce padding if needed */
}

.card-tag {
  height: 40px;         /* Adjust tag height if needed */
  font-size: 1em;       /* Smaller font on mobile */
}

  /* If you want to only target GPS coordinates (more precise): */
  .coordinate-text {
    font-size: 0.75em;
  }

  
  .disa-text {
    font-size: 0.9em;
  }

  /**spacing between links, gps, disa...*/

  .detail-item {
    margin-bottom: 1.5em; /* Increase spacing between items */
  }

  .card-details .detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

}
