.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}
.info-tile {
  text-align: center;
  border-radius: 20pt;
  background: var(--tile-background);
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;  
  max-width: 250px;
  height: 180px;
  position: relative; 
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  will-change: transform;
}
.info-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(10, 44, 102, 0.12);
  transition-delay: 0s !important;
}
.info-tile img {
    width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info-tile h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.info-tile p {
  color: var(--text-secondary);
  font-size:.8em;
}
.info-tile a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}
.info-tile a:hover {
  color: var(--text-secondary);
}
.tile-grid{
	overflow:visible;
}

.info-tile img {
  width: 100%;
  height: 180px; 
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}


/* FEATURE TILE */
.feature-tile.split-left,
.feature-tile.split-right {
  display: flex;
  flex-direction: row;
  text-align: left;
  max-width: 100%;
  padding: 0;
  gap: 0;
}

/* Image on the left */
.feature-tile.split-left img {
  border-radius: 20pt 0 0 20pt;
  max-height:300px;
}

/* Image on the right */
.feature-tile.split-right {
  flex-direction: row-reverse;
}

.feature-tile.split-right img {
  border-radius: 0 20pt 20pt 0;
  max-height:300px;
}

/* Shared image styles */
.feature-tile.split-left img,
.feature-tile.split-right img {
  flex: 1 1 50%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  margin: 0;
}

/* Shared text styles */
.feature-tile.split-left .tile-text,
.feature-tile.split-right .tile-text {
  flex: 1 1 50%;
  padding: 24px;
}
@media (max-width: 768px) {
  .feature-tile.split-left,
  .feature-tile.split-right {
    flex-direction: column !important;
    text-align: center;
  }

  .feature-tile.split-left img,
  .feature-tile.split-right img {
    width: 100%;
    max-height: 200px;
    border-radius: 20pt 20pt 0 0;
  }

  .feature-tile.split-left .tile-text,
  .feature-tile.split-right .tile-text {
    padding: 20px;
    text-align: left;
  }
}

.card {
   opacity: 0;  
  transform: translateY(20px);
  transition: opacity 1.0s ease, transform 0.7s ease;
}
.card.visible {
  opacity: 1;
  transition-delay: 0s !important;
}
.values-list {
  list-style: none;
  margin-top: 14px;
  margin-bottom: 26px;
}
.values-list li {
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(12, 22, 40, 0.05);
}
.values-list li strong {
  color: var(--text-primary);
}



/* Carousel layout */
.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 20px;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: auto;
  gap: 20px;
  padding: 10px;
  scrollbar-width: none;
  background: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .info-tile {
  flex: 0 0 auto;
  width: 220px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: var(--text-primary);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn.left { left: 10px; color: white; }
.carousel-btn.right { right: 10px; color: white; }


/* BOILER FAULTS PAGE */

/* Boiler Fault Tiles Adjustments */
.tile-grid.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: stretch; 
}

.tile-grid.manufacturer-grid img {
  height: 120px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
}

.tile-grid.code-grid .info-tile {
  min-height: 160px;
}

.tile-grid.code-grid h3 {
  font-size: 1rem;
  margin-top: 8px;
}

.tile-grid.code-grid p {
  font-size: 0.9rem;
}

/* Search Bar Styling */
.search-bar {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--text-secondary);
  border-radius: 8px;
  font-size: 1rem;
}

.search-bar button {
  padding: 10px 16px;
  border: none;
  background: var(--accent-color, #0a2c66);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #133d91;
}

.boiler-tile {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20pt;
  background: var(--tile-background);
  min-height:220px;
  max-height:220px;
  overflow:hidden;
  cursor:pointer;
  text-decoration: none; 
  width:auto;  
  max-width:100%;
  /* min-width:100%; */
}
.boiler-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(10, 44, 102, 0.12);
}
.boiler-tile img {
  height: 180px;
  object-fit: cover;
  width:100%;
  max-height:100px;
}
.boiler-tile h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.boiler-tile p {
  color: var(--text-secondary);
}
.faultcode-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}
 .fault-tile {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20pt;
  background: var(--tile-background);
  max-height:250px;
  min-height:250px;
  overflow:hidden;
  cursor:pointer;
  text-decoration: none;  
  min-width:100%;
  max-width:100%;
}
.fault-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(10, 44, 102, 0.12);
}

.fault-tile h3 {
  font-size: 3em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.fault-tile p {
  color: var(--text-secondary);
}

.fault-tile {
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 12px;
  border-radius: 8px;
}

.fault-tile:hover { background: #f9f9f9; }

.fault-tile.expanded { border: 1px solid var(--accent-color, #0a2c66); background: #f0f6ff; }

.toggle-msg {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--accent-color, #0a2c66);
  font-style: italic;
}

.action-text { margin-top: 8px; }

.hide-advice-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--accent-color, #0a2c66);
  text-decoration: underline;
  cursor: pointer;
}
.hide-advice-link:hover { color: #133d91; }

#autocompleteList {
  border: 1px solid var(--text-secondary);
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#autocompleteList div {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

#autocompleteList div:hover {
  background: #f0f6ff;
}
#manualLinks .boiler-tile {
  width: 100%;
  margin-top: 20px;
}
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}


.link-big-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--tile-background);
  border-radius: 20pt;
  margin-bottom:30px;
}

.link-big-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(10, 44, 102, 0.12);
}

.link-big-tile .feature-tile {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--tile-background);
  border-radius: 20pt;
}


.link-big-tile h2,
.link-big-tile p {
  color: inherit;
  text-decoration: none;
}

.contact-action-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-action-modal-content {
  width: min(92vw, 460px);
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  position: relative;
}

.contact-action-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.contact-action-logo {
  max-width: 76px;
  max-height: 76px;
  margin-bottom: 12px;
}

.contact-action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .info-tile:hover,
  .boiler-tile:hover,
  .fault-tile:hover,
  .link-big-tile:hover {
    transform: none;
  }

   .info-tile {
    max-width: 180px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 !important;
  }

  .info-tile img {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

/* Targeted fix: Only affects the Call Us tile on desktop */
#call-to-book {
    height: 100% !important; /* Forces it to match the height of its neighbors in the grid */
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
}

//* 1. Ensure the grid stretches all cards to the same height */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch; /* This keeps the boxes level */
    gap: 20px;
}

/* 2. Make the info-tile a flex container */
.info-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 3. Match the font size to the other tiles and handle spacing */
#call-to-book-text {
    flex-grow: 1; /* Pushes content to fill the card */
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem; /* Matches your base styles */
    line-height: 1.4;
}

/* 4. Mobile specific: just ensure the gap stays tight */
@media (max-width: 768px) {
    .info-tile {
        padding: 0 !important;
    }
    
    #call-to-book-text {
        font-size: 0.95rem; /* Only a tiny bit smaller if needed to prevent excessive wrapping */
    }
}





