/**
 * Always test card layouts on /page/cards page.
 *
 * SOME IMPORTANT RULES:
 * - Always set background images with "background-image" property, no "background" shortcut.  
 * - Background positioning is not possible (due to email layout) so no master images
 * - No "margin" or "position" property, does not work with Hotmail or Gmail.
 * - No background images to the outer element (div.card)
 *
 * REMEMBER TO TEST PRINT AND EMAIL LAYOUT!
 *
 */





/* Common */

div.card {
	background-color: #faf9f5;
	color: #2f2b2b;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	line-height: 16px;
	overflow: hidden;
}

div.card.inactive {
	opacity: 0.5;
	filter: alpha(opacity=50);
}

div.card div {
	overflow: hidden;
	font-family: Arial, Helvetica, sans-serif; /* Because stuff will be wrapped inside a table in email layout */
	font-size: 11px;
}

div.card div img {
	vertical-align: bottom; /* Fixes bottom margin issue with old browsers */
	border: 0;
}

div.card img.background-image {
	display: none; /* Background img tags are for print layout, so do not show them normally. */
}

div.card div.image {
	width: 180px;
	height: 135px;
	z-index: 1;
}

div.card div.image a.thumbnail {
	text-decoration: none;
	cursor: pointer;
}

div.card div.image .thumbnail {
	background-repeat: no-repeat;
	background-position: 0 0;
	display: block;
	width: 180px;
	height: 135px;
	overflow: hidden; /* Fixes layout problems with onlineoffer logo */
}





/* Building card */

div.card.card-building {
	width: 380px;	
	height: 165px;
}

div.card.card-building div.background {
	width: 380px;	
	height: 165px;
}

div.card.card-building div.content {
	width: 370px;	
	height: 155px;
	padding: 5px;
}

div.card.card-building div.header {
	width: 370px;
	height: 20px;
	z-index: 1;
}

div.card.card-building div.header div.bar.building {
	background-image: url('/lib/Igglo/Card/header5.png');
	background-repeat: no-repeat;
	width: 370px;
	height: 20px;
}

div.card.card-building div.image {
	float: left;
}

div.card.card-building div.district,
div.card.card-building div.address,
div.card.card-building div.type {
	padding: 0 5px;
}





/* Ad card */

div.card.card-ad {
	width: 190px;	
	height: 286px;
}

div.card.card-ad div.background {
	background-image: url('/lib/Igglo/Card/background.png');
	background-repeat: no-repeat;
	width: 190px;	
	height: 286px;
}

div.card.card-ad div.content {
	width: 180px;	
	height: 281px;
	padding: 5px 5px 0 5px;
}

div.card.card-ad.extra-visibility {
	background-color: #2f2b2b;
	color: #fff;
	text-shadow: none;
}

div.card.card-ad.extra-visibility div.background {
	background-image: url('/lib/Igglo/Card/background-extra-visibility.png');
}
	
div.card.card-ad.viewing-today div.background {
	background-image: url('/lib/Igglo/Card/background-viewing-today.png');
}

div.card.card-ad.viewing-tomorrow div.background {
	background-image: url('/lib/Igglo/Card/background-viewing-tomorrow.png');
}

div.card.card-ad.viewing-today.extra-visibility div.background {
	background-image: url('/lib/Igglo/Card/background-extra-visibility-viewing-today.png');
}

div.card.card-ad.viewing-tomorrow.extra-visibility div.background {
	background-image: url('/lib/Igglo/Card/background-extra-visibility-viewing-tomorrow.png');
}

/* Header */

div.card.card-ad div.header {
	width: 180px;
	height: 20px;
	z-index: 1;
}

div.card.card-ad div.header div.bar {
	width: 180px;
	height: 20px;
}

div.card.card-ad div.header div.bar.sell {
	background-image: url('/lib/Igglo/Card/header1.png');
	background-repeat: no-repeat;
}

div.card.card-ad div.header div.bar.silent-sell {
	background-image: url('/lib/Igglo/Card/header2.png');
	background-repeat: no-repeat;
}

div.card.card-ad div.header div.bar.rent {
	background-image: url('/lib/Igglo/Card/header3.png');
	background-repeat: no-repeat;
}

div.card.card-ad div.header div.bar.rent-private {
	background-image: url('/lib/Igglo/Card/header10.png');
	background-repeat: no-repeat;
}

div.card.card-ad div.header div.bar.inactive {
	background-image: url('/lib/Igglo/Card/header4.png');
	background-repeat: no-repeat;
}

div.card.card-ad div.header div.bar.tenant {
	background-image: url('/lib/Igglo/Card/header8.png');
	background-repeat: no-repeat;
}

div.card.card-ad.extra-visibility div.header div.bar.sell {
	background-image: url('/lib/Igglo/Card/header6.png');
	background-repeat: no-repeat;
}

div.card.card-ad.extra-visibility div.header div.bar.rent {
	background-image: url('/lib/Igglo/Card/header7.png');
	background-repeat: no-repeat;
}

div.card.card-ad.extra-visibility div.header div.bar.tenant {
	background-image: url('/lib/Igglo/Card/header9.png');
	background-repeat: no-repeat;
}

div.card.card-ad div.header div.bar.unpublished {
	background-image: url('/lib/Igglo/Card/header11.png');
	background-repeat: no-repeat;
}

div.card.card-ad div.header div.bar div.broker-company {
	width: 60px;
	height: 20px;
	padding: 0 0 0 120px;
	text-align: right;
	z-index: 2;
}

/* Image */

div.card.card-ad div.image {
	padding: 0 0 5px 0;
}

div.card.card-ad div.image span.thumbnail span.extra-visibility {
	background-image: url('/lib/Igglo/Card/extra-visibility.png');
	background-repeat: no-repeat;
	display: block;
	width: 180px;
	height: 20px;
	z-index: 2;
}

div.card.card-ad div.image span.thumbnail span.extra-visibility span.text {
	display: block;
	width: 170px;
	height: 20px;
	padding: 0 5px;
	text-transform: uppercase;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	line-height: 20px;
	white-space: nowrap;
}

div.card.card-ad div.image span.thumbnail span.onlineoffer-logo {
	display: block;
	width: 75px;
	height: 15px;
	padding: 115px 5px 0 100px; /* Padding because of Hotmail */
	z-index: 2;
}

div.card.card-ad div.image span.thumbnail span.onlineoffer-logo.with-extra-visibility {
	padding: 95px 5px 0 100px; /* Padding because of Hotmail */
}

/* Size & price */

div.card.card-ad div.size-price {
    height: 11px;
    padding: 0 5px;
    line-height: 11px;
}

div.card.card-ad div.size-price div.size {
    float: left;
    width: 100px;
    height: 11px;
    font-weight: bold;
}

div.card.card-ad div.size-price div.size a {
	color: #2f2b2b;
	text-decoration: none;
	font-weight: bold; /* Fixes Hotmail issue */
}

div.card.card-ad.extra-visibility div.size-price div.size a {
	color: #fff;
}

div.card.card-ad div.size-price div.price {
    float: left;
    width: 70px;
    height: 11px;
    font-weight: bold;
    text-align: right;
}

/* Apartment properties */

div.card.card-ad div.apartment-properties {
    height: 11px;
    padding: 0 5px;
    line-height: 11px;
    font-weight: bold;
}

div.card.card-ad div.apartment-properties a {
	color: #2f2b2b;
	text-decoration: none;
	font-weight: bold; /* Fixes Hotmail issue */
}

div.card.card-ad.extra-visibility div.apartment-properties a {
	color: #fff;
}

/* Price extra */

div.card.card-ad div.price-extra {
    height: 11px;
    padding: 0 5px 4px 5px;
    line-height: 11px;
    font-weight: bold;
    text-align: right;
} 

/* Title */

div.card.card-ad div.title {
	height: 28px;
	padding: 0 5px 5px 5px;
	z-index: 1;
}

div.card.card-ad div.title div {
	height: 28px;
	line-height: 14px;
}

/* District */

div.card.card-ad div.district,
div.card.card-ad div.address,
div.card.card-ad div.type,
div.card.card-ad div.nick-age,
div.card.card-ad div.occupation,
div.card.card-ad div.education {
	height: 16px;
	padding: 0 5px;
	z-index: 1;
}

/* Viewing */

div.card.card-ad div.viewing {
	height: 14px;
	padding: 0 5px;
	font-size: 10px;
	line-height: 14px;
	z-index: 1;
}

div.card.card-ad div.viewing span.viewing-type {
	padding-right: 3px;
}

div.card.card-ad div.viewing span.viewing-type.viewing-type-2 {
	font-weight: bold;
}

/* Extra visibility coloring */

div.card.card-ad.extra-visibility div.size-price div.size,
div.card.card-ad.extra-visibility div.size-price div.size a,
div.card.card-ad.extra-visibility div.size-price div.price,
div.card.card-ad.extra-visibility div.apartment-properties,
div.card.card-ad.extra-visibility div.apartment-properties a,
div.card.card-ad.extra-visibility div.price-extra,
div.card.card-ad.extra-visibility div.title div,
div.card.card-ad.extra-visibility div.district,
div.card.card-ad.extra-visibility div.address,
div.card.card-ad.extra-visibility div.type,
div.card.card-ad.extra-visibility div.nick-age,
div.card.card-ad.extra-visibility div.occupation,
div.card.card-ad.extra-visibility div.education,
div.card.card-ad.extra-visibility div.viewing {
	color: #fff;	
}


/* unrealer */

span.thumbnail span.unrealer {
    width:180px;
    background:#ff0086;
    height: 25px;
    font-size:13px;
    text-align:center;
    display:block;
    margin-top:110px;
    padding-top:5px;
    left:0px;
    bottom:0px;
    font-weight:bolder;
    color:#fff;
}


/*INLINE_CSS_EXCLUDE*/

/* Print layout is not needed in inline css (emails), so exclude it. */

@media print {
	
	/* Position relative is for background images to work. */
	
	div.card,
    div.card div {
		position: relative;
	}

	div.card.card-ad div.image span.thumbnail,
	div.card.card-ad div.image span.thumbnail span.extra-visibility,
	div.card.card-ad div.image span.thumbnail span.extra-visibility span.text,
	div.card.card-ad div.image span.thumbnail span.onlineoffer-logo {
		position: relative;
	}
	
	div.card img.background-image {
        display: inline;
        position: absolute;
        left: 0;
        top: 0;
    }
	
}





/* Card ad extra */

div.card-ad-extra {
	width: 170px;
	padding: 0 10px 5px 10px;
}





/* Pro ad card */

div.card.card-pro {
	height: 385px;
}

div.card.card-pro div.links {
	padding: 0 10px 5px 10px;
}

/* Card guard banner */

div.card.card-guard-banner {
	width: 180px;	
	height: 275px;
	padding: 5px;
	border: 1px solid #dcdad7;
	text-align: center;
	font-size: 13px;
	background: #fff;
}

div.card.card-guard-banner b{
	color: #FF1900;
	font-size: 14px;
	margin-top: 25px;
	display: block;
}

div.card.card-guard-banner p{
	padding-bottom: 20px;
	font-size: 13px;
}

div.card.card-guard-banner div.content {
	width: 170px;	
	height: 281px;
	padding: 5px 5px 0 5px;
}

div.card.card-guard-banner div.header {
	height: 20px;
    width: 175px;
    color: #fff;
    padding-left: 6px;
    font-size: 13px;
    font-weight: bold;
    line-height: 19px;
	background: #f87f06; /* Old browsers */
	background: -moz-linear-gradient(top, #f87f06 0%, #f73503 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f87f06), color-stop(100%,#f73503)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #f87f06 0%,#f73503 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #f87f06 0%,#f73503 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #f87f06 0%,#f73503 100%); /* IE10+ */
	background: linear-gradient(to bottom, #f87f06 0%,#f73503 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f87f06', endColorstr='#f73503',GradientType=0 ); /* IE6-9 */
}
