/* CEDAR TREE GOLF PLAZA - Responsive CSS
   Existing desktop layout is preserved. Mobile/tablet behavior is added below.
*/
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.cedar-body { margin: 0; padding: 0; min-width: 0; overflow-x: hidden; }
body.cedar-body img { max-width: 100%; height: auto; }
.site-layout { width: 763px; max-width: 100%; margin-left: auto; margin-right: auto; }
.site-layout td, .site-layout th { max-width: 100%; }
.site-content { overflow-wrap: anywhere; }
.site-content > table { max-width: 100%; }
.site-content iframe { max-width: 100%; }
/* Keep legacy tables usable: wide price tables can scroll horizontally instead of breaking the page. */
.site-content table { }

@media screen and (max-width: 767px) {
  body.cedar-body {
    width: 100%;
    background-attachment: scroll;
    font-size: 16px;
    line-height: 1.6;
  }

  .site-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse;
  }

  .site-layout,
  .site-layout > tbody,
  .site-layout > tbody > tr,
  .site-layout > tr { display: block; width: 100%; }

  .site-layout > tbody > tr > td,
  .site-layout > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Header */
  .site-layout > tbody > tr:first-child > td { padding-top: 4px; }
  .site-layout > tbody > tr:nth-child(2) > td { padding: 0; }
  .site-layout > tbody > tr:nth-child(2) img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }
  .site-layout > tbody > tr:nth-child(3) > td {
    height: 8px;
    padding: 0;
    font-size: 0;
  }

  /* Navigation: existing image buttons become a touch-friendly 2-column menu. */
  .site-nav-row { display: block !important; }
  .site-nav-row > .site-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 8px 10px 10px !important;
    background: #f5f7f5;
  }
  .site-nav-row > .site-nav a {
    display: block;
    width: 100%;
    line-height: 0;
    min-width: 0;
  }
  .site-nav-row > .site-nav a img {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 35px;
  }
  .site-nav-row > .site-nav br { display: none; }

  .site-content {
    padding-top: 10px !important;
    padding-bottom: 12px !important;
    overflow: visible;
  }

  /* Legacy fixed-width elements inside content are made fluid where possible. */
  .site-content img { max-width: 100% !important; height: auto !important; }
  .site-content > table,
  .site-content table[width] { width: 100% !important; max-width: 100% !important; }
  .site-content table[width="700"],
  .site-content table[width="650"],
  .site-content table[width="600"],
  .site-content table[width="500"] { width: 100% !important; }

  /* Long/complex tables such as pricing: retain columns and allow horizontal scrolling. */
  .site-content table table { max-width: none; }
  .site-content table { overflow-wrap: normal; }
  .site-content td, .site-content th {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Text links and form controls are easier to tap. */
  .site-content a { overflow-wrap: anywhere; }
  input, select, textarea, button { max-width: 100%; font-size: 16px; }

  /* Footer */
  .site-layout > tbody > tr:last-child > td {
    padding: 12px !important;
    text-align: center;
  }
}

@media screen and (max-width: 420px) {
  .site-nav-row > .site-nav { grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px !important; }
  .site-content { padding-left: 8px !important; padding-right: 8px !important; }
  .site-content td, .site-content th { font-size: 14px; }
}

/* =========================================================
   PC NAVIGATION FIX
   Keep the original left navigation at 158px on every page.
   ========================================================= */
@media screen and (min-width: 768px) {
  .site-layout {
    width: 763px !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    table-layout: auto !important;
  }
  .site-layout > tbody > tr.site-nav-row > td.site-nav,
  .site-layout > tr.site-nav-row > td.site-nav {
    width: 158px !important;
    min-width: 158px !important;
    max-width: 158px !important;
    padding: 0 !important;
    vertical-align: top !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  .site-layout > tbody > tr.site-nav-row > td.site-nav a,
  .site-layout > tr.site-nav-row > td.site-nav a {
    display: block !important;
    width: 158px !important;
    min-width: 158px !important;
    max-width: 158px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
  }
  .site-layout > tbody > tr.site-nav-row > td.site-nav img,
  .site-layout > tr.site-nav-row > td.site-nav img {
    display: block !important;
    width: 158px !important;
    min-width: 158px !important;
    max-width: 158px !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.cedar-body > center > .site-layout td.site-nav {
    max-width: 158px !important;
  }
}
