/* == index_v3013.css — Global styles == */

/* === Base elements === */

/* =======================================
   ULTRA STABLE LAYOUT — PRECISION FIX v2
   Date: October 23, 2025
   ======================================= */
   
   /* Prevent iPhone/Chrome text zoom */
html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* === Base === */
html, body {
  margin: 0;
  padding: 0;  
  padding-bottom: 50px; /* adds extra space below content */
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* === Page Container === */
.page {
  width: 100%;
  max-width: 1200px;
  margin: 8px auto 30px auto;
  padding: 10px 0;
  background: url("graphics/bgtile-2.jpg") repeat fixed;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  box-sizing: border-box;
}

/* === Header === */
h1 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 25px auto;
  font-size: 28px;
  color: #b00000;
  flex-wrap: wrap;
  padding: 0 20px;
  max-width: 1100px;
}

h1 img {
  max-width: 116px;
  height: auto;
  margin-bottom: 5px;
}

/* === Content Row === */
.content-row {
  display: grid;
  grid-template-columns: 330px 292px;
  gap: 25px;
  justify-content: center;
  align-items: start;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 20px;
}

/* === Left Container === */
.left {
  width: 330px;
  font-size: 14px;
  line-height: 1.30;
  font-weight: 550;
  color: #990099;
  margin-top: -9px; /* raise slightly */
}

.left .tfy-logo { 
  color: #b00000; 
  font-weight: bold; 
  font-size: 16px;
  letter-spacing: -0.3px;
}

.left p { margin: 0 0 4px 0; } /* reduced spacing */
.left ul { margin: 0 0 6px 22px; padding: 0; }
.left ul li {
  margin: 4px 0;
  line-height: 1.3;
  white-space: normal;
}

/* === Right Container === */
.right {
  width: 293px;
  color: #990033;
}

/* Navigation title */
.nav-title {
  display: block;
  width: 270px;
  margin: 0 auto 18px auto; 
  background: #f9f5ff;
  font-weight: bold;
  font-size: 1rem;
  border: 1px solid #b00000;
  border-radius: 15px;
  padding: 5px 0;
  text-align: center;
}

.nav-title a {
  color: #cc0000;
  text-decoration: none;
}

.nav-title a:hover {
  color: #990000;
  text-decoration: underline;
}

.nav-title {
    width: 270px;
    box-sizing: border-box;
    text-align: center;
}

.nav-title {
  margin-bottom: 28px !important; /* increased spacing */
  position: relative;
  top: 3px; /* move entire Navigation Menu (and outline) down by 3px */
}

/* Center the Navigation Menu within the right container */
.right {
    text-align: center; /* This centers all content in the right column */
}

/* Hover effects for your existing .nav-title */
.nav-title {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15px;
    padding: 6px 15px;
    display: inline-block;
    
    /* NO MARGINS - to avoid positioning issues */
    
    font-family: verdana;
    font-size: 16px;
    font-weight: bold;
    
    /* Force exact 270px width */
    width: 270px;
    box-sizing: border-box;
    text-align: center; /* Center the text within the 270px box */
}

/* Hover effect - changes background like table background */
.nav-title:hover {
    background-color: #e3f2fd;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transform: scale(1.02);
}

/* Link color changes from red to blue on hover */
.nav-title:hover a {
    color: #0000ff;
    text-decoration: underline;
}

/* Active state when clicked */
.nav-title:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.4);
}

/* Focus state for keyboard navigation */
.nav-title:focus-within {
    outline: 2px solid #2196f3;
    outline-offset: 3px;
}

/* 2️⃣ Slight vertical alignment correction for containers */
.content-row {
  align-items: flex-start !important;
}
.left, .right {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Right box */
.nav-box {
  width: 292px;
  border: 2px double #b00000;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  background: linear-gradient(180deg, #fff8e0, #ffdbb8);
  font-size: 14px;
  margin: 0 auto 25px auto;
}

.nav-left {
  padding: 7px 0 0;
  font-size: 14px;
  line-height: 1.25;
  background: #fff8e0;
  color: #000;
}

.highlight-phrase {
  display: block;
  font-weight: bold;
  font-size: 14px;
  color: #800000;
  padding: 2px 0 5px;
  white-space: nowrap; /* keep all on one line */
}

/* "Hurry up!" line */
.nav-right {
  background: #fceaf8;
  padding: 7px 0;
  font-size: 0.85rem;
  font-weight: bold;
  border-top: 2px solid #b00000;
  word-spacing: -0.5px;
}

/* === Welcome Table === */
.responsive-table {
  background-color: #6f3c9d;
  border: 6px solid #d92641;
  border-radius: 15px;
  max-width: 610px;
  width: 100%;
  height: 190px;
  text-align: center;
  margin: 50px auto 50px;
}

.responsive-table th {
  color: #ffffcc !important;
  font-family: Arial, sans-serif;
  font-size: 16px !important;
}

.responsive-table td {
  font-family: Verdana, Arial, sans-serif;
  color: #ffffcc !important;
  font-size: 16px !important;
  line-height: 1.8;
  text-align: center;
}

/* ===========================================================
   📱 MOBILE STYLES — Final Stable Layout
   =========================================================== */
@media screen and (max-width: 768px) {

  /* === TEMP TEST — mobile layout adjustment === */
  .left {
    width: 98% !important;         /* give it almost full width */
    margin-left: -8px !important;  /* keep near the left edge */
    padding: 0 !important;
    white-space: normal !important;  /* allow proper line flow */
    word-break: keep-all !important; /* keep words intact */
  }

  .left ul li {
    white-space: nowrap !important;  /* try to keep each list item on one line */
    font-size: 15px !important;
    line-height: 1.25 !important;
    margin: 2px 0 !important;
  }

  /* === General layout === */
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: #fff;
  }

  .page {
    width: 96%;
    max-width: 700px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
  }

  /* === Containers === */
  .content-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: flex-start;
    gap: 6px !important;
  }

  .right {
    margin-left: 24px !important;
    margin-right: 12px !important;
  }

  /* === Navigation box === */
  .nav-box {
    text-align: center !important;
    padding: 4px !important;
    width: calc(100% - 18px) !important;
    margin: 0 auto !important;
    transform: translateX(20px);
  }

  /* === Navigation title === */
  .nav-title {
    width: 250px !important;
    margin: 0 auto 26px auto !important;
  }

  /* === Footer === */
  footer, .copyright {
    font-size: 11px !important;
    text-align: center !important;
    color: #333 !important;
    padding-top: 8px;
  }
}

@media screen and (max-width: 768px) {
  .great-vacations {
    height: auto !important;
    margin: 20px auto !important;
  }
}
