/**
 * Plugin: Location Details
 * Description: Connect In Cloud HTML/CSS implementation + Archive AJAX Template
 */

:root {
  --navy: #071f4d;
  --navy-2: #0d2b67;
  --blue: #174ea6;
  --orange: #ff8a00;
  --orange-dark: #f57c00;
  --light: #f4f7fb;
  --border: #e3e8f2;
  --text: #16233b;
  --muted: #6d7b95;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(7, 31, 77, 0.08);
  --shadow-hover: 0 20px 40px rgba(7, 31, 77, 0.12);
  --radius: 18px;
  --container: 1340px; /* UPDATED CONTAINER WIDTH */
}

.location-details-page {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

.location-details-page img { max-width: 100%; display: block; }
.location-details-page a { text-decoration: none; color: inherit; }

/* === Force Sections to Break Out of Theme Container === */
.location-details-page section,
.location-details-page .trust-strip,
.location-details-page .cta-bar {
  width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.location-details-page section { padding: 100px 0; }

/* === NEW MARGINS FOR TEXT ELEMENTS === */
.location-details-page h2 { margin-bottom: 24px; }
.location-details-page h3 { margin-bottom: 18px; }
.location-details-page h4 { margin-bottom: 14px; }
.location-details-page p { margin-bottom: 20px; line-height: 1.65; }
.location-details-page p:last-child { margin-bottom: 0; }

/* Typography */
.section-title { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 24px; color: var(--navy); }
.section-title span, .accent { color: var(--orange); }
.section-kicker { color: var(--orange); text-transform: uppercase; font-weight: 800; letter-spacing: .1em; font-size: 13px; margin-bottom: 12px; }
.section-lead { color: var(--muted); max-width: 1340px; margin-bottom: 45px; font-size: 18px; }

/* Grids */
.challenge-grid, .solution-grid, .feature-grid, .industry-grid, .why-grid, .content-grid, .three-grid { display: grid; gap: 24px; }

/* Adjusted Challenge Grid to make Right Section Wider */
.challenge-grid { grid-template-columns: 0.85fr 1.15fr; }

.solution-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(5, 1fr); }
.industry-grid { grid-template-columns: repeat(4, 1fr); }
.why-grid { grid-template-columns: repeat(6, 1fr); }
.content-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.three-grid { grid-template-columns: repeat(3, 1fr); }

/* === ANIMATIONS & HOVER EFFECTS === */
.hover-lift { transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.hover-lift-subtle { transition: transform 0.4s ease; }
.hover-lift-subtle:hover { transform: translateY(-4px); }
.hover-scale { transition: transform 0.3s ease, background 0.3s ease; }
.hover-scale:hover { transform: scale(1.05); background: rgba(255,255,255,0.1); }
.hover-scale-subtle { transition: transform 0.3s ease; }
.hover-scale-subtle:hover { transform: scale(1.02); }
.pulse-hover { transition: transform 0.3s ease; }
.soft-card:hover .pulse-hover { transform: scale(1.15) rotate(5deg); background: var(--orange); color: #fff; border-color: var(--orange); }
.border-glow { transition: border-color 0.4s ease, box-shadow 0.4s ease; border: 1px solid transparent; }
.border-glow:hover { border-color: #d0e1fd; box-shadow: 0 15px 35px rgba(23, 78, 166, 0.1); }
.border-glow-orange { transition: border-color 0.4s ease, box-shadow 0.4s ease; border: 1px solid transparent; }
.border-glow-orange:hover { border-color: #ffd8a5; box-shadow: 0 15px 35px rgba(255, 138, 0, 0.15); }
.hover-img-scale { transition: transform 0.6s ease; }
.group:hover .hover-img-scale { transform: scale(1.03); }
.overflow-hidden { overflow: hidden; }

/* Buttons */
.location-details-page .btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 26px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: all 0.3s ease; position: relative; z-index: 1; overflow: hidden; cursor: pointer; }
.location-details-page .btn-primary { background: linear-gradient(180deg, #ff9c1c, var(--orange)); color: #fff; border: none; box-shadow: 0 10px 20px rgba(255, 138, 0, 0.25); }
.location-details-page .btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #ffaa33, #f57c00); opacity: 0; transition: opacity 0.3s ease; z-index: -1; }
.location-details-page .btn-primary:hover::before { opacity: 1; }
.location-details-page .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(255, 138, 0, 0.35); color: #fff; }
.location-details-page .btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.location-details-page .btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }

/* Keyframes */
@keyframes float1 { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(0.9); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes float2 { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-30px, 50px) scale(1.2); } 66% { transform: translate(20px, -20px) scale(0.8); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes pulseSlow { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,138,0,0.4); } 70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255,138,0,0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,138,0,0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Applied Keyframes */
.pulse-slow { animation: pulseSlow 3s infinite; }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.2s !important; }
.delay-2 { animation-delay: 0.4s !important; }
.delay-3 { animation-delay: 0.6s !important; }
.delay-4 { animation-delay: 0.8s !important; }

/* Background Orbs */
.relative-overflow { position: relative; overflow: hidden; }
.relative-z { position: relative; z-index: 10; }
.animated-bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 1; opacity: 0.6; }
.orb-1 { width: 400px; height: 400px; background: rgba(255, 138, 0, 0.15); top: -100px; right: -100px; animation: float1 18s infinite ease-in-out; }
.orb-2 { width: 500px; height: 500px; background: rgba(23, 78, 166, 0.2); bottom: -150px; left: -150px; animation: float2 22s infinite ease-in-out; }
.orb-small { width: 250px; height: 250px; background: rgba(255, 138, 0, 0.2); bottom: -50px; right: -50px; animation: float1 12s infinite ease-in-out; filter: blur(50px); }

/* Hero */
.hero { background: linear-gradient(135deg, #071f4d 0%, #0d2b67 50%, #071f4d 100%); color: #fff; position: relative; padding: 120px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { color: #ffb14a; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.03em; max-width: 720px; margin-bottom: 20px; color: #fff; }
.hero h1 span { color: var(--orange); }
.hero p { color: rgba(255,255,255,.88); max-width: 640px; font-size: 18px; margin-bottom: 30px; }
.hero-bullets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 30px 0 35px; }
.mini-pill { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); border-radius: 14px; padding: 14px 12px; text-align: center; font-size: 13px; font-weight: 600; color: #fff; backdrop-filter: blur(10px); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dashboard-graphic { border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.3); width: 100%; display: block; border: 1px solid rgba(255,255,255,0.1); }

/* Trust Strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; overflow:hidden }
.trust-item { padding: 20px; text-align: center; border-right: 1px solid var(--border); font-weight: 700; color: var(--navy); font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 82px; height: 82px; border-radius: 50%; object-fit: contain; transition: transform 0.3s ease; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)); }
.trust-item:hover .trust-icon { transform: scale(1.15) translateY(2px); }
.trust-icon-placeholder { width: 82px; height: 82px; background: #f0f4f8; border-radius: 50%; }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.soft-card { background: linear-gradient(180deg, #ffffff, #fbfcff); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.dark-card { background: linear-gradient(135deg, #0a255a 0%, #071f4d 100%); border-radius: 24px; color: #fff; padding: 40px; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(7,31,77,0.2); }
.dark-card::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255,138,0,.18), rgba(255,138,0,0)); }

.list { margin: 20px 0 0; padding: 0; list-style: none; }
.list li { padding-left: 24px; position: relative; margin: 0 0 14px; color: #40506f; font-size: 16px; }
.list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); position: absolute; left: 0; top: .6em; }
.dark-card .list li { color: rgba(255,255,255,.9); }
.list-success li::before { background: #10b981; } 

/* Solution Image (4:3) */
.solution-image { width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 20px; background-color: #f4f7fb; }

/* Industry Image */
.industry-image { border-radius: 18px; min-height: 180px; position: relative; overflow: hidden; }
.industry-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)), radial-gradient(circle at 80% 20%, rgba(255,138,0,.14), transparent 28%); }

.icon-badge { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: #fff5e7; color: var(--orange); font-size: 24px; font-weight: 800; margin-bottom: 20px; border: 1px solid #ffd8a5; }
.card h3, .soft-card h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; color: var(--navy); }
.card h4, .soft-card h4 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; color: var(--navy); }
.card p, .soft-card p, .dark-card p { color: var(--muted); font-size: 16px; }
.dark-card p, .dark-card h3 { color: #fff; }

/* Comparison Section */
.comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.vs { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(180deg, #ff9b1b, #ff8a00); color: #fff; font-weight: 900; font-size: 32px; box-shadow: 0 12px 24px rgba(255,138,0,.25); align-self: center; z-index: 2; border: 4px solid #fff; }
.comparison .card { height: 100%; padding: 40px; }

/* Force Cloud Box text to be readable over light backgrounds */
.cloud-box h3 { color: var(--navy) !important; }
.cloud-box .list li { color: var(--navy) !important; }

/* Metrics */
.metric-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.metric { text-align: center; padding: 24px 12px; border-right: 1px solid var(--border); }
.metric:last-child { border-right: 0; }
.metric .big { font-size: 38px; line-height: 1; font-weight: 800; color: var(--orange); margin-bottom: 10px; }
.metric .small { color: var(--muted); font-weight: 600; font-size: 15px; }

/* Blog Area */
.blog-area { background: linear-gradient(180deg, #ffffff, #fbfdff); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.btn-text { color: var(--orange); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; transition: transform 0.3s ease; }
.btn-text:hover { transform: translateX(5px); color: var(--orange-dark); }

/* CTA Bar */
.cta-bar { background: var(--navy); color: #fff; padding: 30px 0; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 24px; align-items: center; position: relative; z-index: 2; }
.cta-title { font-size: 32px; font-weight: 800; line-height: 1.1; margin-bottom: 0; }
.cta-points { display: flex; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,.9); font-weight: 600; font-size: 15px; }
.cta-points span i { color: var(--orange); margin-right: 5px; }

/* ==========================================================================
   ARCHIVE PAGE (AJAX SEARCH & FILTER) STYLES
   ========================================================================== */

.filter-bar { display: flex; background: #fff; padding: 16px; border-radius: 100px; box-shadow: 0 15px 35px rgba(7, 31, 77, 0.08); gap: 15px; align-items: center; max-width: 900px; margin: -80px auto 0; position: relative; z-index: 20; }
.filter-group { flex: 1; display: flex; align-items: center; background: #f4f7fb; border-radius: 50px; padding: 5px 20px; border: 1px solid transparent; transition: border 0.3s ease; }
.filter-group:focus-within { border-color: var(--orange); background: #fff; }
.filter-group input, .filter-group select { width: 100%; border: none; background: transparent; padding: 12px 10px; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--navy); outline: none; -webkit-appearance: none; }
.filter-group.search-group i { font-style: normal; opacity: 0.5; font-size: 18px; }
.filter-bar .btn-primary { border-radius: 50px; padding: 16px 32px; white-space: nowrap; }

.loc-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; }
.loc-card-img { height: 200px; background-size: cover; background-position: center; border-bottom: 4px solid var(--orange); }
.loc-card-content { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.loc-card-content h3 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }

.results-section { position: relative; }
.loc-loader { position: absolute; inset: 0; background: rgba(244, 247, 251, 0.7); z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding-top: 100px; opacity: 0; visibility: hidden; backdrop-filter: blur(4px); transition: all 0.3s ease; }
.loc-loader.active { opacity: 1; visibility: visible; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(255, 138, 0, 0.2); border-top-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite; }

.loc-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 50px; }
.loc-pagination a, .loc-pagination span { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 12px; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid var(--border); transition: all 0.3s ease; }
.loc-pagination a:hover { background: #f4f7fb; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.loc-pagination span.current { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 8px 20px rgba(255, 138, 0, 0.3); }
.loc-pagination a.next, .loc-pagination a.prev { width: auto; padding: 0 20px; }

.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 0; background: #fff; border-radius: 20px; border: 1px dashed var(--border); }

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .hero-grid, .challenge-grid, .content-grid, .cta-grid, .solution-grid, .feature-grid, .industry-grid, .why-grid, .metric-row, .three-grid { grid-template-columns: 1fr 1fr; }
  .hero-bullets, .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item { border-bottom: 1px solid var(--border); }
  .trust-item:nth-child(3n) { border-right: 0; }
  .comparison { grid-template-columns: 1fr; gap: 40px; }
  .vs { margin: -60px auto -60px; position: relative; }
}

@media (max-width: 768px) {
  .container { width: min(var(--container), calc(100% - 30px)); }
  .hero-grid, .challenge-grid, .content-grid, .cta-grid, .solution-grid, .feature-grid, .industry-grid, .why-grid, .metric-row, .three-grid, .hero-bullets, .trust-grid { grid-template-columns: 1fr; }
  .location-details-page section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; }
  .hero-grid { padding: 20px 0; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--border); padding: 20px; flex-direction: row; justify-content: flex-start; }
  .trust-item:last-child { border-bottom: 0; }
  .metric { border-right: 0; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .metric:last-child { border-bottom: 0; }
  .cta-title { font-size: 26px; }
  .hero-bullets { grid-template-columns: 1fr 1fr; }
  .vs { margin: -30px auto -30px; width: 60px; height: 60px; font-size: 20px; }
  .filter-bar { flex-direction: column; border-radius: 20px; margin-top: -40px; padding: 20px; }
  .filter-group { width: 100%; border-radius: 12px; }
  .filter-bar .btn-primary { width: 100%; border-radius: 12px; }
}