#osmmap {
  height: 100%;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#taxbox {
  background: #ffce00;
  border: 2px solid #000000;
  width: 100%;
  padding: 15px !important;
  color: black;
}

.modal-body a:link, 
.modal-body a:focus, 
.modal-body a:visited {
  color: black;
}

.modal-body a:hover {
  color: #ffce00;
}

.rTable { 
  display: table; 
}

.rTableRow { 
  display: table-row; 
  width: 100%;
}

.rTableHeading { 
  display: table-header-group; 
}

.rTableBody { 
  display: table-row-group; 
}

.rTableFoot { 
  display: table-footer-group; 
}

.rTableCell, 
.rTableHead { 
  display: table-cell; 
  padding: 3px 10px !important;  
  width: 90%;
}

.rTableCell2 { 
  display: table-cell; 
  padding: 3px 10px !important;  
  width: 25%;
}

.float_on_top {
  bottom: 1px;
  z-index: 1050;
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
}

.float_on_top span {
  padding-left: 10px;
  padding-right: 10px;
}

.red-ribbon span {
  display: block;
  padding: 5px 0;
  background-color: #FF5733;
  box-shadow: 0 5px 10px rgba(0,0,0,.1);
  color: #fff;
  font: 700 13px/1 'Lato', sans-serif;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  text-transform: uppercase;
  text-align: center;
}

.navbar {
  position: relative;
  min-height: 50px;
  margin-bottom: 0px; 
  border: 0px solid transparent;
  border-radius: 0px;
}

.taxi-bar {
  background: #ffce00 !important;
}

.navbar-inverse .navbar-collapse {
  background: #ffce00 !important;
}

.navbar-inverse .navbar-nav > li > a {
  color: #000000;
  display: block;
  font-family: "Oswald", sans-serif;
  line-height: 50px;
  position: relative;
  text-transform: uppercase;
}

.navbar-inverse .navbar-toggle:hover, 
.navbar-inverse .navbar-toggle:focus {
  background-color: transparent;
}

.navbar-inverse .navbar-toggle {
  border-color: transparent;
}

.overlay_nointernet {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  display: none;
}

/*.leaflet-tile {
  -webkit-filter: hue-rotate(180deg) invert(100%);
}*/

#action_buttons {
  border-top: 1px solid #ccc;
  padding-top: 15px;
  padding-left: 5px;
  padding-right: 5px;
  bottom: 0px;
  z-index: 1050;
  position: fixed;
  -webkit-box-shadow: 0px 1px 1px rgba(50, 50, 50, 0.75);
  -moz-box-shadow: 0px 1px 1px rgba(50, 50, 50, 0.75);
  box-shadow: 0px 1px 1px rgba(50, 50, 50, 0.75);
  background: white;
}

.leaflet-zoom-animated {
  bottom: 6px !important;
}

.car-popup {
  min-width: 220px;
  font-size: 14px;
}

.car-popup h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.car-info p {
  margin: 5px 0;
  display: flex;
  align-items: center;
}

.car-info i {
  width: 20px;
  color: #7f8c8d;
  margin-right: 8px;
}

.popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.whatsapp-btn, 
.btn-call {
  flex: 1;
  padding: 6px 10px;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #128C7E;
}

.btn-call {
  background: #3498db;
  color: white;
  border: none;
  cursor: pointer;
}

.btn-call:hover {
  background: #2980b9;
}

.accuracy-warning {
  padding: 15px;
  background-color: #fff3cd;
  border-left: 5px solid #ffc107;
}

.accuracy-warning h4 {
  color: #856404;
  margin-bottom: 15px;
}

.accuracy-warning ol {
  padding-left: 20px;
}

.accuracy-warning button {
  margin-top: 15px;
}

.nearby-taxis-container {
  font-family: Arial, sans-serif;
  max-height: 70vh;
  overflow-y: auto;
}

.nearby-taxis-container h4 {
  margin: 10px 0 5px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.taxi-list, 
.center-list {
  margin-bottom: 10px;
}

.taxi-item, 
.center-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin: 3px 0;
  border-radius: 4px;
}

.taxi-item.even {
  background-color: #f8f9fa;
}

.taxi-item.odd {
  background-color: #e9ecef;
}

.center-item {
  background-color: #f1f8ff;
}

.taxi-info, 
.center-info {
  flex-grow: 1;
}

.taxi-name, 
.center-name {
  font-weight: bold;
  margin-bottom: 3px;
}

.taxi-details {
  display: flex;
  gap: 10px;
  font-size: 0.85em;
  color: #666;
}

.taxi-details span {
  display: flex;
  align-items: center;
}

.taxi-actions, 
.center-actions {
  display: flex;
  gap: 5px;
}

.call-btn, 
.info-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: white;
  text-decoration: none;
}

.call-btn {
  background-color: #28a745;
}

.call-btn:hover {
  background-color: #218838;
}

.info-btn {
  background-color: #17a2b8;
}

.info-btn:hover {
  background-color: #138496;
}

.no-taxis {
  padding: 10px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

.selected-location-popup {
  text-align: center;
  padding: 10px;
}

.selected-location-popup h4 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.1em;
}

.selected-location-popup p {
  margin: 10px 0;
  font-size: 0.9em;
  color: #7f8c8d;
}

.selected-location-popup button {
  margin-top: 5px;
  width: 100%;
}

.selected-location-popup {
  text-align: center;
  min-width: 250px;
  padding: 10px;
}

.selected-location-popup h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.selected-location-popup .address,
.selected-location-popup .coordinates {
  margin: 10px 0;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 0.9em;
  word-break: break-word;
}

.selected-location-popup .actions {
  margin-top: 15px;
}

.show-nearby-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.show-nearby-btn:hover {
  background-color: #218838;
}

.show-nearby-btn i {
  font-size: 1.1em;
}

.taxi-info, 
.center-info {
  flex-grow: 1;
  padding-right: 10px;
}

.taxi-name, 
.center-name {
  font-weight: bold;
  margin-bottom: 3px;
  color: #2c3e50;
}

.taxi-type {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 5px;
}

.taxi-distance, 
.taxi-phone, 
.center-phone {
  display: flex;
  align-items: center;
  font-size: 0.85em;
  color: #555;
  margin: 3px 0;
}

.taxi-distance i, 
.taxi-phone i, 
.center-phone i {
  margin-right: 5px;
  width: 15px;
  text-align: center;
}

.eta {
  margin-left: 10px;
  color: #28a745;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.2s;
}

.action-btn:hover {
  transform: scale(1.1);
}

.action-btn.phone {
  background-color: #28a745;
}

.action-btn.whatsapp {
  background-color: #25D366;
}

.action-btn.website {
  background-color: #17a2b8;
}

.car-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin: 10px 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.car-card-header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.car-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
}

.car-info {
  flex: 1;
}

.car-name {
  font-size: 2.0rem;
  font-weight: bold;
}

.car-company {
  font-size: 2.0rem;
  color: #666;
  font-weight: bold;
}

.car-type,
.car-distance {
  font-size: 1.5rem;
  color: #444;
  margin-top: 2px;
}

.car-contact {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-btn {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff !important;
  font-size: 1.5rem;
  white-space: nowrap;
}

.contact-btn.phone { 
  background-color: #28a745; 
}

.contact-btn.whatsapp { 
  background-color: #25d366; 
}

.contact-btn.website { 
  background-color: #6c757d; 
}

.contact-btn i {
  margin-right: 6px;
}

@media screen and (max-width: 768px) {
  .side-collapse-container {
    width: 100%;
    position: relative;
    left: 0;
    transition: left .4s;
  }
  
  .side-collapse-container.out {
    left: 200px;
  }
  
  .side-collapse {
    top: 50px;
    bottom: 0;
    left: 0;
    width: 200px;
    position: fixed;
    overflow: hidden;
    transition: width .4s;
  }
  
  .side-collapse.in {
    width: 0;
  }
  
  .logo {
    height: 35px;
    position: initial;
  }

  .logo img {
    max-height: 30px;
    max-width: 240px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -o-transform: translateY(-50%);
  }
  
  .navbar {
    border-radius: 0px;
    border-color: #080808;
  }
  
  .navbar-inverse {
    background-color: #080808;
    border-color: #080808;
  }
  
  .navbar-collapse {
    background-color: #080808;
  }
  
  .navbar-inverse .navbar-nav > li > a {
    color: #ffff;
    display: block;
    font-family: "Oswald", sans-serif;
    line-height: 15px;
    position: relative;
    text-transform: uppercase;
  }
  
  .navbar-inverse .navbar-collapse {
    background: #080808 !important;
  }
}

@media (max-width: 600px) {
  .car-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .car-logo {
    width: 50px;
    height: 50px;
  }

  .car-contact {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Lisätyt tyylit asetusnäkymälle */
			.consent-settings-modal {
				display: none;
				position: fixed;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				background: white;
				padding: 20px;
				border-radius: 5px;
				box-shadow: 0 0 20px rgba(0,0,0,0.2);
				z-index: 10000;
				max-width: 90%;
				width: 500px;
				max-height: 80vh;
				overflow-y: auto;
			}
			
			.consent-settings-overlay {
				display: none;
				position: fixed;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				background: rgba(0,0,0,0.5);
				z-index: 9999;
			}
			
			.consent-category {
				margin-bottom: 15px;
				padding-bottom: 15px;
				border-bottom: 1px solid #eee;
			}
			
			.consent-category h3 {
				margin-top: 0;
				display: flex;
				justify-content: space-between;
				align-items: center;
			}
			
			.consent-toggle {
				position: relative;
				display: inline-block;
				width: 50px;
				height: 24px;
			}
			
			.consent-toggle input {
				opacity: 0;
				width: 0;
				height: 0;
			}
			
			.consent-slider {
				position: absolute;
				cursor: pointer;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				background-color: #ccc;
				transition: .4s;
				border-radius: 24px;
			}
			
			.consent-slider:before {
				position: absolute;
				content: "";
				height: 16px;
				width: 16px;
				left: 4px;
				bottom: 4px;
				background-color: white;
				transition: .4s;
				border-radius: 50%;
			}
			
			input:checked + .consent-slider {
				background-color: #2196F3;
			}
			
			input:checked + .consent-slider:before {
				transform: translateX(26px);
			}
			
			.consent-description {
				font-size: 0.9em;
				color: #666;
				margin-top: 5px;
			}
			
			.consent-buttons {
				display: flex;
				justify-content: space-between;
				margin-top: 20px;
			}