/* Stores Page Specific Styles */

.page-header {
  margin-top: 80px;
  padding: 60px 0;
  background: linear-gradient(135deg, #1e4440 0%, #234b46 100%);
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 20px;
  opacity: 0.9;
}

.stores-section {
  padding: 60px 0;
  background-color: #f7f7f6;
}

.stores-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 0 20px;
}

/* Map Container */
.map-container {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 120px;
  height: fit-content;
}

.turkey-map {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.turkey-map img {
  width: 100%;
  height: auto;
  display: block;
}

.map-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #1e4440;
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  z-index: 10;
}

.map-pin::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.map-pin:hover,
.map-pin.active {
  background-color: #f7941d;
  transform: rotate(-45deg) translate(-50%, -50%) scale(1.3);
  z-index: 20;
}

.map-pin.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 148, 29, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(247, 148, 29, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(247, 148, 29, 0);
  }
}

/* Stores List Container */
.stores-list-container {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  max-height: 800px;
  overflow-y: auto;
}

.stores-search {
  position: relative;
  margin-bottom: 30px;
}

.stores-search input {
  width: 100%;
  padding: 15px 45px 15px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.stores-search input:focus {
  outline: none;
  border-color: #1e4440;
}

.stores-search i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9b9c9d;
  font-size: 18px;
}

.stores-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.store-item {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.store-item:hover {
  border-color: #1e4440;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.store-item.active {
  border-color: #f7941d;
  box-shadow: 0 5px 20px rgba(247, 148, 29, 0.2);
}

.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: #f7f7f6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.store-header:hover {
  background-color: #e8e8e8;
}

.store-item.active .store-header {
  background-color: #1e4440;
  color: white;
}

.store-header h3 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.store-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.store-item.expanded .store-toggle {
  transform: rotate(180deg);
}

.store-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.store-item.expanded .store-details {
  max-height: 2000px;
}

.store-address {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.store-address:last-child {
  border-bottom: none;
}

.store-address h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1e4440;
  margin-bottom: 10px;
}

.store-address p {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-address p i {
  color: #f7941d;
  width: 16px;
}

/* Scrollbar Styling */
.stores-list-container::-webkit-scrollbar {
  width: 8px;
}

.stores-list-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.stores-list-container::-webkit-scrollbar-thumb {
  background: #1e4440;
  border-radius: 10px;
}

.stores-list-container::-webkit-scrollbar-thumb:hover {
  background: #f7941d;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stores-layout {
    grid-template-columns: 1fr;
  }

  .map-container {
    position: relative;
    top: 0;
    order: 2;
  }

  .stores-list-container {
    order: 1;
    max-height: 600px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .page-header p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 40px 0;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 16px;
  }

  .stores-section {
    padding: 30px 0;
  }

  .map-container,
  .stores-list-container {
    padding: 20px;
  }

  .stores-list-container {
    max-height: 500px;
  }

  .map-pin {
    width: 25px;
    height: 25px;
  }

  .map-pin::after {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 24px;
  }

  .page-header p {
    font-size: 14px;
  }

  .store-header h3 {
    font-size: 16px;
  }

  .store-address h4 {
    font-size: 16px;
  }

  .store-address p {
    font-size: 13px;
  }
}
