/*** General styles, apply across all tested pages ***/

/* Set font size to respond to screen size */
body,
td,
th {
  font-size: 17px;
}

h2 {
  margin-top: 0em;
}

/* at lower resolutions the borders seem to disaeppear */
input,
select {
  border: 0.08em solid black;
}

/* Set overall screen width on div wrapper */
#ie_helper,
#pop_helper {
  width: 97.5%;
}

/* Add margin for containing div */
#ie_helper {
  margin-top: 65px;
}

/* Creates empty box before targets to isolate under header */
:target::before {
  content: "";
  display: block;
  height: 110px;
  margin: -110px 0 0;
}

/* Un-constrain images to fit page, except those that need to stay constrained */
img:not(.image--constant) {
  width: 100%;
  height: auto;
}

/* Un-constrain images to fit page, except those that need to stay constrained */

img.image--three-quarter {
  width: 75%;
}

img.image--half {
  width: 50%;
}

img.image--quarter {
  width: 25%;
}

img.image__table {
  height: 70px;
}

/* this applies to some images that exist in
   the image table, they did not fill the space
   of the parent container */
img.image__table--slightly-larger {
  height: 72px;
}

/* Unset no wrap to allow for reordering */
nobr {
  white-space: normal;
}

/* Set width to screen size max to un-constrain left and right divs */
div.r-col,
div.l-col,
div.departure_dates,
div.price_per_person,
.departure_dates > table > tbody > tr > td {
  width: 100%;
}

div.price_per_person {
  display: flex;
  flex-direction: column;
}

div.price_per_person {
  align-items: center;
}

/* set months to the left */
.departure_dates th {
  text-align: left;
}

div.departure_dates,
.price_per_person,
#footer,
#footer span.copyright,
#footer a {
  font-size: 0.85em;
}

.image__logo-frommers {
  float: right;
  margin-left: 0.75em;
}

.image__logo-trade {
  padding: 0px 50%;
}

.image__video_play {
  height: auto;
}

/* a table class set to a wrapper that makes the table 
  scroll on overflow and a subtle background color to
  pull it up out of the frame. */
.table__wrapper--overflow-scroll {
  overflow-y: scroll;
  background: lightgray;
}

/* Using a higher level of specificity to remove fixed inline
   width on picture table, specfically on usa-california-coast */
#pop_helper > table {
  width: 100%;
}

/* There are a good number of things that need to be
   removed at lower resolution, assuming a 'hide' class is preferable
   to deleting the element entirely */
  .page__responsive--hidden {
  display: none;
  /* The following was added opun suggestion to handle some screen
     reader instances */
  position: absolute; 
  overflow: hidden; 
  clip: rect(0 0 0 0); 
  height: 1px; width: 1px; 
  margin: -1px; padding: 0; border: 0; 
}

.page__responsive--text-align-center {
  text-align: center;
}

.page__responsive--text-align-left {
  text-align: left;
}

.page__responsive-bottom-spacer {
  margin-bottom: 17px;
}

.page__responsive-top-spacer {
  margin-top: 17px;
}

.page__responsive-header--font-style {
  font-size: 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

/* The initial styles for the fixed header at the top of all
    pages */
.page__responsive-header--initial {
  top: 0px;
  right: 0.5px;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: white;
  width: 100%;
  z-index: 3;
}

/* This is the reset action for the edited spans that establish
    breaks that make for odd spacing */
.page__responsive-reset {
  line-height: initial !important; 
  white-space: initial !important;
}

/* Tour Page specfic styles */

.tour-page__sub-header--border.page__responsive-h2--top-margin,
.page__responsive-h2--top-margin {
  margin-top: 1em;
}

/* This adds a secondary wrapper to tour pages to allow the double sticky
header to be placed correctly */
.tour-page__main {
  margin-top: 85px;
}

.tour-page__header {
  margin-left: 20px;
  width: 80%;
  font-size: 22px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.tour-page__sub-header {
  margin: 0.1em;
  font-size: 22px;
  border: none;
  font-weight: bold;
}

.tour-page__sub-header--border {
  font-size: 22px;
  font-weight: bold;
}

.tour-page__sub-header-itinerary {
  padding: 0.6em 0 0.3em 0;
}

.tour-page__price-callout {
  font-size: 22px;
  font-weight: 100;
  border: none;
}

.tour-page__map--left-align {
  text-align: left;
}

.tour-page__map--caption-style {
  font-size: 12px;
}

.tour-page__itinerary-container {
  display: flex;
  flex-direction: row;
  height: 40px;
  width: 100%;
  border: 1px solid #043c82;
}

.tour-page__itinerary-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tour-page__itinerary-link {
  text-decoration: none;
}

.tour-page__itinerary-title--selected {
  margin: 0.1em;
  font-size: 22px;
  border: none;
}

.tour-page__itinerary-button {
  height: 40px;
  width: 50%;
  background-color:#043c82;
  color: white;
}

.tour-page__itinerary-button--pressed {
  height: 40px;
  width: 50%;
  background-color: white;
  color:#043c82;
}

.tour-page__itinerary--hidden {
  display: none;
}

.tour-page__price-callout   {
  font-size: 22px;
  font-weight: 100;
  border: none
}

.tour-page__itinerary-switch {
  padding-top: 0.5em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.55em;
  border-bottom: 1px solid red;
}

.tour-page__movie-td {
  padding-top: 14px;
}

.tour-page__movie-link {
  text-decoration: none;
}
/* End Tour Page specific styles */

.review-page__callout {
  margin: 12px 0;
}

/* Footer Specific styling */
#footer > div > p > b > a,
.footer--font-size {
  font-size: 1em;
}

.footer__email-signup-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__email-signup-submit {
  border-radius: 2px;
  color: black;
  border: 0px;
  padding: 6px 9px;
}

.footer__email-signup-input {
  width: 60%;
  margin: 3px;
  padding: 0.3em 0.5em 0.3em 0.5em;
}

/***  End General styles  ***/

/****************************/

/*** Page Specific styles ***/

/** Index Page styles **/

#vc_page td,
#vc_page,
#vc_page li,
#vc_page h4 {
  font-size: 1em;
}

/* Reorders the navigation elements on the page and the about text
   later on */
#vc_page {
  margin-top: 2em;
  display: flex;
  flex-direction: column-reverse;
}

/* The index page has an inline percent width that needed to be overridden */
#vc_page > div.r-col[style],
#vc_page > div.l-col[style] {
  width: 100% !important;
}

.home-page__header {
  padding: 3px 3px 3px 0px;
  border-bottom: 2px solid red;
}

.home-page__subheader {
  padding: 3px 3px 8px 0px;
}

/** End Index Page styles **/

/** FAQ Page styles **/

#list-page-toc > ul,
div.ct_sp_toc ul ul,
div.ct_sp_toc.page__responsive--hidden {
  display: none;
}

div.ct_sp_toc {
  display: flex;
  flex-direction: column;
}

/** End FAQ Page styles **/

/** Brochure Page styles **/

.brochure-form__container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.brochure-form__row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.brochure-form__intro-paragraph {
  margin: 0.4em 1px;
}

.brochure-form__line {
  border: 1px solid #f5f5f5;
  height: 0.1px;
  width: 100%;
  margin: 0.6em;
  background-color: #f5f5f5;
}

.brochure-form__input {
  border: 0.11em solid #c4c4c2;
  margin-bottom: 0.35em;
}

.brochure-form__select {
  background-color: white;
  border: 0.11em solid #c4c4c2;
  margin-bottom: 0.35em;
  font-size: 1em;
  color: #939393;
}

.brochure-form__button {
  border: 0.11em solid #788db6;
  padding: 0.4em;
  font-size: 1em;
  background-color: whitesmoke;
  color: #043c82;
  transition: color 0.5s, background-color 0.5s;
}

.brochure-form__text-style {
  padding: 0.4em;
  font-size: 1em;
}

.brochure-form--hundred {
  width: 100%;
}

.brochure-form--eighty {
  width: 79%;
}

.brochure-form--fifty {
  width: 49%;
}

.brochure-form__header--left-align {
  align-self: flex-start;
}

.brochure-form__submit-row {
  align-items: center;
}

.brochure-form__submit-row-label {
  margin: auto 5% auto auto;
}

.brochure-form__submit-row-select {
  width: 36%;
  margin-right: 6%;
}

.brochure-form__text-style.brochure-form__submit-row-button {
  background-color: #043c82;
  color: whitesmoke;
  border: 0px;
  padding: 0.6em 2em;
}

.brochure-form__submit-row-button {
  transition: color 0.5s, background-color 0.5s;
}

.brochure-form__button:active {
  color: whitesmoke;
  background-color: #043c82;
}

.brochure-form__submit-row-button:active {
  background-color: whitesmoke;
  color: #043c82;
}

/** End Brochure Page styles **/

/** Panama Page styles **/

/* The panama page has a collection of spans that have font-size set on them and
   needed to be overridden, did not use a class here to minimize confusing in 
   component space */
#panama-2020-itinerary span[style],
#panama-2020-itinerary b[style] {
  font-size: 0.98em !important;
}
/** End Panama Page styles **/

/** Grand Canyon Page styles **/

/* The grand canyon page is in the same sort of sitaution */
#movies > tbody > tr > td:nth-child(2),
#usa-grand-canyon-2020-itinerary > p > span[style],
#usa-grand-canyon-2020-itinerary > p > b[style] {
  font-size: 17px !important;
}
/** End Grand Canyon Page styles **/

/** Guatemala Page styles **/

/* There was some odd spacing on a Gautemala, it might apply more
   generally, haven't seen it yet */
.page__responsive--zero-top-margin {
  margin-top: 0;
}

/* There were a few h3 with some im-line styles that needed to be overridden */
#guatemala-2020-hotel-days-slot-4-title-text > h3 > span > h3[style],
#guatemala-2020-hotel-days-slot-2-title-text > h3 > span > h3[style] {
  font-size: 19px !important;
  margin: 0 !important;
}

/** End Guatemala Page styles **/

/** Canada Rockies Page styles **/

#canada-rockies-2020-itinerary > p > span[style],
#canada-rockies-2020-itinerary > p:nth-child(6) > font > span[style] {
  font-size: 17px !important;
}

/** End Canada Rockies Page styles **/

/** Site Map Page styles **/
#ct_site_map {
  display: flex;
  flex-direction: column-reverse;
}

#ct_site_map #div1 {
  position: initial;
  left: initial;
  top: initial;
  width: 100%;
}

#ct_site_map #div2 {
  display: none;
  position: initial;
  right: initial;
  top: initial;
}

#ct_site_map #div1 div {
  float: left;
  width: initial;
}

/** End Site Map Page styles **/

/*** End Page Specific styles ***/

/** Main Menu styles **/

.main-menu__title {
  padding: 0.55em 8px;
}

.main-menu__logo {
  width: 100%;
}

.main-menu__number {
  width: 90%;
  margin-right: 10px;
}

.main-menu__nav-list {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.main-menu__line {
  margin-left: 0.55em;
  width: 90%;
  border: 1px solid lightgray;
}

.main-menu .main-menu__last-link {
  padding-bottom: 20px;
}

.menu-toggle {
  display: inline-block;
  line-height: 1em;
  font-size: 1em;
  color: #333;
}

.menu-toggle:hover,
.menu-toggle:focus {
  color: #c00;
}

.main-menu {
  position: absolute;
  display: none;
  left: -90%;
  top: 0;
  height: 100%;
  overflow-y: scroll;
  overflow-x: visible;
  transition: left 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5em 0 0;
  -webkit-box-shadow: -8px 0 8px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: -8px 0 8px rgba(0, 0, 0, 0.5);
  box-shadow: -8px 0 8px rgba(0, 0, 0, 0.5);
  min-height: 100%;
  width: 100%;
  background: white;
}

.main-menu a {
  display: block;
  padding: 0.45em 10px;
  font-size: 18px;
  text-decoration: none;
}

.main-menu:target,
.main-menu[aria-expanded="true"] {
  width: 80%;
}

/** End Main Menu styles **/

/** Aux Menu styles **/

.aux-menu {
  position: absolute;
  display: none;
  left: -80%;
  top: 0;
  overflow-y: scroll;
  overflow-x: visible;
  transition: left 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.aux-menu__wrapper {
  top: 48px;
  padding-top: 8px;
  right: 4px;
  position: fixed;
  display: flex;
  background-color: white;
  width: 100%;
}

.aux-menu__title {
  font-size: 22px;
  margin: -3px 0px 2px 16px;
  font-family: Arial, Helvetica, sans-serif;
}

.aux-menu__header {
  display: flex;
  justify-content: space-between;
}

.aux-menu__caret--initial,
.aux-menu__caret--pressed {
  transform: rotate(-135deg);
  border-right: 0.1em solid blue;
  border-bottom: 0.1em solid blue;
  width: 0.9em;
  height: 0.9em;
}

.aux-menu__caret--initial {
  transform: rotate(45deg);
}

.aux-menu__caret--pressed {
  transform: rotate(-135deg);
}

.aux-menu__list-anchor {
  display: block;
  padding: 0.75em 15px;
  line-height: 1em;
  font-size: 1em;
  text-decoration: none;
}

.aux-menu__nav-list {
  text-align: center;
  list-style: none;
  margin: 0;
  padding: 0;
  -webkit-box-shadow: -8px 0 8px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: -8px 0 8px rgba(0, 0, 0, 0.5);
  box-shadow: -8px 0 8px rgba(0, 0, 0, 0.5);
  min-height: 100%;
  width: 100%;
  background: white;
}

.aux-menu-toggle,
.aux-menu .aux-close {
  position: absolute;
  top: -0.2em;
}

.aux-menu-toggle {
  right: 0.59em;
}

.aux-menu .aux-close {
  right: 0.8em;
  top: -0.8em;
}


.aux-menu:target,
.aux-menu[aria-expanded="true"] {
  width: 100%;
  top: 59px;
}

.aux-menu:target .aux-close,
.aux-menu[aria-expanded="true"] .aux-close {
  z-index: 1001;
}

/** End Aux Menu styles **/

/** Shared Menu styles **/

/* The target psuedo class is set in case later on
   Javascript is used, otherwise the aria-expanded
   flag will trigger on user action */
.main-menu:target,
.main-menu[aria-expanded="true"],
.aux-menu:target,
.aux-menu[aria-expanded="true"] {
  display: block;
  left: 0%;
  outline: none;
  -moz-box-shadow: -1px 6px 11px -8px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: -1px 6px 11px -8px rgba(0, 0, 0, 0.25);
  box-shadow: -1px 6px 11px -8px rgba(0, 0, 0, 0.25);
}

.main-menu:target ul,
.main-menu[aria-expanded="true"] ul,
.aux-menu:target ul,
.aux-menu[aria-expanded="true"] ul {
  position: relative;
  z-index: 1000;
}

.main-menu:target + .backdrop,
.main-menu[aria-expanded="true"] + .backdrop,
.aux-menu:target + .backdrop,
.aux-menu[aria-expanded="true"] + .backdrop {
  position: absolute;
  display: block;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  background: #000;
  background: rgba(0, 0, 0, 0.65);
  cursor: default;
}

.main-menu:target + .backdrop,
.main-menu[aria-expanded="true"] + .backdrop {
  top: 0px; 
}

/* The aux menu backdrop needs to be positioned down
   so it doesn't filter over the fixed menus */
.aux-menu:target + .backdrop,
.aux-menu[aria-expanded="true"] + .backdrop {
  top: 59px;
}

@supports (position: fixed) {
  .main-menu,
  .main-menu:target + .backdrop,
  .main-menu[aria-expanded="true"] + .backdrop,
  .aux-menu,
  .aux-menu:target + .backdrop,
  .aux-menu[aria-expanded="true"] + .backdrop {
    position: fixed;
  }
}

/** End Shared Menu styles **/
