{{#each results}} {{#bindBlock this}}
{{#if hotel.thumb}} {{/if}} {{#if hotel.offersThumbList}}
{{#each hotel.offersThumbList}}
{{/each}}
{{/if}} {{#if hotel.recommended}}
{{i18n "recommended"}}
{{/if}}
{{#if (logic (logic availability "and" availability.bestDeal) "or" hotel.recommended)}}
{{i18n "hotDeal"}}
{{/if}}

{{{hotel.name}}}

{{#if hotel.category}}
{{{hotel.category}}}
{{/if}} {{#if @root.config.showTripadvisor}}
{{/if}}
{{{hotel.zone}}} {{#ifCondAnd @root.filters.poilatitude @root.filters.poilongitude }} {{#ifCondAnd hotel.latitude hotel.longitude}} {{geoDistanceBetweenPoints @root.filters.poilatitude @root.filters.poilongitude hotel.latitude hotel.longitude}} {{/ifCondAnd}} {{/ifCondAnd}}
{{{hotel.description}}}
{{#if availability.price}}
{{i18n "best stay price"}}
{{{formatCurrency availability.price availability.currency "floor"}}}
{{#unless availability.bestDeal}} {{#ifCondAnd availability.isOffer availability.offerDescription}}
{{/ifCondAnd}} {{/unless}}
{{/if}}
{{#if availability.specialNotes}}
{{i18n "observacionesHotel"}}
{{{availability.specialNotes}}}
{{/if}} {{#set "detail_url"}}/hotels/details.aspx?UID={{UID}}&searchSessionID={{@root.searchSessionID}}{{#if presearch}}&presearch=true{{/if}}&hashParams={{paramsToString @root.filters}}{{#ifFindParameter availability.options "requiresRepricing" true}}&research=true{{/ifFindParameter}}{{/set}} {{#set "fav_url"}}{{{detail_url}}}{{/set}} {{#set "fav_title"}}{{{hotel.name}}}{{/set}} {{#set "fav_desc"}}{{{replaceAll hotel.category "'" '"'}}}{{/set}} {{#set "fav_price"}}{{availability.price}}{{/set}} {{#set "fav_currency"}}{{availability.currency}}{{/set}}
{{#ifCondAnd hotel.latitude hotel.longitude}} {{#if @root.config.googleMapsEnabled}} {{/if}} {{/ifCondAnd}} {{i18n "info"}} {{includePartialBySelector 'favorite_button' '#favorite-button-template'}} {{#ifCondAnd @root.config.showPayAtDestination availability.hasPayAtHotel}} {{i18n "hotelPayType:hotel"}} {{/ifCondAnd}} {{#ifCondAnd @root.viewOptions.resumed availability.options}} {{/ifCondAnd}}
{{#if @root.config.googleMapsPremiumEnabled}}
{{/if}}
{{#if availability.options}}
{{#eachSlice availability.options @root.config.optionsToShow 'left'}} {{> optionPartial}} {{/eachSlice}} {{#shouldShowMoreOptions @this @root.config.optionsToShow}}
{{#eachSlice availability.options @root.config.optionsToShow 'right'}} {{> optionPartial}} {{/eachSlice}}
{{/shouldShowMoreOptions}}
{{else}}
{{/if}}
{{#*inline 'optionPartial'}} {{#bindBlock this}}
{{#eachGroupedByName roomList}}
{{numberOfRooms this groupedListLength}}{{name}} {{contractName}}
{{../boardTypeName}}
{{/eachGroupedByName}}
{{#ifComp rateType "=" "package"}} {{/ifComp}}
{{#if nonRefundable}} {{else if bookable}} {{/if}}
{{#if offers}} {{/if}} {{#if restrictions}} {{/if}} {{#if supplements}} {{/if}} {{#*inline 'supplementContent'}}
    {{#each this}}
  • {{#if name}} {{#if description}} {{name}}
    {{else}} {{name}} {{/if}} {{/if}} {{description}}
  • {{/each}}
{{/inline}} {{#if discountList}} {{#each discountList}} {{/each}} {{/if}}
{{#if price}}
{{{formatCurrency price currency "floor"}}} {{#if bookable}} {{#ifCondOr breakdown breakdownByRoom}} {{/ifCondOr}} {{/if}}
{{#if priceWithoutDiscount}}
{{{formatCurrency priceWithoutDiscount currency "floor"}}}
{{/if}}
{{/if}} {{#if bookable}} {{#if available}} {{else}} {{/if}} {{else}} {{#if requiresRepricing}} {{i18n "book"}} {{else}} {{i18n "option not bookable"}} {{/if}} {{/if}}
{{i18n "hotelPayType:hotel"}}
{{#if bookable}}
{{#if breakdownByRoom}} {{#each breakdownByRoom}} {{#ifComp ../breakdownByRoom.length ">" 1}} {{name}} {{/ifComp}} {{> breakdownPartial}} {{/each}} {{else}} {{> breakdownPartial}} {{/if}}
{{#*inline 'breakdownPartial'}} {{#if breakdown}}
{{#each @root.config.dayNames}} {{/each}} {{#if breakdown.average}} {{/if}} {{#each breakdown.weeks}} {{#each this}} {{/each}} {{#unless @index}} {{!--Sólo en la primera semana, o sea cuando el índice es 0--}} {{#if ../breakdown.average}} {{/if}} {{/unless}} {{/each}}
{{this}}{{i18n "average"}}
{{#if this}} {{#if priceTar}} {{formatNumber priceTar "floor"}} {{formatNumber price "floor"}} {{else}} {{formatNumber price "floor"}} {{/if}} {{else}} - {{/if}} {{formatNumber ../breakdown.average "floor"}}
{{/if}} {{/inline}}
{{/if}}
{{/bindBlock}} {{/inline}} {{/bindBlock}} {{/each}}