/* ===== CONTACT PAGE STYLES ===== */

/* ===== Contact Hero Section ===== */
.contact-hero-section {
  position: relative;
  background: var(--gradient-brand);
  padding: var(--spacing-responsive-xl) 0 var(--spacing-responsive-lg);
  overflow: hidden;
  min-height: 400px;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-hero-header {
  margin-bottom: var(--spacing-xl);
}

.contact-hero-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-responsive-xxl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  color: var(--white-color);
}

.contact-hero-title .title-main {
  display: inline-block;
  color: var(--white-color);
  text-shadow: var(--hero-text-shadow);
}

.contact-hero-title .title-highlight {
  display: inline-block;
  color: var(--white-color);
  position: relative;
  padding: 0 var(--spacing-sm);
  text-shadow: var(--hero-text-shadow);
}

.contact-hero-title .title-highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--white-color);
  border-radius: var(--border-radius-pill);
  opacity: 0.8;
}

.contact-hero-subtitle {
  font-size: var(--font-size-responsive-md);
  color: var(--white-color);
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* Hero Decoration */
.contact-hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.decoration-shape {
  position: absolute;
  border-radius: var(--border-radius-circle);
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.decoration-shape.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.decoration-shape.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -50px;
  animation-delay: 2s;
}

.decoration-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-circle);
  animation: pulse 3s ease-in-out infinite;
}

.decoration-dot.dot-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0.5s;
}

.decoration-dot.dot-2 {
  top: 60%;
  right: 15%;
  animation-delay: 1s;
}

.decoration-dot.dot-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 1.5s;
}

/* ===== Main Contact Page ===== */
.modern-contact-page {
  padding: var(--spacing-responsive-xl) 0;
  background: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    var(--white-color) 50%,
    var(--gray-50) 100%
  );
}

/* ===== Social Links Section ===== */
.social-links-section {
  margin-bottom: var(--spacing-xxl);
}

.social-links-card {
  background: var(--white-color);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition-smooth);
}

.social-links-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.social-links-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
  margin-bottom: var(--spacing-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.social-links-title i {
  color: var(--secondary-color);
  font-size: 0.9em;
}

.social-links-wrapper {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: var(--primary-color);
  border-radius: var(--border-radius-circle);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: var(--font-size-xl);
}

.social-link:hover {
  background: var(--gradient-secondary);
  color: var(--white-color);
  transform: translateY(-6px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.social-link.facebook:hover {
  background: #1877f2;
}

.social-link.twitter:hover {
  background: #1da1f2;
}

.social-link.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-link.linkedin:hover {
  background: #0077b5;
}

.social-link.youtube:hover {
  background: #ff0000;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.section-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-responsive-xl);
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
  margin-bottom: var(--spacing-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.section-title i {
  color: var(--secondary-color);
  font-size: 0.8em;
}

.section-description {
  font-size: var(--font-size-responsive-md);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Location Items ===== */
.locations-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.modern-location-item {
  background: var(--white-color);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.modern-location-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.location-item-container {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 350px;
}

@media (min-width: 768px) {
  .location-item-container {
    grid-template-columns: 400px 1fr;
    min-height: 400px;
  }
}

@media (min-width: 992px) {
  .location-item-container {
    grid-template-columns: 450px 1fr;
  }
}

/* Location Map */
.location-item-map {
  position: relative;
  height: 100%;
  min-height: 300px;
  background: var(--gray-100);
  overflow: hidden;
  transition: none; /* Remove transition to prevent glitches */
}

@media (min-width: 768px) {
  .location-item-map {
    min-height: 100%;
  }
}

/* Map Overlay for Expanded State */
.map-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: calc(var(--z-modal) - 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.map-modal-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  max-height: 800px;
  background: var(--white-color);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.map-modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-modal-title {
  color: var(--white-color);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.map-modal-close {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-color);
  border: none;
  border-radius: var(--border-radius-circle);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: var(--font-size-xl);
}

.map-modal-close:hover {
  background: var(--white-color);
  transform: scale(1.1);
}

.map-modal-content {
  width: 100%;
  height: 100%;
}

.map-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-overlay {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  z-index: 10;
}

.map-expand-btn {
  background: var(--gradient-secondary);
  color: var(--white-color);
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.map-expand-btn:hover {
  background: var(--gradient-primary);
  transform: scale(1.05);
}

.location-map-embed {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.location-map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
  object-fit: cover;
}

.location-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  color: var(--gray-500);
  height: 100%;
  min-height: 300px;
}

.location-map-placeholder i {
  font-size: var(--icon-size-xxl);
  margin-bottom: var(--spacing-sm);
  opacity: 0.5;
}

.location-map-placeholder span {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

/* Location Content */
.location-item-content {
  padding: var(--spacing-xl);
}

.location-item-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.location-item-title i {
  color: var(--secondary-color);
  font-size: 0.8em;
}

/* Location Details Grid */
.location-details-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.location-detail-item {
  display: flex;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--gray-100);
}

.location-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.detail-content {
  flex: 1;
}

.detail-label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--spacing-xxs);
}

.detail-text {
  font-size: var(--font-size-base);
  color: var(--dark-color);
  line-height: var(--line-height-relaxed);
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-text a {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: var(--transition-smooth);
}

.detail-text a:hover {
  color: var(--secondary-color);
  transform: translateX(2px);
}

.detail-text a i {
  font-size: var(--font-size-sm);
}

/* Location Additional Info */
.location-additional-info {
  padding: var(--spacing-md);
  background: var(--gray-50);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-lg);
}

/* Location Footer */
.location-item-footer {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.get-directions-btn,
.call-now-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-pill);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.get-directions-btn {
  background: var(--gradient-secondary);
  color: var(--white-color);
}

.get-directions-btn:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white-color);
}

.call-now-btn {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.call-now-btn:hover {
  background: var(--secondary-color);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Location Item Decoration */
.location-item-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.modern-location-item:hover .location-item-decoration {
  transform: scaleX(1);
}

/* ===== No Locations Found ===== */
.no-locations-found {
  text-align: center;
  padding: var(--spacing-xxxl) var(--spacing-xl);
  background: var(--white-color);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
}

.no-locations-icon {
  font-size: var(--icon-size-xxl);
  color: var(--gray-400);
  margin-bottom: var(--spacing-md);
}

.no-locations-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-xl);
  color: var(--dark-color);
  margin-bottom: var(--spacing-sm);
}

.no-locations-text {
  font-size: var(--font-size-base);
  color: var(--gray-600);
}

/* ===== Contact Sidebar - REMOVED ===== */

/* ===== Pagination ===== */
.modern-pagination {
  margin-top: var(--spacing-xxl);
  text-align: center;
}

.pagination-wrapper {
  display: inline-flex;
  gap: var(--spacing-xs);
  align-items: center;
  background: var(--white-color);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-sm);
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--spacing-sm);
  color: var(--dark-color);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  font-weight: var(--font-weight-medium);
}

.pagination-wrapper .page-numbers:hover {
  background: var(--gradient-accent);
  color: var(--primary-color);
}

.pagination-wrapper .page-numbers.current {
  background: var(--gradient-secondary);
  color: var(--white-color);
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
  padding: 0 var(--spacing-md);
  gap: var(--spacing-xs);
}

/* ===== Animations ===== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .social-links-card {
    padding: var(--spacing-lg);
  }

  .social-link {
    width: 48px;
    height: 48px;
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 767px) {
  .contact-hero-title {
    font-size: var(--font-size-3xl);
  }

  .location-item-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .location-item-map {
    height: 250px;
    min-height: 250px;
  }

  .location-item-content {
    padding: var(--spacing-lg);
  }

  .location-details-grid {
    gap: var(--spacing-sm);
  }

  .location-item-footer {
    flex-direction: column;
  }

  .get-directions-btn,
  .call-now-btn {
    width: 100%;
    justify-content: center;
  }

  .social-links-wrapper {
    gap: var(--spacing-sm);
  }

  .social-link {
    width: 44px;
    height: 44px;
    font-size: var(--font-size-base);
  }
}

@media (max-width: 575px) {
  .contact-hero-section {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
  }

  .contact-hero-title {
    font-size: var(--font-size-2xl);
  }

  .contact-hero-subtitle {
    font-size: var(--font-size-base);
  }

  .section-title {
    font-size: var(--font-size-xl);
  }

  .location-item-title {
    font-size: var(--font-size-lg);
  }

  .location-item-content {
    padding: var(--spacing-md);
  }

  .detail-text {
    font-size: var(--font-size-sm);
  }

  .detail-text a {
    display: block;
    margin-bottom: var(--spacing-xs);
  }

  .location-item-map.expanded::before {
    top: 10px;
    font-size: var(--font-size-xs);
  }
}
