:root {
  --ms-navy: #10285b;
  --ms-navy-deep: #091a42;
  --ms-sky: #eaf5ff;
  --ms-blue: #1d6fdc;
  --ms-yellow: #f5cf35;
  --ms-ink: #19243a;
  --ms-muted: #667085;
  --ms-line: #e4e9f1;
  --ms-surface: #fff;
  --ms-radius: 20px;
  --ms-shadow: 0 14px 38px rgba(16, 40, 91, .10);
}

html { scroll-behavior: smooth; }
body { color: var(--ms-ink); background: #fff; }
a { color: var(--ms-navy); text-underline-offset: .18em; }
a:not([class]) { text-decoration-thickness: 1px; }
p { margin-top: 0; }

body.wrapper-fluid .grid-child,
body.wrapper-fluid .site-grid { width: min(100% - 40px, 1480px); max-width: 1480px; margin-inline: auto; }

.container-header {
  z-index: 10;
  position: relative;
  background: rgba(255,255,255,.97);
  background-image: none;
  border-bottom: 1px solid rgba(16,40,91,.08);
  box-shadow: 0 8px 30px rgba(16,40,91,.05);
}
.container-header .container-nav { flex-wrap: wrap; justify-content: space-between; padding-block: .4rem; }
.container-header .mod-menu > li > a { font-weight: 700; letter-spacing: .02em; }
.container-header .mod-menu > li > a:hover { color: var(--ms-blue); }

.breadcrumb {
  margin-block: 18px 28px;
  padding: 12px 18px;
  border: 1px solid var(--ms-line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ms-muted);
  font-size: .92rem;
}

h1, h2, h3 { color: var(--ms-navy-deep); letter-spacing: -.025em; }
.page-header h1,
.montesol-destination > h1,
.montesol-destination > h2 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.05; font-weight: 800; }

/* Destination page */
.montesol-destination { padding-bottom: clamp(3rem, 8vw, 7rem); }
.montesol-destination__intro {margin-bottom: 16px; color: #465268; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.75; }
.montesol-destination__intro p { margin-bottom: .85rem; }
.montesol-destination .blog-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.montesol-destination .blog-item {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  background: var(--ms-surface);
  box-shadow: var(--ms-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.montesol-destination .blog-item:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(16,40,91,.16); }
.montesol-destination .blog-item figure { margin: 0; overflow: hidden; }
.montesol-destination .blog-item .item-image img,
.montesol-destination .blog-item figure img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; display: block; transition: transform .45s ease; }
.montesol-destination .blog-item:hover figure img { transform: scale(1.035); }
.montesol-card__content { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.montesol-card__meta { display: flex; min-height: 24px; align-items: center; gap: 10px; margin-bottom: 8px; }
.montesol-card__type { color: var(--ms-muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.montesol-rating { display: inline-flex; gap: 2px; color: var(--ms-yellow); font-size: .95rem; line-height: 1; letter-spacing: 0; vertical-align: .16em; }
.montesol-offer__header h1 .montesol-rating,
.montesol-offer__header h2 .montesol-rating { margin-left: .3em; font-size: .38em; vertical-align: middle; }
.montesol-card__content .item-title { margin: 0 0 14px; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; }
.montesol-card__content a,
.montesol-card__content .item-title a {
  color: var(--ms-navy-deep);
  border-bottom: 0;
  text-decoration: none !important;
}
.montesol-card__content a:hover { color: var(--ms-blue); }
.montesol-card__content .article-info { margin-top: auto; color: var(--ms-muted); font-size: .9rem; }
.montesol-card__content .article-info-term { display: none; }
.montesol-card__content .icon-folder-open,
.montesol-card__content .icon-folder { display: none; }
.montesol-card__content .category-name { margin: 0; }
.montesol-card__content .readmore { margin-top: 18px; }
.montesol-card__content .readmore a { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: var(--ms-navy); color: #fff; text-decoration: none; font-weight: 700; }

/* Destination subcategories */
.montesol-subcategories { margin-top: clamp(2.5rem, 6vw, 5rem); }
.montesol-subcategories__title { margin: 0 0 18px; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 800; }
.montesol-subcategories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.montesol-subcategory-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, #f8fbff);
  box-shadow: 0 8px 24px rgba(16,40,91,.07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.montesol-subcategory-card:hover { transform: translateY(-3px); border-color: #bfd5ef; box-shadow: 0 14px 30px rgba(16,40,91,.12); }
.montesol-subcategory-card .item-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 18px 20px; font-size: 1.08rem; line-height: 1.25; }
.montesol-subcategory-card .item-title > a:first-child { flex: 1; color: var(--ms-navy-deep); text-decoration: none !important; }
.montesol-subcategory-card .item-title > a:first-child::after { content: "→"; float: right; color: var(--ms-blue); font-weight: 400; transition: transform .2s ease; }
.montesol-subcategory-card:hover .item-title > a:first-child::after { transform: translateX(3px); }
.montesol-subcategory-card .badge { min-width: 34px; padding: 7px 9px; border-radius: 999px; background: var(--ms-sky) !important; color: var(--ms-navy) !important; font-size: .76rem; }
.montesol-subcategory-card .category-desc { padding: 0 20px 18px; color: var(--ms-muted); font-size: .9rem; }

/* Accommodation page */
.montesol-offer__header { margin-bottom: 20px; }
.montesol-offer__header .page-header { margin: 0; }
.montesol-offer__location { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin: 9px 0 0; color: var(--ms-muted); font-size: .88rem; }
.montesol-offer__location a { color: var(--ms-blue); font-weight: 700; text-decoration: none; }
.montesol-offer__location a::before { content: "•"; margin-right: 12px; color: #a3adbd; }
.montesol-offer__location a:hover { text-decoration: underline; }
.montesol-gallery { margin-block: 24px 28px; overflow: hidden; border-radius: var(--ms-radius); background: #f1f5f9; box-shadow: var(--ms-shadow); }
.montesol-gallery img { max-width: 100%; }
.montesol-offer > .article-info { margin: 0 0 28px; padding: 14px 18px; border: 1px solid var(--ms-line); border-radius: 12px; background: #f8fafc; }
.montesol-offer__content { max-width: 1180px; font-size: 1.02rem; line-height: 1.72; }
.montesol-offer__content > p:first-child { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: #3d4960; }
.montesol-offer__content h2,
.montesol-offer__content h3,
.montesol-offer__content h4 { margin-top: 2.2em; margin-bottom: .7em; font-weight: 800; }
.montesol-offer__content ul,
.montesol-offer__content ol { padding-left: 1.4rem; }
.montesol-offer__content li { margin-bottom: .45rem; }

/* Price tables */
.montesol-offer__content .tabela,
table.tabela {
  width: 100%;
  margin: 0 0 22px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  color: var(--ms-ink);
  font-size: .84rem;
  line-height: 1.35;
  text-align: center;
}
table.tabela thead { background: var(--ms-navy); color: #fff; }
table.tabela th, table.tabela td { padding: 11px 9px; border: 0; border-right: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); }
table.tabela p { margin-top: 0; margin-bottom: 0; }
table.tabela th:first-child, table.tabela td:first-child { position: sticky; left: 0; z-index: 2; min-width: 150px; background: var(--ms-sky); color: var(--ms-navy-deep); font-weight: 800; box-shadow: 5px 0 10px rgba(16,40,91,.05); }
table.tabela thead th:first-child { background: var(--ms-navy-deep); color: #fff; }
table.tabela tbody tr:nth-child(even) td:not(:first-child) { background: #f8fafc; }
table.tabela tbody tr:hover td { background: #fff8d8; }
.montesol-offer__content table.tabela { display: table; overflow: hidden; border: 1px solid var(--ms-line); border-radius: 14px; box-shadow: 0 8px 24px rgba(16,40,91,.07); }
.no-copy-table { -webkit-user-select: none; user-select: none; }

.footer { padding-block: 50px; background: linear-gradient(135deg, var(--ms-navy-deep), #263b77); font-weight: 400; }
.footer h4 { font-weight: 800; color: #fff; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: #fff; }

/* Single four-column footer module */
.footer .grid-child { display: block; }
.montesol-footer-module { width: 100%; }
.ms-footer-grid { display: grid; grid-template-columns: 1.05fr .8fr 1.45fr 1fr; align-items: start; gap: clamp(1.8rem, 4vw, 4.5rem); width: 100%; }
.ms-footer-grid > * { min-width: 0; }
.ms-footer-column h3 { margin: 0 0 13px; color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.ms-footer-column > p { margin: 0; color: rgba(255,255,255,.65); font-size: .8rem; line-height: 1.65; }
.ms-footer-contact p { margin: 0 0 16px; color: rgba(255,255,255,.68); font-size: .82rem; line-height: 1.65; }
.ms-footer-contact p:last-child { margin-bottom: 0; }
.ms-footer-contact small { color: rgba(255,255,255,.55); font-size: .9em; }
.ms-footer-contact a { color: rgba(255,255,255,.86); text-decoration: none; }
.ms-footer-socials { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 17px; }
.ms-footer-socials a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.84); font-size: .86rem; font-weight: 700; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.ms-footer-socials a:hover { transform: translateX(3px); color: #fff; }
.ms-footer-socials svg { width: 19px; height: 19px; padding: 3px; border-radius: 5px; background: rgba(255,255,255,.1); fill: currentColor; }
.ms-footer-notice { color: rgba(255,255,255,.62) !important; font-size: .76rem !important; line-height: 1.72 !important; }
.ms-footer-notice strong { color: rgba(255,255,255,.9); }
.ms-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.ms-footer-links h3 { margin-bottom: 7px; }
.ms-footer-links a { color: rgba(255,255,255,.72); font-size: .8rem; line-height: 1.45; text-decoration: none; }
.ms-footer-links a:hover { color: #fff; }

@media (max-width: 991px) {
  .montesol-destination .blog-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .montesol-subcategories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .montesol-gallery { border-radius: 14px; }
  .montesol-offer__content { font-size: 1rem; }
  .montesol-offer__content table.tabela {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    table-layout: auto;
    scrollbar-color: var(--ms-blue) #e8edf5;
  }
  .montesol-offer__content table.tabela tbody,
  .montesol-offer__content table.tabela thead { min-width: 900px; }
  .ms-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  body.wrapper-fluid .grid-child,
  body.wrapper-fluid .site-grid { width: min(100% - 24px, 1480px); }
  .breadcrumb { margin-block: 10px 20px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }
  .montesol-destination .blog-items { grid-template-columns: 1fr; gap: 18px; }
  .montesol-subcategories__grid { grid-template-columns: 1fr; }
  .montesol-card__content { padding: 19px; }
  .montesol-offer__location { font-size: .8rem; }
  .montesol-gallery { margin-inline: -12px; border-radius: 0; }
  .montesol-offer__content h2,
  .montesol-offer__content h3 { margin-top: 1.7em; }
  table.tabela { font-size: .75rem; }
  .ms-footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
