:root {
  --primary-color: #ed407a;
  --secondary-color: #00b5f2;
  --danger-color: #ff4d4f;
  --leaf-color: #52c41a;
  --warning-color: #faad14;

  --black: rgba(0, 0, 0, 1);
  --text-color: rgba(0, 0, 0, 0.85);
  --text-color-45: rgba(0, 0, 0, .45);
  --text-color-25: rgba(0, 0, 0, .25);
  --link-color: var(--secondary-color);

  --hover-color: #ed407a3f;

  --border-color: #f0f0f0;
  --disable-color: #f5f5f5;
  --line-hieght: 1.45;
  --font-size: 14px;
  --border-radius: 2px;

  --white: #fff;

  --animation-duration-base: 0.225s;
  --effect-duration: 0.115s;
}

::selection {
  color: var(--white);
  background: var(--secondary-color);
}

.full-width {
  width: 100%;
}

.white-color {
  color: var(--white);
}

.preview-container {
  display: block;
}

.preview-container img.ant-image-preview-img {
  max-height: 80vh;
}

.react-pdf__message--no-data {
  display: none;
}

.text-line-through {
  color: #000000 !important;
  text-decoration: line-through;
}

/* Facebook in-app browser fixes */
@supports (-webkit-touch-callout: none) {

  /* iOS Safari and Facebook in-app browser specific fixes */
  body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .ant-carousel .slick-slide img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .ant-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .ant-typography {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Facebook in-app browser specific styles */
.fb-in-app-browser {
  /* Force hardware acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.fb-in-app-browser body {
  /* Use custom viewport height for Facebook in-app browser */
  height: calc(var(--vh, 1vh) * 100);
  overflow-x: hidden;
}

.fb-in-app-browser figure {
  max-width: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fb-in-app-browser figure img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: cover !important;
  width: 100% !important;
}

.fb-in-app-browser .description img,
.fb-in-app-browser .ant-typography img,
.fb-in-app-browser p img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: cover !important;
  width: 100% !important;
}

/* Fix for images in Facebook in-app browser */
.img-tour {
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block;
}

/* Fix for text overflow in Facebook in-app browser */
.ant-typography-title {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Fix for card layouts */
.ant-card-body {
  padding: 12px !important;
}

/* Fix for responsive grid in Facebook in-app browser */
@media screen and (max-width: 768px) {
  .ant-col {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .ant-row {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }
}

/* Fix for carousel in Facebook in-app browser */
.ant-carousel .slick-slide {
  text-align: center;
}

.ant-carousel .slick-slide img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Fix for figure and img elements in content (like tour descriptions) */
figure {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
}

figure img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* Fix for images in description content */
.description img,
.ant-typography img,
p img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* Fix for Google-hosted images specifically */
img[src*="googleusercontent.com"] {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}
.large-text {
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  text-overflow: ellipsis !important;
  -webkit-box-orient: vertical !important;
  word-break: break-word !important;
}

.img-tour {
    object-fit: contain;
}
.ant-card-meta-title {
    line-height: 20px;
}
.ant-card-meta-description {
    line-height: 20px;
}
