/* ===== COMPLETE CSS - MAP STYLES + COPYRIGHT PROTECTION ===== */
/* ===== PURPLE THEME APPLIED ===== */

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
}

#map { 
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

/* ===== ENHANCED HEADER WITH PURPLE THEME ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 8px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.flag-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-title {
  color: white;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans Devanagari', sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  line-height: 1.2;
}

.header-subtitle {
  color: rgba(255,255,255,0.95);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* ===== BOOTSTRAP HAMBURGER CUSTOMIZATION ===== */
.navbar-toggler {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  padding: 6px 10px;
  border-radius: 6px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 20px;
  height: 20px;
}

.navbar-info-icon {
  font-size: 16px;
}

/* ===== ENHANCED FAB BUTTONS - SINGLE LOCATION BUTTON ===== */
.fab-container {
  position: fixed;
  z-index: 1000;
  display: flex;
  gap: 12px;
}

.fab-container.bottom-left {
  bottom: 24px;
  left: 24px;
  flex-direction: column;
}

.fab-container.bottom-right {
  bottom: 24px;
  right: 24px;
  flex-direction: column;
}

.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  background: white;
  position: relative;
}

.fab:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.fab:active {
  transform: scale(0.95);
}

.fab-location {
  background: white;
  color: #5f6368;
}

.fab-location::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #667eea;
  border-radius: 50%;
  background: white;
}

.fab-location::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  z-index: 1;
}

.fab-location.locating::before {
  animation: locationPulse 1.5s infinite;
}

@keyframes locationPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.3);
    opacity: 0.5;
  }
}

/* Hide the emoji text content */
.fab-location {
  font-size: 0;
}

.fab-layers {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: none;
}

.fab-tooltip {
  position: absolute;
  background: #1f2937;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.fab:hover .fab-tooltip {
  opacity: 1;
}

/* Updated tooltip positioning for single button */
.fab-container.bottom-left .fab-tooltip {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
}

.fab-container.bottom-right .fab-tooltip {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 8px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.fab.locating {
  animation: none;
}

/* ===== ENHANCED SIDE PANEL ===== */
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  z-index: 1050;
  background: white;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.offcanvas {
  z-index: 1050;
}

.offcanvas-backdrop {
  z-index: 1040;
}

.panel-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.close-panel {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-panel:hover {
  background: rgba(255,255,255,0.3);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ===== INSTRUCTION CARD ===== */
.instruction-card {
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
  border: 2px solid #8b5cf6;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
}

.instruction-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.instruction-text {
  flex: 1;
}

.instruction-title {
  font-size: 14px;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 8px;
}

.instruction-steps {
  font-size: 12px;
  color: #5b21b6;
  line-height: 1.6;
}

.instruction-steps div {
  margin-bottom: 4px;
}

/* ===== FORM SECTIONS ===== */
.form-section {
  margin-bottom: 24px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.section-icon {
  font-size: 20px;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.label-badge {
  background: #e0e7ff;
  color: #4c1d95;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
  transition: all 0.2s;
  background: white;
  color: #1a1a1a;
  font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* ===== BUTTONS ===== */
.btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.btn-icon {
  font-size: 18px;
}

/* ===== ADDRESS PREVIEW CARD ===== */
.address-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 16px;
  border-radius: 12px;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.address-preview::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.zone-badge-large {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,0.25);
  margin-bottom: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.address-main {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 8px;
  word-break: break-word;
  line-height: 1.3;
  font-family: 'Noto Sans Devanagari', sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.address-english {
  font-size: 11px;
  text-align: center;
  opacity: 0.95;
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.address-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.action-btn {
  flex: 1;
  padding: 8px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  background: rgba(255,255,255,0.3);
}

.address-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 11px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.address-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.address-detail-label {
  opacity: 0.85;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.address-detail-value {
  font-weight: 700;
  font-size: 12px;
  font-family: 'Noto Sans Devanagari', sans-serif;
  line-height: 1.2;
}

/* ===== RESULT CARDS ===== */
.result-card {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  animation: slideIn 0.3s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: fit-content;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-success {
  background: #f0fdf4;
  border: 1px solid #10b981;
}

.result-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
}

.result-warning {
  background: #fffbeb;
  border: 1px solid #f59e0b;
}

.result-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}

.result-text {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
  white-space: nowrap;
}

#infoBanner {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  max-width: 350px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

#infoBanner.show {
  opacity: 1;
  transform: translateX(0);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.info-banner.show {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-icon {
  font-size: 20px;
}

/* ===== MAP LEGEND ===== */
.map-legend {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
  display: flex;
  gap: 20px;
  align-items: center;
  border: 2px solid #667eea;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100vw - 48px);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* ===== MOBILE BOTTOM SHEET ===== */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
  transform: translateY(calc(100% - 70px));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow: hidden;
  display: none;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-handle-container {
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 10px;
}

.sheet-preview {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.sheet-content {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 70px);
}

/* ===== STYLE SELECTOR ===== */
.terrain-toggle {
  display: none !important;
}

.style-selector {
  display: none !important;
}

.style-selector.show {
  display: flex;
}

.style-btn {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #374151;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.style-btn:hover {
  background: #f3f4f6;
  border-color: #667eea;
  transform: translateY(-2px);
}

.style-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ===== LEAFLET LAYER CONTROL - REPOSITIONED ===== */
.leaflet-control-layers {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  position: fixed !important;
  bottom: 84px !important;
  left: 24px !important;
  z-index: 1000 !important;
  margin: 0 !important;
}

.leaflet-top,
.leaflet-bottom {
  position: relative !important;
}

.leaflet-control-layers-toggle {
  width: 48px !important;
  height: 48px !important;
  background-size: 24px 24px !important;
  background-position: center !important;
  border-radius: 50% !important;
  background-color: white !important;
}

/* ===== INFO PANEL STYLING (COPYRIGHT & LEGAL) ===== */
.info-section {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}

.info-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.info-section-icon {
  font-size: 20px;
}

.info-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-section-text {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ===== COPYRIGHT NOTICE ===== */
.copyright-notice {
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.copyright-notice p {
  font-size: 13px;
  color: #4c1d95;
  line-height: 1.6;
  margin-bottom: 12px;
}

.copyright-notice p:last-child {
  margin-bottom: 0;
}

.copyright-notice strong {
  font-weight: 700;
  color: #5b21b6;
}

.copyright-subsection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.copyright-subsection h5 {
  font-size: 12px;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.copyright-subsection ul {
  list-style: none;
  padding: 0;
}

.copyright-subsection li {
  font-size: 12px;
  color: #5b21b6;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.copyright-subsection li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ===== INFO DETAILS ===== */
.info-detail {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
}

.info-detail:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #6b7280;
}

.info-value {
  color: #1f2937;
  font-weight: 600;
}

/* ===== TERMS CONTENT ===== */
.terms-content {
  margin-top: 12px;
}

.term-item {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.term-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.term-item h6 {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.term-item p {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.term-item ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.term-item li {
  font-size: 12px;
  color: #4b5563;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.term-item li:before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #667eea;
}

/* ===== CONTACT BOX ===== */
.contact-box {
  background: #f0f9ff;
  border: 2px solid #0284c7;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.contact-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(2, 132, 199, 0.2);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  color: #0c4a6e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 13px;
  color: #1e40af;
  font-weight: 600;
  margin-top: 2px;
  word-break: break-all;
}

.contact-value a {
  color: #1e40af;
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* ===== LEGAL NOTICE ===== */
.legal-notice {
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.legal-notice p {
  font-size: 12px;
  color: #7f1d1d;
  line-height: 1.6;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.legal-notice ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.legal-notice li {
  font-size: 12px;
  color: #991b1b;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.legal-notice li:before {
  content: "⚠";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ===== INFO FOOTER ===== */
.info-footer {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-top: 20px;
  border: 1px solid #e5e7eb;
}

.info-footer p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

/* ===== CUSTOM POPUP ===== */
.leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.leaflet-popup-tip {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== CUSTOM MAP CONTROLS ===== */
.leaflet-bar a {
  border-radius: 0 !important;
}

.leaflet-bar a:first-child {
  border-radius: 8px 8px 0 0 !important;
}

.leaflet-bar a:last-child {
  border-radius: 0 0 8px 8px !important;
}

.leaflet-top {
  top: 60px !important;
}

.leaflet-left {
  left: 10px !important;
}

.leaflet-control-zoom {
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  border-radius: 8px !important;
}

.leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 20px !important;
}

/* ===== LEAFLET ATTRIBUTION - BOTTOM RIGHT TINY ===== */
.leaflet-control-attribution {
  position: fixed !important;
  bottom: 6px !important;
  right: 6px !important;
  left: auto !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
  font-size: 8px !important;
  line-height: 1.2 !important;
  max-width: 60px !important;
  z-index: 998 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s !important;
}

.leaflet-control-attribution:hover {
  opacity: 1 !important;
}

.leaflet-control-attribution a {
  color: #5f6368 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 8px !important;
}

.leaflet-control-attribution a:hover {
  text-decoration: underline !important;
  color: #667eea !important;
}

/* ===== SCROLLBAR ===== */
.panel-content::-webkit-scrollbar,
.sheet-content::-webkit-scrollbar {
  width: 6px;
}

.panel-content::-webkit-scrollbar-track,
.sheet-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.panel-content::-webkit-scrollbar-thumb,
.sheet-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 10px;
}

.panel-content::-webkit-scrollbar-thumb:hover,
.sheet-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #764ba2, #667eea);
}

.style-selector::-webkit-scrollbar {
  height: 6px;
}

.style-selector::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.style-selector::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 10px;
}

.style-selector::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #764ba2, #667eea);
}

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== TABLET & MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .side-panel {
    width: 100%;
    max-width: 450px;
  }
  
  .header {
    padding: 6px 12px;
    min-height: 44px;
  }
  
  .header-title {
    font-size: 13px;
  }
  
  .header-subtitle {
    font-size: 8px;
  }
  
  .flag-icon {
    font-size: 20px;
  }
  
  .navbar-toggler {
    padding: 5px 8px;
  }
  
  .navbar-toggler-icon {
    width: 18px;
    height: 18px;
  }
  
  .navbar-info-icon {
    font-size: 14px;
  }
  
  .leaflet-top {
    top: 52px !important;
  }
  
  .leaflet-control-zoom a {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 18px !important;
  }

  .map-legend {
    bottom: 20px;
    padding: 8px 12px;
    gap: 12px;
    border-radius: 8px;
    max-width: calc(100vw - 32px);
  }

  .legend-item {
    font-size: 10px;
    gap: 6px;
    font-weight: 600;
  }

  .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
  }

  .info-section {
    padding: 12px;
  }

  .copyright-notice {
    padding: 12px;
  }

  .contact-box {
    padding: 12px;
  }

  .legal-notice {
    padding: 12px;
  }

  .info-section-title {
    font-size: 12px;
  }

  .info-section-text {
    font-size: 12px;
  }

  .copyright-notice p {
    font-size: 12px;
  }
  
  .leaflet-control-layers {
    bottom: 84px !important;
  }
  
  .leaflet-control-attribution {
    font-size: 7px !important;
    padding: 2px 5px !important;
    max-width: 50px !important;
    right: 4px !important;
    bottom: 4px !important;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 5px 10px;
    min-height: 40px;
  }
  
  .header-content {
    gap: 8px;
  }
  
  .header-title {
    font-size: 12px;
  }
  
  .header-subtitle {
    font-size: 7px;
  }
  
  .flag-icon {
    font-size: 18px;
  }
  
  .navbar-toggler {
    padding: 4px 7px;
  }
  
  .navbar-toggler-icon {
    width: 16px;
    height: 16px;
  }
  
  .navbar-info-icon {
    font-size: 13px;
  }
  
  .leaflet-top {
    top: 48px !important;
  }
  
  .leaflet-control-zoom a {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 16px !important;
  }
  
  .address-preview {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
  }
  
  .zone-badge-large {
    padding: 3px 8px;
    font-size: 9px;
    margin-bottom: 6px;
  }
  
  .address-main {
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  
  .address-english {
    font-size: 10px;
    margin-bottom: 10px;
  }
  
  .address-actions {
    gap: 5px;
    margin-top: 10px;
  }
  
  .action-btn {
    padding: 6px;
    font-size: 10px;
    border-radius: 6px;
    gap: 3px;
  }
  
  .address-details {
    gap: 8px;
    font-size: 10px;
    padding-top: 10px;
  }
  
  .address-detail-label {
    font-size: 8px;
  }
  
  .address-detail-value {
    font-size: 11px;
  }
  
  .result-card {
    margin-top: 6px;
    padding: 5px 8px;
    border-radius: 5px;
    gap: 5px;
  }
  
  .result-icon {
    font-size: 14px;
  }
  
  .result-text {
    font-size: 10px;
  }

  .map-legend {
    bottom: 16px;
    padding: 6px 10px;
    gap: 8px;
    font-size: 9px;
  }

  .legend-item {
    font-size: 9px;
    gap: 4px;
  }

  .legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border-width: 1px;
  }
  
  .legend-item span {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .leaflet-control-attribution {
    font-size: 6px !important;
    padding: 1px 4px !important;
    max-width: 40px !important;
    line-height: 1.1 !important;
    right: 4px !important;
    bottom: 4px !important;
  }
  
  .leaflet-control-attribution a {
    font-size: 6px !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .map-legend {
    bottom: 12px;
    padding: 6px 10px;
    gap: 10px;
  }

  .legend-item {
    font-size: 9px;
  }

  .legend-color {
    width: 14px;
    height: 14px;
  }
  
  .leaflet-control-attribution {
    font-size: 6px !important;
    padding: 1px 4px !important;
    right: 4px !important;
    bottom: 4px !important;
  }
}

@media (min-width: 1025px) {
  .fab-container.bottom-right {
    right: 474px;
  }

  #map {
    padding-top: 0;
  }
}

@media print {
  .info-section {
    page-break-inside: avoid;
    background: white;
    border: 1px solid #999;
  }

  .copyright-notice,
  .contact-box,
  .legal-notice {
    background: white;
    border: 1px solid #999;
  }

  a {
    color: #0c4a6e;
  }
}
