body {
  background-color: #f7f7f7;
}

/* Global container adjustments - reduce margins */
.container {
  max-width: 100% !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
}

@media (max-width: 768px) {
  .container {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}

@media (max-width: 575px) {
  .container {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}

/* Agency List Page Styles */
.agency-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.agency-card {
  background: #ffffff;
  box-shadow: none !important;
  padding-bottom: 0 !important;
}

.agency-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #0275d8;
}

.agency-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #0275d8, #5bc0de);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agency-card:hover:before {
  opacity: 1;
}

.agency-card .row {
  flex-wrap: nowrap;
}

.agency-logo-container {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  transition: all 0.3s ease;
  /* box-shadow: 0 3px 10px rgba(0,0,0,0.03); */
  width: 100%;
}

.agency-card:hover .agency-logo-container {
  background-color: #f0f2f5;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.agency-logo-img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
  border: none !important;
}

.agency-card:hover .agency-logo-img {
  transform: scale(1.05);
}

.agency-info {
  padding-left: 25px;
  width: 100%;
}

.agency-title {
  color: #343a40;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: color 0.3s ease;
  position: relative;
}

.agency-card:hover .agency-title {
  color: #0275d8;
}

.agency-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: #0275d8;
  transition: width 0.3s ease;
}

.agency-card:hover .agency-title:after {
  width: 60px;
}

.agency-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agency-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6c757d;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 30px;
  background-color: #f8f9fa;
}

.agency-detail-item i {
  color: #0275d8;
  width: 20px;
  text-align: center;
}

.agency-card:hover .agency-detail-item {
  color: #495057;
  background-color: #f0f2f5;
}

.view-more {
  margin-top: 15px;
}

.view-more span {
  color: #0275d8;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  background-color: rgba(2, 117, 216, 0.1);
  width: fit-content;
}

.view-more i {
  transition: transform 0.3s ease;
}

.agency-card:hover .view-more span {
  color: #fff;
  background-color: #0275d8;
}

.agency-card:hover .view-more i {
  transform: translateX(5px);
}

.empty-message {
  font-size: 1.2rem;
  color: #6c757d;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #0275d8;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80%;
}

.banner-overlay1 p {
  font-size: 2rem;
  color: white;
  margin: 0;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Agency Detail Page Styles */
/* .agency-detail-wrapper {
  background-color: #f7f7f7;
} */

.agency-detail-banner {
  height: 350px;
  margin-bottom: 0;
  position: relative;
}

.agency-detail-banner .banner-overlay1 {
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agency-detail-banner .banner-overlay1 h1 {
  font-size: 3rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-weight: 700;
  letter-spacing: 1px;
  max-width: 80%;
  text-align: center;
}

.agency-detail-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.agency-header {
  padding: 35px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid #dee2e6;
  position: relative;
}

.agency-header:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0275d8, #5bc0de);
}

.agency-logo-wrapper {
  padding: 20px;
  /* background: white; */
  border-radius: 12px;
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); */
  display: block;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agency-logo-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.agency-detail-logo {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.agency-detail-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 15px;
}

.agency-detail-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #0275d8;
}

.agency-info-grid {
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
}

.info-icon {
  color: #0275d8;
  font-size: 1.5rem;
  margin-right: 15px;
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-content h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.info-content a, .info-content p {
  color: #343a40;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0;
  display: block;
  word-break: break-word;
}

.info-content a:hover {
  color: #0275d8;
  text-decoration: none;
}

.agency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agency-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.website-btn {
  background: linear-gradient(135deg, #0275d8 0%, #0069d9 100%);
}

.map-btn {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.agency-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  color: white;
  text-decoration: none;
}

.agency-description {
  padding: 35px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.description-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
  padding: 25px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  border-left: 4px solid #0275d8;
}

.section-title {
  font-size: 1.5rem;
  color: #343a40;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #0275d8;
}

.section-title i {
  color: #0275d8;
  margin-right: 10px;
}

.agency-footer {
  padding: 25px 35px;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  background: linear-gradient(135deg, #0275d8 0%, #0069d9 100%);
  box-shadow: 0 4px 10px rgba(2, 117, 216, 0.2);
}

.back-btn:hover {
  background: linear-gradient(135deg, #025aa5 0%, #0062cc 100%);
  transform: translateX(-8px);
  box-shadow: 0 6px 15px rgba(2, 117, 216, 0.3);
  color: white;
  text-decoration: none;
}

.agency-social {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-right: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  color: #0275d8;
  transition: all 0.3s ease;
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.social-icon:hover {
  background: #0275d8;
  color: white;
  transform: translateY(-3px);
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: var(--accent-color);;
}

.section-header p {
  color: #6c757d;
  font-size: 1.1rem;
  /* max-width: 700px; */
  margin: 0 auto;
}

/* Animation effects */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.agency-detail-card, .agency-card {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .agency-title {
    font-size: 1.4rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .banner-overlay1 p {
    font-size: 1.8rem;
    padding: 15px;
  }
  
  .agency-logo-container {
    height: 140px;
  }
  
  .agency-logo-img {
    max-height: 100px;
  }
  
  .agency-info {
    padding-left: 15px;
  }
  
  .agency-detail-banner .banner-overlay1 h1 {
    font-size: 2.5rem;
  }
  
  .agency-detail-title {
    font-size: 1.8rem;
  }
  
  .description-content {
    font-size: 1rem;
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .info-content a, .info-content p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .agency-card {
    padding: 20px;
  }
  
  .agency-card .row {
    flex-direction: column;
  }
  
  .agency-info {
    padding-left: 0;
    margin-top: 20px;
  }
  
  .agency-logo-container {
    height: 120px;
    margin: 0 auto;
    max-width: 250px;
  }
  
  .agency-title {
    text-align: center;
    font-size: 1.3rem;
  }
  
  .agency-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .agency-details {
    align-items: center;
  }
  
  .view-more {
    text-align: center;
    margin: 20px auto 0;
  }
  
  .view-more span {
    justify-content: center;
    margin: 0 auto;
  }
  
  .banner-overlay1 p {
    font-size: 1.5rem;
    padding: 12px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .agency-detail-banner {
    height: 250px;
  }
  
  .agency-detail-banner .banner-overlay1 h1 {
    font-size: 2rem;
  }
  
  .agency-detail-card {
    margin-top: -30px;
  }
  
  .agency-header, 
  .agency-description, 
  .agency-footer {
    padding: 20px;
  }
  
  .agency-detail-title {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 15px;
    padding-bottom: 10px;
  }
  
  .agency-detail-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .agency-actions {
    justify-content: center;
    margin-top: 15px;
  }
  
  .agency-logo-wrapper {
    margin: 0 auto 15px;
    height: 160px;
  }
  
  .info-list li {
    padding: 12px;
  }
  
  .info-label {
    min-width: 70px;
    margin-bottom: 5px;
    display: block;
  }
  
  .info-value {
    display: block;
    width: 100%;
  }
  
  .section-title {
    font-size: 1.3rem;
    text-align: center;
  }
  
  .section-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .back-btn {
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .agency-social {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .agency-title {
    font-size: 1.2rem;
  }
  
  .banner-overlay1 {
    width: 90%;
  }
  
  .banner-overlay1 p {
    font-size: 1.2rem;
    padding: 10px;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
  }
  
  .agency-logo-container {
    height: 100px;
  }
  
  .agency-logo-img {
    max-height: 80px;
  }
  
  .agency-card:hover {
    transform: translateY(-5px);
  }
  
  .agency-detail-item {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .agency-detail-banner {
    height: 200px;
  }
  
  .agency-detail-banner .banner-overlay1 h1 {
    font-size: 1.5rem;
  }
  
  .agency-detail-card {
    margin-top: -25px;
  }
  
  .agency-detail-title {
    font-size: 1.3rem;
  }
  
  .agency-action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .description-content {
    padding: 15px;
    font-size: 0.95rem;
  }
  
  .agency-logo-wrapper {
    padding: 15px;
    height: 140px;
  }
  
  .agency-detail-logo {
    max-height: 110px;
  }
  
  .info-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-right: 10px;
  }
  
  .info-content h4 {
    font-size: 0.8rem;
  }
  
  .info-content a, .info-content p {
    font-size: 0.95rem;
  }
  
  .info-item {
    padding: 12px;
    margin-bottom: 10px;
  }
}

/* ===== My Tours Section Styling ===== */
#my-tours-section {
  /* background: linear-gradient(135deg, #f7faff 0%, #e3f0ff 100%); */
  border-radius: 18px;
  /* box-shadow: 0 8px 32px rgba(2, 117, 216, 0.07); */
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 40px 30px 30px 30px;
}
#my-tours-section .section-title {
  font-size: 2rem;
  color: #0275d8;
  font-weight: 700;
  margin-bottom: 35px;
  text-align: center;
  letter-spacing: 1px;
  border-bottom: none;
  background: none;
}
#my-tours-section .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}
#my-tours-section .col-md-4.mb-4 {
  padding: 0 10px;
  margin-bottom: 20px;
  width: 33.3333%;
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  box-sizing: border-box;
}
#my-tours-section .agency-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(2, 117, 216, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
#my-tours-section .agency-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 32px rgba(2, 117, 216, 0.15);
}
#my-tours-section .agency-logo-container {
  /* override for tour-list style */
  position: relative;
  height: 180px;
  overflow: hidden;
  border-bottom: 2px solid #f0f0f0;
  background: linear-gradient(135deg, #e3f0ff 0%, #f7faff 100%);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#my-tours-section .agency-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(2, 117, 216, 0.07);
  display: block;
  /* Ensure full height fill */
  min-height: 100%;
  min-width: 100%;
}
#my-tours-section .agency-info {
  padding: 22px 18px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#my-tours-section .agency-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  text-align: left;
}
#my-tours-section .agency-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
#my-tours-section .agency-detail-item {
  background: #f7faff;
  color: #0275d8;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
#my-tours-section .agency-detail-item i {
  color: #5bc0de;
  font-size: 1.1rem;
}
#my-tours-section .view-more {
  margin-top: 10px;
  text-align: right;
}
#my-tours-section .btn.btn-primary.btn-sm {
  background: linear-gradient(135deg, #0275d8 0%, #5bc0de 100%);
  border: none;
  border-radius: 20px;
  font-weight: 600;
  padding: 7px 22px;
  font-size: 0.98rem;
  transition: background 0.2s;
}
#my-tours-section .btn.btn-primary.btn-sm:hover {
  background: linear-gradient(135deg, #025aa5 0%, #0275d8 100%);
}
#my-tours-section .empty-message {
  background: #fff5e6;
  color: #bf6c00;
  border-left: 5px solid #ffab66;
  border-radius: 10px;
  padding: 30px;
  font-size: 1.15rem;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(255, 224, 102, 0.08);
}

@media (min-width: 768px) and (max-width: 991px) {
  #my-tours-section .col-md-4.mb-4 {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 768px) {
  #my-tours-section {
    padding: 18px 2px 10px 2px;
    margin-top: 25px;
    margin-bottom: 25px;
  }
  #my-tours-section .section-title {
    font-size: 1.15rem;
    margin-bottom: 18px;
  }
  #my-tours-section .col-md-4.mb-4 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  #my-tours-section .agency-logo-container {
    height: 160px;
  }
  #my-tours-section .agency-title {
    font-size: 1rem;
  }
  #my-tours-section .agency-detail-item {
    font-size: 0.92rem;
    padding: 5px 8px;
  }
  #my-tours-section .btn.btn-primary.btn-sm {
    font-size: 0.92rem;
    padding: 6px 14px;
  }
}
@media (max-width: 575px) {
  #my-tours-section {
    padding: 10px 0 5px 0;
    border-radius: 10px;
  }
  #my-tours-section .section-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  #my-tours-section .col-md-4.mb-4 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 18px;
  }
  #my-tours-section .agency-logo-container {
    height: 60px;
  }
  #my-tours-section .agency-title {
    font-size: 0.95rem;
  }
  #my-tours-section .agency-detail-item {
    font-size: 0.85rem;
    padding: 4px 6px;
  }
  #my-tours-section .btn.btn-primary.btn-sm {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
  #my-tours-section .empty-message {
    font-size: 1rem;
    padding: 15px;
  }
}

.agency-name {
  display: none !important;
}

.agency-card-link {
  background: none !important;
}

.agency-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(80, 80, 80, 0.10), 0 1.5px 6px rgba(80, 80, 80, 0.06);
    border: 1.5px solid #ececec;
    margin-bottom: 0;
    transition: box-shadow 0.22s, border 0.22s, transform 0.18s;
}
.agency-card-link:hover .agency-logo,
.agency-card-link:focus .agency-logo {
    box-shadow: 0 8px 32px rgba(80, 80, 80, 0.16);
    border: 1.5px solid #e0e0e0;
    transform: translateY(-2px) scale(1.04);
}
.agency-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    background: transparent;
    border: none !important;
    box-shadow: none;
    transition: all 0.22s;
}
@media (max-width: 991px) {
    .agency-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    .agency-logo img {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }
}

.agency-scrollbar-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
    background: #f5f4ee;
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(80, 80, 80, 0.10), 0 2px 8px rgba(80, 80, 80, 0.06);
    border: 1.5px solid #ececec;
    padding: 32px 24px 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.22s, border 0.22s, background 0.22s;
    z-index: 1;
}
@media (max-width: 991px) {
    .agency-scrollbar-wrapper {
        border-radius: 14px;
        padding: 10px 4px 14px 4px;
    }
}
