/* CUSTOM CSS REALACAPULCO.COM */

/* COLOR PALATTE
------------------------------------------------------------

Black   | #000
White   | #fff
Grey    | #272727 | #808080 | #d3d3d3
Blue    | #5baff7; | 
Orange  | 

*/


.promo-box .tripadvisor .field--name-field-link {
  display: none;
}


html[lang="en"] #block-realaca-languageswitcher li.en,
html[lang="es"] #block-realaca-languageswitcher li.es,
html[lang="en"] #block-realaca-languageswitcher-2 a[hreflang="en"],
html[lang="es"] #block-realaca-languageswitcher-2 a[hreflang="es"] {
  display: none;
}


/* HTML
------------------------------------------------------------ */

html {
  font-family: sans-serif;
  font-size: 18px;
  font-weight: normal;
  font-style: normal;
  line-height: 1.6;
  scroll-behavior: smooth;
  color: #333333;
}

.realaca .field--name-body h2 {
  font-size: 24px;
  color: #333333;
  margin: 30px 0 -5px;
}

ul li,
ol li {
  margin: 20px 0;
}



/* HEADER
------------------------------------------------------------ */

header.content-header .region-breadcrumb {
  display: none;
}

header.content-header {
  background-image: url(/themes/realaca/images/header-line.jpg);
  background-repeat: repeat-x;
  height: 210px;
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: #fff;
}

header.content-header .header-layout-container {
  background-image: url(/themes/realaca/images/header.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  height: 210px;
}

header.content-header .region-header {
  display: flex;
  justify-content: space-between;
}

header.content-header .region-header .site-logo {
  position: relative;
  top: 5px;
  left: 100px;
}

header.content-header .region-header .site-logo img {
  height: 135px;
  width: auto;
}

header.content-header .region-primary-menu {
  margin: auto;
  display: flex;
  justify-content: space-between;
  position: relative;
  top: -20px;
  max-width: 1100px;
  padding: 0 40px;
  overflow: hidden;
}

header.content-header .region-primary-menu ul {
  display: inline-flex;
  margin-left: 0;
}

#block-realaca-mainnavigation {
  position: relative;
  left: 40px;
}



header.content-header .region-primary-menu #block-realaca-mainnavigation ul li:first-child {
  display: none;
}

header.content-header .region-primary-menu ul li {
  list-style: none;
  margin: 0 10px 0;
  display: flex;
  align-items: center;
}

header.content-header .region-primary-menu ul li a,
#block-realaca-languageswitcher-2 ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: lighter;
  font-size: 17px;
}

header.content-header .region-primary-menu ul li a:hover {
  color: aqua;
}

#block-realaca-languageswitcher-2 {
  display: none;
  position: relative;
  top: 4px;
}


/* CONTENT LAYOUT
------------------------------------------------------------ */

/*
.title-tabs-container {
  display: flex;
  width: 980px;
  margin: auto;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #d2d2d2;
}
*/

.layout-container {
  overflow: hidden;
}

.region-page-title {
  margin: 5px 0 15px 0;
}

#block-realaca-languageswitcher ul.links {
  display: flex;
  margin: 0;
  padding: 0;
}


#block-realaca-languageswitcher ul {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
}

#block-realaca-languageswitcher ul li {
  display: block;
  margin: 0 2px 2px 0;
  background: url(/themes/realaca/images/bkg-tab.gif) top repeat-x !important;
}

#block-realaca-languageswitcher ul li a {
  display: block;
  padding: 7px 20px 7px 20px;
  margin: 0px;
  color: #000000 !important;
  font-size: 14px;
  font-weight: normal;
  background: none;
  text-decoration: none;
}

#block-realaca-languageswitcher ul li a:hover {
  color: #88bc0f !important;
  margin: 0px;
  border: none;
}

#block-realaca-languageswitcher button {
  display: none;
}

.realaca .page-content {
  margin: 0px;
}

.realaca article.node {
  max-width: 980px;
  margin: 0 auto 40px;
}

#block-realaca-page-title h1.page-title {
  background: url(/themes/realaca/images/bkg-title.png) repeat-x 0 34px;
  font-family: 'Trebuchet MS',Arial,Helvetica,sans-serif;
  font-weight: normal;
  letter-spacing: -1px;
  color: #121212;
  display: inline;
}

.field--name-field-main-image {
  max-width: 600px;
  margin: 20px;
  float: right;
}

.field--name-field-main-image img {
  width: 100%;
  height: auto;
}


/* FOOTER
------------------------------------------------------------ */

#footer {
  margin: 0;
}

#footer .region-footer-sitemap-wrapper {
  background: linear-gradient(to bottom, #001f4d 0%, #003DA5 5%, #003DA5 100%);
  padding: 40px 20px;
  overflow-y: scroll;
}

#footer .region-footer-sitemap {
  width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-around;
  gap: 40px;
  color: #fff;
}

#footer .region-footer-sitemap h2 {
  margin: 0 auto 7px;
  font-size: 22px;
}

footer .region-footer-sitemap ul {
  display: flex;
  flex-direction: column;
  margin: 0;
}

#footer .region-footer-sitemap ul li {
  list-style: none;
}

#footer .region-footer-sitemap ul li a {
  color: aqua;
  text-decoration: none;
  font-size: 14px;
}

#footer .region-footer {
  background-color: darkblue;
}

#block-realaca-footer ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
}

#block-realaca-footer ul li {
  list-style: none;
  padding: 10px 0;
}

#block-realaca-footer ul li a {
  color: #b9d9f9;
  text-decoration: none;
}

#block-realaca-copyrightc .field--name-body {
  color: #33333;
  padding: 10px;
  text-align: center;
}

#block-realaca-copyrightc .field--name-body a {
  color: aqua;
  text-decoration: none;
}

/* Adsense
------------------------------------------------------------ */

.region.adsense-not-showing {
  display: none;
} 

.region-adsense-1 {
  display: flex;
  justify-content: center;
  margin: 30px auto;
}

.bottom-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin: 20px;
}

.region-adsense-2 {
  display: block;
}

.region-adsense-3 {
  display: flex;
  justify-content: center;
  margin: 20px;
}

.region-adsense-4 {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 2px;
}

.region.region-adsense-5 {
  display: none;
}

.region.region-adsense-6 {
  display: none;
}


/* Other ads
------------------------------------------------------------ */

.page-node-type-hotel .promo-box .expedia-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-node-type-hotel .promo-box .expedia-block img {
  width: 175px;
  margin-top: 5px;
}


/* Views
------------------------------------------------------------ */

.realaca .pager__link.is-active, .pager__item--current {
  background-color: aqua;
}


/* Random gallery
--------------------------------------------------- */

.region-gallery {
  background-color: black;
  padding: 30px;
}

.view-random-gallery {
  max-width: 1320px;
  margin: auto;
}

.view-random-gallery .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
}

.view-random-gallery .views-row,
.view-random-gallery .field-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.view-random-gallery .views-row img {
    object-fit: cover;
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-random-gallery img.landscape {
    max-width: 240px;
    height: auto;
}

.view-random-gallery img.portrait {
    max-height: 200px;
    width: auto;
}


/* Cuisine
-------------------------------------------------- */


.view-cuisine-embed.view-display-id-embed_1 .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
  gap: 40px;
  padding: 20px;
}

.view-cuisine-embed.view-display-id-embed_1 .views-field-field-teaser-image a img {
  width: 100%;
  height: auto;
}

/*

.view-cuisine-embed.view-display-id-embed_2 .view-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.view-cuisine-embed.view-display-id-embed_2 .views-field-title a {
  font-size: 24px;
  color: black;
  font-weight: 300;
}


.view-cuisine-embed.view-display-id-embed_2 .views-field-field-tripadvisor-rating .field-content {
  padding: 0;
  line-height: 10px;
  color: #00aa6c;
  display: inline-block;
  transform: translateY(1px);
}

.view-cuisine-embed.view-display-id-embed_2 .views-field-field-tripadvisor-rating .full {
  font-size: 30px;
}

.view-cuisine-embed.view-display-id-embed_2 .views-field-field-tripadvisor-rating .half {
  display: inline-block;
  transform: translateY(-4px);
  margin-left: 1.5px;
}

.view-cuisine-embed.view-display-id-embed_2 .views-field .views-field-view img {
  max-width: 300px;
  height: auto;
}

.view-cuisine-embed.view-display-id-embed_2 .views-field-view img {
  max-width: 300px;
  height: auto;
}

*/

.page-node-type-category.subtype-cuisine .field--name-field-subtitle{
  margin: 5px 0 20px 0;
  text-align: center;
}

.realaca article.node--type-category {
  max-width: 1350px;
  margin: 0 auto 40px;
}

.view-cuisine-embed .views-field-field-teaser-title a {
  font-size: 22px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.view-cuisine-embed .views-field-field-teaser-title a:hover {
  color: #ff8c00;
}



/* Category .view-category
--------------------------------------------------- */

.view-category .view-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Card Styling */
.view-category .view-content .views-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px; /* Soft rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Elegant shadow */
  transition: all 0.3s ease-in-out;
}

/* Hover Effect */
.view-category .view-content .views-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Image Styling */
.view-category .view-content .views-field-field-teaser-image img {
  height: 175px;
  width: auto;
  border-radius: 8px; /* Rounded corners for a refined look */
  transition: transform 0.3s ease-in-out;
}

.view-category .view-content .views-field-field-teaser-image img:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Title Styling */
.view-category .view-content .views-row .views-field.views-field-title a {
  font-size: 22px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.view-category .view-content .views-row .views-field.views-field-title a:hover {
  color: #ff8c00; /* A TripAdvisor-style pop of color */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .view-category .view-content .views-row {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .view-category .view-content .views-field-field-teaser-image img {
    height: 120px;
  }

  .view-category .view-content .views-row .views-field.views-field-title a {
    font-size: 20px;
  }
}

.view-category .view-content .views-field-tripadvisor-rating {
  color: #00aa6c;
  display: inline-block;
  padding: 0;
  transform: translateY(1px);
  line-height: 10px;
}

.view-category .view-content .title-rating-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.view-category .view-content .views-field-tripadvisor-rating .full {
  font-size: 30px;
}

.view-category .view-content .views-field-tripadvisor-rating .half {
  transform: translateY(-4px);
  display: inline-block;
  margin: 0 1.5px 0 1.5px;
}

/* Sitemap
--------------------------------------------------- */

.view-id-sitemap .view-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}



/* ON-PAGE STYLES
------------------------------------------------------------ */

.field--name-body p:first-child {
  margin-top: 0;
}

.field--name-body p:last-child {
  margin-bottom: 0;
}


.imageFloatR {
  float: right;
  margin-left: 20px;
  clear: both;
}


.imageFloatL {
  float: left;
  margin-right: 20px;
  clear: both;
}

/*
.page-node-type-attraction .layout-container {
  background-image: url(/themes/realaca/images/solcito-happy.png);
  background-repeat: no-repeat;
  background-size: 200px 200px;
  background-position: calc(100% - -5px) calc(0% - 15px);
}
*/

.field--name-body ul.boldlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.field--name-body ul.boldlist li {
  margin: 20px 0 20px;
}

.field--name-body ul.boldlist li strong {
  display: block;
  font-size: 24px;
}

ul.jump-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 0 15px;
  padding: 0;
  margin: 0;
}

ul.jump-menu li {
  padding: 0;
  margin: 0;
}

.field--name-field-images {
  max-width: 100%;
  padding: 20px;
  background: #f5f5f5;
}

.field--name-field-images .field__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.field--name-field-images .field__item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.field--name-field-images .field__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.field--name-field-images .field__item:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
 .field--name-field-images  .field__items {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.intro-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px;
  background-color: #e5dbd0;
  margin: 30px auto 0;
  gap: 30px;
}

.field--name-field-main-image {
  max-width: 500px;
  margin: 0;
}

.field--name-field-main-image .field__item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 10px 20px;
}

.field--name-field-main-image .field__item img {
  width: 500px;     /* Restricts width to 500px max */
  max-height: 300px;    /* Ensures image doesn’t exceed 300px in height */
  height: auto;         /* Maintains aspect ratio */
}



/* Hotel - .page-node-type-hotel
------------------------------------------------------------ */

.page-node-type-hotel .field--name-field-subtitle {
  font-size: 24px;
  color: darkgray;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 20px auto;
}

.page-node-type-hotel .field--name-field-booking-link {
    width: 100vw !important; /* Forces full width */
    max-width: 100vw !important; 
    margin-left: -50vw; /* Offsets it if it's centered */
    left: 50%; /* Centers it in viewport */
    position: relative; /* Keep normal document flow */
    text-align: center;
    margin-top: 20px;
}

.page-node-type-hotel .sticky-booking {
    position: fixed !important;
    top: 0;
    width: 100vw !important; /* Ensures full browser width */
    max-width: 100vw !important;
    text-align: center;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    padding: 20px 0;
    margin-top: 0;
}

.page-node-type-hotel .field--name-field-booking-link a {
  display: inline-block;
  background: linear-gradient(#fab00f,#fd7d00);
  border-radius: 8px;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1.5em;
  padding: 10px 30px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  text-decoration: none;
  transition: background 0.3s ease,box-shadow 0.3s ease;
}

.page-node-type-hotel .field--name-field-booking-link a::after {
  content: " →";
  font-weight: bold;
  margin-left: 8px;
  transition: margin-left 0.3s ease-in-out;
  white-space: nowrap;
  display: inline-block;
  padding-top: 3px;
}

.page-node-type-hotel .field--name-field-booking-link a:hover::after {
    margin-left: 12px;
}


.page-node-type-hotel .info-box {
  width: 980px;
  margin: 20px auto 50px;
  background-color: whitesmoke;
}

.page-node-type-hotel .info-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px;
  gap: 20px;
}

.page-node-type-hotel .info-box .contact-info {
  max-width: 300px;
}

.page-node-type-hotel .field--name-field-address .organization {
  font-weight: bold;
}

.page-node-type-hotel .promo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 30px;
}

.page-node-type-hotel .promo-box .tripadvisor {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page-node-type-hotel .promo-box .tripadvisor-logo {
  max-height: 150px;
}

.page-node-type-hotel .promo-box .field--name-field-tripadvisor-rating {
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.page-node-type-hotel .promo-box .field-rating {
  font-size: 24px;  /* Set consistent size */
  color: #007A33;  /* Tripadvisor green */
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.page-node-type-hotel .promo-box .field--name-field-rating .half {
  display: inline-block;
  transform: translateY(-4px);
  margin-left: 1.5px;
}

.page-node-type-hotel .promo-box .field--name-field-rating .full {
  font-size: 30px;
}

.page-node-type-hotel .promo-box .field--name-field-rating .field__item {
  padding: 0;
  line-height: 10px;
  color: #00aa6c;
  display: inline-block;
  transform: translateY(1px);
}

.page-node-type-hotel .promo-box .field--name-field-tripadvisor-link a {
   color: darkgray;
}


.page-node-type-hotel .promo-box .field--name-field-cuisine .field__items {
  display: flex;
}

.page-node-type-hotel .promo-box .field--name-field-cuisine .field__item::after {
  content: ", ";
  margin-right: 2px;
}

.page-node-type-hotel .promo-box .field--name-field-cuisine .field__item:last-child::after {
  content: "";
}




/* Restaurant .page-node-type-restaurant
------------------------------------------------------------ */


.page-node-type-restaurant .info-box {
  width: 980px;
  margin: auto;
  background-color: whitesmoke;
}

.page-node-type-restaurant .info-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  gap: 20px;
  margin-bottom: 40px;
}

.page-node-type-restaurant .info-box .contact-info {
  max-width: 300px;
}

.page-node-type-restaurant .field--name-field-address .organization {
  font-weight: bold;
}

.page-node-type-restaurant .promo-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  margin: 40px 0;
}

.page-node-type-restaurant .promo-box .tripadvisor {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.page-node-type-restaurant .promo-box .tripadvisor-logo {
  width: 250px;
  height: auto;
}

.page-node-type-restaurant .promo-box .field--name-field-tripadvisor-rating {
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.page-node-type-restaurant .promo-box .field-rating {
  font-size: 24px;  /* Set consistent size */
  color: #007A33;  /* Tripadvisor green */
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.page-node-type-restaurant .promo-box .field--name-field-rating .half {
  display: inline-block;
  transform: translateY(-4px);
  margin-left: 1.5px;
}

.page-node-type-restaurant .promo-box .field--name-field-rating .full {
  font-size: 30px;
}

.page-node-type-restaurant .promo-box .field--name-field-rating .field__item {
  padding: 0;
  line-height: 10px;
  color: #00aa6c;
  display: inline-block;
  transform: translateY(1px);
}

.page-node-type-restaurant .promo-box .field--name-field-tripadvisor-link a {
   color: darkgray;
}


.page-node-type-restaurant .promo-box .field--name-field-cuisine .field__items {
  display: flex;
}  

.page-node-type-restaurant .promo-box .field--name-field-cuisine .field__items .field__item {
  gap: 5px;
  white-space: nowrap;
}

.page-node-type-restaurant .promo-box .field--name-field-cuisine .field__item::after {
  content: ", ";
  margin-right: 2px;
}

.page-node-type-restaurant .promo-box .field--name-field-cuisine .field__item:last-child::after {
  content: "";
}


/* Nightlife .page-node-type-nightclub
------------------------------------------------------------ */


.page-node-type-nightclub .info-box {
  width: 980px;
  margin: auto;
  background-color: whitesmoke;
}

.page-node-type-nightclub .info-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  gap: 20px;
  margin-bottom: 40px;
}

.page-node-type-nightclub .info-box .contact-info {
  max-width: 300px;
}

.page-node-type-nightclub .field--name-field-address .organization {
  font-weight: bold;
}

.page-node-type-nightclub .promo-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  margin: 40px 0;
}

.page-node-type-nightclub .promo-box .tripadvisor {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.page-node-type-nightclub .promo-box .tripadvisor-logo {
  width: 250px;
  height: auto;
}

.page-node-type-nightclub .promo-box .field--name-field-tripadvisor-rating {
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.page-node-type-nightclub .promo-box .field-rating {
  font-size: 24px;  /* Set consistent size */
  color: #007A33;  /* Tripadvisor green */
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.page-node-type-nightclubt .promo-box .field--name-field-rating .half {
  display: inline-block;
  transform: translateY(-4px);
  margin-left: 1.5px;
}

.page-node-type-nightclub .promo-box .field--name-field-rating .full {
  font-size: 30px;
}

.page-node-type-nightclub .promo-box .field--name-field-rating .field__item {
  padding: 0;
  line-height: 10px;
  color: #00aa6c;
  display: inline-block;
  transform: translateY(1px);
}

.page-node-type-nightclub .promo-box .field--name-field-tripadvisor-link a {
   color: darkgray;
}


.page-node-type-nightclub .promo-box .field--name-field-cuisine .field__items {
  display: flex;
}  

.page-node-type-nightclub .promo-box .field--name-field-cuisine .field__items .field__item {
  gap: 5px;
  white-space: nowrap;
}

.page-node-type-nightclub .promo-box .field--name-field-cuisine .field__item::after {
  content: ", ";
  margin-right: 2px;
}

.page-node-type-nightclub .promo-box .field--name-field-cuisine .field__item:last-child::after {
  content: "";
}



/* Attraction .node--type-attraction
------------------------------------------------------------ */

.node--type-attraction .field--name-field-introduction {
  background-color: #e5dbd0;
  padding: 1px 30px 1px 30px;
  margin: 30px 0;
}



/* Category .page-node-type-category
------------------------------------------------------------ */


.page-node-type-category .intro-wrapper {
  display: flex;
  justify-content: space-around;
  background-color: #e5dbd0;
  padding: 30px;
  margin: 0 auto 20px;
  align-items: center;
  flex-direction: row-reverse;
  gap: 20px;
}

.page-node-type-category .intro-wrapper .field--name-field-main-image {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-node-type-category .intro-wrapper .field--name-field-main-image img {
  height: 175px;
  width: auto;
}


.page-node-type-category .field--name-field-subtitle {
  font-size: 24px;
  color: darkgray;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 20px;
}

/* Tabs
------------------------------------------------------------ */

.total-tabs-wrapper {
  display: flex;
  border-bottom: 1px solid #d2d2d2;
  justify-content: flex-end;
  position: relative;
  top: 1px;
  margin-bottom: 30px;
}

.tabs-wrapper ul.tabs--primary {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
}

.tabs-wrapper ul.tabs--primary li {
  display: block;
  padding: 0;
  margin: 0 2px 2px 0;
  background: url(/themes/realaca/images/bkg-tab.gif) top repeat-x !important;
  border: 0;
}

.tabs-wrapper ul.tabs--primary li a {
  display: block;
  padding: 7px 20px 7px 20px;
  margin: 0px;
  color: #000000 !important;
  font-size: 14px;
  font-weight: normal;
  background: none;
  text-decoration: none;
}

.tabs-wrapper ul.tabs--primary li a:hover {
  color: #88bc0f !important;
  margin: 0px;
  border: none;
}

.realaca .tabs-wrapper button {
  display: none;
}

#block-realaca-primary-local-tasks ul.tabs--primary li:nth-child(1),
#block-realaca-primary-local-tasks ul.tabs--primary li:nth-child(3),
#block-realaca-primary-local-tasks ul.tabs--primary li:nth-child(4) {
    display: none;
}


/* Blocks
------------------------------------------------------------ */

#block-realaca-casabuenosaires,
#block-realaca-casabuenosaires-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 600px; /* Matches original width */
  position: relative;
  top: 15px;
  right: 20px;
  background-color: #e5dbd0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.85;
  padding: 10px 20px;
  border: 1px solid white;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap; /* Ensures text stays on one line initially, but we’ll adjust for Spanish */
  max-height: 90px;
  min-height: 90px;
}

#block-realaca-casabuenosaires .special-deal,
#block-realaca-casabuenosaires-2 .special-deal {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping for longer Spanish text */
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
  font-size: clamp(16px, 4vw, 20px); /* Responsive font size */
  text-align: center;
  width: 100%; /* Ensures it fits within the block */
}

#block-realaca-casabuenosaires .special-deal .container,
#block-realaca-casabuenosaires-2 .special-deal .container {
  flex: 1;
  min-width: 200px; /* Ensures minimum width for text */
}

#block-realaca-casabuenosaires .special-deal .title,
#block-realaca-casabuenosaires-2 .special-deal .title {
  white-space: normal; /* Overrides parent’s nowrap for text wrapping in Spanish */
  line-height: 1.4; /* Improves readability with longer text */
  overflow-wrap: break-word; /* Ensures long words break if needed */
}

#block-realaca-casabuenosaires .special-deal a,
#block-realaca-casabuenosaires-2 .special-deal a {
  color: cornflowerblue;
  text-decoration: underline; /* Optional for clarity */
}

#block-realaca-casabuenosaires .special-deal .ba-logo,
#block-realaca-casabuenosaires-2 .special-deal .ba-logo,
#block-realaca-casabuenosaires .special-deal .ba-teaser,
#block-realaca-casabuenosaires-2 .special-deal .ba-teaser,
#block-realaca-casabuenosaires .special-deal .portrait,
#block-realaca-casabuenosaires-2 .special-deal .portrait,
#block-realaca-casabuenosaires .special-deal .landscape,
#block-realaca-casabuenosaires-2 .special-deal .landscape {
  height: clamp(50px, 10vw, 70px); /* Responsive height for images */
  width: auto;
  object-fit: contain; /* Prevents image distortion */
}

#block-realaca-casabuenosaires-2 {
  display: none;
}


/* Responsive Breakpoints */
@media (max-width: 768px) { /* Tablet and smaller */
  #block-realaca-casabuenosaires {
    width: 100%; /* Full width on tablets */
    height: auto; /* Adjusts height dynamically */
    top: 10px; /* Reduces top offset */
    right: 10px; /* Reduces right offset */
    padding: 8px 15px; /* Smaller padding */
  }

  #block-realaca-casabuenosaires .special-deal {
   /* flex-direction: column;*/
    font-size: clamp(14px, 5vw, 18px);
    gap: 10px;
  }

  #block-realaca-casabuenosaires .special-deal .ba-logo,
  #block-realaca-casabuenosaires .special-deal .ba-teaser,
  #block-realaca-casabuenosaires .special-deal .portrait,
  #block-realaca-casabuenosaires .special-deal .landscape {
    height: clamp(40px, 8vw, 60px); /* Smaller image size on mobile */
  }
}

@media (max-width: 480px) { /* Mobile */
  #block-realaca-casabuenosaires {
    width: 90%; /* Slightly less than full width for margins */
    height: auto; /* Auto height for content */
    top: 5px; /* Minimal top offset */
    right: 5px; /* Minimal right offset */
    padding: 5px 10px; /* Minimal padding */
  }

  #block-realaca-casabuenosaires .special-deal {
    padding: 5px;
    gap: 5px;
  }

  #block-realaca-casabuenosaires .special-deal .title {
    font-size: clamp(12px, 4vw, 16px); /* Smaller text on tiny screens */
  }
}}




/*
#block-realaca-casabuenosaires {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;
  width: 600px;
  position: relative;
  top: 15px;
  right: 20px;
  background-color: #e5dbd0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.85;
  padding: 10px 20px;
  border: 1px solid white;
  
  /* Prevent shrinking */
  flex-shrink: 0;

  /* Ensures overflow content doesn't break dimensions */
  overflow: hidden; 
  white-space: nowrap;
}

#block-realaca-casabuenosaires {
  display: flex;
  position: relative;
  width: auto;
  height: 90px;
  background-color: rgba(229, 219, 208, 0.5);
  backdrop-filter: blur(5px);
  justify-content: center;
  top: 15px;
  right: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  align-items: center;
  opacity: .85;
  border: 5px solid white;
}


#block-realaca-casabuenosaires .special-deal a {
  color: cornflowerblue;
}

#block-realaca-casabuenosaires .special-deal .ba-logo,
#block-realaca-casabuenosaires .special-deal .ba-teaser {
  height: 70px;
  width: auto;
}



/* Email list
------------------------------------------------------------ */

.region-email-list {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 0 0;
  align-items: center;
  max-width: 1340px;
}

.realaca .email-list-link {
    display: inline-block;
    padding: 12px 25px; /* Slightly larger for emphasis */
    background-color: #ff7f00; /* Matches the orange navigation bar */
    color: #ffffff; /* White text for contrast */
    text-decoration: none;
    border-radius: 8px; /* Softer corners for a modern look */
    font-family: Arial, sans-serif; /* Matches site font, if applicable */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    cursor: pointer; /* Hand cursor for interactivity */
}

.realaca .email-list-link:hover {
    background-color: #e66e00; /* Slightly darker orange for hover */
    transform: translateY(-2px); /* Slight lift for interactivity */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.realaca .email-list-link:active {
    transform: translateY(0); /* Reset on click */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduced shadow on click */
}



/* Home page
------------------------------------------------------------ */


.page-node-1 #block-realaca-page-title h1.page-title,
.page-node-1 .region-adsense-1 {
  display: none;
}

.page-node-1 article.node {
  max-width: 100%;
  margin: 0;
}

.page-node-1 .region-email-list {
  display: flex;
  justify-content: flex-start;
  padding: 10px 0 0 40px;
  align-items: center;
  max-width: 1340px;
}

.page-node-1 .view-home-page .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-gap: 40px;
  padding: 20px;
}

.page-node-1 .view-home-page .view-content .views-row {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.page-node-1 .view-home-page .view-content .views-row .title-text-container {
  padding: 0 20px 20px 20px;
}

.page-node-1 .view-home-page .view-content .views-field-field-teaser-image img {
  width: 100%;
  height: auto;
}

.page-node-1 .view-home-page .view-content .views-field-field-teaser-title a {
  font-size: 22px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.page-node-1 .view-home-page .view-content .views-field-field-teaser-title a:hover {
  color: #ff8c00;
}


/* Photo gallery
------------------------------------------------------------ */

.page-node-236 .region-gallery {
  display: none;
}

.page-node-236 .region-adsense-3 {
  margin: 0;
  background-color: #000;
  padding: 40px;
}

.page-node-236 .view-photo-gallery {
  max-width: 1320px;
  margin: auto;
}

.page-node-236 .view-photo-gallery .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
}

.page-node-236 .view-photo-gallery .views-row, 
.page-node-236 .view-photo-gallery .views-row .field-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-node-236 .view-photo-gallery .views-row img {
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-node-236 .view-photo-gallery img.portrait {
  max-height: 200px;
  width: auto;
}

.page-node-236 .view-photo-gallery img.landscape {
  max-width: 240px;
  height: auto;
}


/* Photo gallery teaser embed
------------------------------------------------------------ */

.page-node-369 .view-photo-gallery-teaser .photo-gallery-teaser {
  display: flex;
  align-items: center;
  flex-wrap: wrap;  /* Allows wrapping for smaller screens */
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  background: linear-gradient(135deg, #ffffff, #f8f8f8);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Ensure text container takes full width when wrapped */
.page-node-369 .view-photo-gallery-teaser .photo-gallery-teaser-container {
  max-width: 500px;
  flex: 1; /* Allows it to expand */
  padding: 0 20px;
}

/* Ensure image doesn't get too big on small screens */
.page-node-369 .view-photo-gallery-teaser .photo-gallery-main-image img {
  max-height: 280px;
  width: auto;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-node-369 .view-photo-gallery-teaser .photo-gallery-teaser {
    flex-direction: column; /* Stack items vertically */
    gap: 20px;
    padding: 20px;
  }

  .page-node-369 .view-photo-gallery-teaser .photo-gallery-teaser-container {
    max-width: 100%;
    text-align: center; /* Center text on small screens */
  }

  .page-node-369 .view-photo-gallery-teaser .photo-gallery-main-image img {
    max-height: 200px; /* Reduce image size */
  }
}

.page-node-369 .view-photo-gallery-teaser .photo-gallery-teaser-title a {
  font-size: 22px;
  color: #ff8c00;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
.page-node-369 .view-photo-gallery-teaser .photo-gallery-teaser-title a:hover {
  color: aqua;
}
