/* Homepage-only styles (index.html) — uses global tokens from style.css */

#homeMap {
  width: 100%;
}

section.meydan {
  margin-top: 50px;
}

.meydan .challenges-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
}

.meydan .challenges-loading .title {
  margin: 0;
  font-size: 1.125rem;
  color: #666;
}

.meydan .challenges-slider {
  position: relative;
  width: 100%;
}

.meydan .challenges-swiper {
  overflow: hidden;
  width: 100%;
}

.meydan .challenges-grid {
  display: flex;
  width: 100%;
}

.meydan .challenges-grid.swiper-wrapper {
  box-sizing: border-box;
}

.meydan .swiper-slide {
  height: auto;
  display: flex;
}

.meydan .swiper-slide .item.match-card {
  width: 100%;
  height: 100%;
}

.meydan .challenges-loading-slide {
  justify-content: center;
}

.meydan .challenges-loading-slide .challenges-loading {
  width: 100%;
}

.meydan .challenges-slider .challenges-slider-pagination {
  position: static;
  width: 100%;
  margin-top: 30px;
  bottom: auto;
  left: auto;
  right: auto;
  transform: none;
}

.meydan .challenges-slider .owl-dots .owl-dot {
  display: inline-block;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  vertical-align: middle;
}

.meydan .loading-placeholder .details {
  text-align: center;
  padding: 30px;
}

.site-footer .social-links li--hidden {
  display: none;
}

footer > div > div.footer-top > div {
  justify-content: space-between;
}

/* Challenge match cards — main-branch classic layout (homepage Meydan only) */
section.meydan .match-header.image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
}

section.meydan .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

section.meydan .background-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2a6e474d;
}

section.meydan .facility-info {
  position: relative;
  z-index: 1;
  color: var(--white-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 12px;
}

section.meydan .facility-info-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

section.meydan .match-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: var(--white-color);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 100%;
}

section.meydan .match-header {
  background-color: #1a2942;
  color: var(--white-color);
  padding: 15px;
  position: relative;
}

section.meydan .facility-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 1px 0 black;
}

section.meydan .facility-info p {
  margin: 5px 0 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 800;
  text-shadow: 1px 1px black;
}

section.meydan .facility-info span {
  font-weight: 800;
  text-shadow: 1px 1px black;
}

section.meydan .match-type {
  font-size: 14px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

section.meydan .match-type-icon,
section.meydan .match-type svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

section.meydan .match-datetime {
  display: flex;
  padding: 10px;
  border-top: solid 1px var(--primary-color);
  background-color: var(--main-color);
  color: var(--white-color);
  justify-content: space-between;
  flex-flow: wrap;
}

section.meydan .date-info,
section.meydan .time-info {
  display: flex;
  align-items: center;
  font-weight: 600;
}

section.meydan .date-info .icon,
section.meydan .time-info .icon {
  margin-right: 5px;
  font-size: 16px;
}

section.meydan .teams-container {
  padding: 20px 15px;
  background-color: var(--white-color);
}

section.meydan .team {
  width: 100%;
  display: flex;
  padding: 10px 0;
}

section.meydan .home-team {
  flex-direction: row-reverse;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 0 30px;
}

section.meydan .home-team > div {
  text-align: left;
}

section.meydan .team-avatar {
  width: 85px !important;
  height: 85px !important;
  object-fit: contain;
}

section.meydan .team > div h4 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

section.meydan .team > div p {
  margin: 3px 0;
  font-size: 13px;
  color: #666;
  font-weight: 700;
}

section.meydan .team-level {
  font-weight: 500;
  color: #333;
}

section.meydan .team-age img,
section.meydan .team-language img,
section.meydan .team-age .team-meta-icon,
section.meydan .team-language .team-meta-icon {
  margin-right: 5px;
  vertical-align: middle;
}

section.meydan .vs-divider {
  width: 100%;
  text-align: center;
  position: relative;
  margin: 10px 0;
}

section.meydan .vs-divider span {
  background-color: var(--white-color);
  padding: 0 10px;
  position: relative;
  z-index: 1;
  font-weight: bold;
  color: #888;
}

section.meydan .vs-divider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #eee;
}

section.meydan .opponent-team {
  flex-direction: column;
  padding: 0 20px;
}

section.meydan .waiting-opponent {
  text-align: center;
  padding: 15px 0;
}

section.meydan .waiting-opponent .waiting-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ccc;
  animation: index-pulse 1.5s infinite ease-in-out;
}

section.meydan .waiting-opponent h4 {
  color: #999;
  margin: 5px 0;
}

section.meydan .waiting-opponent p {
  color: #bbb;
  font-size: 12px;
}

section.meydan .pricing-info {
  padding: 15px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

section.meydan .price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

section.meydan .price-row.deposit {
  font-weight: 600;
  color: var(--primary-color);
}

section.meydan div.price-row.deposit > span.price-label {
  color: var(--primary-color);
}

section.meydan .action-container {
  padding: 15px;
  text-align: center;
}

section.meydan .accept-challenge-btn {
  display: inline-block;
  background-color: #00c853;
  color: var(--white-color);
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  transition: background-color 0.2s;
}

section.meydan .accept-challenge-btn:hover {
  background-color: #009944;
}

section.meydan .match-status {
  text-align: center;
  padding: 10px;
  background-color: #f5f9f5;
}

section.meydan .match-status.hidden {
  display: none;
}

section.meydan .status-badge {
  display: inline-block;
  background-color: #e8f5e9;
  color: #009944;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Legacy shared rules kept for non-Meydan references in this file */
.match-header.image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.background-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: color-mix(in srgb, var(--secondary-color) 30%, transparent);
}

.facility-info {
  position: relative;
  z-index: 1;
  color: var(--white-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 12px;
}

.facility-info-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.match-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: var(--white-color);
  width: 100%;
  max-width: none;
  margin: 0;
}

.match-header {
  background-color: #1a2942;
  color: var(--white-color);
  padding: 15px;
  position: relative;
}

.facility-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 1px 0 black;
}

.owl-stage {
  display: flex;
}

.owl-item {
  flex: 1;
}

.home-team .team-details-block {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.home-team.opponent-side {
  margin-bottom: 0;
}

.facility-info p {
  margin: 5px 0 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 800;
  text-shadow: 1px 1px black;
}

.facility-info span {
  font-weight: 800;
  text-shadow: 1px 1px black;
}

.match-type {
  font-size: 14px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.match-type-icon,
.match-type svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.match-datetime {
  display: flex;
  padding: 18px;
  border-top: solid 1px var(--primary-color);
  background-color: var(--main-color);
  color: var(--white-color);
  justify-content: space-between;
  flex-flow: wrap;
}

.date-info,
.time-info {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.date-info .icon,
.time-info .icon {
  /* margin-inline-end: 8px; */
  font-size: 16px;
}

.teams-container {
  padding: 20px 15px;
  background-color: var(--white-color);
}

.teams-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 0;
}

.team-card .team-details-block {
  width: 100%;
  min-width: 0;
}

.team-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  word-break: break-word;
}

.team-meta {
  display: flex;
  align-items: flex-start;
  justify-content: start;
  gap: 6px;
  margin: 4px 0;
  font-size: 12px;
  color: #666;
  font-weight: 600;
  line-height: 1.4;
  text-align: start;
}

.team-meta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  vertical-align: middle;
}

img.team-meta-icon {
  object-fit: contain;
}

.team-meta-label {
  font-weight: 700;
  color: #444;
}

.team {
  width: 100%;
  display: flex;
  padding: 10px 0;
}

.home-team {
  flex-direction: row-reverse;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 0 10px;
  gap: 30px;
}

.home-team > div {
  text-align: left;
}

.team-avatar {
  width: 85px !important;
  height: 85px !important;
  object-fit: contain;
}

div.opponent-info-row.opponent-header > img {
  width: 65px !important;
  height: 65px !important;
}

.team > div h4 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.team > div p {
  margin: 3px 0;
  font-size: 13px;
  color: #666;
  font-weight: 700;
}

.team-level {
  font-weight: 500;
  color: #333;
}

.language-icon {
  font-size: 14px;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: auto;
  min-width: 36px;
  text-align: center;
  position: relative;
  margin: 0;
}

.vs-divider span {
  background-color: var(--white-color);
  padding: 0 10px;
  position: relative;
  z-index: 1;
  font-weight: bold;
  color: #888;
}

.vs-divider:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background-color: #eee;
}

.opponent-team {
  flex-direction: column;
  padding: 0 20px;
}

.team-card.waiting-opponent {
  justify-content: center;
  min-height: 140px;
  padding: 12px 8px;
  border: 1px dashed #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
}

.opponent-info-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.opponent-header {
  display: flex;
  align-items: center;
}

.opponent-header h4 {
  margin: 0 0 5px 10px;
}

.opponent-details {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 5px;
}

.opponent-detail-item {
  display: flex;
  align-items: center;
}

.opponent-detail-item .icon {
  margin-right: 5px;
  font-size: 14px;
}

.waiting-opponent {
  text-align: center;
}

.waiting-opponent .waiting-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ccc;
  animation: index-pulse 1.5s infinite ease-in-out;
}

.waiting-opponent h4 {
  color: #999;
  margin: 5px 0;
}

.waiting-opponent p {
  color: #bbb;
  font-size: 12px;
}

@keyframes index-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.pricing-info {
  padding: 15px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.price-row.deposit {
  font-weight: 600;
  color: var(--primary-color);
}

div.price-row.deposit > span.price-label {
  color: var(--primary-color);
}

.action-container {
  padding: 15px;
  text-align: center;
}

.accept-challenge-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  transition: background-color 0.2s;
  border-radius: 7px;
}

.accept-challenge-btn:hover {
  background-color: var(--secondary-color);
}

.match-status {
  text-align: center;
  padding: 10px;
  background-color: #f5f9f5;
}

.match-status.hidden {
  display: none;
}

.status-badge {
  display: inline-block;
  background-color: #e8f5e9;
  color: var(--secondary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Meydan section layout */
.meydan > div > div.c-heading {
  display: block;
}

.meydan > div > div.challenges-slider {
  display: block;
}

.challenger-info {
  background-color: #f8f8f8;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}

.challenger-details h4 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
}

.challenger-details p {
  margin: 5px 0;
  font-size: 14px;
}

.meydan .challenges-grid .item {
  height: 100%;
}

.no-challenges {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hi {
  width: calc(33% - 8px);
}

.hi > label > span:nth-child(3) {
  font-size: 13px;
  color: var(--primary-color);
}

.team-image-background {
  position: absolute;
  bottom: 5px;
  right: 15px;
  object-fit: cover;
  z-index: -1;
  opacity: 0.6;
  border-radius: 10px;
}

.team-details {
  margin-top: 15px;
}

.team-details > div {
  margin-top: 15px;
  margin-bottom: 15px;
}

.team-details > p {
  margin: 0;
  padding: 3px 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  gap: 10px;
}

.details {
  position: relative;
  padding: 20px;
}

.facility-time-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-direction: column;
}

.time-display {
  text-align: right;
}

/* Google Maps info window */
.gm-style-iw-chr {
  position: absolute !important;
}

.gm-ui-hover-effect > span {
  background-color: var(--main-font-color) !important;
}

.map-info-rating {
  color: gold;
  text-shadow: 0 0 #000000bd;
  font-size: 12px;
}

.map-info-rating .fa-star {
  margin-inline-end: 3px;
  font-size: 11px;
}

.map-info-price {
  font-size: 12px;
}

/* Map info window links must stay dark — .home a sets white sitewide */
.home .gm-style-iw-c a,
.home .gm-style-iw-c .title {
  color: #111;
}

/* Arabic homepage: facility names, times, and prices read left-to-right */
html[dir="rtl"] .home .gm-style-iw-c,
html[dir="rtl"] .home .gm-style-iw-d,
html[dir="rtl"] .home .gm-style-iw-c .map-info-ltr {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .home .gm-style-iw-c .top-info,
html[dir="rtl"] .home .gm-style-iw-c .more {
  flex-direction: row;
}

html[dir="rtl"] .home .gm-style-iw-c .more .icon img {
  transform: none;
}

html[dir="rtl"] .home .gm-style-iw-c .details {
  text-align: left;
}

#containerag > section.our-location.main-map > div.map-control > div > form {
  gap: 20px;
}

/* .home a {
  color: white;
} */

/* Partners carousel + challenge card flex */
#containerag > section.partners > div > div.owl-carousel.owl-theme.wow.fadeInUp.owl-loaded.owl-drag > div.owl-stage-outer > div > div > div > img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

[data-challenge-id] {
  display: flex;
  flex-direction: column;
  height: 100%;
}

[data-challenge-id] .teams-container {
  margin-top: auto;
}

[data-challenge-id] .pricing-info {
  margin-bottom: auto;
}

html[dir="rtl"] section.meydan .match-type {
  right: auto;
  left: 15px;
}

html[dir="rtl"] section.meydan .match-type-icon,
html[dir="rtl"] section.meydan .match-type svg {
  margin-right: 0;
  margin-left: 6px;
}

html[dir="rtl"] section.meydan .date-info .icon,
html[dir="rtl"] section.meydan .time-info .icon {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] section.meydan .team-age img,
html[dir="rtl"] section.meydan .team-language img,
html[dir="rtl"] section.meydan .team-age .team-meta-icon,
html[dir="rtl"] section.meydan .team-language .team-meta-icon {
  margin-right: 0;
  margin-left: 5px;
}

html[dir="rtl"] section.meydan .home-team > div {
  text-align: right;
}

html[dir="rtl"] section.meydan .facility-info h3,
html[dir="rtl"] section.meydan .facility-info p {
  text-shadow: 1px 0 rgba(0, 0, 0, 0.85);
}

html[dir="rtl"] .meydan .team-meta {
  text-align: right;
}

html[dir="rtl"] .facility-info h3,
html[dir="rtl"] .facility-info p {
  text-shadow: 1px 0 rgba(0, 0, 0, 0.85);
}

@media (max-width: 767px) {
  section.meydan .match-datetime {
    padding: 10px;
  }

  section.meydan .home-team {
    padding: 0 15px;
  }

  section.meydan .teams-container {
    padding: 10px;
  }

  section.meydan .match-header {
    padding: 10px;
  }

  section.meydan .team-avatar {
    width: 70px !important;
    height: 70px !important;
  }

  section.meydan .team > div h4 {
    font-size: 14px;
  }

  section.meydan .pricing-info {
    padding: 10px;
  }

  section.meydan .price-row {
    margin-bottom: 5px;
  }

  section.meydan .price-row.deposit {
    font-weight: 500;
  }

  section.meydan .action-container {
    padding: 10px;
  }

  section.meydan .waiting-opponent {
    padding: 10px;
  }

  section.meydan .match-type {
    font-size: 12px;
    padding: 5px 10px;
  }

  section.meydan .facility-info h3 {
    font-size: 16px;
  }

  section.meydan .facility-info p,
  section.meydan .facility-info span {
    font-size: 12px;
  }

  .teams-matchup {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vs-divider {
    min-height: 28px;
    min-width: 100%;
  }

  .vs-divider:before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    transform: none;
  }

  .meydan .item .image {
    width: 100%;
    height: 200px;
  }

  .match-datetime {
    padding: 10px;
  }

  .home-team {
    padding: 0 15px;
  }

  .team-card h4 {
    font-size: 14px;
  }

  .teams-container {
    padding: 10px;
  }

  .match-header {
    padding: 10px;
  }

  .team-avatar {
    width: 70px !important;
    height: 70px !important;
  }

  .team > div h4 {
    font-size: 14px;
  }

  .pricing-info {
    padding: 10px;
  }

  .price-row {
    margin-bottom: 5px;
  }

  .price-row.deposit {
    font-weight: 500;
  }

  .action-container {
    padding: 10px;
  }

  .waiting-opponent {
    padding: 10px;
  }

  .waiting-opponent h4 {
    font-size: 16px;
  }

  .waiting-opponent p {
    font-size: 12px;
  }

  .match-status {
    padding: 10px;
  }

  .status-badge {
    font-size: 10px;
  }

  .match-type {
    font-size: 12px;
    padding: 5px 10px;
  }

  .match-type-icon,
  .match-type svg {
    width: 14px;
    height: 14px;
  }

  .facility-info p {
    font-size: 12px;
  }

  .facility-info span {
    font-size: 12px;
  }

  .facility-info .icon {
    font-size: 14px;
  }

  .facility-info .icon svg {
    width: 14px;
    height: 14px;
  }
}
