/* Country Directory Hero styles start*/

.country-directory-hero {
  background:
    radial-gradient(
      50.42% 49.91% at 50% 49.91%,
      rgba(24, 28, 57, 0.12) 0%,
      rgba(24, 28, 57, 0.4) 100%
    ),
    linear-gradient(
      360deg,
      rgba(24, 28, 57, 0.95) 3.74%,
      rgba(24, 28, 57, 0.3) 100%
    ),
    url(../images/country-directory-hero-bg.jpg) no-repeat center center;
  background-size: cover;
  padding: 140px 0;
}

.country-directory-hero-label {
  color: #ddcab2;
  margin-bottom: 16px;
}

.country-directory-hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.country-directory-hero-title {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #fcfcfc;
  max-width: 580px;
  width: 100%;
}

.country-directory-hero-description {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -3%;
  line-height: calc(28 / 20);
  color: #fcfcfc;
  max-width: 520px;
  width: 100%;
}

/* Country Directory Catalog styles start*/
.country-directory-catalog {
  padding: 100px 0;
  background-color: #f6f1eb;
}

.country-directory-catalog-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.country-directory-catalog-button {
  padding: 10px 20px;
  border: 1px solid #181c39;
  color: #181c39;
  border-radius: 40px;
  background-color: transparent;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -3%;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform:uppercase
}

.country-directory-catalog-button:hover {
  background-color: #181c39;
  color: #fcfcfc;
}

.country-directory-catalog-button.active {
  background-color: #181c39;
  color: #fcfcfc;
}

.country-directory-catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
}

.country-directory-catalog-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(
    0deg,
    rgba(24, 28, 57, 0.95) 0%,
    rgba(24, 28, 57, 0.6) 45%,
    rgba(24, 28, 57, 0) 70%
  );
}

.country-directory-catalog-item[hidden] {
  display: none;
}

.country-directory-catalog-item-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.country-directory-catalog-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-directory-catalog-item-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 28, 57, 0.15) 0%,
    rgba(24, 28, 57, 0.85) 100%
  );
}

.country-directory-catalog-item-label,
.country-directory-catalog-item-title,
.country-directory-catalog-item-link {
  position: relative;
  z-index: 1;
}

.country-directory-catalog-item-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #fcfcfc;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.country-directory-catalog-item-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #fcfcfc;
  margin-bottom: 16px;
}

.country-directory-catalog-item-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -3%;
  text-decoration: none;
  color: #ddcab2;
  transition: all 0.3s ease;
}

.country-directory-catalog-item-link:hover {
  color: #fcfcfc;
}

.country-directory-catalog-button-icon {
  width: 20px;
  height: 20px;
}

/* Country Directory Hero styles end*/

/* Country Directory Single styles start*/
.location-single-hero {
  padding: 100px 0;
  background-color: #181c39;
  position: relative;
}

.location-single-hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  max-width: 1045px;
  width: 100%;
  height: auto;
}

.location-single-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-single-hero-content {
  position: relative;
  z-index: 1;
}

.location-single-label {
  color: #ddcab2;
  margin-bottom: 16px;
}

.location-single-title {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #fcfcfc;
  margin-bottom: 32px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.location-single-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-single-badge {
  padding: 24px;
  border-radius: 12px;
  background-color: #ddcab21f;
}

.location-single-badge-label {
  color: #ddcab2;
  margin-bottom: 12px;
}

.location-single-badge-value {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #fcfcfc;
  margin-bottom: 12px;
}

.location-single-badge-description {
  font-size: 16px;
  letter-spacing: -3%;
  color: #fcfcfc;
}

.location-single-badge-note {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
  max-width: 920px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: rgba(252, 252, 252, 0.7);
}

.location-single-badge-note p {
  margin: 0;
}

.location-single-badge-note__lead {
  color: #fcfcfc;
}

.location-single-badge-note__lead strong {
  color: #ddcab2;
  font-weight: 600;
}

.location-single-territorial {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 0;
  max-width: 920px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(221, 202, 178, 0.35);
  background-color: rgba(221, 202, 178, 0.08);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: rgba(252, 252, 252, 0.7);
}

.location-single-territorial__title {
  margin: 0;
  color: #fcfcfc;
}

.location-single-territorial__title strong {
  color: #ddcab2;
  font-weight: 600;
}

.location-single-territorial__text {
  margin: 0;
}

.location-single-why {
  padding: 100px 0;
  background-color: #fcfcfc;
}

.location-single-why-title {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
  margin-bottom: 28px;
}

.location-single-why-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.location-single-why-content {
  max-width: 735px;
  width: 100%;
}

.location-single-why-description {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
  margin-bottom: 28px;
  max-width: 680px;
  width: 100%;
}

.location-single-why-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-single-why-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 2px solid #eeeeee;
}

.location-single-why-item:last-child {
  border-bottom: 2px solid #eeeeee;
}

.location-single-why-item::before {
  content: '';
  display: block;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  background-image: url(../../assets/icons/location-single-why-icon.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.location-single-why-item-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
  margin-bottom: 6px;
}

.location-single-why-item-description {
  font-size: 18px;
  letter-spacing: -3%;
  color: #353a5d;
}

.location-single-why-image {
  max-width: 620px;
  width: 100%;
  max-height: 520px;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.location-single-why-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-single-type {
  padding: 100px 0;
  background-color: #f6f1eb;
}

.location-single-type-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
  margin-bottom: 20px;
}

.location-single-type-description {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
  max-width: 720px;
  width: 100%;
}

.location-single-type-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.location-single-type-item {
  padding: 24px;
  border-radius: 16px;
  background-color: #fcfcfc;
}

.location-single-type-item-label {
  display: block;
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
}

.location-single-type-item-description {
  font-size: 18px;
  letter-spacing: -3%;
  color: #353a5d;
}

.location-single-key {
  padding: 100px 0;
  background-color: #fcfcfc;
}

.location-single-key-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
  margin-bottom: 48px;
  text-align: center;
}

.location-single-key-content {
  max-width: 845px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.location-single-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid #eeeeee;
  padding: 24px 0;
}

.location-single-key-item:last-child {
  border-bottom: 2px solid #eeeeee;
}

.location-single-key-item-label {
  display: block;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
}

.location-single-key-item-description {
  font-size: 18px;
  letter-spacing: -3%;
  color: #353a5d;
}

.location-single-key-item-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 30px;
  background-color: #f6f1eb;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.location-single-key-item-tag-label {
  display: block;
}

.location-single-key-item-tag.premium-tag {
  background-color: #181c39;
  color: #ddcab2;
}

.location-single-key-item-tag.tourist-tag {
  background-color: #ddcab2;
  color: #181c39;
}

.location-single-key-item-tag.city-tag {
  background-color: #eeeeee;
  color: #181c39;
}

.location-single-key-item-tag.niche-tag {
  background-color: #353a5d;
  color: #ddcab2;
}

.location-single-key-item-tag.popular-tag {
  background-color: #c4a574;
  color: #181c39;
}

.location-single-key-item-tag.active-tag {
  background-color: #2f6f5e;
  color: #f6f6f4;
}

.location-single-key-item-tag.resort-tag {
  background-color: #4a7c9b;
  color: #f6f6f4;
}

.location-single-key-item-tag.organized-tag {
  background-color: #e8e2d9;
  color: #181c39;
}

.location-single-key-item-tag.historical-tag {
  background-color: #8b6b4a;
  color: #f6f6f4;
}

.location-single-key-item-tag.selective-tag {
  background-color: #5c4a7a;
  color: #f6f6f4;
}

.location-single-key-item-tag.priority-tag {
  background-color: #b85c38;
  color: #f6f6f4;
}

.location-single-key-item-tag.after_check-tag {
  background-color: #1f4d3a;
  color: #ddcab2;
}

.location-single-key-item-tag.strong_check-tag {
  background-color: #143d2f;
  color: #ddcab2;
}

.location-single-key-item-tag.selective_check-tag {
  background-color: #1a3d32;
  color: #ddcab2;
}

.location-single-key-item-tag.capital_save-tag {
  background-color: #3d4a6b;
  color: #ddcab2;
}

.location-single-key-item-tag.own_conclusion-tag {
  background-color: #6b5a3d;
  color: #f6f6f4;
}

.location-single-key-item-tag.for_rent-tag {
  background-color: #3d6b5a;
  color: #f6f6f4;
}

.location-single-key-item-tag.off_offer-tag {
  background-color: transparent;
  color: #8b3a3a;
  border: 1.5px solid #8b3a3a;
}

.location-single-key-item-tag-icon {
  width: 18px;
  height: 18px;
}

.location-single-condotions {
  padding: 100px 0;
  background-color: #181c39;
}

.location-single-condotions-label {
  display: inline-block;
  margin-bottom: 16px;
  color: #ddcab2;
}

.location-single-condotions-title {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #fcfcfc;
}

.location-single-condotions-description {
  margin: 0 0 48px;
  max-width: 640px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -3%;
  line-height: calc(28 / 20);
  color: #fcfcfc;
}

.location-single-condotions-content {
  margin-bottom: 64px;
  overflow-x: auto;
}

.location-single-tax-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(24, 28, 57, 0.09);
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(221, 202, 178, 0.12);
}

.location-single-tax-table thead th {
  padding: 16px 24px;
  background-color: #ddcab2;
  color: #181c39;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -3%;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.location-single-tax-table thead th:first-child {
  width: 33%;
}

.location-single-tax-table thead th:nth-child(2) {
  width: 17%;
}

.location-single-tax-table thead th:last-child {
  width: 50%;
}

.location-single-tax-table tbody th,
.location-single-tax-table tbody td {
  padding: 24px;
  border-bottom: 2px solid rgba(238, 238, 238, 0.07);
  color: #fcfcfc;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -3%;
  text-align: left;
  vertical-align: top;
}

.location-single-tax-table tbody tr:last-child th,
.location-single-tax-table tbody tr:last-child td {
  border-bottom: none;
}

.location-single-tax-table tbody td:nth-child(2) {
  color: #ddcab2;
  white-space: nowrap;
}

.location-single-tax-table tbody td:last-child {
  font-size: 18px;
  font-weight: 400;
}

.location-single-condotions-note-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.location-single-condotions-note-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.location-single-condotions-note {
  margin: 0;
  font-size: 16px;
  letter-spacing: -3%;
  line-height: calc(24 / 16);
  color: rgba(252, 252, 252, 0.72);
}

.location-single-process {
  padding: 112px 0;
  background-color: #fcfcfc;
  text-align: center;
}

.location-single-process-label {
  margin-bottom: 20px;
}

.location-single-process-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
  margin-bottom: 20px;
}

.location-single-process-description {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -3%;
  color: #181c39;
}

.location-single-process-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 50px 0;
  padding: 0;
  list-style: none;
}

.location-single-process-item {
  height: 100%;
  background-color: #f5f5f5;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 16px;
}

.location-single-process-item-number {
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  color: #e1c9ae;
}

.location-single-process-item-title {
  font-size: 18px;
  font-weight: 500;
  color: #181c39;
}

.location-single-process-item-description {
  font-size: 16px;
  color: #353a5d;
}

.location-single-process-note {
  font-size: 16px;
  color: #353a5d;
  text-align: center;
  letter-spacing: -3%;
  font-weight: 500;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

/* Country Directory Single styles end*/

@media (max-width: 1200px) {
  .location-single-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .country-directory-hero {
    padding: 70px 0;
  }

  .country-directory-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .country-directory-hero-title {
    font-size: 56px;
  }

  .country-directory-hero-description {
    font-size: 18px;
  }

  .location-single-hero {
    padding: 70px 0;
  }

  .country-directory-catalog{
    padding: 70px 0;
  }

  .country-directory-catalog-buttons{
    gap: 8px;
  }

  .country-directory-catalog-list {
    gap: 16px;
  }

  .location-single-title {
    font-size: 56px;
  }

  .location-single-badge-value {
    font-size: 32px;
  }

  .location-single-badge-description {
    font-size: 14px;
  }

  .location-single-badge-note {
    margin-top: 20px;
    font-size: 13px;
    gap: 10px;
  }

  .location-single-territorial {
    margin-top: 16px;
    padding: 14px 16px;
    font-size: 13px;
  }

  .location-single-why {
    padding: 70px 0;
  }

  .location-single-why-wrapper {
    flex-direction: column;
  }

  .location-single-why-content {
    max-width: 100%;
  }

  .location-single-why-title {
    font-size: 36px;
  }

  .location-single-why-description {
    font-size: 18px;
    max-width: 100%;
  }

  .location-single-why-item {
    align-items: flex-start;
    gap: 8px;
  }

  .location-single-why-item::before {
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
  }

  .location-single-type {
    padding: 70px 0;
  }

  .location-single-type-title {
    font-size: 36px;
  }

  .location-single-type-description {
    font-size: 18px;
    max-width: 100%;
  }

  .location-single-type-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 36px;
  }

  .location-single-key {
    padding: 70px 0;
  }

  .location-single-key-title {
    font-size: 36px;
    margin-bottom: 24px;
  }

  .location-single-key-item-label {
    font-size: 20px;
  }

  .location-single-key-item-description {
    font-size: 16px;
  }

  .location-single-key-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .location-single-key-item-tag {
    white-space: normal;
    text-align: center;
  }

  .location-single-condotions {
    padding: 70px 0;
  }

  .location-single-condotions-title {
    font-size: 36px;
  }

  .location-single-condotions-content {
    margin-bottom: 36px;
  }

  .location-single-condotions-description {
    margin-bottom: 36px;
    font-size: 18px;
  }

  .location-single-tax-table tbody td {
    padding: 16px;
    font-size: 16px;
  }

  .location-single-tax-table tbody td:last-child {
    font-size: 16px;
  }

  .location-single-process {
    padding: 70px 0;
  }

  .location-single-process-title {
    font-size: 36px;
  }

  .location-single-process-description {
    font-size: 18px;
  }

  .location-single-process-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 36px 0;
  }

  .location-single-process-item {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .country-directory-catalog-item {
    height: 250px;
  }

  .country-directory-catalog-button{
    padding: 8px 12px;
  }

  .location-single-badges {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  .location-single-badge-note {
    margin-top: 16px;
  }

  .location-single-territorial {
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .location-single-type-content {
    grid-template-columns: repeat(1, 1fr);
  }

  .location-single-condotions-note-wrapper {
    gap: 12px;
  }

  .location-single-condotions-note-icon {
    width: 24px;
    height: 24px;
  }

  .location-single-condotions-note {
    font-size: 14px;
  }

  .location-single-process-content {
    grid-template-columns: repeat(1, 1fr);
  }
}
