/**
 * The MIT License (MIT)
 *
 * Copyright (c) Camptocamp SA
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

$map-tools-size: 1.9rem !default;
$left-panel-width: 20rem !default;
$right-panel-width: 17.5rem !default;
$panel-separator-width: 7px !default;
$streetview-width: 25rem !default;
$topbar-height: 2.8rem !default;
$search-width: calc(8 * $map-tools-size) !default;
$theme-selector-columns: 2 !default;
$theme-selector-column-width: calc($left-panel-width / 4 * 3) !default;
$theme-selector-height: calc(1.5 * $left-panel-width) !default;

$app-margin: 0.62rem !default;
$half-app-margin: 0.32rem !default;
$padding-base-vertical: $half-app-margin !default;
$padding-base-horizontal: $app-margin !default;
$form-group-margin-bottom: $app-margin !default;
$search-results-max-height: calc(
  100vh - #{$topbar-height} + #{$map-tools-size} + (2 * #{$app-margin})
) !default;

$notification-width: 12.5rem !default;

// Define wanted default variables before to import previous default variables.
@import 'gmf/sass/vars.scss';

:root {
  --theme-selector-columns: #{$theme-selector-columns};
  --theme-selector-column-width: #{$theme-selector-column-width};
  --right-panel-width: #{$right-panel-width};
  --right-panel-width-googlestreetview: 25rem;
  --right-panel-width-mapillary: 25rem;
  --left-panel-width: #{$left-panel-width};
  --header-height: #{$topbar-height};
  --panel-separator-width: #{$panel-separator-width};
  --current-left-panel-separator-width: #{$panel-separator-width};
  --current-left-panel-border-width: #{$border};
  --footer-panel-height: 15.62rem;
  --footer-panel-height-queryresult: 15.62rem;
  --footer-panel-height-profileresult: 12.5rem;
  --current-footer-panel-height: 0;
  --app-margin: #{$app-margin};

  // LIDAR profile
  --lidarprofile-height: 21.88rem;
  --footer-panel-height-lidar: 21.88rem;
  --profile-legend-width: 9.38rem;
}
