/* ==========================================================================
   RFR Space — rfrspace.com
   One stylesheet, no dependencies. Mobile first; desktop layout at 768px.
   ========================================================================== */

/* --- Base ----------------------------------------------------------------- */

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

body {
  font: 13px/1.1 "Times New Roman", serif;
  color: #000;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #666;
}

ul {
  list-style: none;
}

/* --- Page frame ------------------------------------------------------------ */

.container {
  width: 95%;
  min-width: 320px;
  margin: 0 auto;
  padding: 0 15px;
}

.frame {
  border: 1px solid #404040;
  margin-top: 50px;
  padding: 30px 30px 20px;
}

/* --- Header ---------------------------------------------------------------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
}

.collage {
  display: none;            /* desktop only */
  width: 100%;
  margin-bottom: 35px;
}

.masthead {
  width: 50%;
  padding-right: 15px;
}

.masthead .logo-rfr {
  display: none;            /* desktop only */
}

.site-header nav {
  width: 50%;
  padding-left: 15px;
}

.menu {
  margin-bottom: 30px;
}

.menu a {
  display: block;
  font-weight: bold;
  padding: 8px 0 8px 3px;
  border-bottom: 1px solid #bfbfbf;
}

.menu .current a {
  background: #000;
  color: #fff;
  border-bottom: none;
}

/* The New York Retail item is marked current but is never highlighted. */
.menu .quiet a {
  background: #fff;
  color: #000;
  border-bottom: 1px solid #bfbfbf;
}

.menu .quiet:hover a {
  background: #bfbfbf;
}

/* --- Main ------------------------------------------------------------------ */

.main {
  border-top: 1px solid #000;
  padding-top: 15px;
}

.section-title {
  background: #000;
  color: #fff;
  font-size: 45px;
  font-weight: normal;
  line-height: 1.2;
  padding: 15px;
  margin: 0 -15px 30px;   /* the bar runs 15px past the text on each side */
}

/* --- Property listing ------------------------------------------------------ */

.property {
  border-bottom: 1px solid #000;
  margin-bottom: 15px;
  padding-bottom: 35px;
}

.property:last-child {
  border-bottom: none;
}

.property h2 {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: .2em;
}

.property-links > a {
  display: inline-block;
  margin: 30px 10px 0 0;
}

.property-links > a img {
  height: 25px;
  width: auto;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 35px;
}

.contact {
  width: 100%;
  margin-bottom: 35px;
}

/* --- Availabilities table --------------------------------------------------- */

.availabilities {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
}

.availabilities th {
  font-weight: bold;
  text-align: left;
  border-bottom: 1px solid #bfbfbf;
  padding-bottom: 8px;
}

.availabilities td {
  border-bottom: 1px solid #bfbfbf;
  line-height: 18px;
  padding: 8px 0;
  vertical-align: top;
}

.col-floor      { width: 30%; }
.col-rsf        { width: 18%; }
.col-possession { width: 25%; }
.col-plan       { width: 10%; }

.availabilities th:nth-child(4),
.availabilities th:nth-child(5),
.availabilities td:nth-child(4),
.availabilities td:nth-child(5) {
  text-align: center;
}

.icon-pdf {
  height: 16px;
  width: auto;
}

/* --- Contact page ------------------------------------------------------------ */

.contact-col p {
  margin-bottom: 35px;     /* live theme: p { margin: 0 0 35px } */
}

@media (min-width: 768px) {

  .contact-columns {
    display: flex;
  }

  .contact-col {
    width: 25%;
    padding: 0 15px;
  }

  .contact-col:first-child {
    margin-left: 25%;      /* live leads with an empty fourth column */
  }

}

/* --- Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid #bfbfbf;
  padding-top: 15px;
}

.copyright {
  margin: 10px 0 50px 30px;
}

.copyright .follow {
  float: right;
  margin-right: 27px;
}

.copyright .follow img {
  width: 18px;
  vertical-align: middle;
  margin-top: -5px;
}

/* --- Lightbox and document popup (created by lightbox.js) -------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(102, 102, 102, .3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay img.slide {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  border: 10px solid #fff;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .3);
}

.overlay button {
  position: absolute;
  border: 0;
  background: rgba(30, 30, 30, .6);
  color: #fff;
  font: 28px/44px "Times New Roman", serif;
  width: 44px;
  height: 44px;
  cursor: pointer;
  opacity: .8;
}

.overlay button:hover {
  opacity: 1;
}

.overlay .close {
  top: 8px;
  right: 8px;
}

.overlay .prev,
.overlay .next {
  top: 50%;
  margin-top: -22px;
  font-size: 40px;
}

.overlay .prev { left: 8px; }
.overlay .next { right: 8px; }

.overlay .counter {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #fff;
  opacity: .8;
}

.doc-panel {
  background: #222;
  padding: 30px;
  max-width: 90vw;
}

.doc-panel a {
  display: block;
  color: #fff;
  line-height: 35px;
}

.doc-panel a:hover {
  color: #bfbfbf;
}

.doc-panel a img {
  height: 25px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
}

/* --- Desktop, 768px and up ---------------------------------------------------- */

@media (min-width: 768px) {

  .container {
    max-width: 990px;
  }

  /* Header: photo collage, then both logos, then a four-across menu. */

  .site-header {
    display: block;
  }

  .collage {
    display: block;
  }

  .masthead {
    width: 100%;
    padding-right: 0;
  }

  .masthead .logo-rfr {
    display: inline;
    float: right;
  }

  .site-header nav {
    width: 100%;
    padding-left: 0;
  }

  .menu {
    margin: 35px 0 0;
  }

  .menu::after {        /* contain the floated items */
    content: "";
    display: block;
    clear: both;
  }

  .menu li {
    float: left;
    width: 23%;
    margin: 0 2% 10px 0;
  }

  .menu a {
    padding: 2px 0 2px 15px;
    border-bottom: none;
    border-left: 1px solid #bfbfbf;
  }

  .menu li:hover a,
  .menu .current a {
    background: #bfbfbf;
    color: #000;
  }

  .menu .quiet a,
  .menu .quiet:hover a {
    background: #fff;
    border-bottom: none;
  }

  .section-title {
    margin: -15px 0 30px;
  }

  /* Property: details on the left, availabilities on the right.
     Both halves are inset 15px from the frame edges; the RFR Retail
     bar above spans the full width, 15px past the text on each side. */

  .property {
    display: flex;
  }

  .property-info,
  .property-table {
    width: 50%;
    padding: 0 15px;
  }

  .contact {
    width: 50%;
  }

  .contact:nth-child(odd)  { padding-right: 15px; }
  .contact:nth-child(even) { padding-left: 15px; }

  .col-floor      { width: 35%; }
  .col-possession { width: 20%; }

  .site-footer {
    display: flex;
  }

  .site-footer .logo-rfr {
    width: 50%;
    padding-right: 15px;
  }

  .disclaimer {
    width: 50%;
    padding-left: 15px;
  }

  .overlay img.slide {
    height: 450px;
    max-height: none;
  }

  .doc-panel {
    min-width: 550px;
  }

  .doc-panel a {
    display: inline-block;
    width: 45%;
    margin: 0 5% 10px 0;
  }

}

/* --- Wide desktop, 992px and up ------------------------------------------------ */

@media (min-width: 992px) {

  .menu li {
    width: 22%;
    margin: 0 0 12px;
  }

}
