/* City Detail Pages Global Styles */
.city-detail-page {
  margin-top: 0;
}

/* Hero Section */
.city-hero {
  height: 80vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.city-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.city-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.city-badge {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
}

.city-hero h1 {
  font-size: 82px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.city-hero p {
  font-size: 20px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 40px;
}

.city-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Quick Info Grid */
.quick-info {
  padding: 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.info-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}
.info-card:hover {
  transform: translateY(-10px);
}
.info-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}
.info-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--dark);
}
.info-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Sections Common */
.city-sections {
  padding: 100px 0;
}
.section-title-wrap {
  margin-bottom: 60px;
}
.sub-title {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}
.section-title-wrap h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
}
.title-line {
  width: 80px;
  height: 5px;
  background: var(--primary);
  margin-top: 15px;
  border-radius: 5px;
}

.category-block {
  margin-bottom: 80px;
}
.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.category-header i {
  font-size: 24px;
  color: var(--primary);
}
.category-header h3 {
  font-size: 28px;
  font-weight: 700;
}

/* Landmark Cards */
.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.place-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: all 0.3s ease;
  cursor: pointer;
}
.place-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.place-img {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.btn-fav {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}
.btn-fav:hover { background: white; color: #e74c3c; transform: scale(1.1); }
.btn-fav.active { background: #e74c3c; color: white; border-color: #e74c3c; }
.btn-fav i { font-size: 18px; }

.place-info {
  padding: 25px;
}
.place-info h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.place-info p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 15px;
}
.place-tag {
  background: #f0f7ff;
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.place-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.btn-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Modal Styles */
.place-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.place-modal.active {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 800px;
  border-radius: 30px;
  overflow: hidden;
  animation: modalFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}
.modal-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}
.modal-header-img {
  height: 250px;
  background-size: cover;
  background-position: center;
}
.modal-info-wrap {
  padding: 40px;
}
.modal-info-wrap h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--dark);
}

.modal-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 8px 20px;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s;
}
.tab-btn.active {
  background: var(--primary);
  color: white;
}
.tab-content {
  display: none;
  line-height: 1.8;
  color: #444;
  font-size: 17px;
  animation: tabFadeIn 0.3s ease;
}
.tab-content.active {
  display: block;
}
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.map-info {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}
.map-info i {
  font-size: 24px;
  color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .places-grid,
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .city-hero h1 {
    font-size: 60px;
  }
}
@media (max-width: 768px) {
  .places-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .city-stats {
    gap: 30px;
    flex-wrap: wrap;
  }
  .modal-header-img {
    height: 200px;
  }
  .modal-info-wrap {
    padding: 25px;
  }
  .modal-info-wrap h2 {
    font-size: 28px;
  }
  .modal-tabs {
    overflow-x: auto;
    padding-bottom: 10px;
  }
}
