/*******************************/
/* HEADER                      */
/*******************************/
#tripPage__header {
  height:320px; /* 500 inc padding */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  padding:180px 15px 0 15px;
  position: relative;
}

#tripPage__title {
  text-align:center;
  text-shadow: 0 5px 25px rgba(24, 24, 25, 0.2);
  font: 60px merriweather, palatino, serif;
  font-weight: bold;
  font-style: italic;
  color: var(--white);
}
/* line between title and info */
/* there's probably a cleaner way of doing this :-) */
#tripPage__headerSeperator {
  background-color: white;
  opacity:0.8;
  height:2px;
  width:100px;
  margin:20px auto;
}
#tripPage__headerInfo {
  text-align:center;
  font: bold 16px poppins, Arial, sans-serif;
  letter-spacing: 4px;
  color: var(--white);
  text-shadow: 0 5px 25px rgba(24, 24, 25, 0.2);
}
#tripPage__favorites {
  background: url(/static/images/icons/heart-gray.svg) no-repeat center right/16px transparent;
  padding: 0 21px 0 0;
  border: 0;
  font: bold 16px poppins, Arial, sans-serif;
  letter-spacing: 4px;
  color: var(--white);
  text-shadow: 0 5px 25px rgba(24, 24, 25, 0.2);
}

/*******************************/
/* MAIN CONTENT CONTAINER      */
/*******************************/
#tripPage__content {
  max-width:1030px;
  padding: 0 15px;
  margin-left:auto;
  margin-right:auto;
}

/*******************************/
/* SUB HEADER                  */
/*******************************/
#tripPage__subHeaderInfo {
  max-width:660px;
  width: calc(100% - 350px);
  float:left;
  margin-top:60px;
}
#tripPage__userInfo {
  font: bold italic 23px merriweather, palatino, serif;
  color: var(--gray-400);
  display:flex;
  flex-flow:row nowrap;
  align-items: center;
}
#tripPage__userInfo button {
  width: 30px;
  height: 30px;
  padding: 4px 0 2px 0;
  line-height:0;
  border-radius:20px;
  font: 600 12px poppins, lucida, arial, sans-serif;
  letter-spacing: .05em;
  text-align: center;
  color: var(--white);
  outline:none;
  border:0;
  margin:0 5px;
  vertical-align: middle;
  display:inline-block;
}
#tripPage__userInfo a {
  font: bold italic 23px merriweather, palatino, serif;
  color: var(--gray-400);
}
#tripPage__description {
  font: 16px merriweather, palatino, serif;
  line-height: 1.63;
  color: var(--gray-500);
  margin-top: 30px;
}

/*******************************/
/* OVERVIEW                    */
/*******************************/
#tripPage__overview {
  float:right;
  width:300px;
  margin-top:60px;
}
#tripPage__overview.noDescription {
  float: none !important;
  margin-top: 20px;
  width: 100%;
  max-width: 800px;
}
#tripPage__overview.noDescription.oneSection h2 {
  width: calc(50% - 11px);
}
#tripPage__overview.noDescription .tripPage__overviewSection {
  display: inline-block;
  width: calc(50% - 11px);
}
#tripPage__overview.noDescription .tripPage__overviewSection:nth-child(odd) {
  margin-right: 15px;
}
#tripPage__overview h2 {
  font: bold 16px poppins, Arial, sans-serif;
  letter-spacing: 4px;
  color: var(--gray-500);
  border-bottom:1px solid #979797;
  padding-bottom:15px;
}
.tripPage__overviewSection {
  font: 16px poppins, Arial, sans-serif;
  padding:0;
  border-bottom:1px solid #979797;
}
.tripPage__overviewSection a {
  color: var(--gray-500);
}
.tripPage__overviewSection-title {
  font: 16px poppins, Arial, sans-serif;
  font-weight:600;
  background-color: transparent;
  cursor:pointer;
  border:0;
  padding:0;
}
.tripPage__overviewSection-count {
  font: italic 16px merriweather, palatino, serif;
  line-height: 2.75;
  color: var(--gray-500);
}
#tripPage__userAvatar img {
  width: 30px;
  height: 30px;
  border-radius: 20px;
  border: 0;
  margin-right: 5px;
}

/********************************/
/* MAP                          */
/********************************/
#tripPage__map {
  margin-top:40px;
  width:100%;
  height:377px;
}

/*******************************/
/* SECTIONS                    */
/*******************************/
#tripPage__sections {
  padding-bottom:60px;
}
.tripPage__section {
  margin-top:80px;
  clear:both;
}
.tripPage__sectionHeader {
  height:40px;
  margin-bottom:30px;
  position:relative;
}
.tripPage__sectionHeader:before {
  border-top: 3px solid var(--gray-500);
  content: "";
  position: absolute; /* positioning must be absolute here, and relative positioning must be applied to the parent */
  top: 50%;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
}
.tripPage__sectionTitle {
  height:40px;
  display:inline-flex;
  align-items:center;
  position: relative;
  background: var(--white);
  padding-right: 30px;
  z-index: 2;
}
.tripPage__sectionIcon {
  height:40px;
  width:40px;
  background-position:center;
  background-repeat: no-repeat;
  background-color:#333333;
  border-radius:20px;
  border:0;
  cursor:initial;
}
.tripPage__sectionTitle h2 {
  font: bold italic 37px merriweather, palatino, serif;
  line-height: 0.92;
  color: var(--gray-500);
  display:inline;
  margin-left:10px;
}
.tripPage__sidebar {
  float:right;
  width:280px;
  font: italic 26px merriweather, palatino, serif;
  line-height: 1.38;
  color: var(--gray-300);
  border-top:3px solid var(--yellow-200);
  padding-top:20px;
}

/*******************************/
/* ITEM GRID                   */
/*******************************/
.tripPage__sectionContent {
  display: flex;
  flex-flow: row nowrap;
  justify-content:space-between;
  align-items:center;
}
.tripPage__itemGridImages {
  width: 500px;
  height: 323px;
  overflow:hidden;
  float: left;
  margin-bottom: 80px;
}
.tripPage__itemGridTripItems {
  width:520px;
  float:right;
  margin-bottom: 50px;
}
.tripPage__itemGrid-column1 img, .tripPage__itemGrid-column2 img {
  width: 100%;
  height: 100%;
}

/*******************************/
/* TRIP ITEMS                  */
/*******************************/
.tripPage__tripItem {
  overflow: auto;
  margin-bottom:30px;
}
.tripPage__tripItem img {
  height:240px;
  width:240px;
  float:left;
}
.tripPage__tripItemTitle {
  display:flex;
  flex-flow:row nowrap;
  align-items: center;
}
.tripPage__tripItemTitle h4 {
  font: 600 20px poppins, Arial, sans-serif;
  color: var(--gray-500);
  margin-left:5px;
}
.tripPage__tripItemHeader p {
  font: 16px merriweather, palatino, serif;
  line-height: 1.63;
  color: var(--gray-500);
}
.tripPage__addItemButton {
  background: url(/static/images/buttons/add-to-itinerary-black.svg) no-repeat center/contain transparent;
  height: 20px;
  width: 20px;
  border: 0;
  padding: 0 10px;
}
.tripPage__addItemButton:hover {
  background: url(/static/images/buttons/white-cross.svg) no-repeat center center/12px var(--blue-200);
  border-radius:15px;
}
.tripPage__favoriteButton {
  background: url(/static/images/icons/heart-red.svg) no-repeat center center/19px auto transparent;
  height: 19px;
  width: 21px;
  border: 0;
  margin-left:5px;
  cursor:default;
}
.tripPage__noteIcon {
  background: url(/static/images/icons/note-orange.svg) no-repeat center/100% 100% transparent;
  margin-left: 10px;
  height: 20px;
  width: 20px;
  border: 0;
  display: none;
  margin-top: 4px;
}
.tripPage__urlIcon {
  background: url(/static/images/icons/uri-green.svg) no-repeat center/100% 100% transparent;
  margin-left: 10px;
  height: 22px;
  width: 22px;
  border: 0;
  display: none;
  margin-top: 4px;
}

.tripPage__tripItemAddedMessage {
  font: 16px poppins, Arial, sans-serif;
  color: var(--white);
  padding:8px 10px 8px 32px;
  background-color: var(--gray-overlay-200);
  background-image:url(/static/images/buttons/checkmark-white.svg);
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size:16px 16px;
  display:none;
}
.tripPage__tripItemAddedMessage a {
  font: 600 16px poppins, Arial, sans-serif;
  color: var(--white);
}

/*******************************/
/* CLOSING THOUGHTS            */
/*******************************/
#tripPage__closingThoughts {
  margin-top:20px;
  padding-bottom:100px;
}
#tripPage__closingThoughtsTitle {
  width:325px;
  padding-top:60px;
  border-top:2px solid var(--gray-500);
  font: bold italic 26px merriweather, palatino, serif;
  color: var(--gray-500);
}
#tripPage__closingThoughtsContent {
  margin-top:20px;
  font: 16px merriweather, palatino, serif;
  line-height: 1.5;
  color: var(--gray-500);
}

/* ipad portrait */
@media only screen and (min-width : 768px) and (max-width : 1024px) {
  .tripPage__itemGrid-column1 {width: calc(66% - 8px);}
  .tripPage__itemGrid-column1 img {width: calc(50% - 8px);}
  .tripPage__itemGrid-column1 img:first-child {margin-right: 15px;}
  .tripPage__itemGrid-column2 {width: calc(33% - 15px);}
  .tripPage__itemGridImages {width: 100%; height: initial; float: initial; margin-bottom: 0;}
  .tripPage__itemGridTripItems {width: 100%; margin-top: 20px; float: initial; margin-bottom: 0;}
}


/* mobile portrait */
@media only screen and (max-width : 767px) and (orientation : portrait) {
  #tripPage__title {font-size: 37px;}
  #tripPage__header {height: initial; padding: 80px 15px;}
  #tripPage__headerSeperator {margin-top: 15px; margin-bottom: 15px;}
  #tripPage__editButton {top: initial; bottom: 20px; right: calc(50% - 80px);}
  #tripPage__subHeaderInfo {margin-top: 30px; width: 100%;}
  #tripPage__overview {width: 100%; margin-top: 40px;}
  #tripPage__overview.noDescription .tripPage__overviewSection {width: 100%;}
  #tripPage__overview.noDescription .tripPage__overviewSection:nth-child(odd) {margin-right: 0;}
  .tripPage__section {margin-top: 50px;}
  .tripPage__sectionHeader {margin-bottom: 20px;}
  .tripPage__sectionTitle h2 {font-size: 26px;}
  .tripPage__sectionIcon {height: 30px; width: 30px;}
  .tripPage__sectionTitle {padding-right: 20px;}
  .tripPage__sidebar {float: none; width: 100%; font-size: 16px !important; padding-top: 15px; margin-bottom: 20px;}
  .tripPage__itemGridTripItems {width: 100%; margin-top: 20px; float: initial; margin-bottom: 0;}
  .tripPage__itemGridImages {width: 100%; float: initial; margin-bottom: 0;}
  .tripPage__itemGrid-column2 img {object-fit: cover; height: 180px;}
  .tripPage__itemGrid-column2 {width: 100%; margin-left: 0 !important; margin-top: 5px;}
  .tripPage__itemGrid-column1 {width: 100%; margin-left: 0 !important; margin-top: 5px; }
  .tripPage__itemGrid-column1 img {width: calc(50% - 8px);}
  .tripPage__itemGrid-column1 img:first-child {margin-right: 15px;}
  .tripPage__tripItemContent {width: 100%; margin-left: 0 !important; margin-top: 5px; }
  .tripPage__tripItemHeader h4 {font-size: 18px; line-height: 1.5;}
  .tripPage__tripItemHeader p {font-size: 14px;}
  .tripPage__tripItem {margin-bottom: 20px;}
  .tripPage__tripItem img {width: 100%; object-fit: cover; height: 180px; margin-bottom: 15px;}
}
