<?xml version="1.0" encoding="UTF-8"?>
<ListingDataFeed xmlns="http://www.vivareal.com/schemas/1.0/VRSync" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vivareal.com/schemas/1.0/VRSync  http://xml.vivareal.com/vrsync.xsd">


  <Header>
    <Provider></Provider>
    <Email>{{$.Header.email}}</Email>
    <ContactName>{{$.Header.nome_concat}}</ContactName>
    <PublishDate>{{$.Header.data_alteracao}}</PublishDate>
    <Telephone>{{$.Header.telefone}}</Telephone>
  </Header>
  <Listings>
    {{range .Imoveis}}
    <Listing>
      <ListingID>{{index . "referencia"}}</ListingID>
      <Title>{{index . "titulo"}}</Title>
      <TransactionType>{{index . "transacao"}}</TransactionType>
      <Property>
        <Transaction>
          <Highlighted>{{index . "destaque"}}</Highlighted>
      </Transaction>
      </Property>    
     
      <Media>
       
        {{raw (index . "fotos")}}
        {{raw (index . "fotosCaixa")}}
        {{raw (index . "fotosPadrao")}}
        

      </Media>
      <Details>
  <UsageType>{{index . "tipo"}}</UsageType>
        <PropertyType>{{index . "subtipo"}}</PropertyType>
      
        <Description>
          <![CDATA[{{raw (index . "descricao")}}{{raw (index . "descricaoPadrao")}}]]>
        </Description>
        {{raw (index . "valor_venda")}}
        {{raw (index . "valor_locacao")}}
        <LotArea unit="square metres">{{index . "area_total"}}</LotArea>
        <LivingArea unit="square metres">{{index . "area_util"}}</LivingArea>
        <PropertyAdministrationFee currency="BRL">{{index . "valor_condominio"}}</PropertyAdministrationFee>
        <YearlyTax currency="BRL">{{index . "iptu"}}</YearlyTax>
        {{raw (index . "banheiro")}}
        {{raw (index . "quartos")}}
        <Garage type="Parking Space">{{index . "vagas"}}</Garage>
        <Features>
          {{raw (index . "servicos")}}
        </Features>
      </Details>
      <Location displayAddress="Street">
        <Country abbreviation="BR">Brasil</Country>
        <State abbreviation="{{index . "estado"}}">{{index . "estado"}}</State>
        <City>{{raw (index . "cidade")}}</City>
        <Neighborhood>{{raw (index . "bairro")}}</Neighborhood>
        <Address>{{index . "endereco"}}</Address>
        <StreetNumber>{{index . "numero"}}</StreetNumber>
        <Complement>{{index . "complemento"}}</Complement>
        <PostalCode>{{index . "cep"}}</PostalCode>
      </Location>
      <ContactInfo>
        <Name>{{$.Header.nome_concat}}</Name>
        <Email>{{$.Header.email}}</Email>
        <Website>{{$.Header.dominio}}</Website>
        <Telephone>{{$.Header.telefone}}</Telephone>
      </ContactInfo>
    </Listing>
    {{end}}
  </Listings>
</ListingDataFeed>