@page {
    size: portrait;
    margin: 0.333333333in;
}

/* Show print-only elements. Use only on block-level elements because initial doesn't work in IE. */
.print-only { display: block; }

body, td, th {
  font-size: 10pt;
}

/* underline all links */
a:link,
a:visited {
  text-decoration: underline !important;
}

/* Don't underline header */
#site-name a:link,
#site-name a:visited,
#site-branding-text-wrapper a:link,
#site-branding-text-wrapper a:visited {
  text-decoration: none !important;
}

/* CSS2 selector to add visible href after links */
.content a:link:after,
.content a:visited:after {
  content: " (" attr(href) ") ";
  font-size: 0.8em;
  font-weight: normal;
}
/* Assume links that open in colorbox are inherently interactive and don't need to be printed */
.content a.colorbox:link:after {
  content: '';
}

/* Un-float the content */
#content,
#content .section {
  float: none;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Turn off any background colors or images */
body,
#page-wrapper,
#page,
#main-wrapper,
#main,
#content,
#content .section {
  color: #000;
  background-color: transparent !important;
  background-image: none !important;
}

/* Hide sidebars and nav elements */
#skip-link,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
.breadcrumb,
div.tabs,
.links,
.taxonomy,
.book-navigation,
.forum-topic-navigation,
.pager,
.feed-icons,
.messages {
  visibility: hidden;
  display: none;
}

/* Hide Other UI */
ul.tabs, #admin-menu {
  visibility: hidden;
  display: none;
}

/* If you un-comment the "page { overflow-y: hidden; }" ruleset, Firefox clips
   the content after the first page. */
#page-wrapper {
  overflow-y: visible;
}

/* Expose all Fieldgroup content even if it's collapsed */
html.js fieldset.collapsed {
  height: auto;
  border: 1px solid #888;
}
html.js fieldset.collapsed .fieldset-wrapper { display: block !important; }
html.js fieldset.collapsed .fieldset-wrapper .field,
html.js fieldset.collapsed .fieldset-wrapper .field div {
  display: block;
}
html.js fieldset.collapsed .fieldset-wrapper .field .field-label-inline,
html.js fieldset.collapsed .fieldset-wrapper .field .field-label-inline-first {
  display: inline;
}
html.js fieldset.collapsed legend {
  font-weight: bold;
  font-size: 1.143em;
  display: block;
  margin: 0;
  padding: 0;  
}
html.js fieldset.collapsed legend a {
  background: none;
  color: inherit;
  text-decoration: none !important;
  padding: 0 0.5em;
}
html.js fieldset.collapsed legend a:after {
  content: '';
}
fieldset {
  page-break-inside: avoid !important;
  /* Tighten it up a bit */
  padding-top: 0;
  margin: 0.5em 0;
}

/* Show all content that's hidden in jQuery UI Tabs */
.ui-tabs {
  border: none;
  padding: 0 !important;
}
.ui-tabs .ui-tabs-nav {
  display: none !important;
}
.ui-tabs .ui-tabs-hide {
  display: block !important;
}
.ui-tabs .ui-tabs-panel {
  margin-bottom: 1em;
  padding: 0;
}

/*** REP Styles ***/

/* Hide non-content regions */
.region { display: none; visibility: hidden; }
.region-content { display: block; }

/* Hide Views Exposed Forms */
.views_view .view-filters { display: none; }

/* Use the whole width. @page directive should set the printer's margins */
body { margin: 0; }
body.admin-menu {
  margin-top: 0 !important;
}
.grid-container {
  max-width: 100%;
}

#header {
  border-bottom: 1px solid #888;
}
#footer {
  border-top: 1px solid #888;
  page-break-inside: avoid !important;
  font-size: 0.75em;
  line-height: 1.33;
}

.disclaimer .trade-logo {
  height: 0.333333333in;
  width: auto;
}
#equal-housing-logo {
  content: url(/sites/all/files/images/trade_logos/equal_housing_logo.svg);
}
#realtor-logo {
  content: url(/sites/all/files/images/trade_logos/mls_logo.svg);
}

/* Make listing photos print well */
.node-listingpointe_listing-page .field.field-lp-l-primaryphoto {
  min-height: 0;
}
.node-listingpointe_listing-page .field.field-lp-l-primaryphoto .field-items .field-item {
  height: 3.75in;
}
.node-listingpointe_listing-page .field.field-lp-l-primaryphoto img {
  max-height: 3.75in;
  max-width: 100%;
  margin: 0;
}
.node-listingpointe_listing-page .field-lp-l-photothumbnails .field-items {
  height: auto;
  white-space: normal;
  overflow: visible;
}
#listing_photos .field-lp-l-photothumbnails img.lp-l-photothumbnails {
  max-height: 1.125in;
}
.node-listingpointe_listing-page .listing-summary {
  page-break-inside: avoid !important;
}
.node-listingpointe_listing-page .listingpointe_listing_moreinfo {
  display: none;
}
.node-listingpointe_listing .listing-details .field-lp-l-roomdetails {
  margin-top: 0.5em;
}
.node-listingpointe_listing .listing-details .field-lp-l-roomdetails .field-items .field-item {
  margin-top: 0;
  margin-bottom: 0.5em;
}

/* Listing Map
 * TODO: need to trigger the resize event on the google map to get it to rerender when the print styles are applied
 */
/* 
#listing_map.listing_map {
  width: 7in;
  height: 3.75in;
}
#listing_map.listing_map > .gmap {
  width: 7in !important;
  height: 3.75in !important;
}
 */
#listing_map.listing_map { display: none !important; }
#listing_map_static.print { display: block !important; }
#listing_map_static.print img {
  width: 7in;
  max-width: 100%;
  height: auto;
}