@font-face {
  font-family: 'HoeflerText-Regular';
  src: url('HoeflerText-Regular.ttf') format('truetype');
}

body { 
  font-family: "HoeflerText-Regular", "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-size: 20pt;
  display: flex; 
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; 
}

body.hotels {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* Absolutely no body scrolling allowed */
  margin: 0;
  padding: 0;
  background: white; /* save downloading background, you can't see it */
}

p, label {
  font-size: 18pt;
  margin-block-start: 0.25em;
  margin-block-end: 0.25em;
}

a {
  color: #e0040c;
  font-weight: bold;
}

/* Need Javascript */
noscript {
  color: #e0040c;
  font-size: 25pt;
  text-align: center;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 36pt;
  
  color: #e0040c; 
  border-bottom: 3px double #d4af37; 
  padding-bottom: 6px; 

  display: flex;
  justify-content: center;
  align-items: center;
}

h1::before {
  content: "~ ♦ ~ ";
  color: #d4af37; 
  font-size: 0.9em;
  vertical-align: middle;
  margin-right: 0.2em;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;      
  font-family: "HoeflerText-Regular", "Playfair Display", serif;
}

h1::after {
  content: " ~ ♦ ~";
  color: #d4af37; 
  font-size: 0.9em;
  vertical-align: middle;
  margin-left: 0.2em;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;      
  font-family: "HoeflerText-Regular", "Playfair Display", serif;
}

h2 {
  margin: 0;
  text-align: center;
  font-size: 23pt;
  
  color: #e0040c; 
  border-bottom: 3px double #d4af37; /* A classic gold double-line border */
  padding-bottom: 6px; /* Gives the text room to breathe above the border */

  display: flex;
  justify-content: center;
  align-items: center;
}

h2::before {
  content: "~ ♦ ~ ";
  color: #d4af37; 
  font-size: 0.9em;
  vertical-align: middle;
  margin-right: 0.2em;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;     
  font-family: "HoeflerText-Regular", "Playfair Display", serif;
}

h2::after {
  content: " ~ ♦ ~";
  color: #d4af37; 
  font-size: 0.9em;
  vertical-align: middle;
  margin-left: 0.2em;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;  
  font-family: "HoeflerText-Regular", "Playfair Display", serif;   
}

#invite h3, #home h3 {
  margin: 0;
  text-align: center;
  font-size: 20pt;
  
  color: #e0040c; 
  padding-bottom: 6px; 
  text-align: center;
}

#invite h4, #home h4 {
  margin: 0;
  margin-top: 1em;
  font-size: 1.4em;
  color: #e0040c; 
  text-align: center;
}

#home blockquote {
  position: relative; 
  max-width: 400px;
  margin: 50px auto; 
  padding: 10px 40px;
  
  font-size: 1.6rem;
  font-style: italic;
  text-align: center;
  color: #333;
  line-height: 1.75;
}

#home p {
  text-align: center;
}

#home blockquote::before,
#home blockquote::after {
  position: absolute;
  font-size: 5rem; 
  color: #d4af37; 
  line-height: 1;
}

#home blockquote::before {
  content: '“';
  top: -15px; 
  left: -10px;
}

#home blockquote::after {
  content: '”'; 
  bottom: -40px; 
  right: 10px;
}

#map { height: 100vh; width: 65%; }

#sidebar { 
  width: 35%; 
  height: 100vh; 
  display: flex; 
  flex-direction: column; 
  padding: 20px; 
  box-sizing: border-box; 
  background: #f9f9f9; 
  font-size: 13pt;
}

#content {
  width: 100%;
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
  /* Add these two lines to center children: */
  align-items: center;       /* Centers horizontally */
  justify-content: center;   /* Centers vertically */
  
  padding: 20px; 
  box-sizing: border-box; 
}

#invite, #home  {
  border: 1px dashed #5e12b0; /* Fixed typo here */
  padding: 20px;
  width: 50vw;
  min-height: 70vh;
  display: flex; 
  flex-direction: column; 
  background-color: rgba(255, 255, 255, 0.75);
}

/* The Home Button Container */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  width: 45px;
  height: 45px;
  border: 2px solid #d4af37; /* Your gold theme */
  border-radius: 50%; /* Makes it a perfect circle */
  color: #d4af37; /* Makes the SVG icon gold */
  z-index: 9999;
  
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease; /* Smooth hover animation */
  
  /* OPTIONAL: Pins the button to the top left of the screen */
  position: absolute; 
  bottom: 5%;
  right: 5%;
}

/* Control the exact size of the SVG icon inside */
.home-btn svg {
  width: 24px;
  height: 24px;
}

/* The Hover State (Inverts to solid gold!) */
.home-btn:hover {
  background-color: rgba(215, 175, 55, 1.0);
  color: white; /* Changes the SVG icon to white */
  transform: scale(1.05); /* Slight grow effect */
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3); /* Soft gold glow */
}

.btn-container {
  display: flex; 
  gap: 15px; 
  margin-top: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  width: 90%;
  justify-content: space-evenly;
}

.rsvp-btn { 
  display: inline-block; 
  background: #5e12b0; 
  color: white; 
  text-decoration: none; 
  border-radius: 4px; 
  padding: 10px;
  align-self: center;
  font-size: 20pt;
  font-family: "HoeflerText-Regular", "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  margin: 20px;
  height: 100%;
}

.rsvp-btn:hover { 
  background: #7337b3; 
}

.hotels-btn { 
  display: inline-block; 
  background: #e0040c; 
  color: white; 
  text-decoration: none; 
  border-radius: 4px; 
  padding: 10px;
  align-self: center;
  font-size: 20pt;
  font-family: "HoeflerText-Regular", "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  margin: 20px;
  height: 100%;
}

.hotels-btn:hover { 
  background: #c43d42; 
}

.rsvp-btn-outer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
  margin: 20px;
}

.gift-btn { 
  display: inline-block; 
  background: #a18325; 
  color: black; 
  text-decoration: none; 
  border-radius: 4px; 
  padding: 10px;
  align-self: center;
  font-size: 20pt;
  font-family: "HoeflerText-Regular", "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  margin: 20px;
  height: 100%;
}

.gift-btn:hover { 
  background: #cfa932; 
}

/* Add this right below the #sidebar rule */
#hotel-list {
  flex: 1;             
  overflow-y: auto;    
  padding-right: 10px; 
  margin-bottom: 15px; 
  overscroll-behavior-y: contain; /* iOS fix */
}

.hotel-card { background: white; padding: 15px; margin-bottom: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.hotel-image { width: 100%; height: 250px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.book-btn { display: inline-block; padding: 10px 15px; background: #003580; color: white; text-decoration: none; border-radius: 4px; margin-top: 10px; font-weight: bold; }
.book-btn:hover { background: #00224f; }
.price { font-size: 1.2em; font-weight: bold; padding-left: 0.8em; }
.priceInner { color: #28a745; }
.priceDisclaim { font-size: 0.6em; font-weight: normal; }

/* --- CARD HEADER & RATING BADGE --- */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.hotel-card h3 {
  margin: 0;
  flex: 1; /* Tells the name to take up all remaining space */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 15px; /* Adds breathing room between the name and the rating */
}

.rating-badge-outer {
  display: flex;
  align-items: center; /* Vertically centers the text and the badge */
  gap: 6px; /* Adds consistent spacing between the text and badge */
  white-space: nowrap; /* Prevents the container from breaking into two lines */
}

.rating-text {
  font-size: 0.85em; /* Matches the badge size */
  font-weight: 600; /* Semi-bold so it's readable, but doesn't overpower the badge */
  color: #333; /* A dark grey/black to keep it clean */
}

.rating-badge {
  background-color: #003580; /* Matches your Booking.com blue */
  color: white;
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.85em;
  /* white-space: nowrap; is now safely handled by the outer container! */
}

.rsvp-form {
  display: flex; 
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.rsvp-form-element {
  padding-top: 0.75em; 
  width: 100%;
}

.rsvp-form-extra {
  display: none; 
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.rsvp-form-element p {
  margin-block: 0.2em;
}

.rsvp-form-element p.rsvp-question {
  font-size: 2em;
}

.rsvp-form-element input[type="text"], .rsvp-form-element input[type="tel"] {
  font-size: 20pt;
  font-family: "HoeflerText-Regular", "Playfair Display", serif;
  padding: 12px 15px; 
  box-sizing: border-box; 
  background-color: #fff;
  border: 2px solid #d4af37;
  border-radius: 4px;
  max-width: 400px;
  width: 100%;
}

.rsvp-form-element input[type="text"]:focus, .rsvp-form-element input[type="tel"]:focus {
  background-color: #d9d5ca; 
}
.rsvp-form-element input[type="text"]:hover, .rsvp-form-element input[type="tel"]:hover {
  background-color: #f0f0f0; 
}

.rsvp-form-element input[type="text"]:active, .rsvp-form-element input[type="tel"]:active {
  /* Slightly scale down the input to give a "pressed" button feel */
  transform: scale(0.95); 
  transition-property: transform;
  transition-duration: 0.1s;
}

.rsvp-form-element input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none; /* Required for older Safari versions */
  
  width: 24px;
  height: 24px;
  background-color: #fff;
  border: 2px solid #d4af37;
  border-radius: 4px;        
  
  /* Keep it aligned nicely with the text */
  vertical-align: middle;
  cursor: pointer;
  position: relative; 
  margin-right: 4px; 
}

.rsvp-form-element input[type="checkbox"]:checked {
  background-color: #d4af37; 
}

.rsvp-form-element input[type="checkbox"]:not(:checked):hover {
  background-color: #f0f0f0; 
}

.rsvp-form-element input[type="checkbox"]:checked::after {
  content: '✔'; 
  position: absolute;
  color: white;
  font-size: 16px;
  
  /* Perfectly center the checkmark */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rsvp-form-element input[type="radio"] {
  appearance: none;
  -webkit-appearance: none; 
  
  width: 24px;
  height: 24px;
  background-color: #fff;
  border: 2px solid #d4af37; 
  border-radius: 50%;        
  
  vertical-align: middle;
  cursor: pointer;
  position: relative; 
  margin-right: 8px; 
}

.rsvp-form-element input[type="radio"]:checked {
  background-color: #d4af37; 
}

.rsvp-form-element input[type="radio"]:not(:checked):hover {
  background-color: #f0f0f0; 
}

.rsvp-form-element input[type="radio"]:checked::after {
  content: ''; 
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%; /* Make the inner dot a circle too */
  
  /* Perfectly center the dot */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rsvp-form-element textarea {
  font-size: 15pt; 
  padding: 12px 15px; 
  width: 100%; 
  box-sizing: border-box; 
  border: 2px solid #d4af37; 
  border-radius: 4px;
  font-family: inherit; 
  resize: vertical; 
  min-height: 100px;
}

.rsvp-form-element textarea:focus {
  border-color: #d4af37; 
  outline: none; 
}

.rsvp-form-element textarea:hover {
  background-color: #f0f0f0;
}

.rsvp-form-element textarea:focus {
  background-color: #d9d5ca; 
  border-color: #000;
}

.rsvp-form-element textarea:active {
  background-color: #d9d5ca; 
  border-color: #000;
}

.rsvp-form-element textarea:active {
  transform: scale(0.95); 
  transition-property: transform;
  transition-duration: 0.1s;
}

.rsvp-char-counter {
  font-size: 10pt;
  color: #777;
  text-align: right;
  margin-top: 5px;
  margin-bottom: 0;
}

.rsvp-char-counter.warning {
  color: #e0040c; 
  font-weight: bold;
}

.rsvp-other-diet {
  margin-top: 0.3em;
}

.rsvp-privacy {
  padding-top: 0.5em;
  font-size: 12pt;
  color: #555;
}

/* --- MODAL OVERLAY --- */
.modal-overlay {
  display: none; 
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); 
  z-index: 9999; 
  justify-content: center; 
  align-items: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.modal-overlay.show-modal {
  display: flex; 
  opacity: 1;    
}

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  border: 3px double #d4af37; 
  text-align: center;
  max-width: 400px;
  width: 60%; 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

  transform: translateY(20px); 
  transition: transform 3s ease;
}

.modal-overlay.show-modal .modal-content {
  transform: translateY(0);
}

.close-btn {
  margin-top: 20px;
  padding: 10px 25px;
  background-color: #5e12b0;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.close-btn:hover {
  background-color: #4a0e8c;
}

.resubmit-btn {
  background-color: #d4af37; 
  color: black; 
  font-weight: bold;
}

.resubmit-btn:hover {
  background-color: #d1bb75; 
}

.cancel-btn {
  background-color: #aaaaaa; 
  color: black; 
}

.cancel-btn:hover {
  background-color: #cccccc; 
}

.modal-button-group {
  display: flex; 
  gap: 15px; 
  justify-content: center; 
  margin-top: 25px; 
  align-items: stretch; 
}

.flex-btn {
  display: flex; 
  align-items: center; 
  justify-content: center;
  text-align: center; 
  height: 150px;
}

/* --- SPINNER OVERLAY --- */
#loading-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loading-overlay h3 {
  padding-bottom: 5em;
  text-align: center;
}

#loading-overlay h5 {
  text-align: center;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #003580; /* Booking.com blue */
  border-radius: 50%;
  width: 60px; height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- DISCLAIMER BANNER --- */
#disclaimer {
  background-color: #c2c2c2;
  color: #5e3919;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid #999999;
  font-size: 10pt;
  line-height: 1.5;
  margin-top: auto; 
  
  transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  max-height: 200px; /* Gives the transition a starting height to animate from */
  overflow: hidden;
  opacity: 1;
}

@media (max-width: 768px) {
  #disclaimer.scrolled-away {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border: none;
  }

  h1 {
    font-size: 22pt;
  }
  
  h2 {
    font-size: 16pt;
  }

  #invite h3, #home h3 {
    font-size: 15pt;
  }

  #invite h4, #home h4 {
    font-size: 20pt;
  }

  .gift-btn, .rsvp-btn, .hotels-btn {
    width: 75vw;
  }
}

/* --- MOBILE/SMALL DISPLAY RESPONSIVENESS --- */
@media (max-width: 1000px) {
  body { flex-direction: column; }
  #map { width: 100%; height: 30vh; }
  #sidebar { width: 100%; height: 70vh; }  
  h1 { font-size: 20pt; }
  h2 { font-size: 16pt; }
  p, label { font-size: 14pt; }
  blockquote { font-size: 18pt; }
  #invite, #home { width: 80vw; }
  #disclaimer { width: 75%; }
  .rsvp-btn-outer { flex-direction: column; }
}
/* --- SMALLER PHONES --- */
@media (max-width: 500px) {
  .rating-text {
    font-size: 0.6em; 
  }

  .rating-badge {
    font-size: 0.6em;
  }

  .book-btn { 
    display: inline-block; 
    padding: 5px 5px; 
    background: #003580; 
    color: white; 
    text-decoration: none; 
    border-radius: 4px; 
    margin-top: 10px; 
    font-weight: bold; 
    font-size: 0.7em;
  }

  .priceDisclaim { 
    font-size: 0.5em; 
    font-weight: normal; 
  }

  .btn-container {
    flex-direction: column-reverse;
  }

  .rsvp-btn, .hotels-btn, .gift-btn {
    width: 85%;
  }
}

@media (min-width: 769px) {
  .home-btn {
    display: none;
  }
}

.blur-load {
  filter: blur(5px);
  transition: filter 0.5s ease-in-out;
}

.blur-load.loaded {
  filter: blur(0);
}

#status-bar {
  display: flex;
  text-align: center;
  padding: 5px;
  padding-bottom: 15px;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  color: rgb(0, 53, 128);
  font-weight: bold; 
  font-size: 0.9em;
}

.hotel-list {
  text-align: center;
}

.smallerText {
  font-size: 0.5em;
  padding-top: 10px;
}
