/*
	Theme Name:   Travel Tour Child
	Theme URI:    http://demo.goodlayers.com/infinite
	Description:  Goodlayers Travel Tour Child Theme
	Author:       Goodlayers
	Author URI:   http://goodlayers.com
	Template:     traveltour
	Version:      1.0.0
	License:      GNU General Public License v2 or later
	License URI:  http://www.gnu.org/licenses/gpl-2.0.html
	Tags:         light, dark, right-sidebar, responsive-layout
	Text Domain:  traveltour-child

	START YOUR CHILD THEME CSS HERE

*/

/* ===== GLOBAL LOGO STYLING ===== */
.traveltour-logo img {
  border: 3px solid #333333; 
  padding: 8px; 
  border-radius: 7px;
  /* Ensures the filter doesn't accidentally hide the logo on mobile if not needed */
  filter: brightness(0) invert(1); 
}

/* Fixed / Sticky Navigation Styling */
.traveltour-fixed-navigation .traveltour-logo img { 
  filter: none; 
}

.traveltour-fixed-navigation .sf-menu > li > a, 
.traveltour-fixed-navigation .traveltour-navigation-slide-bar { 
  color: #000 !important; 
}

/* ===== MOBILE LOGO FIX ===== */
@media only screen and (max-width: 768px) {
  /* Option A: If your mobile header has a light background, remove the invert filter */
  .traveltour-mobile-header .traveltour-logo img,
  .traveltour-mobile-navigation .traveltour-logo img {
    filter: none !important;
  }
}

/* ===== DESTINATIONS PAGE – NEW CARD DESIGN ===== */
body.page-id-4860 .tourmaster-tour-category-item-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3.2;
  background: #14304f;
  box-shadow: 0 10px 30px rgba(11, 32, 54, 0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
body.page-id-4860 .tourmaster-tour-category-item-wrap:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(11, 32, 54, 0.32);
}
body.page-id-4860 .tourmaster-tour-category-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.page-id-4860 .tourmaster-tour-category-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
body.page-id-4860 .tourmaster-tour-category-item-wrap:hover .tourmaster-tour-category-thumbnail img {
  transform: scale(1.12);
}
body.page-id-4860 .tourmaster-tour-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 32, 54, 0.92) 0%,
    rgba(11, 32, 54, 0.45) 45%,
    rgba(11, 32, 54, 0) 75%
  ) !important;
  opacity: 1 !important;
  transition: background 0.4s ease;
}
body.page-id-4860 .tourmaster-tour-category-item-wrap:hover .tourmaster-tour-category-overlay {
  background: linear-gradient(
    to top,
    rgba(11, 32, 54, 0.96) 0%,
    rgba(20, 48, 79, 0.7) 60%,
    rgba(20, 48, 79, 0.25) 100%
  ) !important;
}
body.page-id-4860 .tourmaster-tour-category-overlay-front {
  display: none !important;
}
body.page-id-4860 .tourmaster-tour-category-count {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  z-index: 5;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 30px;
  line-height: 1.3;
}
body.page-id-4860 .tourmaster-tour-category-head {
  position: absolute !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  z-index: 6;
  padding: 24px 26px;
  text-align: left !important;
}
body.page-id-4860 .tourmaster-tour-category-head-display {
  text-align: left !important;
}
body.page-id-4860 .tourmaster-tour-category-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  text-align: left !important;
  margin: 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
body.page-id-4860 .tourmaster-tour-category-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 10px;
  background: #8fb3d9;
  border-radius: 3px;
  transition: width 0.4s ease;
}
body.page-id-4860 .tourmaster-tour-category-item-wrap:hover .tourmaster-tour-category-title::after {
  width: 80px;
}
body.page-id-4860 .tourmaster-tour-category-head-animate {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  text-align: left !important;
  transform: translateY(15px);
  transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease;
}
body.page-id-4860 .tourmaster-tour-category-item-wrap:hover .tourmaster-tour-category-head-animate {
  max-height: 170px;
  opacity: 1;
  transform: translateY(0);
}
body.page-id-4860 .tourmaster-tour-category-description {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #d6e2ef !important;
  margin: 12px 0 14px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.page-id-4860 .tourmaster-tour-category-head-link {
  display: inline-block;
  background: #ffffff;
  color: #14304f !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
body.page-id-4860 .tourmaster-tour-category-head-link::after {
  content: " →";
}
body.page-id-4860 .tourmaster-tour-category-head-link:hover {
  background: #3f6d9a;
  color: #ffffff !important;
}

/* ===== TREKKING PAGE – NEW CARD DESIGN ===== */
body.page-id-6870 .tourmaster-tour-grid {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 32, 54, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-bottom: 10px;
}
body.page-id-6870 .tourmaster-tour-grid:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(11, 32, 54, 0.25);
}
body.page-id-6870 .tourmaster-tour-grid-inner {
  position: relative !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
body.page-id-6870 .tourmaster-tour-thumbnail {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  aspect-ratio: 4 / 3;
}
body.page-id-6870 .tourmaster-tour-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}
body.page-id-6870 .tourmaster-tour-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
body.page-id-6870 .tourmaster-tour-grid:hover .tourmaster-tour-thumbnail img {
  transform: scale(1.1);
}
body.page-id-6870 .tourmaster-tour-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 32, 54, 0.55) 0%, rgba(11, 32, 54, 0) 55%);
}
body.page-id-6870 .tourmaster-tour-price-wrap {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 10;
  white-space: nowrap;
  padding: 8px 18px !important;
  background: rgba(20, 48, 79, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
}
body.page-id-6870 .tourmaster-tour-price {
  display: flex !important;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
body.page-id-6870 .tourmaster-tour-price .tourmaster-head {
  margin: 0 8px 0 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8fb3d9 !important;
}
body.page-id-6870 .tourmaster-tour-price .tourmaster-tail {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1 !important;
}
body.page-id-6870 .tourmaster-tour-content-wrap {
  position: static !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto !important;
  min-height: 135px;
  padding: 24px 26px 26px !important;
  background: #ffffff !important;
}
body.page-id-6870 .tourmaster-tour-title {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  text-align: left !important;
  font-family: 'DM Serif Display', serif !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  text-transform: none !important;
}
body.page-id-6870 .tourmaster-tour-title a {
  color: #14304f !important;
  transition: color 0.3s ease;
}
body.page-id-6870 .tourmaster-tour-grid:hover .tourmaster-tour-title a {
  color: #3f6d9a !important;
}
body.page-id-6870 .tourmaster-tour-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 12px;
  background: #8fb3d9;
  border-radius: 3px;
  transition: width 0.4s ease;
}
body.page-id-6870 .tourmaster-tour-grid:hover .tourmaster-tour-title::after {
  width: 90px;
}
body.page-id-6870 .tourmaster-tour-content-wrap::after {
  content: "Explore Trek \2192";
  display: block;
  margin-top: auto;
  padding-top: 14px;
  padding-left: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #3f6d9a;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}
body.page-id-6870 .tourmaster-tour-grid:hover .tourmaster-tour-content-wrap::after {
  color: #14304f;
  letter-spacing: 1px;
}

/* ===== EXPEDITIONS PAGE – NEW CARD DESIGN ===== */
body.page-id-6873 .tourmaster-tour-grid {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 32, 54, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-bottom: 10px;
}
body.page-id-6873 .tourmaster-tour-grid:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(11, 32, 54, 0.25);
}
body.page-id-6873 .tourmaster-tour-grid-inner {
  position: relative !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
body.page-id-6873 .tourmaster-tour-thumbnail {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  aspect-ratio: 4 / 3;
}
body.page-id-6873 .tourmaster-tour-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}
body.page-id-6873 .tourmaster-tour-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
body.page-id-6873 .tourmaster-tour-grid:hover .tourmaster-tour-thumbnail img {
  transform: scale(1.1);
}
body.page-id-6873 .tourmaster-tour-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 32, 54, 0.55) 0%, rgba(11, 32, 54, 0) 55%);
}
body.page-id-6873 .tourmaster-tour-price-wrap {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 10;
  margin: 0 !important;
  padding: 8px 18px !important;
  background: rgba(20, 48, 79, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
}
body.page-id-6873 .tourmaster-tour-price {
  display: flex !important;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
body.page-id-6873 .tourmaster-tour-price .tourmaster-head {
  display: inline !important;
  margin: 0 8px 0 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8fb3d9 !important;
}
body.page-id-6873 .tourmaster-tour-price .tourmaster-tail {
  display: inline !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}
body.page-id-6873 .tourmaster-tour-content-wrap {
  position: static !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto !important;
  min-height: 135px;
  padding: 24px 26px 26px !important;
  background: #ffffff !important;
}
body.page-id-6873 .tourmaster-tour-title {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  text-align: left !important;
  font-family: 'DM Serif Display', serif !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  text-transform: none !important;
}
body.page-id-6873 .tourmaster-tour-title a {
  color: #14304f !important;
  transition: color 0.3s ease;
}
body.page-id-6873 .tourmaster-tour-grid:hover .tourmaster-tour-title a {
  color: #3f6d9a !important;
}
body.page-id-6873 .tourmaster-tour-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 12px;
  background: #8fb3d9;
  border-radius: 3px;
  transition: width 0.4s ease;
}
body.page-id-6873 .tourmaster-tour-grid:hover .tourmaster-tour-title::after {
  width: 90px;
}
body.page-id-6873 .tourmaster-tour-content-wrap::after {
  content: "Explore Expedition \2192";
  display: block;
  margin-top: auto;
  padding-top: 14px;
  padding-left: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #3f6d9a;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}
body.page-id-6873 .tourmaster-tour-grid:hover .tourmaster-tour-content-wrap::after {
  color: #14304f;
  letter-spacing: 1px;
}

/* ===== TOURS PAGE – NEW CARD DESIGN ===== */
body.page-id-6867 .tourmaster-tour-grid {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 32, 54, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-bottom: 10px;
}
body.page-id-6867 .tourmaster-tour-grid:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(11, 32, 54, 0.25);
}
body.page-id-6867 .tourmaster-tour-grid-inner {
  position: relative !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
body.page-id-6867 .tourmaster-tour-thumbnail {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  aspect-ratio: 4 / 3;
}
body.page-id-6867 .tourmaster-tour-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}
body.page-id-6867 .tourmaster-tour-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
body.page-id-6867 .tourmaster-tour-grid:hover .tourmaster-tour-thumbnail img {
  transform: scale(1.1);
}
body.page-id-6867 .tourmaster-tour-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 32, 54, 0.55) 0%, rgba(11, 32, 54, 0) 55%);
}
body.page-id-6867 .tourmaster-tour-price-wrap {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 10;
  margin: 0 !important;
  padding: 8px 18px !important;
  background: rgba(20, 48, 79, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
}
body.page-id-6867 .tourmaster-tour-price {
  display: flex !important;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
body.page-id-6867 .tourmaster-tour-price .tourmaster-head {
  display: inline !important;
  margin: 0 8px 0 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8fb3d9 !important;
}
body.page-id-6867 .tourmaster-tour-price .tourmaster-tail {
  display: inline !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}
body.page-id-6867 .tourmaster-tour-content-wrap {
  position: static !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto !important;
  min-height: 135px;
  padding: 24px 26px 26px !important;
  background: #ffffff !important;
}
body.page-id-6867 .tourmaster-tour-title {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  text-align: left !important;
  font-family: 'DM Serif Display', serif !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  text-transform: none !important;
}
body.page-id-6867 .tourmaster-tour-title a {
  color: #14304f !important;
  transition: color 0.3s ease;
}
body.page-id-6867 .tourmaster-tour-grid:hover .tourmaster-tour-title a {
  color: #3f6d9a !important;
}
body.page-id-6867 .tourmaster-tour-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 12px;
  background: #8fb3d9;
  border-radius: 3px;
  transition: width 0.4s ease;
}
body.page-id-6867 .tourmaster-tour-grid:hover .tourmaster-tour-title::after {
  width: 90px;
}
body.page-id-6867 .tourmaster-tour-content-wrap::after {
  content: "Explore Tour \2192";
  display: block;
  margin-top: auto;
  padding-top: 14px;
  padding-left: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #3f6d9a;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}
body.page-id-6867 .tourmaster-tour-grid:hover .tourmaster-tour-content-wrap::after {
  color: #14304f;
  letter-spacing: 1px;
}

/* ===== RESPONSIVE MOBILE TWEAKS ===== */
@media (max-width: 767px) {
  body.page-id-4860 .tourmaster-tour-category-title { font-size: 24px !important; }
  body.page-id-4860 .tourmaster-tour-category-item-wrap { aspect-ratio: 4 / 3; }
  
  body.page-id-6870 .tourmaster-tour-title { font-size: 20px !important; }
  body.page-id-6870 .tourmaster-tour-content-wrap { min-height: 0; padding: 20px !important; }
  body.page-id-6870 .tourmaster-tour-price-wrap { top: 12px !important; right: 12px !important; padding: 6px 14px !important; }
  body.page-id-6870 .tourmaster-tour-price .tourmaster-tail { font-size: 16px !important; }

  body.page-id-6873 .tourmaster-tour-title { font-size: 20px !important; }
  body.page-id-6873 .tourmaster-tour-content-wrap { min-height: 0; padding: 20px !important; }
  body.page-id-6873 .tourmaster-tour-price-wrap { top: 12px !important; right: 12px !important; padding: 6px 14px !important; }
  body.page-id-6873 .tourmaster-tour-price .tourmaster-tail { font-size: 16px !important; }

  body.page-id-6867 .tourmaster-tour-title { font-size: 20px !important; }
  body.page-id-6867 .tourmaster-tour-content-wrap { min-height: 0; padding: 20px !important; }
  body.page-id-6867 .tourmaster-tour-price-wrap { top: 12px !important; right: 12px !important; padding: 6px 14px !important; }
  body.page-id-6867 .tourmaster-tour-price .tourmaster-tail { font-size: 16px !important; }
}

