.selection {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

  .selection img {
    border: 3px solid black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    flex: 1 1 20rem;
    height: 15rem;
    width: 100% ;
    will-change: transform;
    transition: all 0.3s ease-in-out;
  }

  .selection img:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
  }

  .selection img:active {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: translateY(3px);
  }


  .image-with-text {
    flex: 1 1 20rem;
    height: 15rem;
    width: 100% ;
    object-fit: cover;
    position: relative;
    display: inline-block;
  }

  .loc-category h1{
    color: rgb(79, 138, 206);
    text-align: center;
  }

  .loc-category{
    display: flex;
    flex-wrap: wrap;
    gap:2rem;
  }

  .hr-style {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

  .image-with-text:hover{
    border: 1px solid rgb(79, 138, 206);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  .text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0.7;
    color: #fff;
    padding: 5px;
    text-align: center;
  }

  .country-container {
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 20px;
  }

  .country-name {
      min-width: 70px;
      margin-right: 10px; 
      font-weight: bold; 
      font-size: 20px;
  }

  .categories {
      flex-grow: 1; 
  }

  .tour-category {
      margin-right: 10px; 
      margin-bottom: 10px;
  }


  .travel-tour-info{
    margin:auto;
    margin-bottom: 50px;
    padding: 10px;
    width:100%;
    border: 3px solid black;
    border-radius: 8px;
    display: flex;
    align-items: center;
    grid-template-columns: 2fr 4fr 1fr;
    column-gap: 0px;
  }

  .travel-tour-info img[title="tourimg"]{
    width: 80%;
    max-width: 350px;
    height: 15rem;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
  }

  .travel-tour-info img[title="tourimg"].fade {
    opacity: 1; 
  }

  .tour--contect {
    margin: 5px;
    width: 40%;
    flex: 1;
    word-wrap: break-word;
  }
  
  .right-area {
    height: 100%;
    padding: 10px;
    flex: 0 0 auto;
  }

.button-class {
  appearance: none;
  border: 2px solid #1A1A1A;
  border-radius: 15px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  margin: 0;
  min-height: 60px;
  min-width: 0;
  outline: none;
  padding: 16px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
  will-change: transform;
}

.button-class[title="download"]{
  background-color: rgb(102, 178, 178);
}

.button-class[title="comment"]{
  background-color: rgb(0, 103, 102);
}

.button-class[title="inquiry"]{
  background-color: rgb(178, 217, 216);
}

.button-class:disabled {
  pointer-events: none;
}

.button-class:hover {
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}

.button-class:active {
  box-shadow: none;
  transform: translateY(0);
}

.tour-category {
  align-items: center;
  background-color: #0A66C2;
  border: 0;
  margin: 1px;
  border-radius: 100px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: -apple-system, system-ui, system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 20px;
  max-width: 480px;
  min-height: 40px;
  min-width: 0px;
  overflow: hidden;
  padding: 0px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
}

.tour-category:hover,
.tour-category:focus { 
  background-color: #16437E;
  color: #ffffff;
}

.tour-category:active {
  background: #09223b;
  color: rgb(255, 255, 255, .7);
}

.tour-category:disabled { 
  cursor: not-allowed;
  background: rgba(0, 0, 0, .08);
  color: rgba(0, 0, 0, .3);
}

.travel-tour-info .right-area a{
  background-color: #16437E;
  border: 1px solid #16437E;
  border-radius: 4px;
  box-sizing: border-box;
  color: #4cb9d4;
  cursor: pointer;
  display: inline-flex;
}

ul.pagination {
  display: inline-block;
  padding: 0;
  margin: 0;
}

ul.pagination li {display: inline;}

ul.pagination li a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}

ul.pagination li a.active {
  background-color: #428ad7;
  color: white;
}

ul.pagination li a:hover:not(.active) {background-color: #ddd;}

#whatsapp{
    width: 30px;
    height: 30px;
}

/* comment */
.comment-layer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.comment-content {
  position: absolute;
  max-width: 80%;
  max-height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  overflow: auto;
  border-radius: 5px;
}

.comment-layer > .comment-content {
  position: relative;
}

.close-button::before {
  position: absolute;
  top: 10px; 
  right: 10px; 
  z-index: 9999;
  content: '✕';
  font-weight: bold;
  font-size: 30px;
  line-height: 1;
  display: inline-block;
  width: 20px;
  height: 20px;
  text-align: center;
  color: #fff; 
  border-radius: 50%; 
}

.comment-periphery{
  border: 2px #000000;
  border-style: solid;
  margin: 3px;
  background-color: #f0f7ff;
}

.comment-container {
  display: flex;
  margin: 5px;
  align-items: stretch;
}

.comment-id {
  border-right: 2px solid #000; 
  padding-right: 2px; 
  margin-right: 2px; 
}

.comment-detail{
  margin: 0 0 5px;
  padding: 10px;
  width: 70%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: inline; 
  vertical-align: top; 
  flex-grow: 1
}

.commentDate{
  text-align: right;
  color: rgb(117, 118, 118);
  padding: 4px;
}

/* submitcomment */
.comment-form {
  width: 50%;
  margin: 0 auto;
  padding: 20px;
  background-color: #f2f2f2;
  border-radius: 5px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.comment-form textarea {
  height: 100px;
}

.comment-form button {
  background-color: #92b7eb;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.comment-form button:hover {
  background-color: #295eae;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: #888;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="password"]:focus,
.comment-form textarea:focus {
  outline: none;
  border: 1px solid #0c80ab;
}

@media (max-width: 750px) {
  .travel-tour-info {
    flex-direction: column;
  }

  .travel-tour-info img[title="tourimg"], 
  .tour--contect, 
  .right-area {
    width: 100%;
    flex: none;
  }

  .tour--contect {
    margin: 5px 0;
  }

  .right-area {
    padding: 10px 0;
  }

  .comment-form {
    width: 100%;
  }
}
@media (min-width: 751px) and (max-width: 1024px) {
  .travel-tour-info {
    flex-direction: column;
  }

  .travel-tour-info img[title="tourimg"]{
    width: 100%;
    max-width: 650px;
    height: auto;
    max-height: 15rem;
  }
  .tour--contect,
  .right-area {
    width: 100%;
    flex: none;
  }
}
