/*
! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden] {
  display: none;
}

*,
	*::before,
	*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background-color: #FAF6ED;
  color: #2C2A28;
  line-height: 1.6;
}

/* Typography scale */

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: #1A1918;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::-moz-selection {
  background-color: #E6A875;
  color: #1A1918;
}

::selection {
  background-color: #E6A875;
  color: #1A1918;
}

/* Focus styles */

:focus-visible {
  outline: 2px solid #3DAAB8;
  outline-offset: 2px;
  border-radius: 2px;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ------- Site Shell ------- */

.site-wrapper {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ------- Header ------- */

.site-header {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E8DCC2;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.site-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
  color: #1A1918;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: #C26A30;
}

.site-tagline {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #76726B;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 0.375rem;
  display: block;
}

/* Decorative terracotta underline */

.site-tagline::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, #C26A30, #E6A875);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ------- Search ------- */

.search-form {
  position: relative;
  width: 100%;
  max-width: 18rem;
}

.search-field {
  width: 100%;
  padding: 0.625rem 1rem;
  padding-right: 2.75rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #2C2A28;
  background-color: #FDFBF7;
  border: 1.5px solid #D4C5A0;
  border-radius: 0.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-field::-moz-placeholder {
  color: #918D86;
}

.search-field::placeholder {
  color: #918D86;
}

.search-field:focus {
  outline: none;
  border-color: #3DAAB8;
  box-shadow: 0 0 0 3px rgba(61, 170, 184, 0.12);
}

/* ------- Main Layout ------- */

.content-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .content-layout {
    flex-direction: row;
    gap: 3.5rem;
  }

  .single-museum .content-layout {
    gap: 2.5rem;
    justify-content: center;
  }

  .single-museum .content-main {
    flex: 0 1 44rem;
    max-width: 44rem;
  }

  .single-museum .sidebar {
    width: 14rem;
  }
}

.content-main {
  flex: 1;
  min-width: 0;
}

/* ------- Sidebar ------- */

.sidebar {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .sidebar {
    width: 14rem;
  }
}

.sidebar-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  color: #1A1918;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid #E8DCC2;
}

.sidebar-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sidebar-menu-items li a {
  display: block;
  padding: 0.4375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #5F5C56;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.sidebar-menu-items li a:hover {
  color: #C26A30;
  background-color: rgba(194, 106, 48, 0.06);
  border-left-color: #C26A30;
}

/* ------- Museum Card ------- */

.museum-card {
  position: relative;
  background: #FDFBF7;
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(44, 42, 40, 0.06), 0 1px 2px -1px rgba(44, 42, 40, 0.06);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
		            box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.museum-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(44, 42, 40, 0.1), 0 8px 10px -6px rgba(44, 42, 40, 0.08);
}

.museum-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #E8DCC2;
}

/* Placeholder for missing images — architectural grid pattern */

.museum-card-image--placeholder {
  background-color: #2C2A28;
  background-image:
			/* Fine architectural grid */
			linear-gradient(rgba(194, 106, 48, 0.04) 1px, transparent 1px),
			linear-gradient(90deg, rgba(194, 106, 48, 0.04) 1px, transparent 1px),
			/* Diagonal accent lines */
			repeating-linear-gradient(
				45deg,
				transparent,
				transparent 20px,
				rgba(230, 168, 117, 0.02) 20px,
				rgba(230, 168, 117, 0.02) 21px
			),
			/* Warm glow from corner */
			radial-gradient(ellipse at 80% 20%, rgba(194, 106, 48, 0.15) 0%, transparent 50%),
			/* Subtle noise texture */
			url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 2.5rem 2.5rem, 2.5rem 2.5rem, 100% 100%, 100% 100%, 200px 200px;
}

.museum-card-image-link--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Museum icon for placeholder */

.museum-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: rgba(253, 251, 247, 0.75);
  filter: drop-shadow(0 2px 12px rgba(194, 106, 48, 0.25));
  z-index: 2;
  transition: 
			transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
			color 0.3s ease;
}

.museum-card:hover .museum-card-icon {
  transform: scale(1.1);
  color: rgba(253, 251, 247, 0.9);
}

/* Geometric pattern overlay */

.museum-card-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
			/* Corner brackets suggesting a frame */
			linear-gradient(90deg, rgba(230, 168, 117, 0.15) 2px, transparent 2px),
			linear-gradient(180deg, rgba(230, 168, 117, 0.15) 2px, transparent 2px),
			linear-gradient(270deg, rgba(230, 168, 117, 0.15) 2px, transparent 2px),
			linear-gradient(0deg, rgba(230, 168, 117, 0.15) 2px, transparent 2px);
  background-size: 40% 40%;
  background-position: 
			0.75rem 0.75rem, 
			0.75rem 0.75rem, 
			calc(100% - 0.75rem) calc(100% - 0.75rem), 
			calc(100% - 0.75rem) calc(100% - 0.75rem);
  background-repeat: no-repeat;
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.museum-card:hover .museum-card-pattern {
  opacity: 0.9;
  transform: scale(0.96);
}

.museum-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.museum-card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.museum-card:hover .museum-card-image img {
  transform: scale(1.04);
}

.museum-card-attribution {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, transparent 0%, rgba(26, 25, 24, 0.7) 100%);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border-top-left-radius: 0.375rem;
}

.museum-card-attribution a {
  color: inherit;
  text-decoration: underline;
}

.museum-card-body {
  padding: 1rem 1.125rem 1.25rem;
}

.museum-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #1A1918;
  margin-bottom: 0.375rem;
  transition: color 0.2s ease;
}

.museum-card-title a {
  color: inherit;
}

.museum-card:hover .museum-card-title {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.museum-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3125rem;
  font-size: 0.8125rem;
  color: #76726B;
}

.museum-card-meta > span {
  display: inline-flex;
  align-items: center;
}

.museum-card-meta > span + span::before {
  content: '•';
  margin-right: 0.5rem;
  color: #B9B1A6;
}

.museum-card-meta-location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.museum-card-meta-status {
  color: #dc2626;
  font-weight: 500;
}

.museum-card-meta-status.open {
  color: #16a34a;
}

.museum-card-meta-pricing {
  color: #5B5751;
}

.museum-card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4375rem 1rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #FDFBF7;
  background-color: #2C2A28;
  border-radius: 0.375rem;
  letter-spacing: 0.02em;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.museum-card-cta:hover {
  background-color: #C26A30;
  color: #FDFBF7;
  transform: translateY(-1px);
}

/* Staggered card animation */

.museum-card {
  opacity: 0;
  animation: fadeUp 0.5s ease-out forwards;
}

.museum-card:nth-child(1) {
  animation-delay: 0.0s;
}

.museum-card:nth-child(2) {
  animation-delay: 0.06s;
}

.museum-card:nth-child(3) {
  animation-delay: 0.12s;
}

.museum-card:nth-child(4) {
  animation-delay: 0.14s;
}

.museum-card:nth-child(5) {
  animation-delay: 0.16s;
}

.museum-card:nth-child(6) {
  animation-delay: 0.18s;
}

.museum-card:nth-child(7) {
  animation-delay: 0.2s;
}

.museum-card:nth-child(8) {
  animation-delay: 0.22s;
}

.museum-card:nth-child(9) {
  animation-delay: 0.24s;
}

.museum-card:nth-child(10) {
  animation-delay: 0.26s;
}

.museum-card:nth-child(n+11) {
  animation-delay: 0.28s;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------- Museum Grid ------- */

.museum-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .museum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------- Page Title ------- */

.page-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  color: #1A1918;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2.5px;
  background: linear-gradient(90deg, #C26A30, #E6A875);
  border-radius: 2px;
}

/* ------- Pagination ------- */

.pagination-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E8DCC2;
}

.pagination-nav .page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.pagination-nav .page-numbers li {
  display: inline-flex;
}

.pagination-nav .page-numbers a,
	.pagination-nav .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  color: #5F5C56;
}

.pagination-nav .page-numbers a:hover {
  background-color: rgba(194, 106, 48, 0.08);
  color: #C26A30;
}

.pagination-nav .page-numbers .current {
  background-color: #2C2A28;
  color: #FDFBF7;
}

/* ------- Single Museum: Hero ------- */

.single-museum-header {
  margin-bottom: 2.5rem;
}

.museum-hero {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 20rem;
  background-color: #2C2A28;
}

/* Hero without image: elegant architectural pattern */

.museum-hero--no-image {
  background-color: #1A1918;
  background-image:
			/* Subtle grid pattern suggesting architectural plans */
			linear-gradient(rgba(194, 106, 48, 0.03) 1px, transparent 1px),
			linear-gradient(90deg, rgba(194, 106, 48, 0.03) 1px, transparent 1px),
			/* Warm vignette glow from corners */
			radial-gradient(ellipse at 20% 80%, rgba(194, 106, 48, 0.12) 0%, transparent 50%),
			radial-gradient(ellipse at 80% 20%, rgba(230, 168, 117, 0.08) 0%, transparent 40%),
			/* Base subtle texture */
			url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 3rem 3rem, 3rem 3rem, 100% 100%, 100% 100%, 200px 200px;
}

/* When no image: overlay is lighter and more contained */

.museum-hero--no-image .museum-hero-overlay {
  justify-content: center;
  align-items: center;
  padding-bottom: 3rem;
  text-align: center;
  background: linear-gradient(
			to top,
			rgba(26, 25, 24, 0.95) 0%,
			rgba(26, 25, 24, 0.7) 40%,
			rgba(26, 25, 24, 0.4) 100%
		);
}

/* When no image: adjust card to not overlap as aggressively */

.museum-hero--no-image + .visit-summary-card {
  margin-top: -1rem;
}

@media (min-width: 768px) {
  .museum-hero--no-image + .visit-summary-card {
    margin-top: -1.5rem;
  }

  .museum-hero {
    min-height: 24rem;
  }
}

.museum-hero-image {
  position: absolute;
  inset: 0;
}

.museum-hero-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* Hero placeholder for missing images */

.museum-hero-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.museum-hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
			linear-gradient(90deg, rgba(230, 168, 117, 0.12) 2px, transparent 2px),
			linear-gradient(180deg, rgba(230, 168, 117, 0.12) 2px, transparent 2px),
			linear-gradient(270deg, rgba(230, 168, 117, 0.12) 2px, transparent 2px),
			linear-gradient(0deg, rgba(230, 168, 117, 0.12) 2px, transparent 2px);
  background-size: 35% 35%;
  background-position: 
			1.5rem 1.5rem, 
			1.5rem 1.5rem, 
			calc(100% - 1.5rem) calc(100% - 1.5rem), 
			calc(100% - 1.5rem) calc(100% - 1.5rem);
  background-repeat: no-repeat;
  opacity: 0.5;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.single-museum-header:hover .museum-hero-pattern {
  opacity: 0.75;
  transform: scale(0.97);
}

/* Dark gradient over the image so the text reads well */

.museum-hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 20rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(
			to top,
			rgba(26, 25, 24, 0.88) 0%,
			rgba(26, 25, 24, 0.55) 45%,
			rgba(26, 25, 24, 0.15) 70%,
			transparent 100%
		);
}

@media (min-width: 768px) {
  .museum-hero-overlay {
    min-height: 24rem;
    padding: 2.5rem 2rem;
  }
}

.museum-hero .single-museum-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E6A875;
}

.museum-hero .single-museum-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  line-height: 1.15;
  color: #FDFBF7;
  margin: 0 0 0.625rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .museum-hero .single-museum-title {
    font-size: 2.75rem;
  }
}

.museum-hero-attribution {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(26, 25, 24, 0.4);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border-top-left-radius: 0.375rem;
}

.museum-hero-attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 1px;
}

/* ------- Visit Summary Card ------- */

.visit-summary-card {
  position: relative;
  z-index: 4;
  margin-top: -2rem;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  padding: 0;
  border: 1px solid rgba(194, 106, 48, 0.18);
  border-radius: 0.875rem;
  background:
			linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 246, 237, 0.96)),
			#FDFBF7;
  box-shadow:
			0 1px 2px rgba(44, 42, 40, 0.04),
			0 0.75rem 2rem rgba(58, 44, 27, 0.08);
  overflow: hidden;
}

@media (min-width: 640px) {
  .visit-summary-card {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* Terracotta accent stripe along the top */

.visit-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #C26A30, #E6A875 60%, #D4C5A0);
}

.visit-summary-body {
  padding: 1.125rem 1.25rem 0.875rem;
}

.visit-summary-title {
  font-size: 1.125rem;
  margin: 0 0 0.875rem;
  color: #1A1918;
}

.visit-summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.visit-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(212, 197, 160, 0.4);
}

.visit-summary-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.visit-summary-item dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B8478;
  flex-shrink: 0;
}

.visit-summary-value {
  margin: 0;
  text-align: right;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2C2A28;
}

.visit-summary-status.open {
  color: #15803d;
}

.visit-summary-status.closed {
  color: #b91c1c;
}

.visit-summary-next-opening {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #78716c;
  margin-top: 0.25rem;
}

/* Action buttons row */

.visit-summary-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(212, 197, 160, 0.4);
}

.visit-summary-action {
  flex: 1 1 0%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.625rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2C2A28;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.visit-summary-action .action-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.visit-summary-action + .visit-summary-action {
  border-left: 1px solid rgba(212, 197, 160, 0.4);
}

.visit-summary-action:hover {
  background-color: rgba(194, 106, 48, 0.06);
  color: #C26A30;
}

/* Mobile: stack summary vertically */

@media (max-width: 479px) {
  .visit-summary-actions {
    flex-direction: column;
  }

  .visit-summary-action + .visit-summary-action {
    border-left: 0;
    border-top: 1px solid rgba(212, 197, 160, 0.4);
  }
}

/* ------- Section blocks ------- */

.museum-section {
  padding: 2rem 0;
  border-top: 1px solid #E8DCC2;
}

.museum-section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.375rem;
  color: #1A1918;
  margin-bottom: 1.125rem;
  position: relative;
  padding-left: 0.875rem;
}

.museum-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  background: linear-gradient(180deg, #C26A30, #E6A875);
  border-radius: 2px;
}

.museum-section p {
  font-size: 0.9375rem;
  color: #4D4A46;
  line-height: 1.65;
  margin-bottom: 0.375rem;
}

/* Contact / transport list */

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(232, 220, 194, 0.45);
  font-size: 0.9375rem;
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item dt {
  flex-shrink: 0;
  width: 5.5rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B8478;
}

.contact-item dd {
  margin: 0;
  color: #2C2A28;
  font-weight: 500;
}

.contact-item dd a {
  color: #268D9B;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(38, 141, 155, 0.3);
  transition: text-decoration-color 0.2s ease;
}

.contact-item dd a:hover {
  text-decoration-color: #268D9B;
}

/* Map container */

.museum-map {
  border-radius: 0.625rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid #E8DCC2;
}

/* Opening hours */

.opening-hours-grid {
  display: grid;
  gap: 0.125rem;
}

.opening-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease;
}

.opening-hours-row:nth-child(even) {
  background-color: rgba(232, 220, 194, 0.22);
}

.opening-hours-row.is-today {
  background-color: rgba(194, 106, 48, 0.08);
  font-weight: 600;
}

.opening-hours-row .day-name {
  font-weight: 600;
  color: #2C2A28;
  min-width: 7rem;
}

.opening-hours-row .day-hours {
  color: #5F5C56;
  flex: 1;
  text-align: right;
}

.today-badge {
  margin-left: 0.625rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C26A30;
  background: rgba(194, 106, 48, 0.1);
  border-radius: 1rem;
}

.closed-notice {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: rgba(220, 38, 38, 0.06);
  color: #dc2626;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Nearby museums — card grid */

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 479px) {
  .nearby-grid {
    grid-template-columns: 1fr;
  }
}

.nearby-card {
  display: flex;
  flex-direction: column;
  background: #FDFBF7;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(232, 220, 194, 0.6);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
		            box-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1),
		            border-color 0.2s ease;
}

.nearby-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58, 44, 27, 0.1);
  border-color: rgba(194, 106, 48, 0.3);
}

.nearby-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #E8DCC2;
}

.nearby-card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nearby-card:hover .nearby-card-image img {
  transform: scale(1.04);
}

.nearby-card-body {
  padding: 0.625rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.nearby-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.875rem;
  color: #1A1918;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.nearby-card:hover .nearby-card-title {
  color: #C26A30;
}

.nearby-card-distance {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #918D86;
  white-space: nowrap;
}

/* Price display */

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #C26A30;
}

.price-tag .currency {
  font-size: 0.875rem;
  font-weight: 500;
  color: #76726B;
}

/* ------- Text Editor Content ------- */

.text-editor {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #4D4A46;
}

.text-editor p {
  margin-bottom: 1rem;
}

.text-editor h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.text-editor h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.text-editor a {
  color: #268D9B;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(38, 141, 155, 0.3);
  transition: text-decoration-color 0.2s ease;
}

.text-editor a:hover {
  text-decoration-color: #268D9B;
}

.text-editor ul, .text-editor ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.text-editor li {
  margin-bottom: 0.25rem;
}

.text-editor blockquote {
  border-left: 3px solid #C26A30;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #5F5C56;
  font-style: italic;
}

/* ------- Footer ------- */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1.5px solid #E8DCC2;
  text-align: center;
}

.site-footer-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  color: #918D86;
  margin-bottom: 0.25rem;
}

.site-footer-desc {
  font-size: 0.8125rem;
  color: #B1AEA8;
}

/* ------- Grain Texture Overlay ------- */

.grain-overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ------- Utility: screen-reader-text ------- */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.static {
  position: static;
}

.mt-8 {
  margin-top: 2rem;
}

.text-charcoal-500 {
  --tw-text-opacity: 1;
  color: rgb(118 114 107 / var(--tw-text-opacity));
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

/* ============================================
   Base Layer — Editorial Museum Theme
   ============================================ */

/* ============================================
   Component Layer
   ============================================ */
