/* =====================================================================
   kyp-responsive.css - phone and tablet layout for Kovai Yellow Pages
   Claude change: 2026-11-29 - loaded after bootstrap(-responsive).css and
   style.css (metatags.php; Company_details.php loads it again after its own
   CSS). Everything here is inside media queries, except the mobile menu
   (hidden on desktop) and a few overflow guards, so desktop (>= 980 px)
   looks as before.
   Breakpoints follow Bootstrap 2: <= 979 px tablet + phone, <= 767 px phone.
   ===================================================================== */

/* ---- Mobile menu (markup in navbar.php); never shown on desktop ---- */
.kyp-menu-btn, .kyp-mmenu { display: none; }

/* ---- Overflow guards (all widths; they only shrink oversize things) ---- */
img { max-width: 100%; }
/* Google auto-ads sometimes insert an ad iframe wider than its column (seen: 1200 px in the 300 px side
   column) and the jssor slider parks the next slide to the right of the visible one: no sideways scrolling.
   "clip" (newer browsers) also stops programmatic/touch panning; "hidden" is the fallback. */
body { overflow-x: hidden; overflow-x: clip; }
#slider1_container { overflow: hidden; }
.pagination { max-width: 100%; }
.listing h2 a, .detail h1, .description { overflow-wrap: break-word; word-wrap: break-word; }

/* =====================================================================
   Tablet and phone (<= 979 px)
   ===================================================================== */
@media (max-width: 979px) {
  html { font-size: 100% !important; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
  body { padding-left: 0; padding-right: 0; line-height: 20px; }

  /* header: bootstrap makes the fixed navbar static below 980 px, so the
     60 px gap reserved for it is not needed */
  .navbar-fixed-top, .navbar-static-top { margin: 0; } /* bootstrap uses -20 px here for its 20 px body padding */
  .navbar-fixed-top .navbar-inner, .navbar .navbar-inner { padding: 0 12px; min-height: 52px; }
  .navbar .container { width: auto; }
  .navbar .brand { padding: 14px 0 10px; margin-left: 0; float: left; }
  .navbar .brand img { width: 180px; height: auto; }
  .container-fluid { margin-top: 8px; padding-left: 12px; padding-right: 12px; }

  /* hamburger + drop-down menu */
  .kyp-menu-btn {
    display: block; float: right; margin: 9px 0 8px; padding: 6px 10px; height: 36px; min-width: 44px;
    background: #FCCF00; border: 1px solid #e0b800; border-radius: 6px; cursor: pointer;
    font-size: 15px; font-weight: bold; color: #222; line-height: 22px;
  }
  .kyp-menu-btn .kyp-bars { display: inline-block; width: 18px; vertical-align: middle; margin-right: 4px; }
  .kyp-menu-btn .kyp-bars i { display: block; height: 2px; margin: 3px 0; background: #222; border-radius: 1px; }
  .kyp-mmenu.kyp-open { display: block; clear: both; padding: 4px 0 10px; border-top: 1px solid #eee; }
  .kyp-mmenu a {
    display: block; padding: 11px 6px; font-size: 16px; color: #222; border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
  }
  .kyp-mmenu a:hover, .kyp-mmenu a:focus { background: #FFFDCD; text-decoration: none; }
  .kyp-mmenu a.kyp-mm-cta { margin: 8px 0 4px; text-align: center; background: #e8492f; color: #fff; border-radius: 6px; border: 0; font-weight: bold; }
  .navbar .nav-collapse { display: none !important; } /* old social-icon bar: replaced by the menu here */

  /* search block (search.php) */
  .container-fluid > .row-fluid > h1:first-child,
  .container-fluid > .row-fluid > h1 { font-size: 26px; line-height: 30px; margin: 6px 0 4px; }
  .intro-text { font-size: 14px; line-height: 20px; margin-bottom: 8px; }
  .row-fluid > .margin-top.pull-right { float: none; text-align: right; margin: 6px 0; font-size: 14px; }
  #myTab > li > a { padding: 10px 12px; }
  #SearchTabContent { padding: 10px 14px 4px; }
  #SearchTabContent label { font-size: 20px; line-height: 26px; }
  #SearchTabContent .kyp-hint { font-size: 13px; }
  #SearchTabContent input[type="text"] {
    -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
    width: 100%; height: 44px; font-size: 16px; /* 16 px: phones do not zoom in */
  }
  #SearchTabContent .btn { height: 44px; }
  .tab-content { min-height: 0; }

  /* statistics strip (statistic.php) */
  .social_stuff .widget { max-height: none; float: none; padding: 6px 10px; }
  .social_stuff .widget .padding-top { padding-top: 4px; display: flex; flex-wrap: wrap; }
  .social_stuff .widget .padding-top > [class*="span"] { float: none; width: 33.33% !important; margin: 0 0 6px !important; }
  .social_stuff .widget .stat { width: auto; height: auto; }
  .social_stuff .widget .stat span.desc { font-size: 12px; line-height: 15px; }

  /* home "Latest Discounts" ticker (index.php sets a fixed 310 px) */
  .span4 .ticker { width: auto; }

  /* home slider (jssor; scaled by search.php) */
  #myCarousel .carousel-control { display: none; }

  /* boxes */
  .box #box-title { font-size: 17px; padding: 10px 12px; line-height: 22px; }
  .box #box-content { padding: 12px 10px; }
  .box h1 { font-size: 17px !important; line-height: 22px; }

  /* link lists in boxes (home "Browse by ...", all.php, allcities.php):
     tappable chips; font-size 0 hides the "* " / "+ " text before each link */
  #box-content ul.inline { margin: 0; }
  #box-content ul.inline > li { font-size: 0; line-height: 0; padding: 0; margin: 0 6px 8px 0; width: auto; }
  #box-content ul.inline > li > a {
    display: inline-block; font-size: 14px; line-height: 20px; padding: 7px 12px; background: #fff;
    border: 1px solid #e3e3e3; border-radius: 18px; color: #222; text-decoration: none;
  }
  #box-content ul.inline > li > a:hover, #box-content ul.inline > li > a:focus { background: #FFFDCD; border-color: #FCCF00; }

  /* listing cards (categorylist/locationlist/businesslist/serviceslist,
     featured/recent/discount boxes): logo left, text right */
  .listing {
    display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start;
    -ms-flex-wrap: wrap; flex-wrap: wrap; padding: 12px 10px; min-height: 0;
  }
  .listing:before, .listing:after { display: none; }
  /* .listing is also a plain wrapper (Company_details.php, contactus.php):
     anything that is not a card part takes a full row */
  .listing > * { -ms-flex: 1 1 100%; flex: 1 1 100%; min-width: 0; }
  .listing > .span3 {
    -webkit-box-ordinal-group: 0; -ms-flex-order: -1; order: -1;
    -webkit-box-flex: 0; -ms-flex: 0 0 72px; flex: 0 0 72px; width: 72px !important; float: none; margin: 0 10px 0 0 !important;
  }
  .listing > .span3 img { width: 72px; height: auto; max-height: 72px; -o-object-fit: contain; object-fit: contain; border-radius: 6px; }
  .listing > .span9 {
    -webkit-box-flex: 1; -ms-flex: 1 1 0px; flex: 1 1 0px; min-width: 0; width: auto !important; float: none; margin: 0 !important;
    border-right: 0;
  }
  .listing > .span9 > .span10 { width: auto !important; float: none; margin: 0 0 0 34px !important; }
  .listing .mapIcon, .listing .mapIcon-premium { float: left; margin-right: 0; }
  .listing h2 { font-size: 17px; line-height: 22px; margin: 2px 0 4px; }
  .listing h2 a { color: #0b4f8a; }
  .listing h3 { font-size: 14px; line-height: 19px; }
  .listing .description, .listing .mute, .listing p { font-size: 14px; line-height: 19px; }
  .listing h2.mute a[href^="tel:"], .listing h2.mute { font-size: 15px; }
  .listing .margin-top { margin-top: 6px; }

  /* pagination (style.css had a fixed 600 px width) */
  .pagination { width: auto; margin: 10px 0; overflow: hidden; }
  .pagination .current, .pagination .page-numbers, .pagination .dots {
    padding: 8px 13px; min-width: 18px; text-align: center; margin: 0 6px 8px 0; font-size: 15px;
  }
  .pagination .dots { float: left; display: block; }

  /* company page (Company_details.php) */
  .detail h1 { font-size: 24px; line-height: 30px; }
  .detail h2 { font-size: 15px; line-height: 20px; }
  .detail h3 { font-size: 15px; line-height: 22px; }
  .detail a[href^="tel:"] {
    display: inline-block; margin: 4px 6px 4px 0; padding: 7px 14px; background: #25a244; color: #fff !important;
    border-radius: 18px; font-size: 16px; font-weight: bold; text-decoration: none;
  }
  .detail a[href^="tel:"]:empty { display: none; } /* listing without that number */
  .detail .nav-tabs > li > a { padding: 10px 10px; }
  .kyp-rc-note { font-size: 12px; line-height: 16px; }
  .detail input[type="text"], .detail input[type="email"], .detail input[type="Email"], .detail select, .detail textarea {
    -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: auto; min-height: 40px; font-size: 16px;
  }

  /* forms in general (listing.php, contactus.php, register.php ...) */
  input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
  input[type="url"], select, textarea { font-size: 16px; }
  input[type="submit"], button[type="submit"] { min-height: 40px; padding-left: 18px; padding-right: 18px; font-size: 16px; }

  /* footer */
  #footer .container { padding: 14px 12px; }
  #footer h5 { font-size: 15px; }
  #footer h5 .pull-right { display: none; } /* "Site Navigation :" label sits in the wrong place when stacked */
  #footer ul.inline > li { padding: 0; margin: 0 4px 6px 0; }
  #footer ul.inline > li > a { display: inline-block; padding: 6px 4px; font-size: 14px; }
  #footer ul.pull-right { float: none; margin-left: 0; }
  #footer, #footer p { font-size: 13px; line-height: 19px; }
  #footer iframe { max-width: 100%; }
  .footer-keywords { padding: 0 12px; font-size: 12px; line-height: 17px; }
}

/* =====================================================================
   Tablet only (768 - 979 px): the side column (offers, banners, featured)
   goes below the main column - side by side both were too narrow
   ===================================================================== */
@media (min-width: 768px) and (max-width: 979px) {
  .container-fluid > .row-fluid > .span8,
  .container-fluid > .row-fluid > .span4,
  .container-fluid > .row-fluid > .detail-page > .span4 { float: none; width: auto; margin-left: 0; }
  .listing > .span3 { -ms-flex: 0 0 80px; flex: 0 0 80px; width: 80px !important; }
  .listing > .span3 img { width: 80px; max-height: 80px; }
}

/* =====================================================================
   Phone (<= 767 px)
   ===================================================================== */
@media (max-width: 767px) {
  .row-fluid [class*="span"] { min-height: 0; }

  /* search: fields stacked, full-width Find button */
  #search_products > [class*="span"], #search_business > [class*="span"] { margin-bottom: 6px; }
  #search_products .span1 label, #search_business .span1 label { display: none; }
  #SearchTabContent .btn { width: 100%; }
  .row-fluid > .margin-top.pull-right .label { font-size: 13px; padding: 4px 8px; }

  /* tables used for layout (contactus.php, listing.php: class kyp-stack):
     one column */
  table.kyp-stack, table.kyp-stack > tbody, table.kyp-stack > tbody > tr, table.kyp-stack > tbody > tr > td,
  table.kyp-stack table, table.kyp-stack table > tbody, table.kyp-stack table > tbody > tr, table.kyp-stack table > tbody > tr > td {
    display: block; width: auto !important; max-width: 100%;
  }
  table.kyp-stack td { padding: 3px 0 !important; }
  table.kyp-stack input[type="text"], table.kyp-stack input[type="email"], table.kyp-stack select, table.kyp-stack textarea,
  table.kyp-stack input[type="file"] {
    -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: 100%; max-width: 100%;
  }
  table.kyp-stack input[type="text"], table.kyp-stack select { height: 40px; }
  form.well { padding: 12px; }
  .container .form-horizontal, .container > form.well { margin: 0; }

  /* company page: enquiry / review / claim forms stack */
  .detail [class*="span"] input, .detail [class*="span"] select, .detail textarea { width: 100% !important; }

  /* bigger single column for the stats */
  .social_stuff .widget .stat span.count { font-size: 19px; }

  /* footer columns stack */
  #footer .row-fluid > .span8, #footer .row-fluid > .span4 { float: none; width: auto; }
}

/* very small phones */
@media (max-width: 360px) {
  .navbar .brand img { width: 150px; }
  .kyp-menu-btn .kyp-mtext { display: none; }
  .listing > .span3 { -ms-flex: 0 0 56px; flex: 0 0 56px; width: 56px !important; }
  .listing > .span3 img { width: 56px; max-height: 56px; }
}
