/*
Theme Name: ATR Travel Theme
Author: ATR Travel
Version: 1.0
*/

/* -- Reset -- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}input{font-family:inherit}

/* -- Main -- */

html, body {
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  color: #212121;
}

main {
  margin-top: 60px;
}


.container {
  width: 100%;
  max-width: 1160px;
  margin: auto;
}

nav a {
  color: #333333;
  text-decoration: none;
}

nav a:hover {
  color: #b7559b;
}

/* Header Menu */


/* 1. Position the parent to contain the dropdown */
.menu-item-has-children {
  position: relative;
}

/* 2. Style the dropdown container */
.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%; /* Positions it directly below the parent */
  right: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  z-index: 999;
  
  /* Hide by default */
  display: none;
}

/* 3. Show the menu on hover */
.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* 4. Fix the horizontal layout from the screenshot */
.sub-menu li {
  width: 100%;
  display: block !important;
  place-items: flex-start !important;
}

.sub-menu li a {
  padding: 10px 20px;
  display: block;
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
  width: 100%;
  border-radius: 6px;
}

/* 5. Hover effect for sub-items */
.sub-menu li a:hover {
  background-color: #f8f8f8;
  color: #b25a9e; /* Matching your logo/accent color */
}

/* -- Buttons -- */
.button-sm {
  border: 1px solid #b7559b;
  border-radius: 8px;
  transition: 300ms;
  cursor: pointer;
  padding: 0 12px;
}

.button-sm a {
  color: #b7559b;
  transition: 300ms;
}

.button-sm:hover {
  background: #b7559b;
}

.button-sm:hover > a {
  color: #fff;
}

.button-solid {
  background: #b7559b;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  height: 36px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid #b7559b;
  transition: 300ms;
  text-decoration: none;
}

.button-outline {
  background: #ffffff;
  color: #b7559b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  height: 36px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid #b7559b;
  text-decoration: none;
}

.button-outline:hover {
  background: #b7559b;
  color: #fff;
}

.button-solid:hover {
  opacity: 0.9;
}

.outline-button {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 320px;
  height: 36px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.outline-button:hover {
  opacity: 0.7;
}

/* -- Header -- */
.header {
  background: #fff;
  color: #fff;
  height: 60px;
  border-bottom: 1px solid #eeeeee;

  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header .logo-search {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header .site-logo {
  height: 100%;
}

.header nav a {
  font-size: 12px;
  font-weight: 600;
}

.header nav .current_page_item a {
  color: #b7559b;
}

.header-nav .menu {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 24px;
}

.header-nav .menu-item {
  display: grid;
  height: 36px;
  place-items: center;
  margin: 0;
}

/* Search bar */
.search-bar {
  position: relative;
}
.search-bar .search-input {
  border: 1px solid #f5f5f5;
  background: #f5f5f5;
  padding: 0 14px 0 46px;
  border-radius: 100px;
  width: 286px;
  height: 40px;
  transition: 300ms;
}
.search-bar .search-input:focus {
  outline: none;
  border-color: #b7559b;
  background: #fff;
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.search-bar-container {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 680px;
}

.search-bar-container form {
  display: flex;
  gap: 8px;
}

.search-bar-lg {
  position: relative;
  flex: 1;
}

.search-bar-lg .search-input {
  height: 59px;
  border-radius: 8px;
  background: #f5f5f5;
  padding: 0 16px;
  font-family: inherit;
  font-size: 18px;
  border: 1px solid #f5f5f5;
  width: 100%;
}

.search-bar-lg .search-input:focus {
  outline: none;
  border-color: #b7559b;
  background: #fff;
}

/* Section */
.section {
  padding-top: 72px;
}

.section-title {
  font-weight: 600;
  font-size: 28px;
}

.home-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.home-section-header a {
  color: #b7559b;
  font-size: 16px;
  text-decoration: none;
}

.home-section-header a:hover {
  text-decoration: underline;
}

/* Card */
.card-slider {
  display: flex;
  gap: 20px;
  line-height: 0;
  margin-top: 32px;
}

/* Footer */
/* .footer {
  border-top: 1px solid #f3f2f2;
} */

.footer .content-footer {
  border-top: 1px solid #f3f2f2;
  padding: 32px 0 70px;
}

.content-footer .container {
  display: flex;
  justify-content: space-between;
}

.footer-content-column {
  display: flex;
  gap: 40px;
}

.footer-content-column-1,
.footer-content-column-2 {
  max-width: 307px;
}

.footer-content-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.content-footer .footer-content-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-footer .footer-content-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1;
}

.content-footer .footer-content-list-item svg {
  min-width: 14px;
  margin-top: 4px;
}

.content-footer .footer-content-list-item a,
.content-footer .footer-content-list-item span {
  line-height: 1.6;
}

.footer-icon-list {
  display: flex;
  gap: 12px;
}

.footer-icon-list img {
  height: 26px;
  width: auto;
}

.footer-icon-list svg {
  height: 18px;
  fill: #646464;
}

.content-footer-logo .footer-icon-list {
  gap: 18px;
  justify-content: center;
  margin-top: 12px;
}

.footer .sub-footer {
  border-top: 1px solid #f3f2f2;
  height: 86px;
}

.footer .sub-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.footer p,
.footer span,
.footer a {
  font-size: 12px;
  color: #757575;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  nav li {
    display: block;
    margin-bottom: 10px;
  }
}

/**  ===========================================================  */
/* 
  Search booking 
*/
.search-tab-container {
  padding-bottom: 6px;
  display: flex;
  gap: 6px;
}

.search-tab {
  background: white;
  border: 1px solid white;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #707070;
  border-radius: 100px;
  padding: 0 16px;
  cursor: pointer;
}

.search-tab.active {
  color: #b7559b;
}

.search-tab.active svg path {
  fill: #b7559b !important; /* Use !important to override the inline fill attribute */
}

.tab-content-tours,
.tab-content-air-transfers {
  display: none;
}

.search-booking-container {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

.search-booking {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 0.7fr 0.6fr auto;
  gap: 10px;
}

.search-radio-container {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.search-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.search-radio label {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #787878;
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.search-radio input[type="radio"]:checked + label {
  color: #b7559b;
  border-color: #b7559b;
}

.search-radio svg.checked-icon {
  display: none;
}

.search-radio input[type="radio"]:checked + label > svg.checked-icon {
  display: inline-block;
}

.search-radio input[type="radio"]:checked + label > svg.unchecked-icon {
  display: none;
}

.search-input-text {
  display: flex;
  flex-direction: column;
}

.search-input-text label {
  color: #807e7e;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.search-input-text .input-w-icon {
  position: relative;
}

.input-w-icon svg {
  pointer-events: none;
}

.search-input-text .input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  color: rgba(33, 33, 33, 0.7);
}

.search-input-text > input,
.search-input-text .input-w-icon input {
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid #f5f5f5;
  color: inherit;
  height: 40px;
  padding: 0 14px;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
}

.search-input-text > input:read-only {
  background: #fff;
  padding: 0 6px;
  border: 0 !important;
}

.search-input-text .input-w-icon input {
  padding-left: 34px;
}

.search-input-text input:focus {
  outline: none;
  border-color: #b7559b;
  background: #fff;
}

.search-submit-button {
  height: 100%;
  width: 128px;
  font-size: 16px;
}

.search-bar-btn .search-submit-button {
  width: 59px;
}

/* Modern browsers (Chrome, Firefox, Edge, Safari) */
.search-input-text input::placeholder {
  font-weight: normal;
  opacity: 1; /* Firefox renders placeholders with lower opacity by default */
}

/* Internet Explorer 10-11 */
.search-input-text input:-ms-input-placeholder {
  font-weight: normal;
}

/* Microsoft Edge (older versions) */
.search-input-text input::-ms-input-placeholder {
  font-weight: normal;
}

/* Ensure the input text is not bold */
#search-date-picker,
#search-time-picker,
#search-passengers-picker {
  cursor: pointer;
}

/* Make sure the mobile modal looks good */
.air-datepicker {
  --adp-font-family: "Poppins", sans-serif;
  --adp-font-size: 15px;

  --adp-accent-color: #b7559b;
  --adp-cell-background-color-selected: #b7559b;
  --adp-cell-background-color-selected-hover: #b7559b;
  --adp-day-name-color: #b7559b;
}

.location-wrapper {
  position: relative;
  flex: 1;
}

.custom-picker-wrapper {
  position: relative;
}

/* 
  Custom Dropdown 
*/
.at-dropdown-menu {
  position: absolute;
  top: 115%;
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 8px;
}

.at-dropdown-menu.mobile-ui {
  display: flex;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#to-dropdown.at-dropdown-menu {
  padding: 0;
  overflow: hidden;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 10px;
  border-radius: 8px;
}

.dropdown-wrap span {
  display: block;
}

.dropdown-wrap span.dropdown-item-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.dropdown-wrap p {
  margin: 0;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.dropdown-wrap p:last-child {
  border-bottom: none;
}

.dropdown-wrap p:hover {
  background-color: #f8f9fa;
  color: #b7559b; /* Change this to match your theme color */
}

/* 
  Custom Time Picker 
*/
.time-picker-dropdown .dropdown-wrap {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 6px;
  /* width: 136px; */
  min-width: 186px;
}

.picker-title {
  color: #807e7e;
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.picker-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.picker-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.picker-section select {
  border: 1px solid #eee;
  padding: 5px !important;
  outline: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.picker-section select:focus {
  outline: none;
  border-color: #b7559b;
}

/* 
  Custom Passenger Picker 
*/
.passenger-picker-dropdown .dropdown-wrap {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 6px;
  width: 136px;
}

.passenger-picker-dropdown .picker-title {
  color: #807e7e;
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.passenger-picker-dropdown .picker-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.passenger-picker-dropdown .picker-controls button {
  background: #f5f5f5;
  border: 0;
  height: 36px;
  min-width: 36px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 300ms;
}

.passenger-picker-dropdown .picker-controls button:hover {
  background: #e5e3e3;
}

.passenger-picker-dropdown input {
  width: 100%;
  border: 1px solid #eee;
  font-size: 16px;
  border-radius: 6px;
  font-family: inherit;
  color: inherit;
  text-align: center;
  height: 36px;
}

/* ------------------------------------------------------------ */
.search-results-container {
  padding: 20px 0 72px;
}

.search-results-container .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.car-card {
  border: 1px solid #E0E0E0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.car-details {
  padding: 16px;
}

.car-details h3 {
  font-family: inherit;
}


.car-image img {
  width: 100%;
  height: auto;
  display: block;
}

/*  Package Grid Cards ------------------------------------------------------------ */
.package-section {
  margin-top: 36px;
  margin-bottom: 50px;
}
.package-card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; /* Spacing between items */
  margin-top: 24px;
}
.package-card-list a {
  color: inherit;
  text-decoration: none;
}
.package-card-list a:hover {
  color: #b7559b;
}
.package-card {
  height: 275px; 
  border-radius: 16px; 
  overflow: hidden;
}
.visa-card-list .package-card {
  border-radius: 0;
  line-height: 0;
  height: auto;
}
.package-card img:hover {
  opacity: 0.8;
}
.package-card-title {
  text-align: center;
  display: block;
  margin-top: 8px;
  font-weight: 500;
  line-height: 1.3;
}

/* Featured Tours / Tours Grid ------------------------------------------------------------ */
.tours-grid-section {
  padding: 20px 0 72px;
}

.featured-tours-grid {
  margin-top: 24px;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tours-card {
  position: relative;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: 300ms;
  display: flex;
  flex-direction: column;
}

.tours-card:hover {
  opacity: 0.8;
}

.tour-image {
  height: 212px;
}

.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tour-content {
  background: rgba(255, 255, 255, 1);
  padding: 10px 18px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 15px;
}

.tour-badges {
  color: #6B6B6B;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.tour-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-review {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.tour-description {
  margin-top: 8px;
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  min-height: 3em;
}

.tour-price-label {
  font-size: 14px;
}

.tour-price-value {
  font-size: 15px;
  font-weight: 600;
  color: #212121;
}

.tour-footer {
  text-align: right;
  padding: 5px 0;
}

.facebook-reviews .WidgetTitle__Header-sc-80558b97-2,
.facebook-reviews .fpMVgQ {
  text-align: left;
  font-weight: 600;
  font-size: 28px;
}

/* Override Airpicker ------------------------------------------------------------ */
.air-datepicker {
  border-radius: 8px;
}

/* Overlay ------------------------------------------------------------ */
#mobile-overlay,
.mobile-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  left: 0;
  top: 0;
  z-index: 100;
}

/* Media Query ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .tour-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .package-card-list {
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
  }
  .content-footer .container {
    flex-direction: column;
    gap: 24px;
  }
  .content-footer-logo .footer-icon-list {
    justify-content: flex-start;
  }
  .footer .content-footer {
    padding: 32px 0;
  }
  .search-booking {
    grid-template-columns: repeat(6, 1fr);
  }
  .from { grid-column: span 3; }
  .to { grid-column: span 3; }
  .date, .time, .passengers { grid-column: span 2; }
  .airport-search { 
    grid-column: span 6; 
    height: 40px;
    justify-self: end;
    margin-top: 10px;
  }

  .search-results-container .container {
    grid-template-columns: repeat(3, 1fr);
  }

  .car-details {
    padding: 11px;
  }

  .tours-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tour-content {
    padding: 11px;
  }

  .tour-title {
    font-size: 15px;
  }

  .tour-price-value {
    font-size: 14px;
  }

  .facebook-reviews .WidgetTitle__Header-sc-80558b97-2,
  .facebook-reviews .fpMVgQ {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .footer .sub-footer .container {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }
  .content-footer-logo img {
    width: 140px;
  }
  .package-card-list {
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px 14px;
  }
  .container {
    padding: 0 16px;
  }
  .search-booking {
    grid-template-columns: 1fr;
  }
  .search-booking > * {
    grid-column: span 1 !important;
  }
  .airport-search { 
    width: 100%;
    justify-self: stretch;
  }
  .search-bar-container {
    padding: 12px;
  }
  .search-bar-lg .search-input {
    height: 42px;
    font-size: 16px;
    padding: 0 10px;
  }
  .search-bar-btn .search-submit-button {
    width: 42px;
    padding: 0;
  }
  .search-bar-btn .search-submit-button svg {
    width: 20px;
    height: 20px;
  }
  .package-card {
    height: 180px;
  }
  .section {
    padding-top: 50px;
  }
  .package-card-title {
    font-size: 15px;
  }
  .package-section {
    margin: 24px 0;
  }

  .search-results-container .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .car-card {
    border-radius: 10px;
  }

  .home-section-header {
    /* flex-direction: column; */
    /* align-items: flex-start; */
    gap: 8px;
  }

  .tours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tour-image {
    height: 140px;
  }

  .tour-footer {
    text-align: left;
  }

  .facebook-reviews .WidgetTitle__Header-sc-80558b97-2,
  .facebook-reviews .fpMVgQ {
    font-size: 20px;
  }
}

@media (max-width: 375px) {
  .search-booking-container {
    padding: 16px;
  }
}

@media (max-width: 320px) {
  .search-radio-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tours-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
