
  /*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   *,*::before,*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

    :root {
        --plan-name-font-size:42px;
        --exerpt-font-size:27px;
        --description-font-size:18px;
        --top-gap:83px;
        --image-height:810px;
        --border-left: none;
        --toogle-button-font: 16px;
        --toogle-button-max-width: 300px;
        --image-map-width:269px;
        --unit-details-height:150px;
    }

    @media all and (min-width: 1401px){
      :root {
        --border-left: 2px solid #6e6e6e;
        --toogle-button-font: 16px;
      }
    }
    @media all and (min-width: 1401px){
      :root {
        --border-left: 2px solid #6e6e6e;
        --toogle-button-font: 16px;
      }
    }
    @media all and (max-width: 1400px) and (min-width: 800px){
      :root {
          --plan-name-font-size:38px;
          --exerpt-font-size:23px;
          --description-font-size:16px;
          --top-gap:30px;
          --toogle-button-font: 13px;
          --toogle-button-max-width: 269px;
          --image-map-width:235px;

      }
    }
    @media all and (max-width: 1900px) and (min-width: 1400px){
      :root {
          --plan-name-font-size:38px;
          --exerpt-font-size:23px;
          --description-font-size:16px;
          --top-gap:30px;
          --toogle-button-font: 13px;
          --toogle-button-max-width: 269px;
          --image-map-width:269px;

      }
    }
    @media all and (max-width: 800px){
      :root {
        --plan-name-font-size:40px;
        --exerpt-font-size:24px;
        --description-font-size:17px;
          --top-gap:30px;
          --image-height:100%;
          --toogle-button-font: 16px;
          --toogle-button-max-width: 245px;
          --image-map-width:235px;
      }
    }


    /* responsive csss */


.wrapper {
    display: grid;
    gap: 20px;
    grid-template-areas:
      "unitdetails"
      "viewWithFurniture"
      "floorimage"
      "imagemap"
      "goToSelection"
      "searchplan"
  }

.unit-details {
    grid-area: unitdetails;
    /* border: 1px solid red; */
    /* height: var(--unit-details-heigh); */
  }
  .image-map {
    grid-area: imagemap;
    /* border: 1px solid red; */
  }
  .floor-image {
    grid-area: floorimage;
    /* border: 1px solid red; */
    display: grid;
    place-items: center;
  }
  .search-plan {
    grid-area: searchplan;
    /* border: 1px solid red; */
  }
  .go-to-selection {
    grid-area: goToSelection;
    /* border: 1px solid red; */
  }

  .view-with-furniture{
    grid-area: viewWithFurniture;
    /* border: 1px solid red; */
  }


    /* responsive csss */





   body {
    font-family: 'Raleway', sans-serif;
  }

  ul{
    padding-left: 0;
  }

.plan-search div.first, .map-details div.first{
  margin-top: 83px;
  margin-top: var(--top-gap);
}

.map-details .first{
  /* display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; */
}



.main-wraper{
  /* display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: auto; */

  display: flex;
  justify-content: center;
  /* align-items: center; */
  flex-wrap: wrap-reverse;
  /* min-height: 850px; */
  height: 100%;
  width:100%;
}

.main-wraper .div{
  flex-grow: 1;
}
.main-wraper .div{
  flex-basis: 25%;
}
.main-wraper .div:nth-child(2){
  flex-basis: 50%;
}
.map-details{
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  /* padding-top: 13px; */
  /* max-width: 300px; */
}

.map-details .details{
  max-width: 300px;
}

/* .map-details .description{
  display: flex;
  justify-content: space-between;
  margin-top: .35em;
} */
/* .description ul {
  text-decoration: none;
  list-style-type: none;
  font-size: 18px;
  color: #6e6e6e;
  padding: 0;
  font-weight: 500 ;
 
}
.description ul.key {
text-transform: uppercase;
}
.description ul li{
  font-weight: 600 ;
}

.description ul li:nth-child(1){
  font-weight: 800 ;

} */

.description {
margin-top: .4em;
}
.description p{
  color: #6e6e6e;
  /* padding: 0; */
  font-weight: 600 ;
  font-size: var(--description-font-size);
}
.description p:nth-child(1){
  font-weight: 800 ;
}


.underline{
  display: block;
  height: 0;
  border-bottom:2px solid #2dc5f4;
}

.plan-name{
  font-size: var(--plan-name-font-size);
  font-weight: 800;
  line-height: 0;
  margin-bottom: 1em;
  margin-top: 0.4em;
}

.plan-name span:nth-child(2){
  color: #2dc5f4;
}


.excerpt{
  font-size: var(--exerpt-font-size);
  color: #6e6e6e;
  font-weight: 800;
  display: inline-block;
  /* line-height: 0; */
  margin-bottom: 0;
  /* border-bottom: 2px solid #2dc5f4; */
  margin-top: -0.6em;
  border-bottom:2px solid #2dc5f4;
}


.map-image{
  width: 100%;
  max-width: 300px;
  margin-bottom: 50px;
  position: relative;
}


.north-side-img{
  position: absolute;
  bottom: -35px;
  right: 35px;

}

.menu{
  margin-top: 20px;
}
.first.menu{
  margin-top: 0;
}

.plan-search{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
   justify-content: center; 
  align-items: center;
  border-left: var(--border-left);
}

.plan-search .menu{
  width: 375px;
}

.plan-search .menu-heading{
  display: block;
  margin-bottom: 0;
  padding: 4px;
  text-align: center;
  font-size: 25px;
  color: #ffffff;
  font-weight: 900;
  background-color: black;
}
.relative{
  position: relative;
}
.sr-only{
  position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}
.filter-switch label {
  cursor: pointer;
}
.filter-switch-item input:checked + label {
  color: inherit;
}
.only-flex{
  display: flex;
}
.inline-flex{
  display: flex;
  justify-content: space-between;
  /* display: grid;
  grid-template-columns: 1fr 1fr 1fr; */
}
.flex{
  display: flex;
  justify-content: center;
  align-items: center;
}
#building-holder .filter-switch {
    display:flex;
    flex-wrap: wrap;
}
#building-holder .filter-switch .filter-switch-item{
    border-top: 1px solid black;
}
#building-holder .filter-switch .filter-switch-item:nth-child(2n){
    border-right: 0;
}
.filter-switch{
  margin: 0;
  border: 1px solid black;
}
.filter-switch .filter-switch-item{
  border-right: 1px solid black;
}
.filter-switch .filter-switch-item:last-child{
  border-right: 0;
}
.filter-switch-item label{
  width: 100%;
  text-align: center;
  font-size: 15px;
  padding: 8px;
  font-weight: bold;
}


.filter-switch .filter-switch-item:nth-child(2) {
      display: none;
}


.filter-switch-item input:checked + label {
  /* color: white; */
  background-color: #2dc5f4;
}
.filter-switch-item input:not(:checked) + label {

  /* color: black; */
  box-shadow: none;
}


polygon.unit-615{
  fill:#e558587d!important;
  cursor: default;
}
polygon.unit-615:hover{
  fill:#e558587d!important;
  cursor: default;
}
polygon.unit-pending {
    fill: #fffc007d !important;
}

polygon.active{
  fill:#00a8ff7d!important;
}

#plan-image{
  width: 100%;
  max-width: 900px;
  height: var(--image-height);
  max-height: 1000px;
  min-height: 100%;
  animation:1.5s ease 0s normal forwards 1 fadein;
  -webkit-animation:2s ease 0s normal forwards 1 fadein;
  opacity:0
}

.image-map{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


#image-map-pro-container{
  height: 100%;
  max-height: 300px;
  animation:1.5s ease 0s normal forwards 1 fadein;
  -webkit-animation:2s ease 0s normal forwards 1 fadein;
  opacity:0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#image-map-pro-container .imp-wrap {
  width: var(--image-map-width);
}


@keyframes fadein{from{opacity:0}
to{opacity:1}
}

@-webkit-keyframes fadein{from{opacity:0}
to{opacity:1}
}

#plan-image img{
  display: none;
}
#plan-image img.active{
  display: block;
  max-height: 810px;
}

.go-to-selection,.view-with-furniture{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}


.menu .furniture-toogle-btn{
  margin-top: 3.2rem;

}

.furniture-toogle-btn,.modal-selection-btn,.modal-close-btn{
  max-width: var(--toogle-button-max-width);
  font-size: var(--toogle-button-font);

  width: 100%;
  outline: none;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 0;
  border: 1px solid #2dc5f4;
  background: transparent;
  letter-spacing: .06rem;
  color: #6e6e6e;
}
.furniture-toogle-btn:hover,.modal-selection-btn:hover,.modal-close-btn:hover{
  background: #2dc5f4;
}

.selection-toogle-btn{
  max-width: 300px;
  width: 300px;
  text-align: center;
}

.text-decoration-none{
  text-decoration: none;
}
.d-none{
  display: none;
}

.plan-container .seleection-txt{
  display: none;
}
.plan-container .close-btn{
  display: none;
  text-align: center;
}
.plan-container .plan-search-furniture-toogle{
  display: block;
}
.plan-container.modal .seleection-txt{
  display: block;
  color: black;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}
.plan-container.modal .close-btn{
  display: block;
}
.plan-container.modal .plan-search-furniture-toogle{
  display: none;
}




.go-to-selection a{
  width: 100%;
}


.modal {
    max-width: 850px;
}

.modal a.close-modal[class*="icon-"] {
  top: -85px;
  right: 13px;
  width: 50px;
  height: 50px;
  color: black;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
  border: 2px solid #fff;
  font-size: 6em;
  background: white;
  background: url('./../img/close-icon.png') no-repeat;
}
















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

   @media (max-width: 480px){
        #plan-image img.active {
          width: 100%;
          max-width: 350px;
      }
        #plan-image  {
          max-height: 320px;
      }



   }
   @media (max-width: 1400px){
      .jquery-modal{
        background-color: white;
      }

      .modal{
        box-shadow: none;
        margin-top: 48px;
      }
   }



   @media (max-width: 800px) {
    .furniture-toogle-btn, .modal-selection-btn{
      margin-top: 5px;
    }

    .map-image {
      margin-bottom: 10px;
  }

    .wrapper {

      gap: 10px;

    }

    .details  {
      height: 100%;
    }


    .north-side-img {
      position: absolute;
      /* bottom: -35px; */
      /* right: 35px; */
      top: 40%;
      left: 30px;
      /* transform: translateY(-50%); */
  }

      .map-details {
        margin-top: 1.5rem;
      }

      #plan-image img.active {
          width: 400px;
          margin: 0 auto;

      }

      #plan-image{
        height: 360px;
      }

      /* .map-details {
        height: 245px;
    } */
      /* #image-map-pro-container{
        height: 215px;
      } */

      .modal{
        padding-top: 25px;
      }

      .modal a.close-modal[class*="icon-"] {
        font-size: 3.5em;
        top: -40px;
    }
    .plan-container.modal .seleection-txt{
      font-size: 1em;
    }



        /* .furniture-toogle-btn,.modal-selection-btn,.modal-close-btn{
          max-width: 202px;
          width: 100%;
          padding: 6px 0;

        }
        .furniture-toogle-btn:hover,.modal-selection-btn:hover,.modal-close-btn:hover{
          max-width: 202px;
        }

        .map-details {
          margin-top: 1.5rem;
        }

        .description {
          max-height: 100px;
          height: 100%;
        } */


        /* #plan-image img.active {
          width: 353px;
          margin: 0 auto;
      }

      #image-map-pro-container {
          width: 202px;
          margin: 0 auto;
      } */

  }

  @media (min-width: 801px) {
    .wrapper {
      grid-template-columns: 1fr 1.5fr;
      grid-template-areas:
      "unitdetails floorimage"

      "imagemap    floorimage"
    
      "goToSelection viewWithFurniture"
      "searchplan searchplan"

     }

     html {
      /* color: #222; */
      font-size: .8em;
      /* line-height: 1.4; */
    }


    #plan-image img.active {
        width: 100%;
    }

  }

  @media (min-width: 1401px) {
    .wrapper {
      grid-template-columns: 3fr 1fr;
      grid-template-areas:
      "floorimage searchplan"
     }


      .map-details .details{
        min-height: 210px;
    }

     html {
      /* color: #222; */
      font-size: 1em;
      /* line-height: 1.4; */
    }


  }
  @media  (min-width: 1401px) and (max-width: 1651px) {

    html {
      /* color: #222; */
      font-size: .8em;
      /* line-height: 1.4; */
    }

  }
  @media  (min-width: 801px) and (max-width: 1400px) {
    #plan-image{
      height: 573px;
    }

    html {
      /* color: #222; */
      font-size: .8em;
      /* line-height: 1.4; */
    }


    .modal a.close-modal[class*="icon-"] {
        top: -40px;

    }

    .details  {
      min-height: 170px;
    }




  }
  @media  (min-width: 801px) and (max-width: 975px) {
    #plan-image{
      height: 100%;
    }

    .unit-details.map-details  {
      min-height: 250px;
    }

  }
  @media  (min-width: 1100px) and (max-width: 1400px) {
    #plan-image img.active{
      max-width: 655px;
    }

  }





























@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}



































/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
