body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #EA7B7B;
    font-family: "Cormorant", serif;
}

main {
    flex: 1;
}

p {
    font-size: 1.25rem;
    }

.form-label {
    font-size: 1rem;
}

.nav-greeting {
    color: #FFEAD3;
    font-style: italic;
    pointer-events: none;
}

.nav-greeting-divider {
    height: 1.25rem;
    opacity: 0.4;
    background-color: #FFEAD3;
    align-self: center;
}

body:has(#contact-page) .nav-greeting,
body:has(#add-post-page) .nav-greeting {
    color: #EA7B7B;
}

body:has(#contact-page) .nav-greeting-divider,
body:has(#add-post-page) .nav-greeting-divider {
    background-color: #EA7B7B;
}

.all-nav-links {
    color: black;
    opacity: 0.75
}

.all-nav-links-light {
    color: white;
    opacity: 0.75
}

.all-nav-links:hover {
    color: black;
    opacity: 1;
}

.all-nav-links-light:hover {
    color: white;
    opacity: 1;
}

#about-us-title,
#logo-name,
#contact-page-developer,
.bi-pencil-fill {
    color: #A82323;
}

#all-posts-story {
    color: #FFEAD3;
}

body:has(#contact-page) nav {
    background-color: #FFEAD3;
}

#section-home-intro {
      min-height: calc(100vh - 56px);
      width: 100%;
      max-width: 100% !important;
      display: flex;
      align-items: center;
      padding-left: 6% !important;
      padding-right: 6% !important;
}

#section-home-intro .row {
      padding-top: 1.5rem !important;
      padding-bottom: 1.5rem !important;
      width: 100%;
}

#section-home-intro h1 {
      font-size: 5.5rem;
      padding-top: 0 !important;
}

#section-home-intro .lead {
      font-size: 1.9rem;
}

/* Contact page split layout */
.contact-split {
    display: flex;
    flex: 1;
    flex-direction: column;
}

@media (min-width: 992px) {
    .contact-split {
        flex-direction: row;
        min-height: calc(100vh - 56px);
    }
}

.contact-left {
    background-color: #FFEAD3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2.5rem;
    flex: 1;
}

.contact-right {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2.5rem;
    flex: 1;
}

.contact-left-inner,
.contact-right-inner {
    width: 100%;
    max-width: 400px;
}

.contact-heading {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    color: black;
    margin-bottom: 0.75rem;
}

.contact-sub {
    font-size: 1.15rem;
    color: black;
    opacity: 0.65;
    margin-bottom: 1.5rem;
}

.contact-divider {
    border: none;
    border-top: 1.5px solid rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.contact-developer {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.contact-required {
    font-size: 0.9rem;
    opacity: 0.55;
    margin-bottom: 1.25rem;
}

#contact-page .form-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
    color: black;
    margin-bottom: 0.3rem;
}

#contact-page .form-control {
    background-color: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-family: "Cormorant", serif;
    font-size: 1.1rem;
    color: black;
    box-shadow: none;
}

#contact-page .form-control:focus {
    background-color: transparent;
    border-color: black;
    box-shadow: none;
    color: black;
}

#contact-page .mb-3 {
    margin-bottom: 1.75rem !important;
}

#contact-page .btn-primary {
    background-color: black;
    border: none;
    border-radius: 8px;
    font-family: "Cormorant", serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 2.5rem;
    margin-top: 0.75rem;
    transition: opacity 0.2s ease;
}

#contact-page .btn-primary:hover {
    background-color: black;
    opacity: 0.75;
}

.bi-geo-alt-fill {
    color: #980404;
}

.container {

    padding: 30px 0;
}

#logo-name {
    font-size: 30px
}

#section-home-all-posts {
    background-color: #FFEAD3;
}

.card {
    border: none;
}

#section-home-all-posts .card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}


#post-page {
    background-color: white;
}

#section-footer {
    background-color: black;
}


/* Featured post card */
.featured-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.featured-img-col {
    aspect-ratio: 3/2;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

/* Post card hover */
.post-card-link .card {
    transition: transform 0.15s ease;
}

.post-card-link:hover .card {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

.post-card-link:hover .card-title {
    color: #A82323;
}


.brand-text { color: #A82323; }
.brand-amp { color: black; }

.icon-inline {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.contact-page-tagline {
    font-size: 1rem;
    opacity: 0.6;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post-card-max-width {
    max-width: 660px;
}

/* About page */
body:has(#about-page) main {
    display: flex;
    align-items: center;
}

/* Add Post page */
body:has(#add-post-page),
body:has(#add-post-page) nav {
    background-color: #FFEAD3;
}

.add-post-title {
    font-size: 3.5rem;
    font-weight: 500;
    color: black;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.add-post-subtitle {
    font-size: 1.15rem;
    color: black;
    opacity: 0.65;
    margin-bottom: 1.25rem;
}

.add-post-divider {
    border: none;
    border-top: 1.5px solid rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

#add-post-page .form-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
    color: black;
    margin-bottom: 0.3rem;
}

#add-post-page .form-control,
#add-post-page .form-select {
    background-color: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-family: "Cormorant", serif;
    font-size: 1.1rem;
    color: black;
    box-shadow: none;
}

#add-post-page .form-control:focus,
#add-post-page .form-select:focus {
    background-color: transparent;
    border-color: black;
    box-shadow: none;
    color: black;
}

#add-post-page .mb-3 {
    margin-bottom: 1.75rem !important;
}

#add-post-page .btn-primary {
    background-color: black;
    border: none;
    border-radius: 8px;
    font-family: "Cormorant", serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 2.5rem;
    margin-top: 0.75rem;
    transition: opacity 0.2s ease;
}

#add-post-page .btn-primary:hover {
    background-color: black;
    opacity: 0.75;
}

/* Shared site button style (for <a> links styled as buttons) */
.btn-site {
    background-color: black;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "Cormorant", serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 2.5rem;
    transition: opacity 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-site:hover {
    background-color: black;
    color: white;
    opacity: 0.75;
}

/* Comment delete icon */
.comment-delete-link {
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.comment-delete-link:hover {
    opacity: 1;
}

/* Post page edit/delete action labels */
.post-action-label {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#post-page .d-flex.align-items-center {
    transition: opacity 0.2s ease;
}

#post-page .d-flex.align-items-center:hover {
    opacity: 0.6;
}

/* Post page comment form button */
#post-page .btn-primary {
    background-color: black;
    border: none;
    border-radius: 8px;
    font-family: "Cormorant", serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 2.5rem;
    margin-top: 0.75rem;
    transition: opacity 0.2s ease;
}

#post-page .btn-primary:hover {
    background-color: black;
    opacity: 0.75;
}

/*Flash msg category colors */
.success {
    color: #198754;
}

.error {
    color: red;
}

.info {
    color: #0d6efd;
}

/* Login / Register standalone pages */
body:has(#login-page),
body:has(#register-page),
body:has(#verify-email-page) {
    background-color: #FFEAD3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper,
.register-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 2rem 1.5rem;
}

.login-wrapper a.back-link,
.register-wrapper a.back-link {
    font-size: 0.95rem;
    color: black;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}

.login-wrapper a.back-link:hover,
.register-wrapper a.back-link:hover {
    opacity: 1;
}

.login-wrapper h1,
.register-wrapper h1 {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    color: black;
}

.login-wrapper .subtitle,
.register-wrapper .subtitle {
    font-size: 1.15rem;
    opacity: 0.65;
    margin-bottom: 2.25rem;
    color: black;
}

#login-page .form-label,
#register-page .form-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
    color: black;
    margin-bottom: 0.3rem;
}

#login-page .form-control,
#register-page .form-control {
    background-color: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-family: "Cormorant", serif;
    font-size: 1.1rem;
    color: black;
    box-shadow: none;
}

#login-page .form-control:focus,
#register-page .form-control:focus {
    background-color: transparent;
    border-color: black;
    box-shadow: none;
    color: black;
}

#login-page .mb-3,
#register-page .mb-3 {
    margin-bottom: 1.75rem !important;
}

#login-page .btn-primary,
#register-page .btn-primary {
    background-color: black;
    border: none;
    border-radius: 8px;
    font-family: "Cormorant", serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 2.5rem;
    margin-top: 0.75rem;
    transition: opacity 0.2s ease;
}

#login-page .btn-primary:hover,
#register-page .btn-primary:hover {
    background-color: black;
    opacity: 0.75;
}

.register-link {
    display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: black;
    opacity: 0.6;
}

.register-link a {
    color: black;
    opacity: 1;
    font-weight: 600;
}

.register-link a:hover {
    opacity: 0.7;
}

.login-link {
    display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: black;
    opacity: 0.6;
}

.login-link a {
    color: black;
    opacity: 1;
    font-weight: 600;
}

.login-link a:hover {
    opacity: 0.7;
}

.flash-msg {
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Verify email page */
.verify-email-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 2rem 1.5rem;
}

.verify-email-wrapper a.back-link {
    font-size: 0.95rem;
    color: black;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}

.verify-email-wrapper a.back-link:hover {
    opacity: 0.7;
}

.verify-email-wrapper h1 {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    color: black;
}

.verify-email-wrapper .subtitle {
    font-size: 1.15rem;
    opacity: 0.65;
    margin-bottom: 2rem;
    color: black;
}

.verify-email-divider {
    border: none;
    border-top: 1.5px solid rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.verify-email-resend-text {
    font-size: 1rem;
    color: black;
    opacity: 0.6;
    margin-bottom: 1.25rem;
}

.verify-email-resend-text a {
    color: black;
    font-weight: 600;
    opacity: 1;
}

.verify-email-resend-text a:hover {
    opacity: 0.7;
}

.verify-email-links {
    font-size: 1rem;
    color: black;
    opacity: 0.6;
}

.verify-email-links a {
    color: black;
    font-weight: 600;
}

.verify-email-links a:hover {
    opacity: 0.7;
}

.verify-email-links-divider {
    margin: 0 0.5rem;
}

/* AI-GENERATED INSIGHTS AND SIMILAR DESTINATIONS */
.ai-summary-box {
    background-color: transparent;
    position: relative;
    z-index: 0;
}

.ai-destinations-box {
    background-color: transparent;
    position: relative;
    z-index: 0;
}

.ai-summary-box::before,
.ai-destinations-box::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(1rem + 2px);
    background: conic-gradient(
        from var(--angle, 0deg),
        #A82323,
        #E05C5C,
        #FFAD99,
        #E05C5C,
        #A82323
    );
    z-index: -1;
    animation: spin-border 3s linear infinite;
}

.ai-summary-box::after,
.ai-destinations-box::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #FFEAD3;
    border-radius: calc(1rem - 2px);
    z-index: -1;
}

.ai-summary-label {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #A82323;
    font-weight: 600;
    margin-bottom: 0;
}

.ai-word {
    font-size: 1.05rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: default;
    color: #A82323;
}

.ai-label-icon {
    font-size: 1.2rem;
}

.ai-destinations-label {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #A82323;
    font-weight: 700;
    margin-bottom: 0;
}

.ai-destinations-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-destination-tag {
  font-size: 1.05rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #A82323;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.ai-destination-tag::after {
    content: " ↗";
    font-size: 0.8rem;
}

.ai-destination-tag:hover {
  transform: translateY(-3px);
  border-color: black;
  color: #A82323;
}


/* AI CHATBOX STYLES */
@keyframes spin-border {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.chat-section-title {
  color: #A82323;
}

/* Chat widget - holds chatbox, input field, button, & AI disclaimer */
.chat-widget {
  background-color: transparent;
  border-radius: 1rem;
  padding: 1.25rem;
  position: relative;
  z-index: 0;
}

.chat-widget::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(1rem + 2px);
    background: conic-gradient(
        from var(--angle, 0deg),
        #A82323,
        #E05C5C,
        #FFAD99,
        #E05C5C,
        #A82323
    );
    z-index: -1;
    animation: spin-border 3s linear infinite;
}

.chat-widget::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #FFEAD3;
    border-radius: calc(1rem - 2px);
    z-index: -1;
}

/* Chatbox div for user and AI chat bubbles */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

/* Base class for user and AI chat bubbles (common styles) */
.chat-message {
  max-width: 80%;
  padding: 0.5rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* User chat bubble */
.chat-message-user {
  align-self: flex-end;
  background-color: #A82323;
  color: white;
}

/* AI chat bubble */
.chat-message-model {
  align-self: flex-start;
  background-color: white;
  color: #1a1a1a;
  border-left: 3px solid #A82323;
}

/* User input field */
.chat-input {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}

.chat-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.chat-input:focus {
  border-color: #A82323;
  box-shadow: 0 0 0 0.2rem rgba(168, 35, 35, 0.25);
}

.chat-send-btn {
  background-color: #A82323;
  color: white;
  border: none;
  padding: 0.375rem 1rem;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}

.chat-send-btn:hover {
  background-color: #8a1c1c;
  color: white;
}

/* For AI chat bubbles */
.chat-ai-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A82323;
  margin-bottom: 0.25rem;
}

.chat-disclaimer {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 0.5rem;
  margin-bottom: 0;
}



/* Typing indicator */
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.chat-typing {
  display: flex;
  gap: 0.3rem;
  padding: 0.5rem 0.875rem;
  align-self: flex-start;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background-color: #A82323;
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}










