/**
 * Styles for the Floor Map page template
 */

/* Floor Map Section */
.floormap-section {
  margin-bottom: 80px;
}

.floormap-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
}

.floormap-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.floormap-image {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.floormap-image:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.floormap-details {
  margin-top: 40px;
}

.floormap-details-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.floormap-details-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--accent);
}

.floormap-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.floormap-detail-item {
  background-color: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 4px;
  transition: var(--transition);
}

.floormap-detail-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.floormap-detail-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.floormap-detail-list {
  list-style: none;
}

.floormap-detail-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.floormap-detail-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Access Section */
.access-section {
  margin-bottom: 80px;
  padding: 80px 0;
  background-color: var(--darker);
  position: relative;
}

.access-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/bg-dark.jpg') no-repeat center/cover;
  opacity: 0.05;
  z-index: 0;
}

.access-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.access-map {
  position: relative;
  width: 100%;
  height: 450px;
  background-color: #333;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.access-subtitle {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.access-title {
  font-size: 2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.access-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--accent);
}

.access-address {
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.access-methods {
  margin-bottom: 30px;
}

.access-method {
  margin-bottom: 20px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.access-method-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.access-method-icon {
  margin-right: 10px;
  color: var(--accent);
}

.access-method-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* Nearby Facilities */
.nearby-section {
  margin-bottom: 80px;
}

.nearby-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.nearby-tab {
  padding: 12px 25px;
  background-color: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--light);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nearby-tab:first-child {
  border-radius: 4px 0 0 4px;
}

.nearby-tab:last-child {
  border-radius: 0 4px 4px 0;
}

.nearby-tab.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

.nearby-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nearby-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.5s ease-in-out;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.nearby-card {
  background-color: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.nearby-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.nearby-card-image {
  height: 180px;
  overflow: hidden;
}

.nearby-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nearby-card:hover .nearby-card-image img {
  transform: scale(1.05);
}

.nearby-card-content {
  padding: 20px;
}

.nearby-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.nearby-card-info {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.nearby-card-icon {
  margin-right: 10px;
  color: var(--accent);
  width: 16px;
  text-align: center;
}

.nearby-card-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Transportation Options */
.transport-section {
  margin-bottom: 80px;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.transport-card {
  background-color: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 25px;
  transition: var(--transition);
}

.transport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.transport-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
}

.transport-card:hover .transport-icon {
  background-color: var(--accent);
  color: white;
}

.transport-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.transport-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Modal Lightbox */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.modal.open .modal-content {
  opacity: 1;
  transform: scale(1);
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--accent);
  transform: rotate(90deg);
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
  .access-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .access-map {
    height: 350px;
  }
}

@media screen and (max-width: 768px) {
  .nearby-tabs {
    flex-wrap: wrap;
  }

  .nearby-tab {
    margin-bottom: 10px;
    border-radius: 4px;
    flex-grow: 1;
    text-align: center;
  }

  .floormap-details-grid {
    grid-template-columns: 1fr;
  }
}
