body {
  font-family: "Poppins", sans-serif;
  overflow-y: scroll;
}
html, body {
  height: 100%;
  background: #ececec;
}
footer {
  margin-top: 60px;
}
.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.mainCon {
  padding-top: 50px;
}
.loginCon {
  width: 40%;
  margin: 0 auto;
}
.content {
  flex: 1;
}
label {
  font-weight: 600;
  font-size: 18px;
}
/* Nice input fields */
input[type="text"],input[type="email"],input[type="password"],select,textarea {
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
input:focus,select:focus,textarea:focus {
  border-color: #912e2e;
  box-shadow: 0 0 0 0.2rem rgba(145, 46, 46, 0.25);
}
p, td {
  font-size: 16px;
}
h1, h2, h4, label {
  color: #912e2e;
  font-weight: 600;
}
h2 {
  font-weight: 700;
  margin: 0 auto;
  font-size: 40px;
  margin-bottom: 40px;
  padding-bottom: 10px;
  display: table;
  border-bottom: 4px solid #212529;
}
h3 {
  color: #333;
  font-weight: 700;
}
.h5, h5 {
  font-size: 26px;
  color: #333;
  font-weight: 700;
}
footer h5 {
  color:white;
}
.h4Divider {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #333;
  line-height: 0.1em;
  margin: 60px 0 60px;
  font-size: 34px;
}
.h4Divider span{
  background:#ececec;
  padding:0 20px;
}
.navbar{
  width: 100%;
}
.navbar-text a:hover {
  color: rgb(33 37 41);
  background-color: white;
}
.ck-editor__editable_inline {
  min-height: 250px;
  position: static !important;
}
.daytour-overnight .ck-editor__editable_inline {
  min-height: auto;
  position: static !important;
}
.flight .ck-editor__editable_inline {
  min-height: 190px;
  position: static !important;
}
.ck-editor__editable {
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
#itineraryTableBody td a {
  margin: 5px 0;
}

/* Itinerary slider carousel */
/* Image Carousel Styles */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.5rem;
}

.carousel-indicators {
    margin-bottom: -2rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
}

.carousel-indicators .active {
    background-color: #007bff;
}

/* Ensure images maintain aspect ratio + hover zoom */
.carousel-item img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.05);
}
body .swiper-pagination-bullet-active {
	background: #912e2e;
}
body .swiper-button-next, body .swiper-button-prev {
	color: #912e2e;
}

/* Image Upload Styles */
.img-thumbnail {
	object-fit: cover;
}
.image-item {
  position: relative;
  display: inline-block;
  margin: 5px;
}

.image-item img {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

.image-item .delete-image,
.image-item .undo-delete,
.image-item .remove-selected {
  cursor: pointer;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.marked-for-deletion {
  position: relative;
}

.marked-for-deletion::after {
  content: "Will be deleted";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.image-count-badge {
  font-size: 12px;
  padding: 4px 8px;
  margin-left: 8px;
}

.selected-images-container {
  border: 2px dashed #28a745;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  background-color: #f8f9fa;
}

.selected-images-container .image-item {
  border: 2px solid #28a745;
}

.image-counter-info {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  margin-bottom: 10px;
}

.tour-image-preview {
  min-height: 50px;
}
.badge-no-translation {
	color: #D0342C;
}

/* Dropdown hover functionality */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.navbar-nav .dropdown .dropdown-menu {
  margin-top: 0;
}

/* Smooth transition for dropdown */
.dropdown-menu {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Keep dropdown open when hovering over it */
.dropdown-menu:hover {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
/** Rejseplan **/
.itineraryCon {
}
.itinBanner {
  background-image: url("https://vietnam-rejser.dk/wp-content/uploads/Forside-Banner-bigger.webp");
  height: 500px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
}
.bannerTitle {
  z-index: 9;
}
.itinBanner .banner {
  width: 100%;
  position: absolute;
  height: 500px;
}
.itinBanner .banner img{
  object-fit: cover;
  height: 500px;
}
.itinBanner h2 {
  text-align: center;
  text-shadow: 4px 4px #00000054;
  border-bottom: unset;
  font-size: 60px;
  color: white;
}
.itinInfo {
  max-width: 1000px;
  position: relative;
  top: -40px;
  flex-direction: column;
  align-items: center;
}
.itinInfo .itin-aProfile .flex-column{
  word-break: break-word;
}
.itinNumber p{
  background-color: white;
  width: 200px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 20px;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}
.itinBanner .row.rounded.bg-light{
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.masonry img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.card-header {
  background-color: #912e2e;
  color: white;
}
.card-header strong {
  color: white;
  font-weight: 600;
}
tbody, td, tfoot, th, thead, tr {
  vertical-align: middle;
}
body th {
  background: #912e2e !important;
  color: white !important;
}
#days-container li {
  background: #f7f7f7;
}
#days-container li:nth-child(odd){
  background: white;
}
.day-block-modern {
  border-left: 5px solid #912e2e;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.day-block-modern h4 {
  font-size: 22px;
  color: #212529;
  font-weight: 600;
}
.day-block-modern p {
  font-size: 16px;
  margin-bottom: 10px;
}
.day-block-modern .badge {
  font-size: 14px;
  background: #912e2e;
}
.day-block-0 {
  margin-top: 0 !important;
  border-top: unset !important;
  border-top-left-radius: unset !important;
  border-top-right-radius: unset !important;
}
.day-block {
  border-left: 4px solid #912e2e !important;
  padding: 30px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.day-block .strongH3 {
  color: #912e2e;
  font-size: 18px;
}
.drag-handle {
  cursor: move;
  font-size: 20px;
  color: #912e2e;
  position: absolute;
  top: 10px;
  left: 10px;
  user-select: none;
}
.day-block h3 {
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.day-block .form-control,.day-block .form-select {
  margin-bottom: 12px;
}
.day-block .paddingzero {
  margin-bottom: 0;
}
.dayblock-date {
  color: #6d6d6d;
}
.day-block h5 {
	color: #912e2e;
}
.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable, .ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners, input[type="text"], input[type="email"], input[type="password"], select, textarea {
	border-color: #912e2e;
}
.day-block label {
	color: #333;
}
.imagemanage {
	background: #e3f6ef;
	padding: 15px;
}
.move-up, .move-down {
  background: #177d4e;
  color: white;
}
.itineraryInfo .p-2 {
  background: rgb(248 249 250);
  margin: 0 10px 0 10px;
  padding: 20px !important;
}
.itineraryInfo p {
  margin-bottom: 0;
  text-align: left;
}
.itineraryInfo strong{
  display: table;
  font-size: 18px;
}
.day-block.itin-bottom {
  border-left: 4px solid #FFCD00 !important;
}
.itin-header .col:nth-child(1) {
}
.itin-header .col:nth-child(2) {
}
body .day-block.itineraryInfo.itin-top.itin-aProfile {
  background-color: transparent !important;
  box-shadow: none;
  border: none !important;
}
.itin-aProfile img {
  width: 100px;
  height: 100px;
  float: left;
  object-fit: cover;
  margin-right: 15px;
}
.cusInfo {
  width: 50%;
}
body .cusInfo p, body .itineraryInfo p{
  font-size: 14px;
}
.cus-itin-top {
  display: flex;
  border-left: none !important;
  box-shadow: none !important;
}
.itin-price {
  flex-direction: column;
}
.itin-header {
  margin-bottom: 0 !important;
  border-bottom: unset !important;
  border-bottom-left-radius: unset !important;
  border-bottom-right-radius: unset !important;
  padding-bottom: 20px !important;
}
.itin-header h2{
  display: inline-block;
  border: none;
  margin: unset;
}
.itin-header h2:after {
  background-color: #333;
  content: '';
  display: block;
  height: 3px;
  width: 90px;
  margin-top: 5px;
}
.itin-top strong, .itin-price strong{
  font-size: 16px;
}
.itin-price .col-6 strong{
  float: left;
}
.itin-price .col-6 p{
  text-align: right;
}
.itin-logo {
  width: 240px;
  float: right;
}
.itin-logo.itin-bottom {
  width: 340px;
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
}
/** Header **/
.nav-logo{
  width: 155px;
}
.nav-item{
  margin-left: 20px;
  font-weight: 600;
}
.navbar-nav span{
  margin-left: 20px;
  font-weight: 600;
}
.navlogout li{
  margin-left: 0px;
  border-left: 2px solid rgb(255, 255, 255, 0.55);
  padding-left: 4px;
}
.navlogout li a, .navbar-nav span{
  padding-top: 0;
  padding-bottom: 0;
}
.customCon {
  width: 600px;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  margin-top: -25px;
  margin-left: -300px;
  top: 40%;
  left: 50%;
}
.addUserRow {
  margin-top: 10px;
}
.form-control,.form-select {
  padding: 0.6rem 1rem;
}
.mainCon .g-3, .gy-3 {
  align-items: center;
}
.tour-search-dropdown {
  position: relative;
}
.tour-search-dropdown {
  position: relative;
}
.tour-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
}
.tour-search-input:focus {
  outline: none;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.tour-options-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ced4da;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  display: none;
}
.tour-option {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}
.tour-option:hover {
  background-color: #f8f9fa;
}
.tour-option:last-child {
  border-bottom: none;
}
.tour-option.highlighted {
  background-color: #e7f3ff;
  color: #0d6efd;
}
.tour-option mark {
  background-color: #fff3cd;
  color: #856404;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: bold;
}
.search-stats {
  padding: 4px 12px;
  font-size: 0.875rem;
  color: #6c757d;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-style: italic;
}
.no-results {
  padding: 8px 12px;
  color: #6c757d;
  font-style: italic;
}
/* Validation styles */
.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff5f5;
}
.is-invalid:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}
.validation-error-summary {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: none;
}
.validation-error-summary h6 {
  margin: 0 0 8px 0;
  font-weight: 600;
}
.validation-error-summary ul {
  margin: 0;
  padding-left: 20px;
}
.day-block.has-errors {
  border-color: #dc3545;
  background-color: #fff5f5;
}
.sticky-save-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: none !important;
  /* Force hidden by default */
}
.sticky-save-btn.show {
  display: block !important;
  /* Force visible when shown */
}
.sticky-save-btn.show {
  display: block;
}
.sticky-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
/* Hide original button when sticky is visible */
.original-save-hidden {
  visibility: hidden;
}
/* Day block move animations */
.day-block {
  transition: all 0.3s ease;
}
.day-block.moving {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #0d6efd;
  background-color: #f8f9ff;
  z-index: 10;
  position: relative;
}
.day-block.move-target {
  border-color: #198754;
  background-color: #f0fff4;
  transform: translateY(-2px);
}
.day-block.slide-up {
  animation: slideUp 0.4s ease;
}
.day-block.slide-down {
  animation: slideDown 0.4s ease;
}
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-footer {
    padding: 1rem;
}
/* API tours */
.table-light a {
  color: white;
}
.table-row-fade-in {
  animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.image-gallery img {
  transition: transform 0.2s ease;
}
.image-gallery img:hover {
  transform: scale(1.1);
  z-index: 1000;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.status-saved {
  background-color: #28a745;
}
.status-new {
  background-color: #ffc107;
}
.status-saving {
  background-color: #007bff;
}
.status-error {
  background-color: #dc3545;
}
.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid #dee2e6;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sticky-action-bar.show {
  transform: translateY(0);
}

.sticky-action-bar .btn {
  margin: 0 5px;
}
@keyframes slideUp {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes slideDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}
/* Success flash animation */
.day-block.moved-success {
  animation: moveSuccess 0.6s ease;
}
@keyframes moveSuccess {
  0% {
    background-color: #d1ecf1;
    border-color: #bee5eb;
  }
  50% {
    background-color: #d4edda;
    border-color: #c3e6cb;
  }
  100% {
    background-color: inherit;
    border-color: inherit;
  }
}
.day-block.flash-move {
    animation: flashMove 0.8s ease-out;
    border-color: #007bff !important;
    box-shadow: 0 0 10px rgba(0,123,255,0.4);
}

@keyframes flashMove {
    0% { background-color: #cfe2ff; }
    100% { background-color: white; }
}
#sortList .list-group-item {
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sortList .list-group-item .sort-handle {
    font-size: 20px;
    color: #666;
    cursor: grab;
}

/* Sortable items */
#sortList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sortList li {
    padding: 8px 10px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sortList li:hover {
    background: #eef6ff;
    border-color: #80bdff;
}

.sort-handle {
    cursor: grab;
    font-size: 18px;
    color: #666;
}
#sortSidebarSticky {
    position: sticky;
    top: 20px;          /* space below navbar */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 100;
}
/* Mobile version */
@media only screen and (max-width: 676px) {
  .loginCon {
    width: 80vw;
    margin: 0 auto;
  }
  .itin-logo.itin-bottom {
    width: 100%;
  }
  .itin-price .row .col-6 {
    width: 100%;
  }
}
