/* --- Windows Phone (Metro UI) FULL WIDTH Dynamic Tiles --- */
@media only screen and (max-width: 1024px) {
  .metro-tiles-section {
    padding: 0px !important;
    /* Margin/Padding sildik */
    width: 100% !important;
    box-sizing: border-box;
    margin-top: 0px !important;
    /* Üstteki alan kalktığı için tavana yapışabilir */
    perspective: 1200px;
  }

  .metro-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 side-by-side */
    gap: 0px !important; /* No gaps between cards */
    width: 100% !important;
    padding: 0px !important; /* Flush to screen edges */
    box-sizing: border-box;
  }

  .metro-tile-container {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Back to square for 2-column mosaic */
    border-radius: 0px !important; /* Flush edges */
    overflow: hidden !important;
    box-shadow: none !important;
    border: 0.5px solid rgba(255,255,255,0.05) !important; /* Minimal separator for mosaic feel */
  }

  .flipping-tile {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
  }

  .flipping-tile.flip-v {
    transform: rotateX(180deg);
  }

  .flipping-tile.flip-h {
    transform: rotateY(180deg);
  }

  .tile-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .tile-front {
    z-index: 2;
    transform: rotateX(0) rotateY(0);
  }

  .tile-back {
    z-index: 1;
    padding: 0 !important;
  }

  .flip-v .tile-back {
    transform: rotateX(180deg);
  }

  .flip-h .tile-back {
    transform: rotateY(180deg);
  }

  /* Colors - Ultra Vibrant Neon Palette */
  .tile-tours .tile-front {
    background: url("../../gorsel/pure_tours_hero_bg.png") no-repeat center
      center !important;
    background-size: cover !important;
    position: relative;
  }

  .tile-tours .tile-front::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 229, 255, 0.8), transparent);
    z-index: 1;
  }

  .tile-tours .tile-front .tile-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative;
    z-index: 2;
  }

  .tile-hotels .tile-front {
    background: url("../../gorsel/pure_hotels_hero_bg.png") no-repeat center
      center !important;
    background-size: cover !important;
    position: relative;
  }

  .tile-hotels .tile-front::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(245, 158, 11, 0.8), transparent);
    /* Golden Amber Gradient */
    z-index: 1;
  }

  .tile-hotels .tile-front .tile-content {
    position: relative;
    z-index: 2;
  }

  .tile-bungalows .tile-front {
    background: url("../../gorsel/pure_bungalows_hero_bg.png") no-repeat center
      center !important;
    background-size: cover !important;
    position: relative;
  }

  .tile-bungalows .tile-front::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.8), transparent);
    /* Fresh Mint Gradient */
    z-index: 1;
  }

  .tile-bungalows .tile-front .tile-content {
    position: relative;
    z-index: 2;
  }

  .tile-isletmeler .tile-front {
    background: url("../../gorsel/pure_isletmeler_venue_bg.png") no-repeat
      center center !important;
    background-size: cover !important;
    position: relative;
  }

  .tile-isletmeler .tile-front::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.8), transparent);
    /* Royal Violet Gradient */
    z-index: 1;
  }

  .tile-isletmeler .tile-front .tile-content {
    position: relative;
    z-index: 2;
  }

  .tile-events .tile-front {
    background: url("../../gorsel/theatre_mic_stage_bg.png") no-repeat center
      center !important;
    background-size: cover !important;
    position: relative;
  }

  .tile-events .tile-front::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(255, 18, 110, 0.8), transparent);
    /* Hot Pink Gradient */
    z-index: 1;
  }

  .tile-events .tile-front .tile-content {
    position: relative;
    z-index: 2;
  }

  .tile-flights .tile-front {
    background: url("../../gorsel/pure_flights_hero_bg.png") no-repeat center
      center !important;
    background-size: cover !important;
    position: relative;
  }

  .tile-flights .tile-front::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(14, 165, 233, 0.8), transparent);
    /* Sky Blue Gradient */
    z-index: 1;
  }

  .tile-flights .tile-front .tile-content {
    position: relative;
    z-index: 2;
  }

  .tile-bus .tile-front {
    background: url("../../gorsel/travel_search/bus_bg.png") no-repeat center
      center !important;
    background-size: cover !important;
    position: relative;
  }

  .tile-bus .tile-front::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(245, 158, 11, 0.8), transparent);
    /* Amber/Orange Gradient */
    z-index: 1;
  }

  .tile-bus .tile-front .tile-content {
    position: relative;
    z-index: 2;
  }

  .tile-ferry .tile-front {
    background: url("../../gorsel/travel_search/ferry_bg.png") no-repeat center
      center !important;
    background-size: cover !important;
    position: relative;
  }

  .tile-ferry .tile-front::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(14, 116, 144, 0.8), transparent);
    /* Deep Ocean Blue Gradient */
    z-index: 1;
  }

  .tile-ferry .tile-front .tile-content {
    position: relative;
    z-index: 2;
  }

  .wide-tile {
    grid-column: 1 / span 2;
    aspect-ratio: 2 / 1 !important;
  }

  .tile-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .tile-content i {
    font-size: 32px;
    color: #fff;
    margin-bottom: 0;
  }

  .tile-label {
    font-family: "Segoe UI", "Comfortaa", sans-serif;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    text-transform: uppercase;
  }

  /* BUNGALOVLAR: yazı karta sığsın */
  .tile-bungalows .tile-label {
    font-size: 15px;
    letter-spacing: -0.2px;
  }

  .tile-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 15px 12px;
    box-sizing: border-box;
  }

  .item-name {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
  }

  .item-price {
    color: #ecad29;
    font-size: 11px;
    font-weight: 900;
  }

  .flipping-tile:active {
    transform: scale(0.96) !important;
  }

  .tile-tag-label {
    position: absolute;
    top: 10px;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    border-left: 3px solid #ecad29;
    text-transform: uppercase;
    z-index: 5;
    letter-spacing: 1px;
  }
}
