/* ================================================= */
/* Custom properties */
/* These can be accessed for common use
/* ================================================= */
:root[data-theme="light"] {
  --page-bg: #fff;
  --nav-bar-bg: #e3f2fd;
  --primary-text: #3C3A47;
  --muted-text: #B1B0B5;
  --footer-icon-color: #6c63ff;
  --dark-mode-bg-color: #4c5057;

  --header-bg: whitesmoke;
  --header-text-color: #24c1e0;
  --header-h3-color: mediumvioletred;
  --header-thead-bg: #395870;
  --header-thead-general: antiquewhite;
  --header-tr-nth: beige;
  --table_bg: var(--lightcyan);

  --nav-bg: var(--nav-bar-bg);
  --accordion-transition: #E7F1FF;

  --pagination-theme: 'light-theme';

  --gsi-material-bg: var(--page-bg);
  --gsi-material-button: rgba(0, 0, 0, 0.25);
  --gsi-material-button-general: #1f1f1f;
  --gsi-material-button-disabled-bg: #ffffff61;
  --gsi-material-button-disabled-border-color: #1f1f1f1f;
  --gsi-material-button-state-bg: #303030;
  --gsi-material-button-state-hover-wk-box-shadow1: rgba(60, 64, 67, 0.3);
  --gsi-material-button-state-hover-wk-box-shadow2: rgba(60, 64, 67, 0.15);
  --gsi-material-button-state-hover-box-shadow1: rgba(60, 64, 67, 0.3);
  --gsi-material-button-state-hover-box-shadow2: rgba(60, 64, 67, 0.15);

  --logo-fill: var(--primary-text);

  --input-bg: #F5F5F6;
  --input-bg-hover: #ecebed;
  --input-border-focus: var(--muted-text);
  --input-text: var(--primary-text);
  --input-placeholder: var(--muted-text);

  --button-text: #D19361;
  --button-text-hover: #faf4ef;

  --switch-bg: var(--dark-mode-bg-color);
  --switch-circle-bg: #FFD371;
  --switch-circle-pos: 0.22rem;
  --icon-sun: #997F44;
  --icon-moon: var(--muted-text);

  --icon-socials: var(--primary-text);
  --icon-socials-hover: #77757e;

  --footer-bg: #f5f5f5;
  --footer-bg-border-top: rgba(0, 0, 0, 0.1);
  --footer-link: #6c63ff;
}


:root[data-theme="dark"] {
  --page-bg: #002b36;
  --nav-bar-bg: var(--page-bg);
  --primary-text: #F5F5F6;
  --muted-text: #77757E;
  --footer-icon-color: #6c63ff;
  --dark-mode-bg-color: #4c5057;
  --table_bg: var(--page-bg);

  /*
    main svg
    solarized dark theme
  */
  --main-svg-bg: var(--page-bg);

  /*
    form
  */
  --form-check-label:#0d6efd;

  /*
    header
  */
  --header-bg: var(--page-bg);
  --header-text-color: #24c1e0;
  --header-h3-color: mediumvioletred;
  --header-thead-bg: var(--page-bg);
  --header-thead-general: antiquewhite;
  --header-tr-nth: var(--page-bg);

  --nav-bg: var(--page-bg);
  --accordion-bg: var(--page-bg);
  --accordion-transition: var(--accordion-bg);

  --plan-template-nav-bar: var(--plan-template-nav-bar);

  --gsi-material-bg: #0a3f4d;
  --gsi-material-button: rgba(255, 255, 255, 0.2);
  --gsi-material-button-general: #F5F5F6;
  --gsi-material-button-disabled-bg: #ffffff61;
  --gsi-material-button-disabled-border-color: #1f1f1f1f;
  --gsi-material-button-state-bg: #ffffff;
  --gsi-material-button-state-hover-wk-box-shadow1: rgba(255, 255, 255, 0.3);
  --gsi-material-button-state-hover-wk-box-shadow2: rgba(255, 255, 255, 0.15);
  --gsi-material-button-state-hover-box-shadow1: rgba(255, 255, 255, 0.3);
  --gsi-material-button-state-hover-box-shadow2: rgba(255, 255, 255, 0.15);

  --logo-fill: var(--primary-text);

  --table-border: var(--header-text-color);

  --input-bg: #F5F5F6;
  --input-bg-hover: #ecebed;
  --input-border-focus: var(--muted-text);
  --input-text: var(--primary-text);
  --input-placeholder: var(--muted-text);

  --button-text: #D19361;
  --button-text-hover: #faf4ef;

  --switch-bg: var(--dark-mode-bg-color);
  --switch-circle-bg: #7190FF;
  --switch-circle-pos: 2.99rem;
  --icon-sun: var(--muted-text);
  --icon-moon: #DCE3FF;

  --icon-socials: var(--primary-text);
  --icon-socials-hover: #b1b0b5;

  --footer-bg: var(--page-bg);
  --footer-bg-border-top: rgba(0, 0, 0, 0.1);
  --footer-link: #6c63ff;
}

:root {
  --black: BLACK;
  --white: WHITE;
  --darkcyan: darkcyan;
  --lightcyan: lightcyan;
  --bs-body-bg: var(--page-bg);
  --default-border-radius: 8px;
  --default-transition: color .1s ease-in-out, background-color .1s ease-in-out, border-color .1s
  ease-in-out, fill .1s ease-in-out, transform .1s ease-in-out;
}

.grid {
  display: grid;
  grid-template-rows: auto;
  grid-template-areas:
    "header"
    "content";
}

.header {
  grid-area: header;
}

.content {
  grid-area: content;
}

div.fixedwidthicon {
  width: 25px;
}

button.square-button {
  width: 31px;
}

h1 {
  text-align: center;
  color: var(--header-text-color);
  line-height: 100px;
  margin: 0;
  background-color: var(--header-bg);
}

.inherit-line-height {
    line-height: 100px;
}

h3 {
  color: var(--header-h3-color);
}

h4 {
  color: var(--primary-text);
}

h5 {
  color: var(--primary-text);
}

thead {
  background: var(--header-thead-bg);
  color: var(--header-thead-general);
}

tr:nth-child(even) {
  background: var(--header-tr-nth);
}

/* Save Plan Button */
#savePlanBtn {
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-width: 1.5px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1.5rem;
}

#savePlanBtn * {
  pointer-events: none;
}

#savePlanBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#savePlanBtn.btn-success {
  border-color: #198754;
}

.header {
  position: relative;
}

/* Swiper Container Styles */
#tripSwiper {
  overflow: visible !important;
  padding: 60px 20px;
}

.swiper-container {
  width: 100%;
  position: relative;
  perspective: 1200px;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
  padding-bottom: 20px;
}

/* Overlapping Cards Effect with Perspective */
.swiper-slide {
  width: 400px !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.3;
  transform: scale(0.8) translateZ(-100px);
  height: auto;
}

.swiper-slide-active {
  opacity: 1 !important;
  transform: scale(1) translateZ(0) !important;
  z-index: 10;
}

.swiper-slide-next,
.swiper-slide-prev {
  opacity: 0.5;
  transform: scale(0.9) translateZ(-50px);
  z-index: 5;
}

.swiper-slide-inner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .swiper-slide-inner {
  background: var(--page-bg);
}

.swiper-slide-active .swiper-slide-inner {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.swiper-slide-image {
  width: 100%;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.swiper-slide .card-body {
  display: block !important;
  padding: 1rem;
  flex: 1;
}

.swiper-slide .card-title {
  color: var(--primary-text);
  font-weight: 600;
}

.swiper-slide .card-text {
  color: var(--primary-text);
}

.swiper-slide .card-link {
  color: #24c1e0;
  text-decoration: none;
}

.swiper-slide .card-link:hover {
  text-decoration: underline;
}

/* Swiper Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 20px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #24c1e0;
  width: 24px;
  border-radius: 4px;
}

/* Dark mode adjustments */
[data-theme="dark"] .swiper-button-prev,
[data-theme="dark"] .swiper-button-next {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .swiper-button-prev:hover,
[data-theme="dark"] .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* User Profile Swiper Styles */
#profileSwiper {
  height: 600px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

#profileSwiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#profileSwiper .swiper-slide-inner {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  min-height: 300px;
}

[data-theme="dark"] #profileSwiper .swiper-slide-inner {
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-favorites-slide {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

[data-theme="dark"] .profile-favorites-slide {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.profile-favorites-slide .card-body {
  color: white;
}

.profile-favorites-slide .card-title {
  color: white !important;
  font-weight: 700;
}

.profile-plan-slide {
  min-height: 400px;
}

.profile-plan-slide .list-group-item {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.125);
  padding: 0.5rem 0;
}

[data-theme="dark"] .profile-plan-slide .list-group-item {
  border-color: rgba(255, 255, 255, 0.125);
}

.profile-plan-slide .card-link {
  color: #24c1e0;
  text-decoration: none;
  font-size: 0.95rem;
}

.profile-plan-slide .card-link:hover {
  text-decoration: underline;
}

@media only screen and (min-width: 576px) {
  #dateDiv {
    max-width: 11em;
  }

  #locationDiv {
    min-width: 13em;
  }
}

#planSaveIcon {
  cursor: pointer;
}

.svg-container {
  display: flex;
  justify-content: center;
}

.svg-content {
  display: inline-block;
  top: 0;
  left: 0;
  background-color: var(--main-svg-bg);
}

/*an option for a svg to be used directly*/
.svg {
  background-size: 100%;
  height: 100vh;
  width: 100%;
  background: url("http://fofwebdesign.co.uk/template/_testing/test/svg/page-bg.svg")
    no-repeat 50px 50px;
  color: transparent;
}

/* 404 styles.css */
.specific404 {
  background-image: url("../../assets/public/aJTiW00qqtI-unsplash.jpg");
  background-size: cover;
  font-family: "Roboto", "sans-serif";
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  .header404 {
    font-family: "Chango", cursive;
    font-size: 48px;
  }
  .content404 {
    text-align: center;
  }
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: var(--gsi-material-bg);
  background-image: none;
  border: none;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04), 0 1px 1px var(--gsi-material-button);
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: var(--gsi-material-button-general);
  cursor: pointer;
  font-family: "Roboto", arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color 0.218s, border-color 0.218s,
    box-shadow 0.218s;
  transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

[data-theme="light"] {
  .gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: "Roboto", arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
  }
}
[data-theme="dark"] {
  .gsi-material-button {
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(255, 255, 255, 0.05);
  }

  .gsi-material-button:not(:disabled):hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2), 0 6px 12px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
  }

  .gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: "Roboto", arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    color: #F5F5F6;
  }
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity 0.218s;
  transition: opacity 0.218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: var(--gsi-material-button-disabled-bg);
  border-color: var(--gsi-material-button-disabled-border-color);
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: var(--gsi-material-button-state-bg);
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 var(--gsi-material-button-state-hover-wk-box-shadow1),
    0 1px 3px 1px var(--gsi-material-button-state-hover-wk-box-shadow2);
  box-shadow: 0 1px 2px 0 var(--gsi-material-button-state-hover-box-shadow1),
    0 1px 3px 1px var(--gsi-material-button-state-hover-box-shadow2);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: var(--gsi-material-button-state-bg);
  opacity: 8%;
}


body {
    margin: 0;
    padding: 0;
    background-color: var(--page-bg);
    color: var(--black);
    transition: background-color 0.4s, color 0.4s;
}

.form-check-label {
  color: var(--form-check-label);
}

/* Solarized dark mode styles */
body.dark-mode {
  background-color: #002b36; /* Base03 */
  color: #839496; /* Base0 */
}


.full-expanded-footer {
    background-color: var(--footer-bg);
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--footer-bg-border-top);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.footer-links,
.footer-social {
    flex-basis: 100%;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    margin: 0 20px;
    font-size: 16px;
    cursor: pointer;
}

.footer-mode a {
  color: var(--footer-link);
  text-decoration: none;
  margin: 0 20px;
  font-size: 16px;
  cursor: pointer;
  justify-content:center;
  text-align:center;
}

#theme-switcher {
  background-color: var(--switch-bg);
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 1.33rem;
  cursor: pointer;
  padding: 0.66rem;
  position: relative;
  transform: var(--default-border-radius);
}

#theme-switcher::before {
  content: '';
  position: absolute;
  width: 2.22rem;
  height: 2.22rem;
  background-color: var(--switch-circle-bg);
  border-radius: 50px;
  z-index: 0;
  left: 0;
  transform: translateX(var(--switch-circle-pos));
  transition: var(--default-transition);
}

#theme-switcher svg {
  z-index: 1;
  transition: var(--default-transition);
}

#icon-sun {
  fill: var(--icon-sun);
}

#icon-moon {
  fill: var(--icon-moon);
}

.footer-social a img {
    max-width: 30px;
    margin: 0 15px;
}



.reload-btn {
  display: none;
}

/* Media queries for responsiveness */
@media only screen and (min-width: 600px) {
    .footer-links,
    .footer-mode,
    .footer-social {
        flex-basis: auto;
        margin-bottom: 0;
    }
}

/*nav bar*/
.navbar.navbar-light.navbar-expand-lg {
  background-color: var(--nav-bg);
}

/*nav items*/
.nav {
  background-color: var(--nav-bg);
}

html body div.container.mt-3 div.row.mt-1 form#main-form.row.d-flex.flex-column.flex-sm-row.align-items-start.align-items-sm-center.pe-0 div#dateDiv.col.ps-1.pe-0.mt-1 input#datepicker.form-control.border.border-secondary {
  background-color: var(--page-bg);
  color: var(--input-text);
}

html body div.container.mt-3 div.row.mt-1 form#main-form.row.d-flex.flex-column.flex-sm-row.align-items-start.align-items-sm-center.pe-0 div#locationDiv.container.border.border-secondary.rounded-1.d-flex.flex-row.align-items-center.col.ms-1.mt-1 div.flex-fill input#location.form-control.border-0.ui-autocomplete-input {
  background-color: var(--page-bg);
  color: var(--input-text);
}

html body div.container.mt-3 div.row.mt-1 form#main-form.row.d-flex.flex-column.flex-sm-row.align-items-start.align-items-sm-center.pe-0 div#priceDiv.col-sm-2.ps-1.pe-0.mt-1 select#priceToSelect.form-select.border.border-secondary {
  background-color: var(--page-bg);
  color: var(--input-text);
}

html body div.container.mt-3 div.row.mt-1 form#main-form.row.d-flex.flex-column.flex-sm-row.align-items-start.align-items-sm-center.pe-0 div#locationDiv.container.border.border-secondary.rounded-1.d-flex.flex-row.align-items-center.col.ms-1.mt-1 div.fixedwidthicon i#searchIcon.bi.bi-search.mx-1.visible {
  color: var(--footer-icon-color);
}

html body {
  background-color: var(--page-bg);
}

html body main.content {
  color: var(--primary-text);
}

html body footer.footer {
  color: var(--primary-text);
}

.accordion-item {
  background-color: var(--accordion-bg)
}

.accordion-button {
  background-color: var(--accordion-bg);
}

.accordion-button:not(.collapsed) {
  background-color: var(--accordion-transition);
}

.table {
  background: var(--table_bg);
}

#contains-everything.container.mt-3 {
  background-color: var(--page-bg);
  color: var(--primary-text);
}

.container.mt-3 {
  background-color: var(--page-bg);
  color: var(--primary-text);
}

[data-theme="dark"] {
  #contains-everything.container.mt-3 * {
    background-color: inherit;
    color: inherit;
  };
  .container.mt-3  > *:not(.form-check-input) {
    background-color: inherit;
    color: inherit;
  };
  /*handle login form*/
  .container.mt-3 form#login-form * {
    background-color: var(--page-bg);
    color: var(--primary-text);
  };
  /*handle signup form*/
  .container.mt-3 form#signup-form * {
    background-color: var(--page-bg);
    color: var(--primary-text);
  };
  /*handle plan details*/
  .container.d-flex.flex-column.align-items-center.justify-content-center.mt-4 > *:not(.card.shadow-sm.border.rounded.mt-2) {
    background-color: var(--page-bg);
    color: var(--primary-text);
  };
  /*handle profile tables*/
  #user-profile-container.container * {
    background-color: var(--page-bg);
    color: var(--primary-text);
    border-color: var(--table-border);
  };
}



