/* --- Suppliers Details --- */

.supplier-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  position: relative;
}

.supplier-gallery.single-image {
  grid-template-columns: 1fr;
}

.supplier-gallery.single-image .side-images {
  display: none;
}

.supplier-gallery.two-images {
  grid-template-columns: 1fr 1fr;
}

.supplier-gallery.two-images .side-images {
  display: block;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.supplier-gallery.two-images .side-images img {
  height: 100%;
  width: 100%;
  border-radius: 0px 16px 16px 0px;
}

.supplier-gallery.two-images .side-images img + img,
.supplier-gallery.two-images .image-count-details {
  display: none; /* Only one side image and no counter */
}

.supplier-gallery.single-image .main-image img {
  border-radius: 16px;
}

.supplier-gallery img:hover{
  filter: brightness(0.9);
  transition: filter 0.2s ease-in-out;
}

.supplier-gallery .main-image img {
  height: 100%;
  width: 100%;
  inset: 0px;
  object-fit: cover;
  object-position: center center;
  color: transparent;
  border-radius: 16px 0px 0px 16px;
  cursor: pointer;
}

.supplier-gallery .side-images {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  position: relative;
}

.supplier-gallery .side-images img {
  height: 100%;
  width: 100%;
  inset: 0px;
  object-fit: cover;
  object-position: center center;
  color: transparent;
  border-radius: 0px 16px 16px 0px;
  cursor: pointer;
}

.image-count-details {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.supplier-details-agent {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.supplier-details {
  padding: 15px 0;
}

.supplier-details h2 {
  margin: 0;
  font-size: 24px;
  color: #222;
}

.supplier-info-details{
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.supplier-description{
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.supplier-features{
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.supplier-features img{
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 0.75rem;
  height: 48px;
  width: 48px;
  transition: all 0.2s ease-in-out;
}

.supplier-category {
  margin: 10px 0;
  color: #666;
  font-size: 14px;
}

.supplier-location {
  color: #444;
  margin-bottom: 10px;
}

.supplier-agent {
  padding: 15px 0;
}

.agent-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  justify-content: flex-start;
  align-items: center;
  gap: 25px;
}

.agent-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 1px solid #EAEBED;
  object-fit: contain;
  color: transparent;
  padding: 5px;
}

.agent-info h4 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.agent-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  margin: 10px 0;
}

.agent-actions .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.agent-actions .email {
  background-color: rgba(58, 136, 239, 0.08);
}

.agent-actions .email:hover {
  background-color: rgba(58, 136, 239, 0.2);
}

.agent-actions .call {
  background-color: rgba(255, 237, 234, 0.5);
}

.agent-actions .call:hover {
  background-color: rgba(255, 218, 212, 0.8);
}

.agent-actions .whatsapp {
  background-color: rgba(67, 187, 63, 0.1);
}

.agent-actions .whatsapp:hover {
  background-color: rgba(67, 187, 63, 0.2);
}

@media (max-width: 768px) {
  .supplier-gallery {
    grid-template-columns: 1fr;
  }

  .supplier-gallery .main-image img{
    border-radius: 16px;
  }

  .supplier-gallery .side-images img {
    border-radius: 16px;
  }

  .supplier-details-agent{
    grid-template-columns: 1fr;
  }

  .supplier-gallery .side-images {
    grid-template-rows: 1fr;
  }

  .side-images {
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
  }

  .side-images img {
    height: 150px;
  }

  .agent-card {
    flex-direction: row;
    text-align: center;
  }

  .agent-actions{
    flex-wrap: nowrap;
  }
}

.posted-on {
  font-size: 0.9rem;
  color: #555;
}

/* Features */

.feature-group {
  margin-bottom: 10px;
}

.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.feature-header h4 {
  font-size: 1.1rem;
  margin: 0;
}

.feature-count {
  display: flex;
  align-items: center;
  gap: 5px;
}

.feature-count span {
  background: #f5f5f5;
  padding: 5px 10px;
  font-weight: bold;
  border-radius: 4px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.feature-list li {
  font-size: 0.95rem;
}

.feature-list i {
  color: green;
  margin-right: 5px;
}

/* Accordion Content */
.accordion-content {
  display: none;
  transition: all 0.6s ease-in-out;
}
.accordion-content.active {
  display: grid;
}

/* Responsive */
@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

.working-hours{
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.working-hour {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.working-hour:last-child {
  border-bottom: none;
}

.working-hour span {
  color: #333;
  font-size: 16px;
}

.working-hour strong {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

@media (max-width: 576px) {
  .working-hour {
    flex-direction: row;
    align-items: flex-start;
  }

  .working-hour strong {
    margin-top: 5px;
  }
}


.location-section {
    margin-top: 20px;
}

.map-preview-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}



.show-map-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    background-color: white;
    color: #007bff;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
}

.show-map-btn i {
    font-size: 18px;
}

.google-map {
    width: 100%;
    height: 300px;
    margin-top: 10px;
    border-radius: 8px;
}

/* Fullscreen Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    opacity: 1;
}

.custom-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-gallery .gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.custom-gallery .gallery-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    inset: 0px;
}

.custom-gallery .gallery-item.full {
    width: 100%;
}

.custom-gallery .gallery-item.half {
    width: calc(50% - 5px);
}

@media (max-width: 768px) {
    .custom-gallery .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .custom-gallery .gallery-item img {
        height: 150px;
    }
}

.close-btn {
    position: fixed;
    top: 0;
    right: 30px;
    font-size: 35px;
    color: #000;
    cursor: pointer;
    z-index: 10000;
}

.gallery-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    height: 100%;
    width: 100%;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .lightbox img {
        max-width: 90%;
        max-height: 50%;
    }
    .lightbox .prev, .lightbox .next {
        font-size: 30px;
    }
    .gallery-footer {
        flex-direction: row;
        padding: 15px;
    }
    .close-btn{
      right: 5px;
    }
}
