Question: what medieval Scottish castle was build during the same period as the chapel Dedicated to the Virgin Mary?

Context paragraphs:
Castle of Rattray: The Castle of Rattray was a medieval Scottish castle, with multiple variations on its structure over approximately six centuries.  Originally built as a ""late 12th- or early 13th century defensive motte"" it provided protection for Starny Keppie harbour and Rattray village.  Sometime between 1214 and 1233 it was upgraded by William Comyn, jure uxoris Earl of Buchan before being destroyed in the 1308 Harrying of Buchan.  After Comyn's timber castle was burned down it was replaced by a stronger stone castle which was engulfed during a 1720 sand storm along with nearby Rattray village.  After the storm, the castle was not dug out and remains covered to this day.  The castle was described by W. Douglas Simpson as one of the nine castles of the Knuckle, referring to the rocky headland of north-east Aberdeenshire.

St Mary's Chapel, Rattray: St Mary's Chapel (known also as "the Chapel of the Blessed Virgin") is a late 12th/early 13th century chapel found in Rattray, Aberdeenshire, Scotland.  It was built by William Comyn, jure uxoris Earl of Buchan during the same period as the Castle of Rattray and was ""private chapel for the castle"" and its residents. " "Dedicated to the Virgin Mary"" it was possibly constructed after the ""drowning of a"..." [unknown] ""son of Comyn in the well near by.""

Torreciudad: Torreciudad is the name of a Marian shrine in Aragon, Spain, built by Josemaría Escrivá, the founder of Opus Dei, and consecrated on July 7, 1975, under the title of "Our Lady of Torreciudad".  Devotion to Mary under the title of Virgin of Torreciudad is said to date back to the eleventh century.  The Torreciudad Trust is responsible for the upkeep of the shrine and its financial needs.  The shrine was designed by architect Heliodoro Dols who supervised the construction with the assistance of the architects Santiago Sols and Ramon Mondejar.  The main church contains several outstanding features in the alabaster altarpiece by Juan Mayné, and the Blessed Sacrament chapel with its bronze figure of the crucified Christ, by Pasquale Sciancalepore.  The crypt contains a chapel dedicated to the Holy Family, as well as three confessional chapels respectively dedicated to Mary under the titles of Virgin of Loreto, Virgin of the Pillar and Virgin of Guadalupe.  The covered archways on the esplanade contain ceramic depictions by José Alzuet of the joyful, sorrowful and glorious mysteries of the rosary.  An old hermitage on the grounds originally housed the original statue of Our Lady of Torreciudad before it was transferred to the new church.  Many pilgrims visit northern Aragon to pray at the shrine.  Spiritual activities at the Shrine are entrusted to the Opus Dei Prelature.  The shrine is open every day of the year.

Glagnorra Castle: Glagnorra Castle is a fictional medieval Scottish castle referenced in the 1946 novel "The Quiz Kids and the Crazy Question Mystery" (Whitman Publishing) by Carl W. Smith.  In that novel, Glagnorra Castle had served as a model for the early 20th century Grimm Castle in the western suburbs of Chicago, Illinois, built by wealthy Chicagoan Arnold Grimm for his wife.

Shrine of Our Lady of Health: The Shrine of Our Lady of Our Health, Hyderabad is the biggest octagonal church in Asia.  It is one of the oldest Roman Catholic Churches of Hyderabad and is dedicated to Blessed Virgin Mary.  It is situated near to Mahaveer Hospital, Masab Tank, Hyderabad and is in A.C. Guards, Khairtabad.  In this church, the birthday of Blessed Virgin Mary is celebrated on 8 September every year.  On the day of the feast and during the feast lakhs of people visit the Shrine to pay their respects to Blessed Virgin Mary.  Every year the celebrations start with the Flag Hoisting on 29 August, after which a Novena to Our Lady Of Health is held daily in the evenings, when a parish from Hyderabad or Secundrabad comes to host the Holy Mass.  After the mass, there is a procession with the Statue of Our Lady Of Health out in the grounds of the Church after which Benediction takes place.  Even on First Saturday of every month, there's a Holy Mass conducted during which the Statue of Our Lady Of Health is taken out in the grounds of the Church where Benediction takes place and thousands of people attend the mass.

Guillaume d'Ercuis: Guillaume d'Ercuis (1265 — 1314/15) was the almoner to King Philip III of France and the tutor of his son, King Philip IV.  He was a royal notary, and, as one of the King's men, a canon of the cathedrals of Laon, Noyon, Senlis, Mello, Marchais and of Reims, archdeacon of Laon and of Thiérache.  He derived his name from his small "seigneurie" of Ercuis (Old French "Arcuys" or "Erquez"; Latin "Arquetum") in the Beauvaisis between Neuilly-en-Thelle and Cires-lès-Mello, about 55 km from Paris.  At Ercuis he erected a chapel dedicated to Virgin Mary, served by the monks of the Abbey of St Genevieve, Paris.

St Brendan's Chapel, Skipness: St Brendan's Chapel ("Kilbrannan Chapel, Skipness Chapel") is a medieval chapel near Skipness, Argyll and Bute, Scotland.  The chapel was built in the late 13th or early 14th century by Clann Somhairle and was dedicated to St. Brendan.  The chapel replaced an earlier chapel dedicated to St. Columba, which had been incorporated into nearby Skipness Castle.

Lady chapel: A Lady chapel or lady chapel is a traditional British term for a chapel dedicated to "Our Lady", the Blessed Virgin Mary, particularly those inside a cathedral or other large church.  The chapels are also known as a Mary chapel or a Marian chapel, and they were traditionally the largest side chapel of a cathedral, placed eastward from the high altar and forming a projection from the main building as in Winchester Cathedral.  Most Roman Catholic and many Anglican cathedrals still have such chapels, while mid-sized churches have smaller side-altars dedicated to the Virgin.

Evangelical-Augsburg Chapel, Poznań: Evangelical-Augsburg Chapel in Poznań is a former neo-Gothic cemetery chapel from the end of 19th century.  After the World War II many years serving as a temple of the Evangelical -Augsburg in Poznan.  It is located at 48 Grunwald street in Grunwald district, the Park of Manitius.  It was built in 1896 as a Lutheran parish cemetery chapel of St. Paul.  After the closure of the cemetery in 1946, the municipal authorities have granted the chapel deprived of their place of assembly of the Evangelical -Augsburg as a temporary place of worship until the recovery of one of post evangelical sacred objects.  Since 1948, several years it was used as well by the parish chapel Polish National Church.  Nativity of the Blessed Virgin Mary.  The lack of progress on this issue, and then bans the communist authorities to build a new temple or expansion of existing meant that the problem was solved only by building near the new church of God's Grace Street.  The last Sunday service in the chapel took place in 2003.

Pencran Parish close: The Pencran Parish close (Enclos paroissial) is located at Pencran in the arrondissement of Brest in Brittany in north-western France.  It includes the Notre Dame church.  Records show that there has been a religious building in Pencran since the 14th century, and in 1353 there was mention of a chapel dedicated to the Virgin Mary.  Until the French Revolution the parish of Ploudiry covered an area from Loc-Eguiner to Pencran, but it was in 1801 that Pencran became an independent parish.

Supporting paragraphs: St Mary's Chapel, Rattray Castle of Rattray
Answer: The Castle of Rattray